directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r513399 - in /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions: LinkWithEditorHierarchyView.java LinkWithEditorSchemasView.java
Date Thu, 01 Mar 2007 16:41:13 GMT
Author: pamarcelot
Date: Thu Mar  1 08:41:13 2007
New Revision: 513399

URL: http://svn.apache.org/viewvc?view=rev&rev=513399
Log:
Improved LinkWithEditor Actions.

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/LinkWithEditorSchemasView.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=513399&r1=513398&r2=513399
==============================================================================
--- 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
Thu Mar  1 08:41:13 2007
@@ -88,6 +88,14 @@
          */
         public void partActivated( IWorkbenchPartReference partRef )
         {
+            String id = partRef.getId();
+
+            if ( ( id.equals( ObjectClassFormEditor.ID ) || ( id.equals( AttributeTypeFormEditor.ID
) ) ) )
+            {
+                hierarchyView.getSite().getPage().removePostSelectionListener( HierarchyView.ID,
viewListener );
+                linkViewWithEditor( partRef.getPartName(), id );
+                hierarchyView.getSite().getPage().addPostSelectionListener( HierarchyView.ID,
viewListener );
+            }
         }
 
 

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=513399&r1=513398&r2=513399
==============================================================================
--- 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
Thu Mar  1 08:41:13 2007
@@ -143,6 +143,14 @@
          */
         public void partVisible( IWorkbenchPartReference partRef )
         {
+            String id = partRef.getId();
+
+            if ( ( id.equals( ObjectClassFormEditor.ID ) || ( id.equals( AttributeTypeFormEditor.ID
) ) ) )
+            {
+                schemasView.getSite().getPage().removePostSelectionListener( SchemasView.ID,
viewListener );
+                linkViewWithEditor( partRef.getPartName(), id );
+                schemasView.getSite().getPage().addPostSelectionListener( SchemasView.ID,
viewListener );
+            }
         }
     };
 



Mime
View raw message