directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1428919 - 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 Fri, 04 Jan 2013 15:14:56 GMT
Author: pamarcelot
Date: Fri Jan  4 15:14:56 2013
New Revision: 1428919

URL: http://svn.apache.org/viewvc?rev=1428919&view=rev
Log:
Added an icon for the replication consumer.

Added:
    directory/studio/trunk/plugins/apacheds.configuration.v2/resources/icons/replication_consumer.gif
  (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/ReplicationMasterDetailsBlock.java

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

Propchange: directory/studio/trunk/plugins/apacheds.configuration.v2/resources/icons/replication_consumer.gif
------------------------------------------------------------------------------
    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=1428919&r1=1428918&r2=1428919&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
Fri Jan  4 15:14:56 2013
@@ -44,5 +44,6 @@ public interface ApacheDS2ConfigurationP
     public static final String IMG_NEW_SERVER_CONFIGURATION_FILE_WIZARD = "resources/icons/new_server_configuration_file_wizard.gif";
//$NON-NLS-1$
     public static final String IMG_PARTITION = "resources/icons/partition.gif"; //$NON-NLS-1$
     public static final String IMG_PARTITION_SYSTEM = "resources/icons/partition_system.gif";
//$NON-NLS-1$
+    public static final String IMG_REPLICATION_CONSUMER = "resources/icons/replication_consumer.gif";
//$NON-NLS-1$
     public static final String IMG_VERTICAL_ORIENTATION = "resources/icons/vertical_orientation.gif";
//$NON-NLS-1$
 }

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationMasterDetailsBlock.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/ReplicationMasterDetailsBlock.java?rev=1428919&r1=1428918&r2=1428919&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationMasterDetailsBlock.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationMasterDetailsBlock.java
Fri Jan  4 15:14:56 2013
@@ -24,6 +24,8 @@ import org.apache.directory.api.ldap.mod
 import org.apache.directory.api.ldap.model.message.AliasDerefMode;
 import org.apache.directory.api.ldap.model.message.SearchScope;
 import org.apache.directory.server.config.beans.ReplConsumerBean;
+import org.apache.directory.studio.apacheds.configuration.v2.ApacheDS2ConfigurationPlugin;
+import org.apache.directory.studio.apacheds.configuration.v2.ApacheDS2ConfigurationPluginConstants;
 import org.eclipse.jface.dialogs.MessageDialog;
 import org.eclipse.jface.viewers.ArrayContentProvider;
 import org.eclipse.jface.viewers.ISelectionChangedListener;
@@ -37,6 +39,7 @@ import org.eclipse.osgi.util.NLS;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.SelectionAdapter;
 import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.graphics.Image;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Button;
@@ -149,6 +152,18 @@ public class ReplicationMasterDetailsBlo
 
                 return super.getText( element );
             }
+
+
+            public Image getImage( Object element )
+            {
+                if ( element instanceof ReplConsumerBean )
+                {
+                    return ApacheDS2ConfigurationPlugin.getDefault().getImage(
+                        ApacheDS2ConfigurationPluginConstants.IMG_REPLICATION_CONSUMER );
+                }
+
+                return super.getImage( element );
+            }
         } );
         viewer.setComparator( new ViewerComparator()
         {



Mime
View raw message