directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1669604 [7/14] - in /directory/studio/trunk/plugins/templateeditor: ./ resources/ resources/icons/ resources/templates/ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/directory/ src/main...
Date Fri, 27 Mar 2015 15:27:30 GMT
Added: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/messages_de.properties?rev=1669604&view=auto
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/messages_de.properties
(added)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/messages_de.properties
Fri Mar 27 15:27:27 2015
@@ -0,0 +1,31 @@
+# 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.
+EntryTemplatePlugin.UnableToGetPluginProperties=Plugin Eigenschaften konnten nicht geladen
werden
+
+TemplatesManager.AnErrorOccurredWhenParsingTheTemplate2Params=Ein Fehler ist beim Lesen des
Templates ({0}) aufgetreten: {1}
+TemplatesManager.AnErrorOccurredWhenParsingTheTemplate3Params=Ein Fehler ist beim Lesen des
Templates ({0}:{1}) aufgetreten: {2}
+TemplatesManager.AnErrorOccurredWhenRemovingTheFileAssociatedWithTheTemplate=Ein Fehler ist
aufgetreten beim L\u00F6schen der Datei zum Template {0}.
+TemplatesManager.TheFileAssociatedWithTheTemplateCanNotBeModified=Die Datei zum Template
{0} kann nicht bearbeitet werden.
+TemplatesManager.TheFileAssociatedWithTheTemplateCouldNotBeFoundAt=Die Datei zum Template
{0} wurde nicht gefunden.
+TemplatesManager.TheTemplateCouldNotBeRemovedBecauseOfTheFollowingError=Das Template "{0}"
({1}) kann aus folgendem Grund nicht gel\u00F6scht werden: 
+TemplatesManager.TheTemplateDoesNotExistInTheTemplateManager =Das Template existiert nicht
im Template Manager.
+TemplatesManager.TheTemplateFileCouldNotBeAddedBecauseATemplateWithSameIDAlreadyExist=Die
Template Datei ({0}) konnte nicht hinzugef\u00FCgt werden weil ein Template mit der selben
ID bereits existiert.
+TemplatesManager.TheTemplateFileCouldNotBeAddedBecauseItCantBeRead=Die Template Datei ({0})
konnte nicht hinzugef\u00FCgt werden weil sie nicht gelesen werden konnte.
+TemplatesManager.TheTemplateFileCouldNotBeAddedBecauseItDoesNotExist=Die Template Datei ({0})
konnte nicht hinzugef\u00FCgt werden weil sie nicht existiert.
+TemplatesManager.TheTemplateFileCouldNotBeAddedBecauseOfTheFollowingError=Die Template Datei
({0}) konnte aus folgendem Grund nicht hinzugef\u00FCgt werden: {1}.
+TemplatesManager.TheTemplateFileCouldNotBeCopiedToThePluginsFolder=Die Template Datei ({0})
konnte nicht ins Plugin Verzeichnis kopiert werden..
+TemplatesManager.URLCreatedForTheTemplateIsNull              =Die erzeugte URL f\u00FCr das
Template ist null

Added: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/messages_fr.properties?rev=1669604&view=auto
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/messages_fr.properties
(added)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/messages_fr.properties
Fri Mar 27 15:27:27 2015
@@ -0,0 +1,30 @@
+# 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.
+EntryTemplatePlugin.UnableToGetPluginProperties=Impossible de r\u00E9cup\u00E9rer les propri\u00E9t\u00E9s
de ce plugin
+TemplatesManager.AnErrorOccurredWhenParsingTheTemplate2Params=Une erreur est survenue lors
de la lecture du mod\u00E8le ({0}): {1}
+TemplatesManager.AnErrorOccurredWhenParsingTheTemplate3Params=Une erreur est survenue lors
de la lecture du mod\u00E8le ({0}:{1}): {2}
+TemplatesManager.AnErrorOccurredWhenRemovingTheFileAssociatedWithTheTemplate=Une erreur est
survenue lors de la suppression du fichier associ\u00E9 au mod\u00E8le {0}.
+TemplatesManager.TheFileAssociatedWithTheTemplateCanNotBeModified=Le fichier associ\u00E9
au mod\u00E8le {0} ne peut pas \u00EAtre modifi\u00E9.
+TemplatesManager.TheFileAssociatedWithTheTemplateCouldNotBeFoundAt=Le fichier associ\u00E9
au mod\u00E8le n''a pu \u00EAtre trouv\u00E9 \u00E0 l''emplacement {0}.
+TemplatesManager.TheTemplateCouldNotBeRemovedBecauseOfTheFollowingError=Le mod\u00E8le "{0}"
({1}) n''a pu \u00EAtre supprim\u00E9 \u00E0 cause de l''erreur suivante : 
+TemplatesManager.TheTemplateDoesNotExistInTheTemplateManager=Le mod\u00E8le n''existe pas
dans le gestionnaire de mod\u00E8les.
+TemplatesManager.TheTemplateFileCouldNotBeAddedBecauseATemplateWithSameIDAlreadyExist=Le
fichier de mod\u00E8le ({0}) n''a pu \u00EAtre ajout\u00E9 car un mod\u00E8le avec un identifant
identique existe d\u00E9j\u00E0.
+TemplatesManager.TheTemplateFileCouldNotBeAddedBecauseItCantBeRead=Le fichier de mod\u00E8le
({0}) n''a pu \u00EAtre ajout\u00E9 car il ne peut \u00EAtre lu.
+TemplatesManager.TheTemplateFileCouldNotBeAddedBecauseItDoesNotExist=Le fichier de mod\u00E8le
({0}) n''a pu \u00EAtre ajout\u00E9 car il n''existe pas.
+TemplatesManager.TheTemplateFileCouldNotBeAddedBecauseOfTheFollowingError=Le fichier de mod\u00E8le
({0}) n''a pu \u00EAtre ajout\u00E9 \u00E0 cause de l''erreur suivante : {1}.
+TemplatesManager.TheTemplateFileCouldNotBeCopiedToThePluginsFolder=Le fichier de mod\u00E8le
({0}) n''a pu \u00EAtre copi\u00E9 dans le dossier du plugin.
+TemplatesManager.URLCreatedForTheTemplateIsNull=L''URL cr\u00E9\u00E9e par le mod\u00E8le
est nulle

Added: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/AbstractTemplate.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/AbstractTemplate.java?rev=1669604&view=auto
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/AbstractTemplate.java
(added)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/AbstractTemplate.java
Fri Mar 27 15:27:27 2015
@@ -0,0 +1,219 @@
+/*
+ *  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.templateeditor.model;
+
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.regex.Pattern;
+
+import org.apache.directory.studio.templateeditor.model.widgets.TemplateForm;
+
+
+/**
+ * This abstract class defines the basic implementation for a template.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public abstract class AbstractTemplate implements Template
+{
+    /**
+     * Indicates if the ID is valid or not.
+     *
+     * @param id
+     *      the id
+     * @return
+     *      <code>true</code> if the ID is valid,
+     *      <code>false</code> if not.
+     */
+    public static boolean isValidId( String id )
+    {
+        return Pattern.matches( "[a-zA-Z][a-zA-Z0-9-.]*", id ); //$NON-NLS-1$
+    }
+
+    /** The ID */
+    private String id;
+
+    /** The title */
+    private String title;
+
+    /** The structural object class */
+    private String structuralObjectClass;
+
+    /** The list of auxiliary object classes */
+    private List<String> auxiliaryObjectClasses;
+
+    /** The form */
+    private TemplateForm form;
+
+
+    /**
+     * Creates a new instance of AbstractTemplate.
+     */
+    public AbstractTemplate()
+    {
+        init();
+    }
+
+
+    /**
+     * Creates a new instance of AbstractTemplate.
+     *
+     * @param id
+     *      the id of the template
+     */
+    public AbstractTemplate( String id )
+    {
+        this.id = id;
+        init();
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public boolean addAuxiliaryObjectClass( String objectClass )
+    {
+        return auxiliaryObjectClasses.add( objectClass );
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public List<String> getAuxiliaryObjectClasses()
+    {
+        return auxiliaryObjectClasses;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public TemplateForm getForm()
+    {
+        return form;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public String getId()
+    {
+        return id;
+    }
+
+
+    /**
+     * Gets the structural object class.
+     * 
+     * @return
+     *      the structural object class
+     */
+    public String getStructuralObjectClass()
+    {
+        return structuralObjectClass;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public String getTitle()
+    {
+        return title;
+    }
+
+
+    /**
+     * Initializes the fields of the AbstractTemplate.
+     */
+    private final void init()
+    {
+        auxiliaryObjectClasses = new ArrayList<String>();
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public boolean removeAuxiliaryObjectClass( String objectClass )
+    {
+        return auxiliaryObjectClasses.remove( objectClass );
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public void setAuxiliaryObjectClasses( List<String> objectClasses )
+    {
+        this.auxiliaryObjectClasses = objectClasses;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public void setForm( TemplateForm form )
+    {
+        this.form = form;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public void setId( String id )
+    {
+        this.id = id;
+    }
+
+
+    /**
+     * Sets the structural object class.
+     * 
+     * @param objectClass
+     *      the structural object class
+     */
+    public void setStructuralObjectClass( String objectClass )
+    {
+        structuralObjectClass = objectClass;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public void setTitle( String title )
+    {
+        this.title = title;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public String toString()
+    {
+        return ( title == null ) ? Messages.getString( "AbstractTemplate.UntitledTemplate"
) : title; //$NON-NLS-1$
+    }
+}

Added: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/ExtensionPointTemplate.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/ExtensionPointTemplate.java?rev=1669604&view=auto
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/ExtensionPointTemplate.java
(added)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/ExtensionPointTemplate.java
Fri Mar 27 15:27:27 2015
@@ -0,0 +1,31 @@
+/*
+ *  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.templateeditor.model;
+
+
+/**
+ * This class implements a template based on an extension point implementation 
+ * (i.e. defined in the plugin.xml file of a plugin).
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class ExtensionPointTemplate extends AbstractTemplate
+{
+}

Added: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/FileTemplate.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/FileTemplate.java?rev=1669604&view=auto
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/FileTemplate.java
(added)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/FileTemplate.java
Fri Mar 27 15:27:27 2015
@@ -0,0 +1,59 @@
+/*
+ *  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.templateeditor.model;
+
+
+import java.io.File;
+
+
+/**
+ * This class implements a template based on a file (i.e. stored on the disk in the plugin's
folder).
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class FileTemplate extends AbstractTemplate
+{
+    /** The associated file */
+    private File file;
+
+
+    /**
+     * Gets the file.
+     *
+     * @return
+     *      the file
+     */
+    public File getFile()
+    {
+        return file;
+    }
+
+
+    /**
+     * Sets the file.
+     * 
+     * @param file
+     *      the file
+     */
+    public void setFile( File file )
+    {
+        this.file = file;
+    }
+}

Added: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/Messages.java?rev=1669604&view=auto
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/Messages.java
(added)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/Messages.java
Fri Mar 27 15:27:27 2015
@@ -0,0 +1,54 @@
+/*
+ *  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.templateeditor.model;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+/**
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.templateeditor.model.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/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/Template.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/Template.java?rev=1669604&view=auto
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/Template.java
(added)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/Template.java
Fri Mar 27 15:27:27 2015
@@ -0,0 +1,146 @@
+/*
+ *  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.templateeditor.model;
+
+
+import java.util.List;
+
+import org.apache.directory.studio.templateeditor.model.widgets.TemplateForm;
+
+
+/**
+ * This interface defines a template.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public interface Template
+{
+    /**
+     * Adds an auxiliary object class.
+     *
+     * @param objectClass
+     *      the auxiliary object class
+     * @return
+     *      <code>true</code> if the template did not already contain the 
+     *      specified element.
+     */
+    public boolean addAuxiliaryObjectClass( String objectClass );
+
+
+    /**
+     * Gets the auxiliary object classes.
+     *
+     * @return
+     *      the auxiliary object classes
+     */
+    public List<String> getAuxiliaryObjectClasses();
+
+
+    /**
+     * Gets the form.
+     *
+     * @return
+     *      the form
+     */
+    public TemplateForm getForm();
+
+
+    /**
+     * Gets the ID.
+     * 
+     * @return
+     *      the ID
+     */
+    public String getId();
+
+
+    /**
+     * Gets the structural object class.
+     * 
+     * @return
+     *      the structural object class
+     */
+    public String getStructuralObjectClass();
+
+
+    /**
+     * Gets the title.
+     * 
+     * @return
+     *      the title
+     */
+    public String getTitle();
+
+
+    /**
+     * Removes an auxiliary object class.
+     *
+     * @param objectClass
+     *      the auxiliary object class
+     * @return
+     *      <code>true</code> if the template contained the specified element.
+     */
+    public boolean removeAuxiliaryObjectClass( String objectClass );
+
+
+    /**
+     * Sets the auxiliary object classes.
+     *
+     * @param objectClasses
+     *      the auxiliary object classes
+     */
+    public void setAuxiliaryObjectClasses( List<String> objectClasses );
+
+
+    /**
+     * Sets the form.
+     *
+     * @param form
+     *      the form
+     */
+    public void setForm( TemplateForm form );
+
+
+    /**
+     * Sets the ID.
+     *
+     * @param id
+     *      the ID
+     */
+    public void setId( String id );
+
+
+    /**
+     * Sets the structural object class.
+     * 
+     * @param objectClass
+     *      the structural object class
+     */
+    public void setStructuralObjectClass( String objectClass );
+
+
+    /**
+     * Sets the title.
+     *
+     * @param title
+     *      the title
+     */
+    public void setTitle( String title );
+}

Added: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages.properties?rev=1669604&view=auto
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages.properties
(added)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages.properties
Fri Mar 27 15:27:27 2015
@@ -0,0 +1,17 @@
+# 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.
+AbstractTemplate.UntitledTemplate=Untitled Template

Added: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages_de.properties?rev=1669604&view=auto
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages_de.properties
(added)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages_de.properties
Fri Mar 27 15:27:27 2015
@@ -0,0 +1,17 @@
+# 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.
+AbstractTemplate.UntitledTemplate=Unbetiteltes Template

Added: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages_fr.properties?rev=1669604&view=auto
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages_fr.properties
(added)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/messages_fr.properties
Fri Mar 27 15:27:27 2015
@@ -0,0 +1,17 @@
+# 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.
+AbstractTemplate.UntitledTemplate=Mod\u00E8le sans titre

Added: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/parser/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/parser/Messages.java?rev=1669604&view=auto
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/parser/Messages.java
(added)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/model/parser/Messages.java
Fri Mar 27 15:27:27 2015
@@ -0,0 +1,54 @@
+/*
+ *  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.templateeditor.model.parser;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+/**
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.templateeditor.model.parser.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 + '!';
+        }
+    }
+}



Mime
View raw message