directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r560913 - /directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/Activator.java
Date Mon, 30 Jul 2007 10:16:38 GMT
Author: pamarcelot
Date: Mon Jul 30 03:16:33 2007
New Revision: 560913

URL: http://svn.apache.org/viewvc?view=rev&rev=560913
Log:
Removed unused code.

Modified:
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/Activator.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=560913&r1=560912&r2=560913
==============================================================================
--- 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
Mon Jul 30 03:16:33 2007
@@ -26,12 +26,7 @@
 import org.apache.directory.studio.apacheds.schemaeditor.controller.ProjectsHandler;
 import org.apache.directory.studio.apacheds.schemaeditor.controller.ProjectsHandlerListener;
 import org.apache.directory.studio.apacheds.schemaeditor.controller.SchemaHandler;
-import org.apache.directory.studio.apacheds.schemaeditor.controller.SchemaHandlerAdapter;
-import org.apache.directory.studio.apacheds.schemaeditor.controller.SchemaHandlerListener;
-import org.apache.directory.studio.apacheds.schemaeditor.model.AttributeTypeImpl;
-import org.apache.directory.studio.apacheds.schemaeditor.model.ObjectClassImpl;
 import org.apache.directory.studio.apacheds.schemaeditor.model.Project;
-import org.apache.directory.studio.apacheds.schemaeditor.model.Schema;
 import org.apache.directory.studio.apacheds.schemaeditor.model.schemachecker.SchemaChecker;
 import org.apache.directory.studio.apacheds.schemaeditor.view.editors.attributetype.AttributeTypeEditor;
 import org.apache.directory.studio.apacheds.schemaeditor.view.editors.objectclass.ObjectClassEditor;
@@ -73,26 +68,6 @@
     /** The ProjectsHandler */
     private ProjectsHandler projectsHandler;
 
-    private SchemaHandlerListener schemaHandlerListener = new SchemaHandlerAdapter()
-    {
-        public void attributeTypeRemoved( AttributeTypeImpl at )
-        {
-//            closeOpenedEditor( at );
-        }
-
-
-        public void objectClassRemoved( ObjectClassImpl oc )
-        {
-//            closeOpenedEditor( oc );
-        }
-
-
-        public void schemaRemoved( Schema schema )
-        {
-//            closeOpenedEditor( schema );
-        }
-    };
-
 
     /**
      * Creates a new instance of Activator.
@@ -107,11 +82,6 @@
             {
                 closeProjectEditors();
 
-                if ( oldProject != null )
-                {
-                    schemaHandler.removeListener( schemaHandlerListener );
-                }
-
                 if ( newProject == null )
                 {
                     schemaHandler = null;
@@ -122,8 +92,6 @@
                     // Registering the SchemaHandler and SchemaChecker
                     schemaHandler = newProject.getSchemaHandler();
                     schemaChecker = newProject.getSchemaChecker();
-
-                    schemaHandler.addListener( schemaHandlerListener );
                 }
 
                 PluginUtils.saveProjects();



Mime
View raw message