directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1198775 - in /directory/studio/trunk/plugins/apacheds.configuration.v2: resources/icons/ src/main/java/org/apache/directory/studio/apacheds/configuration/v2/ src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/
Date Mon, 07 Nov 2011 15:18:59 GMT
Author: pamarcelot
Date: Mon Nov  7 15:18:59 2011
New Revision: 1198775

URL: http://svn.apache.org/viewvc?rev=1198775&view=rev
Log:
Added an icon for indexes in the table viewer.

Added:
    directory/studio/trunk/plugins/apacheds.configuration.v2/resources/icons/index.png   (with
props)
Modified:
    directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/ApacheDS2ConfigurationPluginConstants.java
    directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java

Added: directory/studio/trunk/plugins/apacheds.configuration.v2/resources/icons/index.png
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/resources/icons/index.png?rev=1198775&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/trunk/plugins/apacheds.configuration.v2/resources/icons/index.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/ApacheDS2ConfigurationPluginConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/ApacheDS2ConfigurationPluginConstants.java?rev=1198775&r1=1198774&r2=1198775&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/ApacheDS2ConfigurationPluginConstants.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/ApacheDS2ConfigurationPluginConstants.java
Mon Nov  7 15:18:59 2011
@@ -36,6 +36,7 @@ public interface ApacheDS2ConfigurationP
     // ------
     public static final String IMG_EDITOR = "resources/icons/editor.gif"; //$NON-NLS-1$
     public static final String IMG_EXPORT = "resources/icons/export.gif"; //$NON-NLS-1$
+    public static final String IMG_INDEX = "resources/icons/index.png"; //$NON-NLS-1$
     public static final String IMG_IMPORT = "resources/icons/import.gif"; //$NON-NLS-1$
     public static final String IMG_EXTENDED_OPERATION = "resources/icons/extended_operation.gif";
//$NON-NLS-1$
     public static final String IMG_HORIZONTAL_ORIENTATION = "resources/icons/horizontal_orientation.gif";
//$NON-NLS-1$

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java?rev=1198775&r1=1198774&r2=1198775&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java
Mon Nov  7 15:18:59 2011
@@ -28,6 +28,8 @@ import org.apache.directory.server.confi
 import org.apache.directory.shared.ldap.model.entry.Entry;
 import org.apache.directory.shared.ldap.model.exception.LdapInvalidDnException;
 import org.apache.directory.shared.ldap.model.name.Dn;
+import org.apache.directory.studio.apacheds.configuration.v2.ApacheDS2ConfigurationPlugin;
+import org.apache.directory.studio.apacheds.configuration.v2.ApacheDS2ConfigurationPluginConstants;
 import org.apache.directory.studio.apacheds.configuration.v2.dialogs.IndexDialog;
 import org.eclipse.jface.dialogs.Dialog;
 import org.eclipse.jface.dialogs.IDialogConstants;
@@ -51,6 +53,7 @@ import org.eclipse.swt.events.SelectionE
 import org.eclipse.swt.events.SelectionListener;
 import org.eclipse.swt.events.VerifyEvent;
 import org.eclipse.swt.events.VerifyListener;
+import org.eclipse.swt.graphics.Image;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Button;
@@ -297,6 +300,18 @@ public class PartitionDetailsPage implem
 
                 return super.getText( element );
             }
+
+
+            public Image getImage( Object element )
+            {
+                if ( element instanceof JdbmIndexBean )
+                {
+                    return ApacheDS2ConfigurationPlugin.getDefault().getImage(
+                        ApacheDS2ConfigurationPluginConstants.IMG_INDEX );
+                }
+
+                return super.getImage( element );
+            };
         } );
 
         GridData buttonsGD = new GridData( SWT.FILL, SWT.BEGINNING, false, false );



Mime
View raw message