directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r559043 - in /directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor: Activator.java controller/ProblemsViewController.java
Date Tue, 24 Jul 2007 13:19:08 GMT
Author: pamarcelot
Date: Tue Jul 24 06:19:05 2007
New Revision: 559043

URL: http://svn.apache.org/viewvc?view=rev&rev=559043
Log:
Moving some code from the Activator to the ProblemsViewController.

Modified:
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/Activator.java
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/ProblemsViewController.java

Modified: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/Activator.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/Activator.java?view=diff&rev=559043&r1=559042&r2=559043
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/Activator.java
(original)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/Activator.java
Tue Jul 24 06:19:05 2007
@@ -31,8 +31,6 @@
 import org.apache.directory.studio.apacheds.schemaeditor.view.editors.attributetype.AttributeTypeEditor;
 import org.apache.directory.studio.apacheds.schemaeditor.view.editors.objectclass.ObjectClassEditor;
 import org.apache.directory.studio.apacheds.schemaeditor.view.editors.schema.SchemaEditor;
-import org.apache.directory.studio.apacheds.schemaeditor.view.views.ProblemsView;
-import org.apache.directory.studio.apacheds.schemaeditor.view.views.SchemaView;
 import org.apache.directory.studio.apacheds.schemaeditor.view.widget.SchemaCodeScanner;
 import org.apache.directory.studio.apacheds.schemaeditor.view.widget.SchemaTextAttributeProvider;
 import org.eclipse.jface.text.rules.ITokenScanner;
@@ -70,12 +68,6 @@
     /** The ProjectsHandler */
     private ProjectsHandler projectsHandler;
 
-    /** The SchemaView */
-    private SchemaView schemaView;
-
-    /** The ProblemsView */
-    private ProblemsView problemsView;
-
 
     /**
      * Creates a new instance of Activator.
@@ -120,15 +112,6 @@
                     // Registering the SchemaHandler and SchemaChecker
                     schemaHandler = newProject.getSchemaHandler();
                     schemaChecker = newProject.getSchemaChecker();
-                    schemaChecker.enableModificationsListening();
-
-                    // Reloading views
-                    //                    schemaView = ( SchemaView ) getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(
-                    //                        SchemaView.ID );
-                    problemsView = ( ProblemsView ) getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(
-                        ProblemsView.ID );
-                    //                    schemaView.reloadViewer();
-                    problemsView.reloadViewer();
                 }
 
                 PluginUtils.saveProjects();

Modified: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/ProblemsViewController.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/ProblemsViewController.java?view=diff&rev=559043&r1=559042&r2=559043
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/ProblemsViewController.java
(original)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/ProblemsViewController.java
Tue Jul 24 06:19:05 2007
@@ -122,6 +122,7 @@
                 if ( oldProject != null )
                 {
                     removeSchemaCheckerListener( oldProject );
+
                 }
 
                 if ( newProject != null )
@@ -150,6 +151,7 @@
         if ( schemaChecker != null )
         {
             schemaChecker.addListener( schemaCheckerListener );
+            schemaChecker.enableModificationsListening();
         }
     }
 
@@ -166,6 +168,7 @@
         if ( schemaChecker != null )
         {
             schemaChecker.removeListener( schemaCheckerListener );
+            schemaChecker.disableModificationsListening();
         }
     }
 



Mime
View raw message