directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r720511 [2/2] - in /directory/studio/trunk/schemaeditor/src/main: java/org/apache/directory/studio/schemaeditor/ java/org/apache/directory/studio/schemaeditor/controller/ java/org/apache/directory/studio/schemaeditor/controller/actions/ jav...
Date Tue, 25 Nov 2008 15:14:33 GMT
Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/DependenciesComputer.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/DependenciesComputer.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/DependenciesComputer.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/DependenciesComputer.java Tue Nov 25 07:14:31 2008
@@ -128,8 +128,8 @@
             AttributeTypeImpl superiorAT = schemaHandler.getAttributeType( superior );
             if ( superiorAT == null )
             {
-                throw new DependencyComputerException( "The superior attribute type '" + superior
-                    + "' does not exists in the Schema." );
+                throw new DependencyComputerException( Messages.getString("DependenciesComputer.SuperiorAttributeBegin") + superior //$NON-NLS-1$
+                    + Messages.getString("DependenciesComputer.SuperiorAttributeEnd") ); //$NON-NLS-1$
             }
             else
             {
@@ -148,8 +148,8 @@
             SyntaxImpl syntax = schemaHandler.getSyntax( syntaxOID );
             if ( syntax == null )
             {
-                throw new DependencyComputerException( "The syntax with OID '" + syntaxOID
-                    + "' does not exists in the Schema." );
+                throw new DependencyComputerException( Messages.getString("DependenciesComputer.SyntaxOIDBegin") + syntaxOID //$NON-NLS-1$
+                    + Messages.getString("DependenciesComputer.SyntaxOIDEnd") ); //$NON-NLS-1$
             }
             else
             {
@@ -168,8 +168,8 @@
             MatchingRuleImpl equalityMatchingRule = schemaHandler.getMatchingRule( equalityName );
             if ( equalityMatchingRule == null )
             {
-                throw new DependencyComputerException( "The equality matching rule '" + equalityName
-                    + "' does not exists in the Schema." );
+                throw new DependencyComputerException( Messages.getString("DependenciesComputer.EqualityBegin") + equalityName //$NON-NLS-1$
+                    + Messages.getString("DependenciesComputer.EqualityEnd") ); //$NON-NLS-1$
             }
             else
             {
@@ -188,8 +188,8 @@
             MatchingRuleImpl orderingMatchingRule = schemaHandler.getMatchingRule( orderingName );
             if ( orderingMatchingRule == null )
             {
-                throw new DependencyComputerException( "The ordering matching rule '" + orderingName
-                    + "' does not exists in the Schema." );
+                throw new DependencyComputerException( Messages.getString("DependenciesComputer.OrderingBegin") + orderingName //$NON-NLS-1$
+                    + Messages.getString("DependenciesComputer.OrderingEnd") ); //$NON-NLS-1$
             }
             else
             {
@@ -208,8 +208,8 @@
             MatchingRuleImpl substringMatchingRule = schemaHandler.getMatchingRule( substringName );
             if ( substringMatchingRule == null )
             {
-                throw new DependencyComputerException( "The substring matching rule '" + substringName
-                    + "' does not exists in the Schema." );
+                throw new DependencyComputerException( Messages.getString("DependenciesComputer.SubstringBegin") + substringName //$NON-NLS-1$
+                    + Messages.getString("DependenciesComputer.SubstringEnd") ); //$NON-NLS-1$
             }
             else
             {
@@ -243,8 +243,8 @@
                 ObjectClassImpl superObjectClass = schemaHandler.getObjectClass( superClassName );
                 if ( superObjectClass == null )
                 {
-                    throw new DependencyComputerException( "The superior object class '" + superClassName
-                        + "' does not exists in the Schema." );
+                    throw new DependencyComputerException( Messages.getString("DependenciesComputer.SuperiorObjectBegin") + superClassName //$NON-NLS-1$
+                        + Messages.getString("DependenciesComputer.SuperiorObjectEnd") ); //$NON-NLS-1$
                 }
                 else
                 {
@@ -266,8 +266,8 @@
                 AttributeTypeImpl optionalAttributeType = schemaHandler.getAttributeType( optionalAttributeTypeName );
                 if ( optionalAttributeType == null )
                 {
-                    throw new DependencyComputerException( "The optional attribute type '" + optionalAttributeType
-                        + "' does not exists in the Schema." );
+                    throw new DependencyComputerException( Messages.getString("DependenciesComputer.OptionalBegin") + optionalAttributeType //$NON-NLS-1$
+                        + Messages.getString("DependenciesComputer.OptionalEnd") ); //$NON-NLS-1$
                 }
                 else
                 {
@@ -289,8 +289,8 @@
                 AttributeTypeImpl mandatoryAttributeType = schemaHandler.getAttributeType( mandatoryAttributeTypeName );
                 if ( mandatoryAttributeType == null )
                 {
-                    throw new DependencyComputerException( "The mandatory attribute type '"
-                        + mandatoryAttributeTypeName + "' does not exists in the Schema." );
+                    throw new DependencyComputerException( Messages.getString("DependenciesComputer.MandatoryBegin") //$NON-NLS-1$
+                        + mandatoryAttributeTypeName + Messages.getString("DependenciesComputer.MandatoryEnd") ); //$NON-NLS-1$
                 }
                 else
                 {
@@ -322,7 +322,7 @@
             Schema schemaFromSuperiorAT = schemaHandler.getSchema( schemaName );
             if ( schemaFromSuperiorAT == null )
             {
-                throw new DependencyComputerException( "The schema '" + schemaName + "' does not exists in the Schema." );
+                throw new DependencyComputerException( Messages.getString("DependenciesComputer.SchemaBegin") + schemaName + Messages.getString("DependenciesComputer.SchemaEnd") ); //$NON-NLS-1$ //$NON-NLS-2$
             }
             else
             {

Added: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/Messages.java?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/Messages.java (added)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/Messages.java Tue Nov 25 07:14:31 2008
@@ -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.schemaeditor.model;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.schemaeditor.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 + '!';
+        }
+    }
+}

Propchange: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/Messages.java
------------------------------------------------------------------------------
    svn:keywords = Id

Added: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/Messages.java?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/Messages.java (added)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/Messages.java Tue Nov 25 07:14:31 2008
@@ -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.schemaeditor.model.io;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.schemaeditor.model.io.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 + '!';
+        }
+    }
+}

Propchange: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/Messages.java
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/OpenLdapSchemaFileImporter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/OpenLdapSchemaFileImporter.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/OpenLdapSchemaFileImporter.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/OpenLdapSchemaFileImporter.java Tue Nov 25 07:14:31 2008
@@ -67,7 +67,7 @@
         }
         catch ( IOException e )
         {
-            throw new OpenLdapSchemaFileImportException( "The file '" + path + "' can not be read correctly." );
+            throw new OpenLdapSchemaFileImportException( Messages.getString("OpenLdapSchemaFileImporter.NotReadCorrectlyBegin") + path + Messages.getString("OpenLdapSchemaFileImporter.NotReadCorrectlyEnd") ); //$NON-NLS-1$ //$NON-NLS-2$
         }
 
         try
@@ -76,16 +76,16 @@
         }
         catch ( IOException e )
         {
-            throw new OpenLdapSchemaFileImportException( "The file '" + path + "' can not be read correctly." );
+            throw new OpenLdapSchemaFileImportException( Messages.getString("OpenLdapSchemaFileImporter.NotReadCorrectlyBegin") + path + Messages.getString("OpenLdapSchemaFileImporter.NotReadCorrectlyEnd") ); //$NON-NLS-1$ //$NON-NLS-2$
         }
         catch ( ParseException e )
         {
             ExceptionMessage exceptionMessage = parseExceptionMessage( e.getMessage() );
-            throw new OpenLdapSchemaFileImportException( "The file '"
+            throw new OpenLdapSchemaFileImportException( Messages.getString("OpenLdapSchemaFileImporter.NotReadCorrectlyBegin") //$NON-NLS-1$
                 + path
-                + "' can not be read correctly."
-                + ( exceptionMessage == null ? "" : "\nLine: " + exceptionMessage.lineNumber + ", Column: "
-                    + exceptionMessage.columnNumber + ", Cause: " + exceptionMessage.cause ) );
+                + Messages.getString("OpenLdapSchemaFileImporter.NotReadCorrectlyEnd") //$NON-NLS-1$
+                + ( exceptionMessage == null ? "" : Messages.getString("OpenLdapSchemaFileImporter.Line") + exceptionMessage.lineNumber + Messages.getString("OpenLdapSchemaFileImporter.Column") //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+                    + exceptionMessage.columnNumber + Messages.getString("OpenLdapSchemaFileImporter.Cause") + exceptionMessage.cause ) ); //$NON-NLS-1$
         }
 
         String schemaName = getNameFromPath( path );
@@ -197,7 +197,7 @@
     private static ExceptionMessage parseExceptionMessage( String message )
     {
         Scanner scanner = new Scanner( new ByteArrayInputStream( message.getBytes() ) );
-        String foundString = scanner.findWithinHorizon( ".*line (\\d+):(\\d+): *([^\\n]*).*", message.length() );
+        String foundString = scanner.findWithinHorizon( ".*line (\\d+):(\\d+): *([^\\n]*).*", message.length() ); //$NON-NLS-1$
         if ( foundString != null )
         {
             MatchResult result = scanner.match();

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsImporter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsImporter.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsImporter.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsImporter.java Tue Nov 25 07:14:31 2008
@@ -46,14 +46,14 @@
 public class ProjectsImporter
 {
     // The tags
-    private static final String PROJECT_TAG = "project";
-    private static final String PROJECTS_TAG = "projects";
-    private static final String NAME_TAG = "name";
-    private static final String SCHEMAS_TAG = "schemas";
-    private static final String TYPE_TAG = "type";
-    private static final String CONNECTION_TAG = "connection";
-    private static final String SCHEMA_CONNECTOR_TAG = "schemaConnector";
-    private static final String SCHEMA_BACKUP_TAG = "schemaBackup";
+    private static final String PROJECT_TAG = "project"; //$NON-NLS-1$
+    private static final String PROJECTS_TAG = "projects"; //$NON-NLS-1$
+    private static final String NAME_TAG = "name"; //$NON-NLS-1$
+    private static final String SCHEMAS_TAG = "schemas"; //$NON-NLS-1$
+    private static final String TYPE_TAG = "type"; //$NON-NLS-1$
+    private static final String CONNECTION_TAG = "connection"; //$NON-NLS-1$
+    private static final String SCHEMA_CONNECTOR_TAG = "schemaConnector"; //$NON-NLS-1$
+    private static final String SCHEMA_BACKUP_TAG = "schemaBackup"; //$NON-NLS-1$
 
 
     /**
@@ -80,13 +80,13 @@
         }
         catch ( DocumentException e )
         {
-            throw new ProjectsImportException( "The file '" + path + "' can not be read correctly." );
+            throw new ProjectsImportException( Messages.getString("ProjectsImporter.NotReadCorrectlyStart") + path + Messages.getString("ProjectsImporter.NotReadCorrectlyEnd") );
         }
 
         Element rootElement = document.getRootElement();
         if ( !rootElement.getName().equals( PROJECT_TAG ) )
         {
-            throw new ProjectsImportException( "The file '" + path + "' does not seem to be a valid project file." );
+            throw new ProjectsImportException( Messages.getString("ProjectsImporter.NotValidProjectStart") + path + Messages.getString("ProjectsImporter.NotValidProjectEnd") );
         }
 
         readProject( rootElement, project, path );
@@ -119,14 +119,14 @@
         }
         catch ( DocumentException e )
         {
-        	PluginUtils.logError("The file '" + path + "' can not be read correctly.", e);
-            throw new ProjectsImportException( "The file '" + path + "' can not be read correctly." );
+        	PluginUtils.logError(Messages.getString("ProjectsImporter.NotReadCorrectlyStart") + path + Messages.getString("ProjectsImporter.NotReadCorrectlyEnd"), e);
+            throw new ProjectsImportException( Messages.getString("ProjectsImporter.NotReadCorrectlyStart") + path + Messages.getString("ProjectsImporter.NotReadCorrectlyEnd") );
         }
 
         Element rootElement = document.getRootElement();
         if ( !rootElement.getName().equals( PROJECTS_TAG ) )
         {
-            throw new ProjectsImportException( "The file '" + path + "' does not seem to be a valid project file." );
+            throw new ProjectsImportException( Messages.getString("ProjectsImporter.NotValidProjectStart") + path + Messages.getString("ProjectsImporter.NotValidProjectEnd") );
         }
 
         for ( Iterator<?> i = rootElement.elementIterator( PROJECT_TAG ); i.hasNext(); )
@@ -157,14 +157,14 @@
     {
         // Name
         Attribute nameAttribute = element.attribute( NAME_TAG );
-        if ( ( nameAttribute != null ) && ( !nameAttribute.getValue().equals( "" ) ) )
+        if ( ( nameAttribute != null ) && ( !nameAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             project.setName( nameAttribute.getValue() );
         }
 
         // Type
         Attribute typeAttribute = element.attribute( TYPE_TAG );
-        if ( ( typeAttribute != null ) && ( !typeAttribute.getValue().equals( "" ) ) )
+        if ( ( typeAttribute != null ) && ( !typeAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             try
             {
@@ -172,7 +172,7 @@
             }
             catch ( IllegalArgumentException e )
             {
-                throw new ProjectsImportException( "The parser was not able to convert the type value of the project." );
+                throw new ProjectsImportException( Messages.getString("ProjectsImporter.NotConvertableValue") );
             }
         }
 
@@ -181,14 +181,14 @@
         {
             // Connection
             Attribute connectionAttribute = element.attribute( CONNECTION_TAG );
-            if ( ( connectionAttribute != null ) && ( !connectionAttribute.getValue().equals( "" ) ) )
+            if ( ( connectionAttribute != null ) && ( !connectionAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
             {
                 project.setConnection( PluginUtils.getConnection( connectionAttribute.getValue() ) );
             }
 
             // Schema Connector
             Attribute schemaConnectorAttribute = element.attribute( SCHEMA_CONNECTOR_TAG );
-            if ( ( schemaConnectorAttribute != null ) && ( !schemaConnectorAttribute.getValue().equals( "" ) ) )
+            if ( ( schemaConnectorAttribute != null ) && ( !schemaConnectorAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
             {
                 String schemaConnectorId = schemaConnectorAttribute.getValue();
 
@@ -204,8 +204,8 @@
 
                 if ( schemaConnector == null )
                 {
-                    throw new ProjectsImportException( "The parser was not able to find the SchemaConnector with ID :"
-                        + schemaConnectorId + "." );
+                    throw new ProjectsImportException( Messages.getString("ProjectsImporter.NoSchemaConnectorIDFound")
+                        + schemaConnectorId + "." ); //$NON-NLS-1$
                 }
 
                 project.setSchemaConnector( schemaConnector );
@@ -226,7 +226,7 @@
                     catch ( XMLSchemaFileImportException e )
                     {
                         throw new ProjectsImportException(
-                            "The parser was not able to convert the schemas of the project." );
+                            Messages.getString("ProjectsImporter.NotConvertableSchema") );
                     }
 
                     project.setSchemaBackup( Arrays.asList( schemas ) );
@@ -245,7 +245,7 @@
             }
             catch ( XMLSchemaFileImportException e )
             {
-                throw new ProjectsImportException( "The parser was not able to convert the schemas of the project." );
+                throw new ProjectsImportException( Messages.getString("ProjectsImporter.NotConvertableSchema") );
             }
             for ( Schema schema : schemas )
             {
@@ -287,7 +287,7 @@
         }
         catch ( DocumentException e )
         {
-            throw new ProjectsImportException( "The file '" + path + "' can not be read correctly." );
+            throw new ProjectsImportException( Messages.getString("ProjectsImporter.NotReadCorrectlyStart") + path + Messages.getString("ProjectsImporter.NotReadCorrectlyEnd") );
         }
 
         Element rootElement = document.getRootElement();
@@ -301,7 +301,7 @@
         }
         else
         {
-            throw new ProjectsImportException( "The file '" + path + "' does not seem to be a valid project file." );
+            throw new ProjectsImportException( Messages.getString("ProjectsImporter.NotValidProjectStart") + path + Messages.getString("ProjectsImporter.NotValidProjectEnd") );
         }
     }
 }

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/XMLSchemaFileImporter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/XMLSchemaFileImporter.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/XMLSchemaFileImporter.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/XMLSchemaFileImporter.java Tue Nov 25 07:14:31 2008
@@ -50,39 +50,39 @@
 public class XMLSchemaFileImporter
 {
     // The Tags
-    private static final String ALIAS_TAG = "alias";
-    private static final String ALIASES_TAG = "aliases";
-    private static final String ATTRIBUTE_TYPE_TAG = "attributetype";
-    private static final String ATTRIBUTE_TYPES_TAG = "attributetypes";
-    private static final String BOOLEAN_FALSE = "false";
-    private static final String BOOLEAN_TRUE = "true";
-    private static final String COLLECTIVE_TAG = "collective";
-    private static final String DESCRIPTION_TAG = "description";
-    private static final String EQUALITY_TAG = "equality";
-    private static final String HUMAN_READABLE_TAG = "humanreadable";
-    private static final String MANDATORY_TAG = "mandatory";
-    private static final String MATCHING_RULE_TAG = "matchingrule";
-    private static final String MATCHING_RULES_TAG = "matchingrules";
-    private static final String NAME_TAG = "name";
-    private static final String NO_USER_MODIFICATION_TAG = "nousermodification";
-    private static final String OBJECT_CLASS_TAG = "objectclass";
-    private static final String OBJECT_CLASSES_TAG = "objectclasses";
-    private static final String OBSOLETE_TAG = "obsolete";
-    private static final String OID_TAG = "oid";
-    private static final String OPTIONAL_TAG = "optional";
-    private static final String ORDERING_TAG = "ordering";
-    private static final String SCHEMA_TAG = "schema";
-    private static final String SCHEMAS_TAG = "schemas";
-    private static final String SINGLE_VALUE_TAG = "singlevalue";
-    private static final String SUBSTRING_TAG = "substring";
-    private static final String SUPERIOR_TAG = "superior";
-    private static final String SUPERIORS_TAG = "superiors";
-    private static final String SYNTAX_LENGTH_TAG = "syntaxlength";
-    private static final String SYNTAX_OID_TAG = "syntaxoid";
-    private static final String SYNTAX_TAG = "syntax";
-    private static final String SYNTAXES_TAG = "syntaxes";
-    private static final String TYPE_TAG = "type";
-    private static final String USAGE_TAG = "usage";
+    private static final String ALIAS_TAG = "alias"; //$NON-NLS-1$
+    private static final String ALIASES_TAG = "aliases"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_TYPE_TAG = "attributetype"; //$NON-NLS-1$
+    private static final String ATTRIBUTE_TYPES_TAG = "attributetypes"; //$NON-NLS-1$
+    private static final String BOOLEAN_FALSE = "false"; //$NON-NLS-1$
+    private static final String BOOLEAN_TRUE = "true"; //$NON-NLS-1$
+    private static final String COLLECTIVE_TAG = "collective"; //$NON-NLS-1$
+    private static final String DESCRIPTION_TAG = "description"; //$NON-NLS-1$
+    private static final String EQUALITY_TAG = "equality"; //$NON-NLS-1$
+    private static final String HUMAN_READABLE_TAG = "humanreadable"; //$NON-NLS-1$
+    private static final String MANDATORY_TAG = "mandatory"; //$NON-NLS-1$
+    private static final String MATCHING_RULE_TAG = "matchingrule"; //$NON-NLS-1$
+    private static final String MATCHING_RULES_TAG = "matchingrules"; //$NON-NLS-1$
+    private static final String NAME_TAG = "name"; //$NON-NLS-1$
+    private static final String NO_USER_MODIFICATION_TAG = "nousermodification"; //$NON-NLS-1$
+    private static final String OBJECT_CLASS_TAG = "objectclass"; //$NON-NLS-1$
+    private static final String OBJECT_CLASSES_TAG = "objectclasses"; //$NON-NLS-1$
+    private static final String OBSOLETE_TAG = "obsolete"; //$NON-NLS-1$
+    private static final String OID_TAG = "oid"; //$NON-NLS-1$
+    private static final String OPTIONAL_TAG = "optional"; //$NON-NLS-1$
+    private static final String ORDERING_TAG = "ordering"; //$NON-NLS-1$
+    private static final String SCHEMA_TAG = "schema"; //$NON-NLS-1$
+    private static final String SCHEMAS_TAG = "schemas"; //$NON-NLS-1$
+    private static final String SINGLE_VALUE_TAG = "singlevalue"; //$NON-NLS-1$
+    private static final String SUBSTRING_TAG = "substring"; //$NON-NLS-1$
+    private static final String SUPERIOR_TAG = "superior"; //$NON-NLS-1$
+    private static final String SUPERIORS_TAG = "superiors"; //$NON-NLS-1$
+    private static final String SYNTAX_LENGTH_TAG = "syntaxlength"; //$NON-NLS-1$
+    private static final String SYNTAX_OID_TAG = "syntaxoid"; //$NON-NLS-1$
+    private static final String SYNTAX_TAG = "syntax"; //$NON-NLS-1$
+    private static final String SYNTAXES_TAG = "syntaxes"; //$NON-NLS-1$
+    private static final String TYPE_TAG = "type"; //$NON-NLS-1$
+    private static final String USAGE_TAG = "usage"; //$NON-NLS-1$
 
 
     /**
@@ -107,13 +107,13 @@
         }
         catch ( DocumentException e )
         {
-            throw new XMLSchemaFileImportException( "The file '" + path + "' can not be read correctly." );
+            throw new XMLSchemaFileImportException( Messages.getString("XMLSchemaFileImporter.NotReadCorrectlyBegin") + path + Messages.getString("XMLSchemaFileImporter.NotReadCorrectlyEnd") ); //$NON-NLS-1$ //$NON-NLS-2$
         }
 
         Element rootElement = document.getRootElement();
         if ( !rootElement.getName().equals( SCHEMAS_TAG ) )
         {
-            throw new XMLSchemaFileImportException( "The file '" + path + "' does not seem to be a valid Schema file." );
+            throw new XMLSchemaFileImportException( Messages.getString("XMLSchemaFileImporter.NotValidSchemaBegin") + path + Messages.getString("XMLSchemaFileImporter.NotValidSchemaEnd") ); //$NON-NLS-1$ //$NON-NLS-2$
         }
 
         return readSchemas( rootElement, path );
@@ -142,7 +142,7 @@
         }
         catch ( DocumentException e )
         {
-            throw new XMLSchemaFileImportException( "The file '" + path + "' can not be read correctly." );
+            throw new XMLSchemaFileImportException( Messages.getString("XMLSchemaFileImporter.NotReadCorrectlyBegin") + path + Messages.getString("XMLSchemaFileImporter.NotReadCorrectlyEnd") );
         }
 
         Element rootElement = document.getRootElement();
@@ -169,7 +169,7 @@
 
         if ( !element.getName().equals( SCHEMAS_TAG ) )
         {
-            throw new XMLSchemaFileImportException( "The file '" + path + "' does not seem to be a valid Schema file." );
+            throw new XMLSchemaFileImportException( Messages.getString("XMLSchemaFileImporter.NotValidSchemaBegin") + path + Messages.getString("XMLSchemaFileImporter.NotValidSchemaEnd") );
         }
 
         for ( Iterator<?> i = element.elementIterator( SCHEMA_TAG ); i.hasNext(); )
@@ -234,11 +234,11 @@
     {
         if ( !element.getName().equals( SCHEMA_TAG ) )
         {
-            throw new XMLSchemaFileImportException( "The file '" + path + "' does not seem to be a valid Schema file." );
+            throw new XMLSchemaFileImportException( Messages.getString("XMLSchemaFileImporter.NotValidSchemaBegin") + path + Messages.getString("XMLSchemaFileImporter.NotValidSchemaEnd") );
         }
 
         Attribute nameAttribute = element.attribute( NAME_TAG );
-        if ( ( nameAttribute != null ) && ( !nameAttribute.getValue().equals( "" ) ) )
+        if ( ( nameAttribute != null ) && ( !nameAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             return nameAttribute.getValue();
         }
@@ -307,14 +307,14 @@
 
         // OID
         Attribute oidAttribute = element.attribute( OID_TAG );
-        if ( ( oidAttribute != null ) && ( !oidAttribute.getValue().equals( "" ) ) )
+        if ( ( oidAttribute != null ) && ( !oidAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             at = new AttributeTypeImpl( oidAttribute.getValue() );
         }
         else
         {
             throw new XMLSchemaFileImportException(
-                "An attribute type definition must contain an attribute for the OID." );
+                Messages.getString("XMLSchemaFileImporter.NoOIDInAttribute") );
         }
 
         // Schema
@@ -338,21 +338,21 @@
 
         // Description
         Element descriptionElement = element.element( DESCRIPTION_TAG );
-        if ( ( descriptionElement != null ) && ( !descriptionElement.getText().equals( "" ) ) )
+        if ( ( descriptionElement != null ) && ( !descriptionElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             at.setDescription( descriptionElement.getText() );
         }
 
         // Superior
         Element superiorElement = element.element( SUPERIOR_TAG );
-        if ( ( superiorElement != null ) && ( !superiorElement.getText().equals( "" ) ) )
+        if ( ( superiorElement != null ) && ( !superiorElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             at.setSuperiorName( superiorElement.getText() );
         }
 
         // Usage
         Element usageElement = element.element( USAGE_TAG );
-        if ( ( usageElement != null ) && ( !usageElement.getText().equals( "" ) ) )
+        if ( ( usageElement != null ) && ( !usageElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             try
             {
@@ -361,20 +361,20 @@
             catch ( IllegalArgumentException e )
             {
                 throw new XMLSchemaFileImportException(
-                    "The parser was not able to convert the usage value of the attribute type." );
+                    Messages.getString("XMLSchemaFileImporter.UnceonvertableAttribute") );
             }
         }
 
         // Syntax
         Element syntaxElement = element.element( SYNTAX_TAG );
-        if ( ( syntaxElement != null ) && ( !syntaxElement.getText().equals( "" ) ) )
+        if ( ( syntaxElement != null ) && ( !syntaxElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             at.setSyntaxOid( syntaxElement.getText() );
         }
 
         // Syntax Length
         Element syntaxLengthElement = element.element( SYNTAX_LENGTH_TAG );
-        if ( ( syntaxLengthElement != null ) && ( !syntaxLengthElement.getText().equals( "" ) ) )
+        if ( ( syntaxLengthElement != null ) && ( !syntaxLengthElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             try
             {
@@ -383,55 +383,55 @@
             catch ( NumberFormatException e )
             {
                 throw new XMLSchemaFileImportException(
-                    "The parser was not able to convert the syntax length value of the attribute type to an integer." );
+                    Messages.getString("XMLSchemaFileImporter.UnconvertableInteger") );
             }
         }
 
         // Obsolete
         Attribute obsoleteAttribute = element.attribute( OBSOLETE_TAG );
-        if ( ( obsoleteAttribute != null ) && ( !obsoleteAttribute.getValue().equals( "" ) ) )
+        if ( ( obsoleteAttribute != null ) && ( !obsoleteAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             at.setObsolete( readBoolean( obsoleteAttribute.getValue() ) );
         }
 
         // Single Value
         Attribute singleValueAttribute = element.attribute( SINGLE_VALUE_TAG );
-        if ( ( singleValueAttribute != null ) && ( !singleValueAttribute.getValue().equals( "" ) ) )
+        if ( ( singleValueAttribute != null ) && ( !singleValueAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             at.setSingleValue( readBoolean( singleValueAttribute.getValue() ) );
         }
 
         // Collective
         Attribute collectiveAttribute = element.attribute( COLLECTIVE_TAG );
-        if ( ( collectiveAttribute != null ) && ( !collectiveAttribute.getValue().equals( "" ) ) )
+        if ( ( collectiveAttribute != null ) && ( !collectiveAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             at.setCollective( readBoolean( collectiveAttribute.getValue() ) );
         }
 
         // No User Modification
         Attribute noUserModificationAttribute = element.attribute( NO_USER_MODIFICATION_TAG );
-        if ( ( noUserModificationAttribute != null ) && ( !noUserModificationAttribute.getValue().equals( "" ) ) )
+        if ( ( noUserModificationAttribute != null ) && ( !noUserModificationAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             at.setCanUserModify( !readBoolean( noUserModificationAttribute.getValue() ) );
         }
 
         // Equality
         Element equalityElement = element.element( EQUALITY_TAG );
-        if ( ( equalityElement != null ) && ( !equalityElement.getText().equals( "" ) ) )
+        if ( ( equalityElement != null ) && ( !equalityElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             at.setEqualityName( equalityElement.getText() );
         }
 
         // Ordering
         Element orderingElement = element.element( ORDERING_TAG );
-        if ( ( orderingElement != null ) && ( !orderingElement.getText().equals( "" ) ) )
+        if ( ( orderingElement != null ) && ( !orderingElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             at.setOrderingName( orderingElement.getText() );
         }
 
         // Substring
         Element substringElement = element.element( SUBSTRING_TAG );
-        if ( ( substringElement != null ) && ( !substringElement.getText().equals( "" ) ) )
+        if ( ( substringElement != null ) && ( !substringElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             at.setSubstrName( substringElement.getText() );
         }
@@ -478,13 +478,13 @@
 
         // OID
         Attribute oidAttribute = element.attribute( OID_TAG );
-        if ( ( oidAttribute != null ) && ( !oidAttribute.getValue().equals( "" ) ) )
+        if ( ( oidAttribute != null ) && ( !oidAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             oc = new ObjectClassImpl( oidAttribute.getValue() );
         }
         else
         {
-            throw new XMLSchemaFileImportException( "An object class definition must contain an attribute for the OID." );
+            throw new XMLSchemaFileImportException( Messages.getString("XMLSchemaFileImporter.NoOIDInClass") );
         }
 
         // Schema
@@ -508,7 +508,7 @@
 
         // Description
         Element descriptionElement = element.element( DESCRIPTION_TAG );
-        if ( ( descriptionElement != null ) && ( !descriptionElement.getText().equals( "" ) ) )
+        if ( ( descriptionElement != null ) && ( !descriptionElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             oc.setDescription( descriptionElement.getText() );
         }
@@ -531,7 +531,7 @@
 
         // Class Type
         Element classTypeElement = element.element( TYPE_TAG );
-        if ( ( classTypeElement != null ) && ( !classTypeElement.getText().equals( "" ) ) )
+        if ( ( classTypeElement != null ) && ( !classTypeElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             try
             {
@@ -540,13 +540,13 @@
             catch ( IllegalArgumentException e )
             {
                 throw new XMLSchemaFileImportException(
-                    "The parser was not able to convert the usage value of the attribute type." );
+                    Messages.getString("XMLSchemaFileImporter.UnconvertableValue") ); //$NON-NLS-1$
             }
         }
 
         // Obsolete
         Attribute obsoleteAttribute = element.attribute( OBSOLETE_TAG );
-        if ( ( obsoleteAttribute != null ) && ( !obsoleteAttribute.getValue().equals( "" ) ) )
+        if ( ( obsoleteAttribute != null ) && ( !obsoleteAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             oc.setObsolete( readBoolean( obsoleteAttribute.getValue() ) );
         }
@@ -625,13 +625,13 @@
 
         // OID
         Attribute oidAttribute = element.attribute( OID_TAG );
-        if ( ( oidAttribute != null ) && ( !oidAttribute.getValue().equals( "" ) ) )
+        if ( ( oidAttribute != null ) && ( !oidAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             mr = new MatchingRuleImpl( oidAttribute.getValue() );
         }
         else
         {
-            throw new XMLSchemaFileImportException( "A matching rule definition must contain an attribute for the OID." );
+            throw new XMLSchemaFileImportException( Messages.getString("XMLSchemaFileImporter.NoMatchingRuleForOID") );
         }
 
         // Schema
@@ -655,21 +655,21 @@
 
         // Description
         Element descriptionElement = element.element( DESCRIPTION_TAG );
-        if ( ( descriptionElement != null ) && ( !descriptionElement.getText().equals( "" ) ) )
+        if ( ( descriptionElement != null ) && ( !descriptionElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             mr.setDescription( descriptionElement.getText() );
         }
 
         // Obsolete
         Attribute obsoleteAttribute = element.attribute( OBSOLETE_TAG );
-        if ( ( obsoleteAttribute != null ) && ( !obsoleteAttribute.getValue().equals( "" ) ) )
+        if ( ( obsoleteAttribute != null ) && ( !obsoleteAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             mr.setObsolete( readBoolean( obsoleteAttribute.getValue() ) );
         }
 
         // Syntax OID
         Element syntaxOidElement = element.element( SYNTAX_OID_TAG );
-        if ( ( syntaxOidElement != null ) && ( !syntaxOidElement.getText().equals( "" ) ) )
+        if ( ( syntaxOidElement != null ) && ( !syntaxOidElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             mr.setSyntaxOid( syntaxOidElement.getText() );
         }
@@ -716,13 +716,13 @@
 
         // OID
         Attribute oidAttribute = element.attribute( OID_TAG );
-        if ( ( oidAttribute != null ) && ( !oidAttribute.getValue().equals( "" ) ) )
+        if ( ( oidAttribute != null ) && ( !oidAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             syntax = new SyntaxImpl( oidAttribute.getValue() );
         }
         else
         {
-            throw new XMLSchemaFileImportException( "A syntax definition must contain an attribute for the OID." );
+            throw new XMLSchemaFileImportException( Messages.getString("XMLSchemaFileImporter.InvalidSyntaxForOID") );
         }
 
         // Schema
@@ -746,21 +746,21 @@
 
         // Description
         Element descriptionElement = element.element( DESCRIPTION_TAG );
-        if ( ( descriptionElement != null ) && ( !descriptionElement.getText().equals( "" ) ) )
+        if ( ( descriptionElement != null ) && ( !descriptionElement.getText().equals( "" ) ) ) //$NON-NLS-1$
         {
             syntax.setDescription( descriptionElement.getText() );
         }
 
         // Obsolete
         Attribute obsoleteAttribute = element.attribute( OBSOLETE_TAG );
-        if ( ( obsoleteAttribute != null ) && ( !obsoleteAttribute.getValue().equals( "" ) ) )
+        if ( ( obsoleteAttribute != null ) && ( !obsoleteAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             syntax.setObsolete( readBoolean( obsoleteAttribute.getValue() ) );
         }
 
         // Human Readible
         Attribute humanReadibleAttribute = element.attribute( HUMAN_READABLE_TAG );
-        if ( ( humanReadibleAttribute != null ) && ( !humanReadibleAttribute.getValue().equals( "" ) ) )
+        if ( ( humanReadibleAttribute != null ) && ( !humanReadibleAttribute.getValue().equals( "" ) ) ) //$NON-NLS-1$
         {
             syntax.setHumanReadable( readBoolean( humanReadibleAttribute.getValue() ) );
         }
@@ -792,7 +792,7 @@
         }
         else
         {
-            throw new XMLSchemaFileImportException( "The parser was not able to convert a boolean value." );
+            throw new XMLSchemaFileImportException( Messages.getString("XMLSchemaFileImporter.76") ); //$NON-NLS-1$
         }
     }
 
@@ -827,7 +827,7 @@
         }
         catch ( DocumentException e )
         {
-            throw new XMLSchemaFileImportException( "The file '" + path + "' can not be read correctly." );
+            throw new XMLSchemaFileImportException( Messages.getString("XMLSchemaFileImporter.NotReadCorrectlyBegin") + path + Messages.getString("XMLSchemaFileImporter.NotReadCorrectlyEnd") );
         }
 
         Element rootElement = document.getRootElement();
@@ -841,7 +841,7 @@
         }
         else
         {
-            throw new XMLSchemaFileImportException( "The file '" + path + "' does not seem to be a valid Schema file." );
+            throw new XMLSchemaFileImportException( Messages.getString("XMLSchemaFileImporter.NotValidSchemaBegin") + path + Messages.getString("XMLSchemaFileImporter.NotValidSchemaEnd") );
         }
     }
 }

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialog.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialog.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialog.java Tue Nov 25 07:14:31 2008
@@ -93,7 +93,7 @@
     protected void configureShell( Shell newShell )
     {
         super.configureShell( newShell );
-        newShell.setText( "Attribute Type Selection" );
+        newShell.setText( Messages.getString("AttributeTypeSelectionDialog.TypeSelection") );
     }
 
 
@@ -107,7 +107,7 @@
         composite.setLayout( layout );
 
         Label chooseLabel = new Label( composite, SWT.NONE );
-        chooseLabel.setText( "Choose an attribute type" );
+        chooseLabel.setText( Messages.getString("AttributeTypeSelectionDialog.ChooseAType") );
         chooseLabel.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
 
         searchText = new Text( composite, SWT.BORDER );
@@ -131,7 +131,7 @@
         } );
 
         Label matchingLabel = new Label( composite, SWT.NONE );
-        matchingLabel.setText( "Matching attribute type(s)" );
+        matchingLabel.setText( Messages.getString("AttributeTypeSelectionDialog.MatchingTypes") );
         matchingLabel.setLayoutData( new GridData( SWT.FILL, SWT.None, true, false ) );
 
         attributeTypesTable = new Table( composite, SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL
@@ -171,7 +171,7 @@
                         chooseButton.setEnabled( false );
                     }
                     schemaIconLabel.setImage( Activator.getDefault().getImage( PluginConstants.IMG_TRANSPARENT_16X16 ) );
-                    schemaNameLabel.setText( "" );
+                    schemaNameLabel.setText( "" ); //$NON-NLS-1$
                 }
                 else
                 {
@@ -206,7 +206,7 @@
         // Schema Name Label
         schemaNameLabel = new Label( schemaComposite, SWT.NONE );
         schemaNameLabel.setLayoutData( new GridData( SWT.FILL, SWT.BOTTOM, true, false ) );
-        schemaNameLabel.setText( "" );
+        schemaNameLabel.setText( "" ); //$NON-NLS-1$
 
         // We need to force the input to load the complete list of attribute types
         setSearchInput( "" ); //$NON-NLS-1$
@@ -249,7 +249,7 @@
         StructuredSelection selection = ( StructuredSelection ) attributeTypesTableViewer.getSelection();
         if ( selection.isEmpty() )
         {
-            MessageDialog.openError( getShell(), "Invalid Selection", "You have to choose an attribute type" );
+            MessageDialog.openError( getShell(), Messages.getString("AttributeTypeSelectionDialog.InvalidSelection"), Messages.getString("AttributeTypeSelectionDialog.MustChooseType") );
             return;
         }
         else

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialogLabelProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialogLabelProvider.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialogLabelProvider.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialogLabelProvider.java Tue Nov 25 07:14:31 2008
@@ -64,11 +64,11 @@
             String[] names = at.getNamesRef();
             if ( ( names != null ) && ( names.length > 0 ) )
             {
-                return ViewUtils.concateAliases( names ) + "  -  (" + at.getOid() + ")";
+                return ViewUtils.concateAliases( names ) + "  -  (" + at.getOid() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
             }
             else
             {
-                return "(None)  -  (" + at.getOid() + ")";
+                return Messages.getString("AttributeTypeSelectionDialogLabelProvider.None") + at.getOid() + ")"; //$NON-NLS-2$
             }
         }
 

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/EditAliasesDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/EditAliasesDialog.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/EditAliasesDialog.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/EditAliasesDialog.java Tue Nov 25 07:14:31 2008
@@ -137,7 +137,7 @@
 
         // Aliases Label
         Label aliasesLabel = new Label( composite, SWT.NONE );
-        aliasesLabel.setText( "Aliases:" );
+        aliasesLabel.setText( Messages.getString("EditAliasesDialog.Aliases") );
         aliasesLabel.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, true, 2, 1 ) );
 
         // Aliases Table
@@ -158,18 +158,18 @@
 
         // Add Button
         addButton = new Button( composite, SWT.PUSH );
-        addButton.setText( "Add..." );
+        addButton.setText( Messages.getString("EditAliasesDialog.Add") );
         addButton.setLayoutData( new GridData( SWT.FILL, SWT.NONE, false, false ) );
 
         // Edit Button
         editButton = new Button( composite, SWT.PUSH );
-        editButton.setText( "Edit..." );
+        editButton.setText( Messages.getString("EditAliasesDialog.Edit") );
         editButton.setLayoutData( new GridData( SWT.FILL, SWT.NONE, false, false ) );
         editButton.setEnabled( false );
 
         // Remove Button
         removeButton = new Button( composite, SWT.PUSH );
-        removeButton.setText( "Remove" );
+        removeButton.setText( Messages.getString("EditAliasesDialog.Remove") );
         removeButton.setLayoutData( new GridData( SWT.FILL, SWT.NONE, false, false ) );
         removeButton.setEnabled( false );
 
@@ -188,7 +188,7 @@
         // Error Label
         errorLabel = new Label( errorComposite, SWT.NONE );
         errorLabel.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) );
-        errorLabel.setText( "An element with the same alias already exists." );
+        errorLabel.setText( Messages.getString("EditAliasesDialog.ElementWithSameAliasExists") ); //$NON-NLS-1$
 
         // Filling the Table with the given aliases
         fillAliasesTable();
@@ -256,7 +256,7 @@
         Menu menu = new Menu( getShell(), SWT.POP_UP );
         aliasesTable.setMenu( menu );
         MenuItem removeMenuItem = new MenuItem( menu, SWT.PUSH );
-        removeMenuItem.setText( "Remove" );
+        removeMenuItem.setText( Messages.getString("EditAliasesDialog.Remove") );
         removeMenuItem.setImage( PlatformUI.getWorkbench().getSharedImages().getImage( ISharedImages.IMG_TOOL_DELETE ) );
         removeMenuItem.addListener( SWT.Selection, new Listener()
         {
@@ -340,7 +340,7 @@
     private void addANewAlias()
     {
         TableItem item = new TableItem( aliasesTable, SWT.NONE );
-        item.setText( "" );
+        item.setText( "" ); //$NON-NLS-1$
         openTableEditor( item );
         dirty = true;
     }
@@ -376,7 +376,7 @@
         {
             public void keyPressed( KeyEvent e )
             {
-                if ( ( e.keyCode == Action.findKeyCode( "RETURN" ) ) || ( e.keyCode == SWT.KEYPAD_CR ) )
+                if ( ( e.keyCode == Action.findKeyCode( "RETURN" ) ) || ( e.keyCode == SWT.KEYPAD_CR ) ) //$NON-NLS-1$
                 {
                     closeTableEditor();
                 }
@@ -404,7 +404,7 @@
             {
                 aliases.remove( oldText );
                 lowerCasedAliases.remove( oldText.toLowerCase() );
-                if ( !newText.equals( "" ) )
+                if ( !newText.equals( "" ) ) //$NON-NLS-1$
                 {
                     aliases.add( newText );
                     lowerCasedAliases.add( newText.toLowerCase() );
@@ -445,12 +445,12 @@
                 && ( !initialLowerCasedAliases.contains( alias.toLowerCase() ) ) )
             {
                 errorComposite.setVisible( true );
-                errorLabel.setText( "An element with the same alias already exists." );
+                errorLabel.setText( Messages.getString("EditAliasesDialog.ElementWithSameAliasExists") );
             }
             else if ( !PluginUtils.verifyName( alias ) )
             {
                 errorComposite.setVisible( true );
-                errorLabel.setText( "The alias '" + alias + "' is invalid." );
+                errorLabel.setText( Messages.getString("EditAliasesDialog.TheAliasBegin") + alias + Messages.getString("EditAliasesDialog.TheAliasEnd") );
             }
         }
     }
@@ -462,7 +462,7 @@
     protected void configureShell( Shell newShell )
     {
         super.configureShell( newShell );
-        newShell.setText( "Edit Aliases" );
+        newShell.setText( Messages.getString("EditAliasesDialog.EditAlias") );
     }
 
 

Added: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/Messages.java?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/Messages.java (added)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/Messages.java Tue Nov 25 07:14:31 2008
@@ -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.schemaeditor.view.dialogs;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.schemaeditor.view.dialogs.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 + '!';
+        }
+    }
+}

Propchange: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/Messages.java
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialog.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialog.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialog.java Tue Nov 25 07:14:31 2008
@@ -93,7 +93,7 @@
     protected void configureShell( Shell newShell )
     {
         super.configureShell( newShell );
-        newShell.setText( "Object Class Selection" );
+        newShell.setText( Messages.getString("ObjectClassSelectionDialog.ClassSelection") );
     }
 
 
@@ -107,7 +107,7 @@
         composite.setLayout( layout );
 
         Label chooseLabel = new Label( composite, SWT.NONE );
-        chooseLabel.setText( "Choose an object class" );
+        chooseLabel.setText( Messages.getString("ObjectClassSelectionDialog.ChooseClass") );
         chooseLabel.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
 
         searchText = new Text( composite, SWT.BORDER );
@@ -131,7 +131,7 @@
         } );
 
         Label matchingLabel = new Label( composite, SWT.NONE );
-        matchingLabel.setText( "Matching object class(es)" );
+        matchingLabel.setText( Messages.getString("ObjectClassSelectionDialog.MatchingClasses") );
         matchingLabel.setLayoutData( new GridData( SWT.FILL, SWT.None, true, false ) );
 
         objectClassesTable = new Table( composite, SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL
@@ -171,7 +171,7 @@
                         chooseButton.setEnabled( false );
                     }
                     schemaIconLabel.setImage( Activator.getDefault().getImage( PluginConstants.IMG_TRANSPARENT_16X16 ) );
-                    schemaNameLabel.setText( "" );
+                    schemaNameLabel.setText( "" ); //$NON-NLS-1$
                 }
                 else
                 {
@@ -206,7 +206,7 @@
         // Schema Name Label
         schemaNameLabel = new Label( schemaComposite, SWT.NONE );
         schemaNameLabel.setLayoutData( new GridData( SWT.FILL, SWT.BOTTOM, true, false ) );
-        schemaNameLabel.setText( "" );
+        schemaNameLabel.setText( "" ); //$NON-NLS-1$
 
         // We need to force the input to load the complete list of attribute types
         setSearchInput( "" ); //$NON-NLS-1$
@@ -250,7 +250,7 @@
 
         if ( selection.isEmpty() )
         {
-            MessageDialog.openError( getShell(), "Invalid Selection", "You have to choose an object class" );
+            MessageDialog.openError( getShell(), Messages.getString("ObjectClassSelectionDialog.InvalidSelection"), Messages.getString("ObjectClassSelectionDialog.MustChooseClass") );
             return;
         }
         else

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialogLabelProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialogLabelProvider.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialogLabelProvider.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialogLabelProvider.java Tue Nov 25 07:14:31 2008
@@ -64,11 +64,11 @@
             String[] names = oc.getNamesRef();
             if ( ( names != null ) && ( names.length > 0 ) )
             {
-                return ViewUtils.concateAliases( names ) + "  -  (" + oc.getOid() + ")";
+                return ViewUtils.concateAliases( names ) + "  -  (" + oc.getOid() + ")"; //$NON-NLS-2$
             }
             else
             {
-                return "(None)  -  (" + oc.getOid() + ")";
+                return Messages.getString("ObjectClassSelectionDialogLabelProvider.None") + oc.getOid() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
             }
         }
 

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/PreviousSearchesDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/PreviousSearchesDialog.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/PreviousSearchesDialog.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/PreviousSearchesDialog.java Tue Nov 25 07:14:31 2008
@@ -82,7 +82,7 @@
     protected void configureShell( Shell newShell )
     {
         super.configureShell( newShell );
-        newShell.setText( "Previous Searches" );
+        newShell.setText( Messages.getString("PreviousSearchesDialog.Previous") );
     }
 
 
@@ -96,7 +96,7 @@
         composite.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) );
 
         Label label = new Label( composite, SWT.NONE );
-        label.setText( "Select the search to show in the search results view:" );
+        label.setText( Messages.getString("PreviousSearchesDialog.ShowResultsInView") );
         label.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 ) );
 
         tableViewer = new TableViewer( composite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE );
@@ -129,7 +129,7 @@
         } );
 
         removeButton = new Button( composite, SWT.NONE );
-        removeButton.setText( "Remove" );
+        removeButton.setText( Messages.getString("PreviousSearchesDialog.Remove") );
         removeButton.setLayoutData( new GridData( SWT.NONE, SWT.BEGINNING, false, false ) );
         removeButton.setEnabled( false );
         removeButton.addSelectionListener( new SelectionAdapter()
@@ -164,7 +164,7 @@
     protected void createButtonsForButtonBar( Composite parent )
     {
         createButton( parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false );
-        openButton = createButton( parent, IDialogConstants.OK_ID, "Open", true );
+        openButton = createButton( parent, IDialogConstants.OK_ID, Messages.getString("PreviousSearchesDialog.Open"), true );
         openButton.setEnabled( false );
     }
 

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/RenameProjectDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/RenameProjectDialog.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/RenameProjectDialog.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/RenameProjectDialog.java Tue Nov 25 07:14:31 2008
@@ -86,7 +86,7 @@
     protected void configureShell( Shell newShell )
     {
         super.configureShell( newShell );
-        newShell.setText( "Rename Schema Project" );
+        newShell.setText( Messages.getString("RenameProjectDialog.Rename") );
     }
 
 
@@ -101,7 +101,7 @@
 
         // New Name
         Label newNameLabel = new Label( composite, SWT.NONE );
-        newNameLabel.setText( "New name:" );
+        newNameLabel.setText( Messages.getString("RenameProjectDialog.NewName") );
         newNameText = new Text( composite, SWT.BORDER );
         newNameText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         newNameText.setText( originalName );
@@ -142,7 +142,7 @@
         // Error Label
         errorLabel = new Label( errorComposite, SWT.NONE );
         errorLabel.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) );
-        errorLabel.setText( "A project with the same name already exists." );
+        errorLabel.setText( Messages.getString("RenameProjectDialog.NameExists") );
 
         newNameText.setFocus();
         newNameText.selectAll();

Added: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/actions/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/actions/messages.properties?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/actions/messages.properties (added)
+++ directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/actions/messages.properties Tue Nov 25 07:14:31 2008
@@ -0,0 +1,94 @@
+# 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.
+
+CloseProjectAction.CloseProjectAction=Clo&se Project
+CloseProjectAction.CloseProjectToolTip=Close Project
+CollapseAllAction.CollapseAllAction=Collapse All
+CommitChangesAction.CommitChangesAction=Commit Changes
+DeleteProjectAction.DeleteProjectAction=&Delete Project
+DeleteProjectAction.DeleteProjectsAction=&Delete Projects
+DeleteProjectAction.DeleteProjectToolTip=Delete Project
+DeleteProjectAction.SureToDeleteProjectBegin=Are you sure you want to delete project '
+DeleteProjectAction.SureToDeleteProjectEnd='?
+DeleteProjectAction.SureToDeleteProjectsBegin=Are you sure you want to delete these 
+DeleteProjectAction.SureToDeleteProjectsEnd=\ projects?
+DeleteSchemaElementAction.DeleteAction=&Delete
+DeleteSchemaElementAction.DeleteToolTip=Delete
+DeleteSchemaElementAction.SureToDeleteAttributeType=Are you sure you want to delete this attribute type?
+DeleteSchemaElementAction.SureToDeleteItem=Are you sure you want to delete this item?
+DeleteSchemaElementAction.SureToDeleteItemsBegin=Are you sure you want to delete these 
+DeleteSchemaElementAction.SureToDeleteItemsEnd=\ items?
+DeleteSchemaElementAction.SureToDeleteObjectClass=Are you sure you want to delete this object class?
+DeleteSchemaElementAction.SureToDeleteSchema=Are you sure you want to delete this schema?
+ExportProjectsAction.SchemaProjectsAction=Schema Projects
+ExportSchemasAsOpenLdapAction.SchemaAsOpenLDAPFilesAction=Schemas as OpenLDAP files
+ExportSchemasAsXmlAction.SchemaAsXMLFileAction=Schemas as XML file(s)
+ExportSchemasForADSAction.SchemaForADSAction=Schemas for Apache DS
+ImportCoreSchemasAction.CoreSchemaFilesAction=Core schemas files
+ImportProjectsAction.SchemaProjectsAction=Schema Projects
+ImportSchemasFromOpenLdapAction.SchemaFromOpenLDAPFilesAction=Schemas from OpenLDAP files
+ImportSchemasFromXmlAction.SchemasFromXMLFilesAction=Schemas from XML file(s)
+LinkWithEditorHierarchyViewAction.LinkEditorAction=Lin&k with Editor
+LinkWithEditorHierarchyViewAction.LinkEditorToolTip=Link with Editor
+LinkWithEditorSchemaViewAction.LinkEditorAction=Lin&k with Editor
+LinkWithEditorSchemaViewAction.LinkEditorToolTip=Link with Editor
+NewAttributeTypeAction.NewAttributeTypeAction=New A&ttribute Type
+NewAttributeTypeAction.NewAttributeTypeToolTip=New Attribute Type
+NewObjectClassAction.NewObjectClassAction=New O&bject Class
+NewObjectClassAction.NewObjectClassToolTip=New Object Class
+NewProjectAction.NewSchemaProjectAction=New Schema P&roject
+NewProjectAction.NewSchemaProjectToolTip=New Schema Project
+NewSchemaAction.NewSchemaAction=New Sch&ema
+NewSchemaAction.NewSchemaToolTip=New Schema
+OpenElementAction.Error=Error
+OpenElementAction.ErroropeningEditor=An error occured when opening the editor.
+OpenElementAction.ErrorOpeningEditor=An error occured when opening the editor.
+OpenElementAction.OpenAction=&Open
+OpenElementAction.OpenToolTip=Open
+OpenHierarchyViewPreferencesAction.PreferencesAction=&Preferences...
+OpenHierarchyViewPreferencesAction.PreferencesToolTip=Preferences...
+OpenProjectAction.OpenProjectAction=Op&en Project
+OpenProjectAction.OpenProjectToolTip=Open Project
+OpenSchemaViewPreferenceAction.PreferencesAction=&Preferences...
+OpenSchemaViewPreferenceAction.PreferencesToolTip=Preferences...
+OpenSchemaViewSortingDialogAction.SortingAction=&Sorting...
+OpenSchemaViewSortingDialogAction.SortingToolTip=Sorting...
+OpenSearchViewPreferenceAction.PreferencesAction=&Preferences...
+OpenSearchViewPreferenceAction.PreferencesToolTip=Preferences...
+OpenSearchViewSortingDialogAction.SortingAction=&Sorting...
+OpenSearchViewSortingDialogAction.SortingToolTip=Sorting...
+OpenTypeHierarchyAction.Error=Error
+OpenTypeHierarchyAction.ErrorOpeningView=An error occured when opening the view.
+OpenTypeHierarchyAction.OpenTypeAction=Ope&n Type Hierarchy
+OpenTypeHierarchyAction.OpenTypeToolTip=Open Type Hierarchy
+RenameProjectAction.RenameProjectAction=Re&name Project...
+RunCurrentSearchAgainAction.RerunSearchAction=Run the Current Search Again
+ShowSearchFieldAction.ShowSearchFieldAction=Show Search Field
+ShowSearchHistoryAction.ClearHistory=Clear History
+ShowSearchHistoryAction.History=History...
+ShowSearchHistoryAction.None=(None)
+ShowSearchHistoryAction.SearchHistoryAction=Search History
+ShowSubtypeHierarchyAction.SubtypeAction=Su&btype Hierarchy
+ShowSubtypeHierarchyAction.SubtypeToolTip=Show the Subtype Hierarchy
+ShowSupertypeHierarchyAction.SupertypeAction=Su&pertype Hierarchy
+ShowSupertypeHierarchyAction.SupertypeToolTip=Show the Supertype Hierarchy
+ShowTypeHierarchyAction.TypeAction=&Type Hierarchy
+ShowTypeHierarchyAction.TypeToolTip=Show the Type Hierarchy
+SwitchSchemaPresentationToFlatAction.FlatAction=&Flat
+SwitchSchemaPresentationToFlatAction.FlatToolTip=Flat
+SwitchSchemaPresentationToHierarchicalAction.HierarchicalAction=&Hierarchical
+SwitchSchemaPresentationToHierarchicalAction.HierarchicalToolTip=Hierarchical

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/actions/messages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/actions/messages.properties
------------------------------------------------------------------------------
    svn:keywords = Id

Added: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/messages.properties?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/messages.properties (added)
+++ directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/messages.properties Tue Nov 25 07:14:31 2008
@@ -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.
+
+HierarchyViewController.Error=Error
+HierarchyViewController.ErroropeningEditor=An error occured when opening the editor.
+HierarchyViewController.ErrorOpeningEditor=An error occured when opening the editor.
+ProblemsViewController.Error=Error
+ProblemsViewController.ErrorOpeningEditor=An error occured when opening the editor.
+ProjectsViewController.ExportAction=Exp&ort...
+ProjectsViewController.ImportAction=&Import...
+SchemaViewController.error=Error
+SchemaViewController.ErrorOpeningEditor=An error occured when opening the editor.
+SchemaViewController.ExportAction=Exp&ort...
+SchemaViewController.ImportAction=&Import...
+SchemaViewController.NewAction=Ne&w
+SchemaViewController.SchemaPresentationAction=S&chema Presentation

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/messages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/messages.properties
------------------------------------------------------------------------------
    svn:keywords = Id

Added: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/messages.properties?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/messages.properties (added)
+++ directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/messages.properties Tue Nov 25 07:14:31 2008
@@ -0,0 +1,25 @@
+# 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.
+
+Activator.UnablePluginProperties=Unable to get the plugin properties.
+PluginUtils.ConnectorsLoadingError=An error occured when loading the schema connectors.
+PluginUtils.Error=Error
+PluginUtils.ErrorLoadingProject=An error occured when loading the projects.
+PluginUtils.ErrorSavingProject=An error occured when saving the projects.
+PluginUtils.ProjectsLoadingError=Projects Loading Error
+PluginUtils.ProjectsSavingError=Projects Saving Error
+PluginUtils.SchemaLoadingError=An error occured when loading the schema 

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/messages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/messages.properties
------------------------------------------------------------------------------
    svn:keywords = Id

Added: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/io/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/io/messages.properties?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/io/messages.properties (added)
+++ directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/io/messages.properties Tue Nov 25 07:14:31 2008
@@ -0,0 +1,41 @@
+# 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.
+
+OpenLdapSchemaFileImporter.Cause=, Cause\: 
+OpenLdapSchemaFileImporter.Column=, Column\: 
+OpenLdapSchemaFileImporter.Line=\nLine\: 
+OpenLdapSchemaFileImporter.NotReadCorrectlyBegin=The file '
+OpenLdapSchemaFileImporter.NotReadCorrectlyEnd=' can not be read correctly.
+ProjectsImporter.NoSchemaConnectorIDFound=The parser was not able to find the SchemaConnector with ID :
+ProjectsImporter.NotConvertableSchema=The parser was not able to convert the schemas of the project.
+ProjectsImporter.NotConvertableValue=The parser was not able to convert the type value of the project.
+ProjectsImporter.NotReadCorrectlyEnd=' can not be read correctly.
+ProjectsImporter.NotReadCorrectlyStart=The file '
+ProjectsImporter.NotValidProjectEnd=' does not seem to be a valid project file.
+ProjectsImporter.NotValidProjectStart=The file '
+XMLSchemaFileImporter.76=The parser was not able to convert a boolean value.
+XMLSchemaFileImporter.InvalidSyntaxForOID=A syntax definition must contain an attribute for the OID.
+XMLSchemaFileImporter.NoMatchingRuleForOID=A matching rule definition must contain an attribute for the OID.
+XMLSchemaFileImporter.NoOIDInAttribute=An attribute type definition must contain an attribute for the OID.
+XMLSchemaFileImporter.NoOIDInClass=An object class definition must contain an attribute for the OID.
+XMLSchemaFileImporter.NotReadCorrectlyBegin=The file '
+XMLSchemaFileImporter.NotReadCorrectlyEnd=' can not be read correctly.
+XMLSchemaFileImporter.NotValidSchemaBegin=The file '
+XMLSchemaFileImporter.NotValidSchemaEnd=' does not seem to be a valid Schema file.
+XMLSchemaFileImporter.UnceonvertableAttribute=The parser was not able to convert the usage value of the attribute type.
+XMLSchemaFileImporter.UnconvertableInteger=The parser was not able to convert the syntax length value of the attribute type to an integer.
+XMLSchemaFileImporter.UnconvertableValue=The parser was not able to convert the usage value of the attribute type.

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/io/messages.properties
------------------------------------------------------------------------------
    svn:mergeinfo = 

Added: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/messages.properties?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/messages.properties (added)
+++ directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/messages.properties Tue Nov 25 07:14:31 2008
@@ -0,0 +1,35 @@
+# 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.
+
+DependenciesComputer.EqualityBegin=The equality matching rule '
+DependenciesComputer.EqualityEnd=' does not exists in the Schema.
+DependenciesComputer.MandatoryBegin=The mandatory attribute type '
+DependenciesComputer.MandatoryEnd=' does not exists in the Schema.
+DependenciesComputer.OptionalBegin=The optional attribute type '
+DependenciesComputer.OptionalEnd=' does not exists in the Schema.
+DependenciesComputer.OrderingBegin=The ordering matching rule '
+DependenciesComputer.OrderingEnd=' does not exists in the Schema.
+DependenciesComputer.SchemaBegin=The schema '
+DependenciesComputer.SchemaEnd=' does not exists in the Schema.
+DependenciesComputer.SubstringBegin=The substring matching rule '
+DependenciesComputer.SubstringEnd=' does not exists in the Schema.
+DependenciesComputer.SuperiorAttributeBegin=The superior attribute type '
+DependenciesComputer.SuperiorAttributeEnd=' does not exists in the Schema.
+DependenciesComputer.SuperiorObjectBegin=The superior object class '
+DependenciesComputer.SuperiorObjectEnd=' does not exists in the Schema.
+DependenciesComputer.SyntaxOIDBegin=The syntax with OID '
+DependenciesComputer.SyntaxOIDEnd=' does not exists in the Schema.

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/messages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/messages.properties
------------------------------------------------------------------------------
    svn:keywords = Id

Added: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/dialogs/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/dialogs/messages.properties?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/dialogs/messages.properties (added)
+++ directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/dialogs/messages.properties Tue Nov 25 07:14:31 2008
@@ -0,0 +1,44 @@
+# 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.
+
+AttributeTypeSelectionDialog.ChooseAType=Choose an attribute type
+AttributeTypeSelectionDialog.InvalidSelection=Invalid Selection
+AttributeTypeSelectionDialog.MatchingTypes=Matching attribute type(s)
+AttributeTypeSelectionDialog.MustChooseType=You have to choose an attribute type
+AttributeTypeSelectionDialog.TypeSelection=Attribute Type Selection
+AttributeTypeSelectionDialogLabelProvider.None=(None)  -  (
+EditAliasesDialog.Add=Add...
+EditAliasesDialog.Aliases=Aliases:
+EditAliasesDialog.Edit=Edit...
+EditAliasesDialog.EditAlias=Edit Aliases
+EditAliasesDialog.ElementWithSameAliasExists=An element with the same alias already exists.
+EditAliasesDialog.Remove=Remove
+EditAliasesDialog.TheAliasBegin=The alias '
+EditAliasesDialog.TheAliasEnd=' is invalid.
+ObjectClassSelectionDialog.ChooseClass=Choose an object class
+ObjectClassSelectionDialog.ClassSelection=Object Class Selection
+ObjectClassSelectionDialog.InvalidSelection=Invalid Selection
+ObjectClassSelectionDialog.MatchingClasses=Matching object class(es)
+ObjectClassSelectionDialog.MustChooseClass=You have to choose an object class
+ObjectClassSelectionDialogLabelProvider.None=(None)  -  (
+PreviousSearchesDialog.Open=Open
+PreviousSearchesDialog.Previous=Previous Searches
+PreviousSearchesDialog.Remove=Remove
+PreviousSearchesDialog.ShowResultsInView=Select the search to show in the search results view:
+RenameProjectDialog.NameExists=A project with the same name already exists.
+RenameProjectDialog.NewName=New name:
+RenameProjectDialog.Rename=Rename Schema Project

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/dialogs/messages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/dialogs/messages.properties
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message