directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r919063 - in /directory/studio/trunk/connection-ui: resources/icons/ src/main/java/org/apache/directory/studio/connection/ui/ src/main/java/org/apache/directory/studio/connection/ui/widgets/
Date Thu, 04 Mar 2010 16:49:34 GMT
Author: pamarcelot
Date: Thu Mar  4 16:49:34 2010
New Revision: 919063

URL: http://svn.apache.org/viewvc?rev=919063&view=rev
Log:
Added an icon for certificates.

Added:
    directory/studio/trunk/connection-ui/resources/icons/certificate.gif   (with props)
Modified:
    directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
    directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/CertificateListComposite.java

Added: directory/studio/trunk/connection-ui/resources/icons/certificate.gif
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/resources/icons/certificate.gif?rev=919063&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/trunk/connection-ui/resources/icons/certificate.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java?rev=919063&r1=919062&r2=919063&view=diff
==============================================================================
--- directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
(original)
+++ directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
Thu Mar  4 16:49:34 2010
@@ -45,6 +45,9 @@
     /** The dialog setting key used for the history of SASL realms. */
     public static final String DIALOGSETTING_KEY_REALM_HISTORY = "saslrealmHistory"; //$NON-NLS-1$
 
+    /** The certificate image */
+    public static final String IMG_CERTIFICATE = "resources/icons/certificate.gif"; //$NON-NLS-1$
+
     /** The image to add a connection. */
     public static final String IMG_CONNECTION_ADD = "resources/icons/connection_add.gif";
//$NON-NLS-1$
 

Modified: directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/CertificateListComposite.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/CertificateListComposite.java?rev=919063&r1=919062&r2=919063&view=diff
==============================================================================
--- directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/CertificateListComposite.java
(original)
+++ directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/CertificateListComposite.java
Thu Mar  4 16:49:34 2010
@@ -25,6 +25,8 @@
 import java.util.Iterator;
 
 import org.apache.directory.studio.connection.core.StudioKeyStoreManager;
+import org.apache.directory.studio.connection.ui.ConnectionUIConstants;
+import org.apache.directory.studio.connection.ui.ConnectionUIPlugin;
 import org.apache.directory.studio.connection.ui.dialogs.CertificateInfoDialog;
 import org.eclipse.jface.viewers.DoubleClickEvent;
 import org.eclipse.jface.viewers.IDoubleClickListener;
@@ -38,6 +40,7 @@
 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;
@@ -242,5 +245,18 @@
             }
             return super.getText( element );
         }
+
+
+        @Override
+        public Image getImage( Object element )
+        {
+            if ( element instanceof X509Certificate )
+            {
+                return ConnectionUIPlugin.getDefault().getImage( ConnectionUIConstants.IMG_CERTIFICATE
);
+            }
+
+            // TODO Auto-generated method stub
+            return super.getImage( element );
+        }
     }
 }



Mime
View raw message