Description
This is a Utility class for BTT tools common
Public Functions
Name | Parameters | Return Value | Description |
getActiveEditor | IEditorPart | Return the current opened active editorPart | |
getWebContentName | Project(IProject) | String | Get the assigned project webContent folder name,the default value is “WebContent” |
getJavaSourceFolder | javaProject(IJavaProject) | IPath | get the source folder path of assigned project |
openErrorMessageDialog | Message(String) | void | Open a errorMessage widow with assigned message |
getRelativeBTTPath | Project(IProject) | String | Get assigned project btt.xml relative path |
getBTTXmlFullPath | Project(IProject) | Entry<IProject, String> | Get the btt.xml full path and target project which contains this btt.xml for desired project. |
getSelfDefinedFolder | isOp(boolean), IProject project |
IFolder | Get the self-defined folder |
isCommonProject | Project(IProject) | boolean | Check if assigned project has btt common nature |
isCommonJavaProject | Project(IProject) | boolean | Check if assigned project has btt common nature and also check if it is a java project |
isCommonWebProject | Project(IProject) | boolean | Check if assigned project has btt common nature and also check if it is a web project |
isGlobalProject | Project(IProject) | boolean | Check if assigned project has btt global nature |
isGlobalJavaProject | Project(IProject) | boolean | Check if assigned project has btt global nature and also check if it is a java project |
isGlobalWebProject | Project(IProject) | boolean | Check if assigned project has btt global nature and also check if it is a web project |
isLocalProject | Project(IProject) | boolean | Check if assigned project name same with the active project |
isWebProject | Project(IProject) | boolean | Check the assigned project is a web project |