- Timestamp:
- 02/05/06 15:03:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/TestNewPackageWizard.java
r290 r291 50 50 import org.eclipse.swt.widgets.Button; 51 51 import org.eclipse.swt.widgets.Text; 52 import org. eclipse.ui.PlatformUI;52 import org.modelica.mdt.core.IModelicaProject; 53 53 import org.modelica.mdt.core.ModelicaCore; 54 54 import org.modelica.mdt.test.util.Utility; … … 59 59 import abbot.tester.swt.TextTester; 60 60 61 import junit.framework.Assert; 61 62 import junit.framework.TestCase; 62 63 … … 90 91 */ 91 92 project = 92 ModelicaCore.createProject(PROJECT_NAME_1, 93 PlatformUI.getWorkbench().getActiveWorkbenchWindow()); 94 assertNotNull("failed to create project", project); 95 93 ResourcesPlugin.getWorkspace().getRoot().getProject(PROJECT_NAME_1); 94 95 /* create project only if it does not exist yet */ 96 if (!project.exists()) 97 { 98 IModelicaProject mproj = 99 ModelicaCore.getModelicaRoot().createProject(PROJECT_NAME_1); 100 Assert.assertNotNull("failed to create project", mproj); 101 102 project = mproj.getProject(); 103 } 104 96 105 /* 97 106 * create the selection that points at the root of the created project 98 107 */ 99 fileDestination = 100 new StructuredSelection(ResourcesPlugin.getWorkspace().getRoot(). 101 getProject(PROJECT_NAME_1)); 108 fileDestination = new StructuredSelection(project); 109 102 110 /* 103 111 * setup testing support objects
Note: See TracChangeset
for help on using the changeset viewer.