directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r657824 - in /directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/v152: ExtendedOperationDetailsPage.java ExtendedOperationsMasterDetailsBlock.java
Date Mon, 19 May 2008 13:21:02 GMT
Author: pamarcelot
Date: Mon May 19 06:21:02 2008
New Revision: 657824

URL: http://svn.apache.org/viewvc?rev=657824&view=rev
Log:
Small refactoring

Modified:
    directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/v152/ExtendedOperationDetailsPage.java
    directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/v152/ExtendedOperationsMasterDetailsBlock.java

Modified: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/v152/ExtendedOperationDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/v152/ExtendedOperationDetailsPage.java?rev=657824&r1=657823&r2=657824&view=diff
==============================================================================
--- directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/v152/ExtendedOperationDetailsPage.java
(original)
+++ directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/v152/ExtendedOperationDetailsPage.java
Mon May 19 06:21:02 2008
@@ -24,8 +24,6 @@
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Composite;
@@ -47,9 +45,6 @@
  */
 public class ExtendedOperationDetailsPage implements IDetailsPage
 {
-    /** The associated Master Details Block */
-    private ExtendedOperationsMasterDetailsBlock masterDetailsBlock;
-
     /** The Managed Form */
     private IManagedForm mform;
 
@@ -63,29 +58,6 @@
     private Text nameText;
     private Text descriptionText;
 
-    // Listeners
-    /** The Modify Listener for Text Widgets */
-    private ModifyListener textModifyListener = new ModifyListener()
-    {
-        public void modifyText( ModifyEvent e )
-        {
-            masterDetailsBlock.setEditorDirty();
-            dirty = true;
-        }
-    };
-
-
-    /**
-     * Creates a new instance of ExtendedOperationDetailsPage.
-     *
-     * @param emdb
-     *      the associated Master Details Block
-     */
-    public ExtendedOperationDetailsPage( ExtendedOperationsMasterDetailsBlock emdb )
-    {
-        masterDetailsBlock = emdb;
-    }
-
 
     /* (non-Javadoc)
      * @see org.eclipse.ui.forms.IDetailsPage#createContents(org.eclipse.swt.widgets.Composite)

Modified: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/v152/ExtendedOperationsMasterDetailsBlock.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/v152/ExtendedOperationsMasterDetailsBlock.java?rev=657824&r1=657823&r2=657824&view=diff
==============================================================================
--- directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/v152/ExtendedOperationsMasterDetailsBlock.java
(original)
+++ directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/v152/ExtendedOperationsMasterDetailsBlock.java
Mon May 19 06:21:02 2008
@@ -150,7 +150,7 @@
                     return ( ( ExtendedOperationEnum ) element ).getName();
 
                 }
-                
+
                 return super.getText( element );
             }
         } );
@@ -269,7 +269,7 @@
      */
     protected void registerPages( DetailsPart detailsPart )
     {
-        detailsPage = new ExtendedOperationDetailsPage( this );
+        detailsPage = new ExtendedOperationDetailsPage();
         detailsPart.registerPage( ExtendedOperationEnum.class, detailsPage );
     }
 



Mime
View raw message