directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r556631 - /directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/NewProjectWizard.java
Date Mon, 16 Jul 2007 14:01:14 GMT
Author: pamarcelot
Date: Mon Jul 16 07:01:13 2007
New Revision: 556631

URL: http://svn.apache.org/viewvc?view=rev&rev=556631
Log:
Updated the NewProjectWizard to automatically open the newly created project upon creation.

Modified:
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/NewProjectWizard.java

Modified: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/NewProjectWizard.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/NewProjectWizard.java?view=diff&rev=556631&r1=556630&r2=556631
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/NewProjectWizard.java
(original)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/NewProjectWizard.java
Mon Jul 16 07:01:13 2007
@@ -21,6 +21,7 @@
 
 
 import org.apache.directory.studio.apacheds.schemaeditor.Activator;
+import org.apache.directory.studio.apacheds.schemaeditor.controller.ProjectsHandler;
 import org.apache.directory.studio.apacheds.schemaeditor.model.Project;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.wizard.Wizard;
@@ -59,7 +60,9 @@
     public boolean performFinish()
     {
         Project project = new Project( page.getProjectType(), page.getProjectName() );
-        Activator.getDefault().getProjectsHandler().addProject( project );
+        ProjectsHandler projectsHandler = Activator.getDefault().getProjectsHandler();
+        projectsHandler.addProject( project );
+        projectsHandler.openProject( project );
 
         return true;
     }



Mime
View raw message