directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r779333 - in /directory/studio/trunk/valueeditors: ./ resources/icons/ src/main/java/org/apache/directory/studio/valueeditors/ src/main/java/org/apache/directory/studio/valueeditors/certificate/
Date Wed, 27 May 2009 21:50:31 GMT
Author: seelmann
Date: Wed May 27 21:50:31 2009
New Revision: 779333

URL: http://svn.apache.org/viewvc?rev=779333&view=rev
Log:
DIRSTUDIO-494 (Add value editor for certificates, syntax 1.3.6.1.4.1.1466.115.121.1.8)


Added:
    directory/studio/trunk/valueeditors/resources/icons/certificateeditor.png   (with props)
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateDialog.java
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateValueEditor.java
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/Messages.java
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages.properties
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages_de.properties
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages_fr.properties
Modified:
    directory/studio/trunk/valueeditors/plugin.properties
    directory/studio/trunk/valueeditors/plugin.xml
    directory/studio/trunk/valueeditors/plugin_de.properties
    directory/studio/trunk/valueeditors/plugin_fr.properties
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsConstants.java

Modified: directory/studio/trunk/valueeditors/plugin.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/plugin.properties?rev=779333&r1=779332&r2=779333&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/plugin.properties (original)
+++ directory/studio/trunk/valueeditors/plugin.properties Wed May 27 21:50:31 2009
@@ -35,4 +35,6 @@
 
 ValueEditor_InPlaceOidValueEditor_name=OID Editor
 
-ValueEditor_InPlaceEntryUUIDValueEditor_name=Entry UUID Editor
\ No newline at end of file
+ValueEditor_InPlaceEntryUUIDValueEditor_name=Entry UUID Editor
+
+ValueEditor_CertificateValueEditor_name=Certificate Editor
\ No newline at end of file

Modified: directory/studio/trunk/valueeditors/plugin.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/plugin.xml?rev=779333&r1=779332&r2=779333&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/plugin.xml (original)
+++ directory/studio/trunk/valueeditors/plugin.xml Wed May 27 21:50:31 2009
@@ -86,6 +86,12 @@
           name="%ValueEditor_InPlaceEntryUUIDValueEditor_name">
        <attribute attributeType="entryUUID"/>
     </valueEditor>
+    <valueEditor
+          class="org.apache.directory.studio.valueeditors.certificate.CertificateValueEditor"
+          icon="resources/icons/certificateeditor.png"
+          name="%ValueEditor_CertificateValueEditor_name">
+       <syntax syntaxOID="1.3.6.1.4.1.1466.115.121.1.8"/>
+    </valueEditor>
    </extension>
 
 </plugin>

Modified: directory/studio/trunk/valueeditors/plugin_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/plugin_de.properties?rev=779333&r1=779332&r2=779333&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/plugin_de.properties (original)
+++ directory/studio/trunk/valueeditors/plugin_de.properties Wed May 27 21:50:31 2009
@@ -27,4 +27,6 @@
 
 ValueEditor_AdministrativeRoleValueEditor_name=Administrativer Rollen Editor
 
-ValueEditor_InPlaceEntryUUIDValueEditor_name=Entry UUID Editor
\ No newline at end of file
+ValueEditor_InPlaceEntryUUIDValueEditor_name=Entry UUID Editor
+
+ValueEditor_CertificateValueEditor_name=Zertifikats-Editor
\ No newline at end of file

Modified: directory/studio/trunk/valueeditors/plugin_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/plugin_fr.properties?rev=779333&r1=779332&r2=779333&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/plugin_fr.properties (original)
+++ directory/studio/trunk/valueeditors/plugin_fr.properties Wed May 27 21:50:31 2009
@@ -24,4 +24,5 @@
 ValueEditor_IntegerValueEditor_name=Editeur de nombre entier
 ValueEditor_AdministrativeRoleValueEditor_name=Editeur de r\u00F4le d'administration
 ValueEditor_InPlaceOidValueEditor_name=Editeur d'OID
-ValueEditor_InPlaceEntryUUIDValueEditor_name=Editeur d'EntryUUID
\ No newline at end of file
+ValueEditor_InPlaceEntryUUIDValueEditor_name=Editeur d'EntryUUID
+ValueEditor_CertificateValueEditor_name=TODO:Certificate Editor
\ No newline at end of file

Added: directory/studio/trunk/valueeditors/resources/icons/certificateeditor.png
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/resources/icons/certificateeditor.png?rev=779333&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/trunk/valueeditors/resources/icons/certificateeditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsConstants.java?rev=779333&r1=779332&r2=779333&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsConstants.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsConstants.java
Wed May 27 21:50:31 2009
@@ -56,9 +56,13 @@
     /** The relative path to the administrative role editor icon */
     public static final String IMG_ADMINISTRATIVEROLEEDITOR = "resources/icons/administrativeroleeditor.gif";
//$NON-NLS-1$
 
+    /** The relative path to the certificate editor icon */
+    public static final String IMG_CERTIFICATEEDITOR = "resources/icons/certificateeditor.png";
//$NON-NLS-1$
+
     /** The relative path to the text field error icon */
     public static final String IMG_TEXTFIELD_ERROR = "resources/icons/textfield_error.png";
//$NON-NLS-1$
 
     /** The relative path to the text field ok icon */
     public static final String IMG_TEXTFIELD_OK = "resources/icons/textfield_ok.png"; //$NON-NLS-1$
+
 }

Added: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateDialog.java?rev=779333&view=auto
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateDialog.java
(added)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateDialog.java
Wed May 27 21:50:31 2009
@@ -0,0 +1,287 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio.valueeditors.certificate;
+
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.IOException;
+import java.security.cert.Certificate;
+import java.security.cert.CertificateFactory;
+import java.security.cert.X509Certificate;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.directory.studio.connection.ui.ConnectionUIPlugin;
+import org.apache.directory.studio.connection.ui.widgets.BaseWidgetUtils;
+import org.apache.directory.studio.connection.ui.widgets.CertificateInfoComposite;
+import org.apache.directory.studio.valueeditors.ValueEditorsActivator;
+import org.apache.directory.studio.valueeditors.ValueEditorsConstants;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.FileDialog;
+import org.eclipse.swt.widgets.Shell;
+
+
+/**
+ * Dialog to display a X.509 certificate. It could be 
+ * used to load and save the certificate from and to disk.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class CertificateDialog extends Dialog
+{
+
+    /** The default title. */
+    private static final String DIALOG_TITLE = Messages.getString( "CertificateDialog.CertificateDialog"
); //$NON-NLS-1$
+
+    /** The button ID for the load button. */
+    private static final int LOAD_BUTTON_ID = 9998;
+
+    /** The button ID for the save button. */
+    private static final int SAVE_BUTTON_ID = 9999;
+
+    /** The current certificate binary data. */
+    private byte[] currentData;
+
+    /** The current certificate. */
+    private X509Certificate currentCertificate;
+
+    /** The return data, only set if OK button is pressed, null otherwise. */
+    private byte[] returnData;
+
+    /** The certificate info composite. */
+    private CertificateInfoComposite certificateInfoComposite;
+
+
+    /**
+     * Creates a new instance of CertificateDialog.
+     * 
+     * @param parentShell the parent shell
+     * @param initialData the initial data
+     */
+    public CertificateDialog( Shell parentShell, byte[] initialData )
+    {
+        super( parentShell );
+        super.setShellStyle( super.getShellStyle() | SWT.RESIZE );
+        this.currentData = initialData;
+    }
+
+
+    /**
+     * @see org.eclipse.jface.dialogs.Dialog#buttonPressed(int)
+     */
+    protected void buttonPressed( int buttonId )
+    {
+        if ( buttonId == IDialogConstants.OK_ID )
+        {
+            returnData = currentData;
+        }
+        else if ( buttonId == SAVE_BUTTON_ID )
+        {
+            FileDialog fileDialog = new FileDialog( getShell(), SWT.SAVE );
+            fileDialog.setText( Messages.getString( "CertificateDialog.SaveCertificate" )
); //$NON-NLS-1$
+            // fileDialog.setFilterExtensions(new String[]{"*.pem"});
+            String returnedFileName = fileDialog.open();
+            if ( returnedFileName != null )
+            {
+                try
+                {
+                    File file = new File( returnedFileName );
+                    FileUtils.writeByteArrayToFile( file, currentData );
+                }
+                catch ( IOException e )
+                {
+                    ConnectionUIPlugin.getDefault().getExceptionHandler().handleException(
+                        new Status( IStatus.ERROR, ValueEditorsConstants.PLUGIN_ID, IStatus.ERROR,
Messages
+                            .getString( "CertificateDialog.CantWriteToFile" ), e ) ); //$NON-NLS-1$
+                }
+            }
+        }
+        else if ( buttonId == LOAD_BUTTON_ID )
+        {
+            FileDialog fileDialog = new FileDialog( getShell(), SWT.OPEN );
+            fileDialog.setText( Messages.getString( "CertificateDialog.LoadCertificate" )
); //$NON-NLS-1$
+            String returnedFileName = fileDialog.open();
+            if ( returnedFileName != null )
+            {
+                try
+                {
+                    File file = new File( returnedFileName );
+                    currentData = FileUtils.readFileToByteArray( file );
+                    updateInput();
+                }
+                catch ( IOException e )
+                {
+                    ConnectionUIPlugin.getDefault().getExceptionHandler().handleException(
+                        new Status( IStatus.ERROR, ValueEditorsConstants.PLUGIN_ID, IStatus.ERROR,
Messages
+                            .getString( "CertificateDialog.CantReadFile" ), e ) ); //$NON-NLS-1$
+                }
+            }
+        }
+        else
+        {
+            returnData = null;
+        }
+
+        super.buttonPressed( buttonId );
+    }
+
+
+    /**
+     * @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
+     */
+    protected void configureShell( Shell shell )
+    {
+        super.configureShell( shell );
+        shell.setText( DIALOG_TITLE );
+        shell.setImage( ValueEditorsActivator.getDefault().getImage( ValueEditorsConstants.IMG_CERTIFICATEEDITOR
) );
+    }
+
+
+    /**
+     * @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
+     */
+    protected void createButtonsForButtonBar( Composite parent )
+    {
+        createButton( parent, LOAD_BUTTON_ID, Messages.getString( "CertificateDialog.LoadCertificateButton"
), false ); //$NON-NLS-1$
+        createButton( parent, SAVE_BUTTON_ID, Messages.getString( "CertificateDialog.SaveCertificateButton"
), false ); //$NON-NLS-1$
+        createButton( parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false );
+        createButton( parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL,
false );
+    }
+
+
+    /**
+     * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
+     */
+    protected Control createDialogArea( Composite parent )
+    {
+        // create composite
+        Composite composite = ( Composite ) super.createDialogArea( parent );
+
+        Composite certificateInfoContainer = BaseWidgetUtils.createColumnContainer( composite,
1, 1 );
+        GridData gd = new GridData( GridData.FILL_BOTH );
+        gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH
* 3 / 2 );
+        gd.heightHint = convertVerticalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH
);
+        certificateInfoContainer.setLayoutData( gd );
+
+        certificateInfoComposite = new CertificateInfoComposite( certificateInfoContainer,
SWT.NONE );
+        if ( currentData != null && currentData.length > 0 )
+        {
+            updateInput();
+        }
+
+        applyDialogFont( composite );
+        return composite;
+    }
+
+
+    /**
+     * Parses the certificate binary data and updates the input.
+     */
+    private void updateInput()
+    {
+        try
+        {
+            // parse the certificate
+            currentCertificate = generateCertificate( currentData );
+
+            // update the byte[], this must be done for the case that 
+            // the certificate loaded from file is in PEM format
+            currentData = currentCertificate.getEncoded();
+
+            // set the input and update button
+            certificateInfoComposite.setInput( new X509Certificate[]
+                { currentCertificate } );
+            if ( getButton( IDialogConstants.OK_ID ) != null )
+            {
+                getButton( IDialogConstants.OK_ID ).setEnabled( true );
+            }
+        }
+        catch ( Exception e )
+        {
+            ConnectionUIPlugin.getDefault().getExceptionHandler().handleException(
+                new Status( IStatus.ERROR, ValueEditorsConstants.PLUGIN_ID, IStatus.ERROR,
Messages
+                    .getString( "CertificateDialog.CantParseCertificate" ), //$NON-NLS-1$
+                    e ) );
+            if ( getButton( IDialogConstants.OK_ID ) != null )
+            {
+                getButton( IDialogConstants.OK_ID ).setEnabled( false );
+            }
+        }
+    }
+
+
+    /**
+     * Gets the data.
+     * 
+     * @return the data
+     */
+    public byte[] getData()
+    {
+        return returnData;
+    }
+
+
+    public static String getCertificateInfo( byte[] data )
+    {
+        try
+        {
+            X509Certificate certificate = generateCertificate( data );
+            if ( certificate != null )
+            {
+                String name = certificate.getSubjectX500Principal().getName();
+                int version = certificate.getVersion();
+                String type = certificate.getType();
+                return type + "v" + version + ": " + name; //$NON-NLS-1$ //$NON-NLS-2$
+            }
+            else
+            {
+                return NLS.bind( Messages.getString( "CertificateDialog.InvalidCertificate"
), data.length ); //$NON-NLS-1$
+            }
+        }
+        catch ( Exception e )
+        {
+            return NLS.bind( Messages.getString( "CertificateDialog.InvalidCertificate" ),
data.length ); //$NON-NLS-1$
+        }
+    }
+
+
+    private static X509Certificate generateCertificate( byte[] data ) throws Exception
+    {
+        CertificateFactory cf = CertificateFactory.getInstance( "X.509" ); //$NON-NLS-1$
+        Certificate certificate = cf.generateCertificate( new ByteArrayInputStream( data
) );
+        if ( certificate instanceof X509Certificate )
+        {
+            return ( X509Certificate ) certificate;
+        }
+
+        return null;
+    }
+
+}

Added: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateValueEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateValueEditor.java?rev=779333&view=auto
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateValueEditor.java
(added)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/CertificateValueEditor.java
Wed May 27 21:50:31 2009
@@ -0,0 +1,95 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio.valueeditors.certificate;
+
+
+import org.apache.directory.studio.ldapbrowser.common.dialogs.TextDialog;
+import org.apache.directory.studio.ldapbrowser.core.model.IValue;
+import org.apache.directory.studio.valueeditors.AbstractDialogBinaryValueEditor;
+import org.eclipse.swt.widgets.Shell;
+
+
+/**
+ * Implementation of IValueEditor for syntax 1.3.6.1.4.1.1466.115.121.1.8 
+ * (Certificate). 
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class CertificateValueEditor extends AbstractDialogBinaryValueEditor
+{
+
+    /**
+     * {@inheritDoc}
+     * 
+     * This implementation opens the CertificateDialog.
+     */
+    protected boolean openDialog( Shell shell )
+    {
+        Object value = getValue();
+
+        if ( value != null && value instanceof byte[] )
+        {
+            byte[] currentCertificateData = ( byte[] ) value;
+
+            CertificateDialog dialog = new CertificateDialog( shell, currentCertificateData
);
+            if ( dialog.open() == TextDialog.OK && dialog.getData() != null )
+            {
+                setValue( dialog.getData() );
+                return true;
+            }
+        }
+        return false;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     * 
+     * Returns the certificate info text created by 
+     * CertificateDialog.getCertificateInfo().
+     */
+    public String getDisplayValue( IValue value )
+    {
+        if ( showRawValues() )
+        {
+            return getPrintableString( value );
+        }
+        else
+        {
+            if ( value == null )
+            {
+                return "NULL"; //$NON-NLS-1$
+            }
+            else if ( value.isBinary() )
+            {
+                byte[] data = value.getBinaryValue();
+                String text = CertificateDialog.getCertificateInfo( data );
+                return text;
+            }
+            else
+            {
+                return Messages.getString( "CertificateValueEditor.InvalidCertificateData"
); //$NON-NLS-1$
+            }
+        }
+    }
+
+}

Added: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/Messages.java?rev=779333&view=auto
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/Messages.java
(added)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/Messages.java
Wed May 27 21:50:31 2009
@@ -0,0 +1,50 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.valueeditors.certificate;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.valueeditors.certificate.messages";
//$NON-NLS-1$
+
+    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME
);
+
+
+    private Messages()
+    {
+    }
+
+
+    public static String getString( String key )
+    {
+        try
+        {
+            return RESOURCE_BUNDLE.getString( key );
+        }
+        catch ( MissingResourceException e )
+        {
+            return '!' + key + '!';
+        }
+    }
+}

Added: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages.properties?rev=779333&view=auto
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages.properties
(added)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages.properties
Wed May 27 21:50:31 2009
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+CertificateDialog.CantReadFile=Can't read file
+CertificateDialog.CantWriteToFile=Can't write to file
+CertificateDialog.LoadCertificate=Load Certificate
+CertificateDialog.LoadCertificateButton=Load Certificate...
+CertificateDialog.SaveCertificate=Save Certificate
+CertificateDialog.SaveCertificateButton=Save Certificate...
+CertificateDialog.CertificateDialog=Certificate Editor
+CertificateDialog.CantParseCertificate=Can't parse certificate: 
+CertificateDialog.InvalidCertificate=Invalid Certificate ({0} Bytes)
+CertificateValueEditor.InvalidCertificateData=Invalid Certificate

Added: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages_de.properties?rev=779333&view=auto
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages_de.properties
(added)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages_de.properties
Wed May 27 21:50:31 2009
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+CertificateDialog.CantReadFile=Datei kann nicht gelesen werden
+CertificateDialog.CantWriteToFile=Datei kann nicht geschrieben werden
+CertificateDialog.LoadCertificate=Zertifikat laden
+CertificateDialog.LoadCertificateButton=Zertifikat laden...
+CertificateDialog.SaveCertificate=Zertifikat speichern
+CertificateDialog.SaveCertificateButton=Zertifikat speichern...
+CertificateDialog.CertificateDialog=Zertifikats-Editor
+CertificateDialog.CantParseCertificate=Zertifikat kann nicht geparst werden: 
+CertificateDialog.InvalidCertificate=Ung\u00FCltiges Zertifikat ({0} Bytes)
+CertificateValueEditor.InvalidCertificateData=Ung\u00FCltiges Zertifikat

Added: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages_fr.properties?rev=779333&view=auto
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages_fr.properties
(added)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/certificate/messages_fr.properties
Wed May 27 21:50:31 2009
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+CertificateDialog.CantReadFile=Impossible de lire le fichier
+CertificateDialog.CantWriteToFile=Impossible d'\u00E9crire le fichier
+CertificateDialog.LoadCertificate=TODO:Load Certificate
+CertificateDialog.LoadCertificateButton=TODO:Load Certificate...
+CertificateDialog.SaveCertificate=TODO:Save Certificate
+CertificateDialog.SaveCertificateButton=TODO:Save Certificate...
+CertificateDialog.CertificateDialog=TODO:Certificate Editor
+CertificateDialog.CantParseCertificate=TODO:Can't parse certificate: 
+CertificateDialog.InvalidCertificate=TODO:Invalid Certificate ({0} Bytes)
+CertificateValueEditor.InvalidCertificateData=TODO:Invalid Certificate



Mime
View raw message