directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r520495 - in /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas: controller/actions/ view/editors/
Date Tue, 20 Mar 2007 17:43:16 GMT
Author: pamarcelot
Date: Tue Mar 20 10:43:13 2007
New Revision: 520495

URL: http://svn.apache.org/viewvc?view=rev&rev=520495
Log:
Improved LinkWithEditor Actions (now matching with the real object instead of the name of
the AT, OC or Schema).

Modified:
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorHierarchyView.java
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorSchemaElementsView.java
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorSchemasView.java
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditor.java
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditor.java

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorHierarchyView.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorHierarchyView.java?view=diff&rev=520495&r1=520494&r2=520495
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorHierarchyView.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorHierarchyView.java
Tue Mar 20 10:43:13 2007
@@ -22,14 +22,16 @@
 
 import org.apache.directory.ldapstudio.schemas.Activator;
 import org.apache.directory.ldapstudio.schemas.PluginConstants;
-import org.apache.directory.ldapstudio.schemas.model.SchemaPool;
+import org.apache.directory.ldapstudio.schemas.model.AttributeType;
+import org.apache.directory.ldapstudio.schemas.model.ObjectClass;
+import org.apache.directory.ldapstudio.schemas.model.SchemaElement;
 import org.apache.directory.ldapstudio.schemas.view.editors.AttributeTypeFormEditor;
 import org.apache.directory.ldapstudio.schemas.view.editors.ObjectClassFormEditor;
-import org.apache.directory.ldapstudio.schemas.view.editors.SchemaFormEditor;
 import org.apache.directory.ldapstudio.schemas.view.viewers.HierarchyView;
 import org.eclipse.jface.action.Action;
 import org.eclipse.ui.IEditorPart;
 import org.eclipse.ui.IPartListener2;
+import org.eclipse.ui.IWorkbenchPart;
 import org.eclipse.ui.IWorkbenchPartReference;
 import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.plugin.AbstractUIPlugin;
@@ -50,9 +52,6 @@
     /** The associated view */
     private HierarchyView view;
 
-    /** The Schema Pool */
-    private SchemaPool schemaPool;
-
     /** The listener listening on changes on editors */
     private IPartListener2 editorListener = new IPartListener2()
     {
@@ -61,12 +60,15 @@
          */
         public void partVisible( IWorkbenchPartReference partRef )
         {
-            String id = partRef.getId();
+            IWorkbenchPart part = partRef.getPart( true );
 
-            if ( id.equals( ObjectClassFormEditor.ID ) || id.equals( AttributeTypeFormEditor.ID
)
-                || id.equals( SchemaFormEditor.ID ) )
+            if ( part instanceof ObjectClassFormEditor )
+            {
+                linkViewWithEditor( ( ( ObjectClassFormEditor ) part ).getOriginalObjectClass()
);
+            }
+            else if ( part instanceof AttributeTypeFormEditor )
             {
-                linkViewWithEditor( partRef.getPartName(), id );
+                linkViewWithEditor( ( ( AttributeTypeFormEditor ) part ).getOriginalAttributeType()
);
             }
         }
 
@@ -143,7 +145,6 @@
             PluginConstants.IMG_LINK_WITH_EDITOR ) );
         setEnabled( true );
         this.view = view;
-        schemaPool = SchemaPool.getInstance();
 
         // Setting up the default key value (if needed)
         if ( Activator.getDefault().getDialogSettings().get( LINK_WITH_EDITOR_HIERARCHY_VIEW_DS_KEY
) == null )
@@ -178,13 +179,11 @@
                 .getActiveEditor();
             if ( activeEditor instanceof ObjectClassFormEditor )
             {
-                ObjectClassFormEditor editor = ( ObjectClassFormEditor ) activeEditor;
-                linkViewWithEditor( editor.getPartName(), ObjectClassFormEditor.ID );
+                linkViewWithEditor( ( ( ObjectClassFormEditor ) activeEditor ).getOriginalObjectClass()
);
             }
             else if ( activeEditor instanceof AttributeTypeFormEditor )
             {
-                AttributeTypeFormEditor editor = ( AttributeTypeFormEditor ) activeEditor;
-                linkViewWithEditor( editor.getPartName(), AttributeTypeFormEditor.ID );
+                linkViewWithEditor( ( ( AttributeTypeFormEditor ) activeEditor ).getOriginalAttributeType()
);
             }
         }
         else
@@ -198,21 +197,18 @@
     /**
      * Links the view with the right editor
      *
-     * @param editorName
-     *      the name of the editor
-     * @param editorID
-     *      the id of the editor
+     * @param schemaElement
+     *      the Schema Element
      */
-    private void linkViewWithEditor( String editorName, String editorID )
+    private void linkViewWithEditor( SchemaElement schemaElement )
     {
-        // Only editors for attribute types and object class are accepted
-        if ( editorID.equals( AttributeTypeFormEditor.ID ) )
+        if ( schemaElement instanceof AttributeType )
         {
-            view.setInput( schemaPool.getAttributeType( editorName ) );
+            view.setInput( schemaElement );
         }
-        else if ( editorID.equals( ObjectClassFormEditor.ID ) )
+        else if ( schemaElement instanceof ObjectClass )
         {
-            view.setInput( schemaPool.getObjectClass( editorName ) );
+            view.setInput( schemaElement );
         }
     }
 }

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorSchemaElementsView.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorSchemaElementsView.java?view=diff&rev=520495&r1=520494&r2=520495
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorSchemaElementsView.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorSchemaElementsView.java
Tue Mar 20 10:43:13 2007
@@ -24,10 +24,9 @@
 import org.apache.directory.ldapstudio.schemas.PluginConstants;
 import org.apache.directory.ldapstudio.schemas.model.AttributeType;
 import org.apache.directory.ldapstudio.schemas.model.ObjectClass;
-import org.apache.directory.ldapstudio.schemas.model.SchemaPool;
+import org.apache.directory.ldapstudio.schemas.model.SchemaElement;
 import org.apache.directory.ldapstudio.schemas.view.editors.AttributeTypeFormEditor;
 import org.apache.directory.ldapstudio.schemas.view.editors.ObjectClassFormEditor;
-import org.apache.directory.ldapstudio.schemas.view.editors.SchemaFormEditor;
 import org.apache.directory.ldapstudio.schemas.view.viewers.SchemaElementsView;
 import org.apache.directory.ldapstudio.schemas.view.viewers.wrappers.AttributeTypeWrapper;
 import org.apache.directory.ldapstudio.schemas.view.viewers.wrappers.ITreeNode;
@@ -62,9 +61,6 @@
 
     /** The associated view */
     private SchemaElementsView view;
-    
-    /** The Schema Pool */
-    private SchemaPool schemaPool;
 
     /** The listener listening on changes on editors */
     private IPartListener2 editorListener = new IPartListener2()
@@ -74,12 +70,18 @@
          */
         public void partVisible( IWorkbenchPartReference partRef )
         {
-            String id = partRef.getId();
+            IWorkbenchPart part = partRef.getPart( true );
 
-            if ( ( id.equals( ObjectClassFormEditor.ID ) || ( id.equals( AttributeTypeFormEditor.ID
) ) ) )
+            if ( part instanceof ObjectClassFormEditor )
             {
                 view.getSite().getPage().removePostSelectionListener( viewListener );
-                linkViewWithEditor( partRef.getPartName(), id );
+                linkViewWithEditor( ( ( ObjectClassFormEditor ) part ).getOriginalObjectClass()
);
+                view.getSite().getPage().addPostSelectionListener( viewListener );
+            }
+            else if ( part instanceof AttributeTypeFormEditor )
+            {
+                view.getSite().getPage().removePostSelectionListener( viewListener );
+                linkViewWithEditor( ( ( AttributeTypeFormEditor ) part ).getOriginalAttributeType()
);
                 view.getSite().getPage().addPostSelectionListener( viewListener );
             }
         }
@@ -177,7 +179,6 @@
             PluginConstants.IMG_LINK_WITH_EDITOR ) );
         setEnabled( true );
         this.view = view;
-        schemaPool = SchemaPool.getInstance();
 
         // Setting up the default key value (if needed)
         if ( Activator.getDefault().getDialogSettings().get( LINK_WITH_EDITOR_SCHEMAS_VIEW_DS_KEY
) == null )
@@ -213,13 +214,11 @@
                 .getActiveEditor();
             if ( activeEditor instanceof ObjectClassFormEditor )
             {
-                ObjectClassFormEditor editor = ( ObjectClassFormEditor ) activeEditor;
-                linkViewWithEditor( editor.getPartName(), ObjectClassFormEditor.ID );
+                linkViewWithEditor( ( ( ObjectClassFormEditor ) activeEditor ).getOriginalObjectClass()
);
             }
             else if ( activeEditor instanceof AttributeTypeFormEditor )
             {
-                AttributeTypeFormEditor editor = ( AttributeTypeFormEditor ) activeEditor;
-                linkViewWithEditor( editor.getPartName(), AttributeTypeFormEditor.ID );
+                linkViewWithEditor( ( ( AttributeTypeFormEditor ) activeEditor ).getOriginalAttributeType()
);
             }
 
             view.getSite().getPage().addPostSelectionListener( viewListener );
@@ -236,34 +235,28 @@
     /**
      * Links the view with the right editor
      *
-     * @param editorName
-     *      the name of the editor
-     * @param editorID
-     *      the id of the editor
+     * @param schemaElement
+     *      the Schema Element
      */
-    private void linkViewWithEditor( String editorName, String editorID )
+    private void linkViewWithEditor( SchemaElement schemaElement )
     {
         StructuredSelection structuredSelection = null;
         ITreeNode wrapper = null;
 
-        // Only editors for attribute types and object class are accepted
-        if ( editorID.equals( AttributeTypeFormEditor.ID ) )
+        if ( schemaElement instanceof AttributeType )
         {
-            AttributeType at = schemaPool.getAttributeType( editorName );
-            wrapper = new AttributeTypeWrapper( at, null );
+            wrapper = new AttributeTypeWrapper( ( AttributeType ) schemaElement, null );
             structuredSelection = new StructuredSelection( wrapper );
 
             view.getViewer().setSelection( structuredSelection, true );
         }
-        else if ( editorID.equals( ObjectClassFormEditor.ID ) )
+        else if ( schemaElement instanceof ObjectClass )
         {
-            ObjectClass oc = schemaPool.getObjectClass( editorName );
-            wrapper = new ObjectClassWrapper( oc, null );
+            wrapper = new ObjectClassWrapper( ( ObjectClass ) schemaElement, null );
             structuredSelection = new StructuredSelection( wrapper );
         }
         else
         {
-            // If the editor isn't an attribute type editor or object class editor, we return
             return;
         }
 
@@ -331,23 +324,35 @@
      */
     private void linkEditorWithView( ITreeNode wrapper )
     {
-        IEditorReference[] editorReferences = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
-            .getEditorReferences();
-
-        for ( int i = 0; i < editorReferences.length; i++ )
+        if ( wrapper != null )
         {
-            IEditorReference reference = editorReferences[i];
-            IWorkbenchPart workbenchPart = reference.getPart( true );
+            IEditorReference[] editorReferences = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
+                .getEditorReferences();
 
-            if ( ( ( workbenchPart instanceof ObjectClassFormEditor ) && ( wrapper
instanceof ObjectClassWrapper ) && ( reference
-                .getPartName().equals( ( ( ObjectClassWrapper ) wrapper ).getMyObjectClass().getNames()[0]
) ) )
-                || ( ( workbenchPart instanceof AttributeTypeFormEditor ) && ( wrapper
instanceof AttributeTypeWrapper ) && ( reference
-                    .getPartName().equals( ( ( AttributeTypeWrapper ) wrapper ).getMyAttributeType().getNames()[0]
) ) )
-                || ( ( workbenchPart instanceof SchemaFormEditor ) && ( wrapper instanceof
SchemaWrapper ) && ( reference
-                    .getPartName().equals( ( ( SchemaWrapper ) wrapper ).getMySchema().getName()
) ) ) )
+            for ( int i = 0; i < editorReferences.length; i++ )
             {
-                PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().bringToTop(
workbenchPart );
-                return;
+                IEditorReference reference = editorReferences[i];
+                IWorkbenchPart workbenchPart = reference.getPart( true );
+
+                if ( ( workbenchPart instanceof ObjectClassFormEditor ) && ( wrapper
instanceof ObjectClassWrapper ) )
+                {
+                    if ( ( ( ObjectClassFormEditor ) workbenchPart ).getOriginalObjectClass().equals(
+                        ( ( ObjectClassWrapper ) wrapper ).getMyObjectClass() ) )
+                    {
+                        PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().bringToTop(
workbenchPart );
+                        return;
+                    }
+                }
+                else if ( ( workbenchPart instanceof AttributeTypeFormEditor )
+                    && ( wrapper instanceof AttributeTypeWrapper ) )
+                {
+                    if ( ( ( AttributeTypeFormEditor ) workbenchPart ).getOriginalAttributeType().equals(
+                        ( ( AttributeTypeWrapper ) wrapper ).getMyAttributeType() ) )
+                    {
+                        PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().bringToTop(
workbenchPart );
+                        return;
+                    }
+                }
             }
         }
     }

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorSchemasView.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorSchemasView.java?view=diff&rev=520495&r1=520494&r2=520495
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorSchemasView.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/LinkWithEditorSchemasView.java
Tue Mar 20 10:43:13 2007
@@ -25,7 +25,6 @@
 import org.apache.directory.ldapstudio.schemas.model.AttributeType;
 import org.apache.directory.ldapstudio.schemas.model.ObjectClass;
 import org.apache.directory.ldapstudio.schemas.model.Schema;
-import org.apache.directory.ldapstudio.schemas.model.SchemaPool;
 import org.apache.directory.ldapstudio.schemas.view.editors.AttributeTypeFormEditor;
 import org.apache.directory.ldapstudio.schemas.view.editors.ObjectClassFormEditor;
 import org.apache.directory.ldapstudio.schemas.view.editors.SchemaFormEditor;
@@ -63,9 +62,6 @@
 
     /** The associated view */
     private SchemasView schemasView;
-    
-    /** The Schema Pool */
-    private SchemaPool schemaPool;
 
     /** The listener listening on changes on editors */
     private IPartListener2 editorListener = new IPartListener2()
@@ -75,13 +71,24 @@
          */
         public void partVisible( IWorkbenchPartReference partRef )
         {
-            String id = partRef.getId();
+            IWorkbenchPart part = partRef.getPart( true );
 
-            if ( id.equals( ObjectClassFormEditor.ID ) || id.equals( AttributeTypeFormEditor.ID
)
-                || id.equals( SchemaFormEditor.ID ) )
+            if ( part instanceof ObjectClassFormEditor )
             {
                 schemasView.getSite().getPage().removePostSelectionListener( viewListener
);
-                linkViewWithEditor( partRef.getPartName(), id );
+                linkViewWithEditor( ( ( ObjectClassFormEditor ) part ).getOriginalObjectClass()
);
+                schemasView.getSite().getPage().addPostSelectionListener( viewListener );
+            }
+            else if ( part instanceof AttributeTypeFormEditor )
+            {
+                schemasView.getSite().getPage().removePostSelectionListener( viewListener
);
+                linkViewWithEditor( ( ( AttributeTypeFormEditor ) part ).getOriginalAttributeType()
);
+                schemasView.getSite().getPage().addPostSelectionListener( viewListener );
+            }
+            else if ( part instanceof SchemaFormEditor )
+            {
+                schemasView.getSite().getPage().removePostSelectionListener( viewListener
);
+                linkViewWithEditor( ( ( SchemaFormEditor ) part ).getSchema() );
                 schemasView.getSite().getPage().addPostSelectionListener( viewListener );
             }
         }
@@ -179,7 +186,6 @@
             PluginConstants.IMG_LINK_WITH_EDITOR ) );
         setEnabled( true );
         schemasView = view;
-        schemaPool = SchemaPool.getInstance();
 
         // Setting up the default key value (if needed)
         if ( Activator.getDefault().getDialogSettings().get( LINK_WITH_EDITOR_SCHEMAS_VIEW_DS_KEY
) == null )
@@ -215,13 +221,21 @@
                 .getActiveEditor();
             if ( activeEditor instanceof ObjectClassFormEditor )
             {
-                ObjectClassFormEditor editor = ( ObjectClassFormEditor ) activeEditor;
-                linkViewWithEditor( editor.getPartName(), ObjectClassFormEditor.ID );
+                schemasView.getSite().getPage().removePostSelectionListener( viewListener
);
+                linkViewWithEditor( ( ( ObjectClassFormEditor ) activeEditor ).getOriginalObjectClass()
);
+                schemasView.getSite().getPage().addPostSelectionListener( viewListener );
             }
             else if ( activeEditor instanceof AttributeTypeFormEditor )
             {
-                AttributeTypeFormEditor editor = ( AttributeTypeFormEditor ) activeEditor;
-                linkViewWithEditor( editor.getPartName(), AttributeTypeFormEditor.ID );
+                schemasView.getSite().getPage().removePostSelectionListener( viewListener
);
+                linkViewWithEditor( ( ( AttributeTypeFormEditor ) activeEditor ).getOriginalAttributeType()
);
+                schemasView.getSite().getPage().addPostSelectionListener( viewListener );
+            }
+            else if ( activeEditor instanceof SchemaFormEditor )
+            {
+                schemasView.getSite().getPage().removePostSelectionListener( viewListener
);
+                linkViewWithEditor( ( ( SchemaFormEditor ) activeEditor ).getSchema() );
+                schemasView.getSite().getPage().addPostSelectionListener( viewListener );
             }
 
             schemasView.getSite().getPage().addPostSelectionListener( viewListener );
@@ -238,35 +252,27 @@
     /**
      * Links the view with the right editor
      *
-     * @param editorName
-     *      the name of the editor
-     * @param editorID
-     *      the id of the editor
+     * @param o
+     *      the object
      */
-    private void linkViewWithEditor( String editorName, String editorID )
+    private void linkViewWithEditor( Object o )
     {
         StructuredSelection structuredSelection = null;
         ITreeNode wrapper = null;
 
-        // Only editors for attribute types and object class are accepted
-        if ( editorID.equals( AttributeTypeFormEditor.ID ) )
+        if ( o instanceof AttributeType )
         {
-            AttributeType at = schemaPool.getAttributeType( editorName );
-            wrapper = new AttributeTypeWrapper( at, null );
+            wrapper = new AttributeTypeWrapper( ( AttributeType ) o, null );
             structuredSelection = new StructuredSelection( wrapper );
-
-            schemasView.getViewer().setSelection( structuredSelection, true );
         }
-        else if ( editorID.equals( ObjectClassFormEditor.ID ) )
+        else if ( o instanceof ObjectClass )
         {
-            ObjectClass oc = schemaPool.getObjectClass( editorName );
-            wrapper = new ObjectClassWrapper( oc, null );
+            wrapper = new ObjectClassWrapper( ( ObjectClass ) o, null );
             structuredSelection = new StructuredSelection( wrapper );
         }
-        else if ( editorID.equals( SchemaFormEditor.ID ) )
+        else if ( o instanceof Schema )
         {
-            Schema schema = schemaPool.getSchema( editorName );
-            wrapper = new SchemaWrapper( schema, null );
+            wrapper = new SchemaWrapper( ( Schema ) o, null );
             structuredSelection = new StructuredSelection( wrapper );
         }
         else

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditor.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditor.java?view=diff&rev=520495&r1=520494&r2=520495
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditor.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditor.java
Tue Mar 20 10:43:13 2007
@@ -242,6 +242,18 @@
 
 
     /**
+     * Gets the original attribute type.
+     *
+     * @return
+     *      the original attribute type
+     */
+    public AttributeType getOriginalAttributeType()
+    {
+        return originalAttributeType;
+    }
+
+
+    /**
      * Gets the modified attribute type.
      *
      * @return

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditor.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditor.java?view=diff&rev=520495&r1=520494&r2=520495
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditor.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditor.java
Tue Mar 20 10:43:13 2007
@@ -222,6 +222,18 @@
 
 
     /**
+     * Gets the original object class.
+     *
+     * @return
+     *      the original object class
+     */
+    public ObjectClass getOriginalObjectClass()
+    {
+        return originalObjectClass;
+    }
+
+
+    /**
      * Gets the modified object class.
      *
      * @return



Mime
View raw message