| java.lang.Object org.netbeans.junit.ide.ProjectSupport
ProjectSupport | public class ProjectSupport (Code) | | A helper class to work with projects in test cases. It is packed to
nbjunit-ide.jar. This jar is added to compile classpath in module_harness.xml
and it is added to system class loader classpath in ide_plugin_targets.xml.
Then it ican be used in test cases.
|
Method Summary | |
public static boolean | closeProject(String name) Closes project with system or display name equals to given name.
It also closes all files open in editor. | public static Object | createProject(String projectParentPath, String name) Creates an empty Java project in specified directory and opens it. | public static Object | createProject(File projectParentDir, String name) Creates an empty Java project in specified directory and opens it. | public static Object | openProject(File projectDir) Opens project in specified directory. | public static Object | openProject(String projectPath) Opens project on specified path. | public static void | waitScanFinished() Waits until metadata scanning is finished. |
closeProject | public static boolean closeProject(String name)(Code) | | Closes project with system or display name equals to given name.
It also closes all files open in editor. If a file is modified, all
changes are discarded.
Parameters: name - system or display name of project to be closed. true if project is closed, false otherwise (i.e. project wasnot found). |
createProject | public static Object createProject(String projectParentPath, String name)(Code) | | Creates an empty Java project in specified directory and opens it.
Its name is defined by name parameter.
Parameters: projectParentPath - path to directory where to create name subdirectory andnew project structure in that subdirectory. Parameters: name - name of the project Project instance of created project |
createProject | public static Object createProject(File projectParentDir, String name)(Code) | | Creates an empty Java project in specified directory and opens it.
Its name is defined by name parameter.
Parameters: projectParentDir - directory where to create name subdirectory andnew project structure in that subdirectory. Parameters: name - name of the project Project instance of created project |
openProject | public static Object openProject(File projectDir)(Code) | | Opens project in specified directory.
Parameters: projectDir - a directory with project to open Project instance of opened project |
openProject | public static Object openProject(String projectPath)(Code) | | Opens project on specified path.
Parameters: projectPath - path to a directory with project to open Project instance of opened project |
waitScanFinished | public static void waitScanFinished()(Code) | | Waits until metadata scanning is finished.
|
|
|