directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r370249 - in /directory/trunks/apacheds: core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/ core/src/main/resources/org/apache/ldap/server/partition/impl/ core/src/main/resources/org/apache/ldap/server/partition/impl/btree/...
Date Wed, 18 Jan 2006 20:25:04 GMT
Author: akarasulu
Date: Wed Jan 18 12:24:47 2006
New Revision: 370249

URL: http://svn.apache.org/viewcvs?rev=370249&view=rev
Log:
cleaning up the UI a little bit

Added:
    directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/PartitionFrame.java
      - copied, changed from r370225, directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/MainFrame.java
    directory/trunks/apacheds/core/src/main/resources/org/apache/ldap/server/partition/impl/
    directory/trunks/apacheds/core/src/main/resources/org/apache/ldap/server/partition/impl/btree/
    directory/trunks/apacheds/core/src/main/resources/org/apache/ldap/server/partition/impl/btree/gui/
    directory/trunks/apacheds/core/src/main/resources/org/apache/ldap/server/partition/impl/btree/gui/server.gif
      - copied unchanged from r370225, directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/server.gif
Removed:
    directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/MainFrame.java
    directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/server.gif
Modified:
    directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/PartitionViewer.java
    directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/SearchResultDialog.java
    directory/trunks/apacheds/protocols/ldap/src/main/java/org/apache/ldap/server/protocol/support/extended/LaunchDiagnosticUiHandler.java

Copied: directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/PartitionFrame.java
(from r370225, directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/MainFrame.java)
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/PartitionFrame.java?p2=directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/PartitionFrame.java&p1=directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/MainFrame.java&r1=370225&r2=370249&rev=370249&view=diff
==============================================================================
--- directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/MainFrame.java
(original)
+++ directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/PartitionFrame.java
Wed Jan 18 12:24:47 2006
@@ -84,9 +84,9 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class MainFrame extends JFrame
+public class PartitionFrame extends JFrame
 {
-    private static final Logger log = LoggerFactory.getLogger(MainFrame.class);
+    private static final Logger log = LoggerFactory.getLogger(PartitionFrame.class);
 
     private static final long serialVersionUID = 4049353102291513657L;
 
@@ -120,13 +120,13 @@
     /**
      * Creates new form JFrame
      */
-    public MainFrame( BTreeDirectoryPartition db, SearchEngine eng )
+    public PartitionFrame( BTreeDirectoryPartition db, SearchEngine eng )
         throws NamingException
     {
         partition = db;
         this.eng = eng;
 
-        initGUI();
+        initialize();
         buildIndicesMenu( partition );
         pack();
         load();
@@ -136,7 +136,7 @@
     /**
      * This method is called from within the constructor to initialize the form
      */
-    private void initGUI() throws NamingException
+    private void initialize() throws NamingException
     {
         mainPnl.setBorder( null );
         mainPnl.setLayout( new java.awt.BorderLayout() );
@@ -171,7 +171,7 @@
         // --------------------------------------------------------------------
         
         JMenu backendMenu = new JMenu( "Backend" );
-        backendMenu.setText( "Backend" );
+        backendMenu.setText("Partition");
         backendMenu.setBackground( new java.awt.Color( 205, 205, 205 ) );
         backendMenu.setMnemonic( 'B' );
 
@@ -225,8 +225,8 @@
             public void actionPerformed( ActionEvent e ) 
             {
                 AboutDialog aboutDialog = 
-                    new AboutDialog ( MainFrame.this, true );
-                MainFrame.this.centerOnScreen( aboutDialog );
+                    new AboutDialog ( PartitionFrame.this, true );
+                PartitionFrame.this.centerOnScreen( aboutDialog );
                 aboutDialog.setVisible( true );
             }
         } );
@@ -792,7 +792,7 @@
         }
 
 		AnnotatedFilterTreeDialog treeDialog = new
-			AnnotatedFilterTreeDialog( MainFrame.this, false );
+			AnnotatedFilterTreeDialog( PartitionFrame.this, false );
 		treeDialog.setFilter( filter );
 
         eng.getOptimizer().annotate( root );

Modified: directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/PartitionViewer.java
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/PartitionViewer.java?rev=370249&r1=370248&r2=370249&view=diff
==============================================================================
--- directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/PartitionViewer.java
(original)
+++ directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/PartitionViewer.java
Wed Jan 18 12:24:47 2006
@@ -85,7 +85,7 @@
 
     public void execute() throws NamingException
     {
-        MainFrame frame = new MainFrame( partition, eng ) ;
+        PartitionFrame frame = new PartitionFrame( partition, eng ) ;
 
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize() ;
         Dimension frameSize = frame.getSize() ;

Modified: directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/SearchResultDialog.java
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/SearchResultDialog.java?rev=370249&r1=370248&r2=370249&view=diff
==============================================================================
--- directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/SearchResultDialog.java
(original)
+++ directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/partition/impl/btree/gui/SearchResultDialog.java
Wed Jan 18 12:24:47 2006
@@ -142,7 +142,7 @@
             if(selectionModel.isSelectedIndex(ii) && !an_event.getValueIsAdjusting())
{
                 BigInteger id = (BigInteger)
                     m_resultsTbl.getModel().getValueAt(ii, 0) ;
-                ((MainFrame) getParent()).selectTreeNode(id) ;
+                ((PartitionFrame) getParent()).selectTreeNode(id) ;
             }
         }
     }

Modified: directory/trunks/apacheds/protocols/ldap/src/main/java/org/apache/ldap/server/protocol/support/extended/LaunchDiagnosticUiHandler.java
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/protocols/ldap/src/main/java/org/apache/ldap/server/protocol/support/extended/LaunchDiagnosticUiHandler.java?rev=370249&r1=370248&r2=370249&view=diff
==============================================================================
--- directory/trunks/apacheds/protocols/ldap/src/main/java/org/apache/ldap/server/protocol/support/extended/LaunchDiagnosticUiHandler.java
(original)
+++ directory/trunks/apacheds/protocols/ldap/src/main/java/org/apache/ldap/server/protocol/support/extended/LaunchDiagnosticUiHandler.java
Wed Jan 18 12:24:47 2006
@@ -32,7 +32,7 @@
 import org.apache.ldap.server.partition.DirectoryPartition;
 import org.apache.ldap.server.partition.DirectoryPartitionNexus;
 import org.apache.ldap.server.partition.impl.btree.BTreeDirectoryPartition;
-import org.apache.ldap.server.partition.impl.btree.gui.MainFrame;
+import org.apache.ldap.server.partition.impl.btree.gui.PartitionFrame;
 import org.apache.ldap.server.protocol.ExtendedOperationHandler;
 import org.apache.ldap.server.protocol.SessionRegistry;
 import org.apache.mina.common.IoSession;
@@ -73,7 +73,7 @@
                 if ( partition instanceof BTreeDirectoryPartition )
                 {
                     BTreeDirectoryPartition btPartition = ( BTreeDirectoryPartition ) partition;
-                    MainFrame frame = new MainFrame( btPartition, btPartition.getSearchEngine()
);
+                    PartitionFrame frame = new PartitionFrame( btPartition, btPartition.getSearchEngine()
);
                     frame.setVisible( true );
                 }
             }



Mime
View raw message