directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r720511 [1/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
Author: felixk
Date: Tue Nov 25 07:14:31 2008
New Revision: 720511

URL: http://svn.apache.org/viewvc?rev=720511&view=rev
Log:
Externalize Strings.
More to externalize in the view folder

Added:
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/Messages.java   (with props)
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/Messages.java   (with props)
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/Messages.java   (with props)
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/Messages.java   (with props)
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/Messages.java   (with props)
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/Messages.java   (with props)
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/actions/
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/actions/messages.properties   (with props)
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/controller/messages.properties   (with props)
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/messages.properties   (with props)
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/io/
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/io/messages.properties   (with props)
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/model/messages.properties   (with props)
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/dialogs/
    directory/studio/trunk/schemaeditor/src/main/resources/org/apache/directory/studio/schemaeditor/view/dialogs/messages.properties   (with props)
Modified:
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/Activator.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginUtils.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/HierarchyViewController.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/ProblemsViewController.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/ProjectsViewController.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/SchemaViewController.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CloseProjectAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CollapseAllAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CommitChangesAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteProjectAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteSchemaElementAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportProjectsAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasAsOpenLdapAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasAsXmlAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasForADSAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportCoreSchemasAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportProjectsAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportSchemasFromOpenLdapAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportSchemasFromXmlAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/LinkWithEditorHierarchyViewAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/LinkWithEditorSchemaViewAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewAttributeTypeAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewObjectClassAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewProjectAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewSchemaAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenElementAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenHierarchyViewPreferencesAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenProjectAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSchemaViewPreferenceAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSchemaViewSortingDialogAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSearchViewPreferenceAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSearchViewSortingDialogAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenTypeHierarchyAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/RenameProjectAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/RunCurrentSearchAgainAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSearchFieldAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSearchHistoryAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSubtypeHierarchyAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSupertypeHierarchyAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowTypeHierarchyAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/SwitchSchemaPresentationToFlatAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/SwitchSchemaPresentationToHierarchicalAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/DependenciesComputer.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/OpenLdapSchemaFileImporter.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsImporter.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/XMLSchemaFileImporter.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialog.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/AttributeTypeSelectionDialogLabelProvider.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/EditAliasesDialog.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialog.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/ObjectClassSelectionDialogLabelProvider.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/PreviousSearchesDialog.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/RenameProjectDialog.java

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/Activator.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/Activator.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/Activator.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/Activator.java Tue Nov 25 07:14:31 2008
@@ -325,15 +325,15 @@
             try
             {
                 properties = new PropertyResourceBundle( FileLocator.openStream( this.getBundle(), new Path(
-                    "plugin.properties" ), false ) );
+                    "plugin.properties" ), false ) ); //$NON-NLS-1$
             }
             catch ( IOException e )
             {
                 // We can't use the PLUGIN_ID constant since loading the plugin.properties file has failed,
                 // So we're using a default plugin id.
                 getLog().log(
-                    new Status( Status.ERROR, "org.apache.directory.studio.schemaeditor", Status.OK,
-                        "Unable to get the plugin properties.", e ) );
+                    new Status( Status.ERROR, "org.apache.directory.studio.schemaeditor", Status.OK, //$NON-NLS-1$
+                        Messages.getString("Activator.UnablePluginProperties"), e ) ); //$NON-NLS-1$
             }
         }
 

Added: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/Messages.java?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/Messages.java (added)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/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;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.schemaeditor.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/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

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

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginUtils.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginUtils.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginUtils.java Tue Nov 25 07:14:31 2008
@@ -209,14 +209,14 @@
                     }
                     catch ( ProjectsImportException e )
                     {
-                        reportError( "An error occured when loading the projects.", e, "Projects Loading Error",
-                            "An error occured when loading the projects." );
+                        reportError( Messages.getString("PluginUtils.ErrorLoadingProject"), e, Messages.getString("PluginUtils.ProjectsLoadingError"),
+                            Messages.getString("PluginUtils.ErrorLoadingProject") );
                         return;
                     }
                     catch ( FileNotFoundException e )
                     {
-                        reportError( "An error occured when loading the projects.", e, "Projects Loading Error",
-                            "An error occured when loading the projects." );
+                        reportError( Messages.getString("PluginUtils.ErrorLoadingProject"), e, Messages.getString("PluginUtils.ProjectsLoadingError"),
+                            Messages.getString("PluginUtils.ErrorLoadingProject") );
                         return;
                     }
 
@@ -228,8 +228,8 @@
                 }
                 else
                 {
-                    reportError( "An error occured when loading the projects.", null, "Projects Loading Error",
-                        "An error occured when loading the projects." );
+                    reportError( Messages.getString("PluginUtils.ErrorLoadingProject"), null, Messages.getString("PluginUtils.ProjectsLoadingError"),
+                        Messages.getString("PluginUtils.ErrorLoadingProject") );
                 }
 
             }
@@ -246,15 +246,15 @@
         {
             // Saving the projects to the temp projects file
             OutputFormat outformat = OutputFormat.createPrettyPrint();
-            outformat.setEncoding( "UTF-8" );
+            outformat.setEncoding( "UTF-8" ); //$NON-NLS-1$
             XMLWriter writer = new XMLWriter( new FileOutputStream( getTempProjectsFile() ), outformat );
             writer.write( ProjectsExporter.toDocument( Activator.getDefault().getProjectsHandler().getProjects()
                 .toArray( new Project[0] ) ) );
             writer.flush();
 
             // Copying the temp projects file to the final location
-            String content = FileUtils.readFileToString( getTempProjectsFile(), "UTF-8" );
-            FileUtils.writeStringToFile( getProjectsFile(), content, "UTF-8" );
+            String content = FileUtils.readFileToString( getTempProjectsFile(), "UTF-8" ); //$NON-NLS-1$
+            FileUtils.writeStringToFile( getProjectsFile(), content, "UTF-8" ); //$NON-NLS-1$
         }
         catch ( IOException e )
         {
@@ -264,7 +264,7 @@
             try
             {
                 OutputFormat outformat = OutputFormat.createPrettyPrint();
-                outformat.setEncoding( "UTF-8" );
+                outformat.setEncoding( "UTF-8" ); //$NON-NLS-1$
                 XMLWriter writer = new XMLWriter( new FileOutputStream( getProjectsFile() ), outformat );
                 writer.write( ProjectsExporter.toDocument( Activator.getDefault().getProjectsHandler().getProjects()
                     .toArray( new Project[0] ) ) );
@@ -273,8 +273,8 @@
             catch ( IOException e2 )
             {
                 // If another error occur, we display an error
-                reportError( "An error occured when saving the projects.", e2, "Projects Saving Error",
-                    "An error occured when saving the projects." );
+                reportError( Messages.getString("PluginUtils.ErrorSavingProject"), e2, Messages.getString("PluginUtils.ProjectsSavingError"),
+                    Messages.getString("PluginUtils.ErrorSavingProject") );
             }
         }
     }
@@ -347,8 +347,8 @@
 
             if ( url == null )
             {
-                reportError( "An error occured when loading the schema " + schemaName + ".", null,
-                    "Projects Loafing Error", "An error occured when loading the schema " + schemaName + "." );
+                reportError( Messages.getString("PluginUtils.SchemaLoadingError") + schemaName + ".", null, //$NON-NLS-2$
+                    Messages.getString("PluginUtils.ProjectsLoadingError"), Messages.getString("PluginUtils.SchemaLoadingError") + schemaName + "." ); //$NON-NLS-3$
             }
             else
             {
@@ -357,18 +357,18 @@
         }
         catch ( XMLSchemaFileImportException e )
         {
-            reportError( "An error occured when loading the schema " + schemaName + ".", e, "Projects Loafing Error",
-                "An error occured when loading the schema " + schemaName + "." );
+            reportError( Messages.getString("PluginUtils.SchemaLoadingError") + schemaName + ".", e, Messages.getString("PluginUtils.ProjectsLoadingError"),//$NON-NLS-2$
+                Messages.getString("PluginUtils.SchemaLoadingError") + schemaName + "." ); //$NON-NLS-2$
         }
         catch ( FileNotFoundException e )
         {
-            reportError( "An error occured when loading the schema " + schemaName + ".", e, "Projects Loafing Error",
-                "An error occured when loading the schema " + schemaName + "." );
+            reportError( Messages.getString("PluginUtils.SchemaLoadingError") + schemaName + ".", e, Messages.getString("PluginUtils.ProjectsLoadingError"), //$NON-NLS-2$
+                Messages.getString("PluginUtils.SchemaLoadingError") + schemaName + "." ); //$NON-NLS-2$
         }
         catch ( IOException e )
         {
-            reportError( "An error occured when loading the schema " + schemaName + ".", e, "Projects Loafing Error",
-                "An error occured when loading the schema " + schemaName + "." );
+            reportError( Messages.getString("PluginUtils.SchemaLoadingError") + schemaName + ".", e, Messages.getString("PluginUtils.ProjectsLoadingError"), //$NON-NLS-2$
+                Messages.getString("PluginUtils.SchemaLoadingError") + schemaName + "." ); //$NON-NLS-2$
         }
 
         return schema;
@@ -398,7 +398,7 @@
 
         if ( dialogMessage != null )
         {
-            ViewUtils.displayErrorMessageBox( ( ( dialogTitle == null ) ? "" : dialogTitle ), dialogMessage );
+            ViewUtils.displayErrorMessageBox( ( ( dialogTitle == null ) ? "" : dialogTitle ), dialogMessage ); //$NON-NLS-1$
         }
     }
 
@@ -415,11 +415,11 @@
     {
         if ( ServerTypeEnum.APACHE_DS.equals( serverType ) )
         {
-            return "apacheds";
+            return "apacheds"; //$NON-NLS-1$
         }
         else if ( ServerTypeEnum.OPENLDAP.equals( serverType ) )
         {
-            return "openldap";
+            return "openldap"; //$NON-NLS-1$
         }
 
         // Default
@@ -470,17 +470,17 @@
             {
                 try
                 {
-                    SchemaConnector schemaConnector = ( SchemaConnector ) member.createExecutableExtension( "class" );
-                    schemaConnector.setName( member.getAttribute( "name" ) );
-                    schemaConnector.setId( member.getAttribute( "id" ) );
-                    schemaConnector.setDescription( member.getAttribute( "description" ) );
+                    SchemaConnector schemaConnector = ( SchemaConnector ) member.createExecutableExtension( "class" ); //$NON-NLS-1$
+                    schemaConnector.setName( member.getAttribute( "name" ) ); //$NON-NLS-1$
+                    schemaConnector.setId( member.getAttribute( "id" ) ); //$NON-NLS-1$
+                    schemaConnector.setDescription( member.getAttribute( "description" ) ); //$NON-NLS-1$
 
                     schemaConnectors.add( schemaConnector );
                 }
                 catch ( CoreException e )
                 {
-                    PluginUtils.logError( "An error occured when loading the schema connectors.", e );
-                    ViewUtils.displayErrorMessageBox( "Error", "An error occured when loading the schema connectors." );
+                    PluginUtils.logError( Messages.getString("PluginUtils.ConnectorsLoadingError"), e );
+                    ViewUtils.displayErrorMessageBox( Messages.getString("PluginUtils.Error"), Messages.getString("PluginUtils.ConnectorsLoadingError") );
                 }
             }
         }

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/HierarchyViewController.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/HierarchyViewController.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/HierarchyViewController.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/HierarchyViewController.java Tue Nov 25 07:14:31 2008
@@ -134,8 +134,8 @@
                 }
                 catch ( PartInitException e )
                 {
-                    PluginUtils.logError( "An error occured when opening the editor.", e );
-                    ViewUtils.displayErrorMessageBox( "Error", "An error occured when opening the editor." );
+                    PluginUtils.logError( Messages.getString("HierarchyViewController.ErrorOpeningEditor"), e );
+                    ViewUtils.displayErrorMessageBox( Messages.getString("HierarchyViewController.Error"), Messages.getString("HierarchyViewController.ErroropeningEditor") );
                 }
             }
         }

Added: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/Messages.java?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/Messages.java (added)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/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.controller;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.schemaeditor.controller.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/controller/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

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

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/ProblemsViewController.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/ProblemsViewController.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/ProblemsViewController.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/ProblemsViewController.java Tue Nov 25 07:14:31 2008
@@ -222,8 +222,8 @@
                     }
                     catch ( PartInitException e )
                     {
-                        PluginUtils.logError( "An error occured when opening the editor.", e );
-                        ViewUtils.displayErrorMessageBox( "Error", "An error occured when opening the editor." );
+                        PluginUtils.logError( Messages.getString("ProblemsViewController.ErrorOpeningEditor"), e );
+                        ViewUtils.displayErrorMessageBox( Messages.getString("ProblemsViewController.Error"), Messages.getString("ProblemsViewController.ErrorOpeningEditor") );
                     }
                 }
             }

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/ProjectsViewController.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/ProjectsViewController.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/ProjectsViewController.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/ProjectsViewController.java Tue Nov 25 07:14:31 2008
@@ -147,8 +147,8 @@
         {
             public void menuAboutToShow( IMenuManager manager )
             {
-                MenuManager importManager = new MenuManager( "&Import..." );
-                MenuManager exportManager = new MenuManager( "Exp&ort..." );
+                MenuManager importManager = new MenuManager( Messages.getString("ProjectsViewController.ImportAction") );
+                MenuManager exportManager = new MenuManager( Messages.getString("ProjectsViewController.ExportAction") );
                 manager.add( newProject );
                 manager.add( new Separator() );
                 manager.add( openProject );
@@ -185,8 +185,8 @@
         {
             public void keyReleased( KeyEvent e )
             {
-                if ( ( e.keyCode == Action.findKeyCode( "BACKSPACE" ) )
-                    || ( e.keyCode == Action.findKeyCode( "DELETE" ) ) )
+                if ( ( e.keyCode == Action.findKeyCode( "BACKSPACE" ) ) //$NON-NLS-1$
+                    || ( e.keyCode == Action.findKeyCode( "DELETE" ) ) ) //$NON-NLS-1$
                 {
                     deleteProject.run();
                 }

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/SchemaViewController.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/SchemaViewController.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/SchemaViewController.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/SchemaViewController.java Tue Nov 25 07:14:31 2008
@@ -319,7 +319,7 @@
         IMenuManager menu = view.getViewSite().getActionBars().getMenuManager();
         menu.add( openSchemaViewSortingDialog );
         menu.add( new Separator() );
-        IMenuManager schemaPresentationMenu = new MenuManager( "S&chema Presentation" );
+        IMenuManager schemaPresentationMenu = new MenuManager( Messages.getString("SchemaViewController.SchemaPresentationAction") );
         schemaPresentationMenu.add( switchSchemaPresentationToFlat );
         schemaPresentationMenu.add( switchSchemaPresentationToHierarchical );
         menu.add( schemaPresentationMenu );
@@ -341,9 +341,9 @@
         {
             public void menuAboutToShow( IMenuManager manager )
             {
-                MenuManager newManager = new MenuManager( "Ne&w" );
-                MenuManager importManager = new MenuManager( "&Import..." );
-                MenuManager exportManager = new MenuManager( "Exp&ort..." );
+                MenuManager newManager = new MenuManager( Messages.getString("SchemaViewController.NewAction") );
+                MenuManager importManager = new MenuManager( Messages.getString("SchemaViewController.ImportAction") );
+                MenuManager exportManager = new MenuManager( Messages.getString("SchemaViewController.ExportAction") );
                 manager.add( newManager );
                 newManager.add( newSchema );
                 newManager.add( newAttributeType );
@@ -508,8 +508,8 @@
                     }
                     catch ( PartInitException e )
                     {
-                        PluginUtils.logError( "An error occured when opening the editor.", e );
-                        ViewUtils.displayErrorMessageBox( "Error", "An error occured when opening the editor." );
+                        PluginUtils.logError( Messages.getString("SchemaViewController.ErrorOpeningEditor"), e );
+                        ViewUtils.displayErrorMessageBox( Messages.getString("SchemaViewController.error"), Messages.getString("SchemaViewController.ErrorOpeningEditor") );
                     }
                 }
             }

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CloseProjectAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CloseProjectAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CloseProjectAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CloseProjectAction.java Tue Nov 25 07:14:31 2008
@@ -60,8 +60,8 @@
      */
     public CloseProjectAction( TableViewer viewer )
     {
-        super( "Clo&se Project" );
-        setToolTipText( "Close Project" );
+        super( Messages.getString("CloseProjectAction.CloseProjectAction") );
+        setToolTipText( Messages.getString("CloseProjectAction.CloseProjectToolTip") );
         setEnabled( false );
         this.viewer = viewer;
         this.viewer.addSelectionChangedListener( new ISelectionChangedListener()

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CollapseAllAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CollapseAllAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CollapseAllAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CollapseAllAction.java Tue Nov 25 07:14:31 2008
@@ -50,7 +50,7 @@
      */
     public CollapseAllAction( TreeViewer viewer )
     {
-        super( "Collapse All" );
+        super( Messages.getString("CollapseAllAction.CollapseAllAction") );
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_COLLAPSE_ALL ) );
         setEnabled( false );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CommitChangesAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CommitChangesAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CommitChangesAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/CommitChangesAction.java Tue Nov 25 07:14:31 2008
@@ -46,7 +46,7 @@
      */
     public CommitChangesAction()
     {
-        super( "Commit Changes" );
+        super( Messages.getString("CommitChangesAction.CommitChangesAction") );
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_COMMIT_CHANGES ) );
         setEnabled( false );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteProjectAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteProjectAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteProjectAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteProjectAction.java Tue Nov 25 07:14:31 2008
@@ -62,8 +62,8 @@
      */
     public DeleteProjectAction( TableViewer viewer )
     {
-        super( "&Delete Project" );
-        setToolTipText( "Delete Project" );
+        super( Messages.getString("DeleteProjectAction.DeleteProjectAction") );
+        setToolTipText( Messages.getString("DeleteProjectAction.DeleteProjectToolTip") );
         setId( PluginConstants.CMD_DELETE_PROJECT );
         setActionDefinitionId( PluginConstants.CMD_DELETE_PROJECT );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_DELETE ) );
@@ -76,17 +76,17 @@
                 StructuredSelection selection = ( StructuredSelection ) event.getSelection();
                 if ( selection.size() == 1 )
                 {
-                    setText( "&Delete Project" );
+                    setText( Messages.getString("DeleteProjectAction.DeleteProjectAction") );
                     setEnabled( true );
                 }
                 else if ( selection.size() > 1 )
                 {
-                    setText( "&Delete Projects" );
+                    setText( Messages.getString("DeleteProjectAction.DeleteProjectsAction") );
                     setEnabled( true );
                 }
                 else
                 {
-                    setText( "&Delete Project" );
+                    setText( Messages.getString("DeleteProjectAction.DeleteProjectAction") );
                     setEnabled( false );
                 }
             }
@@ -110,12 +110,12 @@
             if ( count == 1 )
             {
                 ProjectWrapper wrapper = ( ProjectWrapper ) selection.getFirstElement();
-                messageBox.setMessage( "Are you sure you want to delete project '" + wrapper.getProject().getName()
-                    + "'?" );
+                messageBox.setMessage( Messages.getString("DeleteProjectAction.SureToDeleteProjectBegin") + wrapper.getProject().getName()
+                    + Messages.getString("DeleteProjectAction.SureToDeleteProjectEnd") );
             }
             else
             {
-                messageBox.setMessage( "Are you sure you want to delete these " + count + " projects?" );
+                messageBox.setMessage( Messages.getString("DeleteProjectAction.SureToDeleteProjectsBegin") + count + Messages.getString("DeleteProjectAction.SureToDeleteProjectsEnd") );
             }
             if ( messageBox.open() == SWT.YES )
             {

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteSchemaElementAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteSchemaElementAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteSchemaElementAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteSchemaElementAction.java Tue Nov 25 07:14:31 2008
@@ -67,8 +67,8 @@
      */
     public DeleteSchemaElementAction( TreeViewer viewer )
     {
-        super( "&Delete" );
-        setToolTipText( "Delete" );
+        super( Messages.getString("DeleteSchemaElementAction.DeleteAction") );
+        setToolTipText( Messages.getString("DeleteSchemaElementAction.DeleteToolTip") );
         setId( PluginConstants.CMD_DELETE_SCHEMA_ELEMENT );
         setActionDefinitionId( PluginConstants.CMD_DELETE_SCHEMA_ELEMENT );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_DELETE ) );
@@ -128,25 +128,25 @@
                 Object firstElement = selection.getFirstElement();
                 if ( firstElement instanceof AttributeTypeWrapper )
                 {
-                    messageBox.setMessage( "Are you sure you want to delete this attribute type?" );
+                    messageBox.setMessage( Messages.getString("DeleteSchemaElementAction.SureToDeleteAttributeType") );
                 }
                 else if ( firstElement instanceof ObjectClassWrapper )
                 {
-                    messageBox.setMessage( "Are you sure you want to delete this object class?" );
+                    messageBox.setMessage( Messages.getString("DeleteSchemaElementAction.SureToDeleteObjectClass") );
                 }
                 else if ( firstElement instanceof SchemaWrapper )
                 {
-                    messageBox.setMessage( "Are you sure you want to delete this schema?" );
+                    messageBox.setMessage( Messages.getString("DeleteSchemaElementAction.SureToDeleteSchema") );
                 }
                 else
                 {
-                    messageBox.setMessage( "Are you sure you want to delete this item?" );
+                    messageBox.setMessage( Messages.getString("DeleteSchemaElementAction.SureToDeleteItem") );
                 }
 
             }
             else
             {
-                messageBox.setMessage( "Are you sure you want to delete these " + count + " items?" );
+                messageBox.setMessage( Messages.getString("DeleteSchemaElementAction.SureToDeleteItemsBegin") + count + Messages.getString("DeleteSchemaElementAction.SureToDeleteItemsEnd") );
             }
             if ( messageBox.open() == SWT.YES )
             {

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportProjectsAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportProjectsAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportProjectsAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportProjectsAction.java Tue Nov 25 07:14:31 2008
@@ -57,7 +57,7 @@
      */
     public ExportProjectsAction( TableViewer viewer )
     {
-        super( "Schema Projects" );
+        super( Messages.getString("ExportProjectsAction.SchemaProjectsAction") );
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_PROJECT_EXPORT ) );
         setEnabled( true );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasAsOpenLdapAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasAsOpenLdapAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasAsOpenLdapAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasAsOpenLdapAction.java Tue Nov 25 07:14:31 2008
@@ -57,7 +57,7 @@
      */
     public ExportSchemasAsOpenLdapAction( TreeViewer viewer )
     {
-        super( "Schemas as OpenLDAP files" );
+        super( Messages.getString("ExportSchemasAsOpenLdapAction.SchemaAsOpenLDAPFilesAction") );
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SCHEMAS_EXPORT ) );
         setEnabled( true );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasAsXmlAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasAsXmlAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasAsXmlAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasAsXmlAction.java Tue Nov 25 07:14:31 2008
@@ -57,7 +57,7 @@
      */
     public ExportSchemasAsXmlAction( TreeViewer viewer )
     {
-        super( "Schemas as XML file(s)" );
+        super( Messages.getString("ExportSchemasAsXmlAction.SchemaAsXMLFileAction") );
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SCHEMAS_EXPORT ) );
         setEnabled( true );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasForADSAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasForADSAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasForADSAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ExportSchemasForADSAction.java Tue Nov 25 07:14:31 2008
@@ -57,7 +57,7 @@
      */
     public ExportSchemasForADSAction( TreeViewer viewer )
     {
-        super( "Schemas for Apache DS" );
+        super( Messages.getString("ExportSchemasForADSAction.SchemaForADSAction") ); //$NON-NLS-1$
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SCHEMAS_EXPORT_FOR_ADS ) );
         setEnabled( true );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportCoreSchemasAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportCoreSchemasAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportCoreSchemasAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportCoreSchemasAction.java Tue Nov 25 07:14:31 2008
@@ -46,7 +46,7 @@
      */
     public ImportCoreSchemasAction()
     {
-        super( "Core schemas files" );
+        super( Messages.getString("ImportCoreSchemasAction.CoreSchemaFilesAction") );
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SCHEMAS_IMPORT ) );
         setEnabled( true );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportProjectsAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportProjectsAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportProjectsAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportProjectsAction.java Tue Nov 25 07:14:31 2008
@@ -46,7 +46,7 @@
      */
     public ImportProjectsAction()
     {
-        super( "Schema Projects" );
+        super( Messages.getString("ImportProjectsAction.SchemaProjectsAction") );
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_PROJECT_IMPORT ) );
         setEnabled( true );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportSchemasFromOpenLdapAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportSchemasFromOpenLdapAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportSchemasFromOpenLdapAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportSchemasFromOpenLdapAction.java Tue Nov 25 07:14:31 2008
@@ -46,7 +46,7 @@
      */
     public ImportSchemasFromOpenLdapAction()
     {
-        super( "Schemas from OpenLDAP files" );
+        super( Messages.getString("ImportSchemasFromOpenLdapAction.SchemaFromOpenLDAPFilesAction") );
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SCHEMAS_IMPORT ) );
         setEnabled( true );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportSchemasFromXmlAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportSchemasFromXmlAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportSchemasFromXmlAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ImportSchemasFromXmlAction.java Tue Nov 25 07:14:31 2008
@@ -46,7 +46,7 @@
      */
     public ImportSchemasFromXmlAction()
     {
-        super( "Schemas from XML file(s)" );
+        super( Messages.getString("ImportSchemasFromXmlAction.SchemasFromXMLFilesAction") );
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SCHEMAS_IMPORT ) );
         setEnabled( true );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/LinkWithEditorHierarchyViewAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/LinkWithEditorHierarchyViewAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/LinkWithEditorHierarchyViewAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/LinkWithEditorHierarchyViewAction.java Tue Nov 25 07:14:31 2008
@@ -138,8 +138,8 @@
      */
     public LinkWithEditorHierarchyViewAction( HierarchyView view )
     {
-        super( "Lin&k with Editor", AS_CHECK_BOX );
-        setToolTipText( "Link with Editor" );
+        super( Messages.getString("LinkWithEditorHierarchyViewAction.LinkEditorAction"), AS_CHECK_BOX );
+        setToolTipText( Messages.getString("LinkWithEditorHierarchyViewAction.LinkEditorToolTip") );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_LINK_WITH_EDITOR ) );
         setEnabled( true );
         this.view = view;

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/LinkWithEditorSchemaViewAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/LinkWithEditorSchemaViewAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/LinkWithEditorSchemaViewAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/LinkWithEditorSchemaViewAction.java Tue Nov 25 07:14:31 2008
@@ -194,8 +194,8 @@
      */
     public LinkWithEditorSchemaViewAction( SchemaView view )
     {
-        super( "Lin&k with Editor", AS_CHECK_BOX );
-        setToolTipText( "Link with Editor" );
+        super( Messages.getString("LinkWithEditorSchemaViewAction.LinkEditorAction"), AS_CHECK_BOX );
+        setToolTipText( Messages.getString("LinkWithEditorSchemaViewAction.LinkEditorToolTip") );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_LINK_WITH_EDITOR ) );
         setEnabled( false );
         this.view = view;

Added: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/Messages.java?rev=720511&view=auto
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/Messages.java (added)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/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.controller.actions;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.schemaeditor.controller.actions.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/controller/actions/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

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

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewAttributeTypeAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewAttributeTypeAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewAttributeTypeAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewAttributeTypeAction.java Tue Nov 25 07:14:31 2008
@@ -57,8 +57,8 @@
      */
     public NewAttributeTypeAction( TreeViewer viewer )
     {
-        super( "New A&ttribute Type" );
-        setToolTipText( "New Attribute Type" );
+        super( Messages.getString("NewAttributeTypeAction.NewAttributeTypeAction") );
+        setToolTipText( Messages.getString("NewAttributeTypeAction.NewAttributeTypeToolTip") );
         setId( PluginConstants.CMD_NEW_ATTRIBUTE_TYPE );
         setActionDefinitionId( PluginConstants.CMD_NEW_ATTRIBUTE_TYPE );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_ATTRIBUTE_TYPE_NEW ) );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewObjectClassAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewObjectClassAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewObjectClassAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewObjectClassAction.java Tue Nov 25 07:14:31 2008
@@ -57,8 +57,8 @@
      */
     public NewObjectClassAction( TreeViewer viewer )
     {
-        super( "New O&bject Class" );
-        setToolTipText( "New Object Class" );
+        super( Messages.getString("NewObjectClassAction.NewObjectClassAction") );
+        setToolTipText( Messages.getString("NewObjectClassAction.NewObjectClassToolTip") );
         setId( PluginConstants.CMD_NEW_OBJECT_CLASS );
         setActionDefinitionId( PluginConstants.CMD_NEW_OBJECT_CLASS );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_OBJECT_CLASS_NEW ) );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewProjectAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewProjectAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewProjectAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewProjectAction.java Tue Nov 25 07:14:31 2008
@@ -46,8 +46,8 @@
      */
     public NewProjectAction()
     {
-        super( "New Schema P&roject" );
-        setToolTipText( "New Schema Project" );
+        super( Messages.getString("NewProjectAction.NewSchemaProjectAction") );
+        setToolTipText( Messages.getString("NewProjectAction.NewSchemaProjectToolTip") );
         setId( PluginConstants.CMD_NEW_PROJECT );
         setActionDefinitionId( PluginConstants.CMD_NEW_PROJECT );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_PROJECT_NEW ) );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewSchemaAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewSchemaAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewSchemaAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/NewSchemaAction.java Tue Nov 25 07:14:31 2008
@@ -46,8 +46,8 @@
      */
     public NewSchemaAction()
     {
-        super( "New Sch&ema" );
-        setToolTipText( "New Schema" );
+        super( Messages.getString("NewSchemaAction.NewSchemaAction") );
+        setToolTipText( Messages.getString("NewSchemaAction.NewSchemaToolTip") );
         setId( PluginConstants.CMD_NEW_SCHEMA );
         setActionDefinitionId( PluginConstants.CMD_NEW_SCHEMA );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SCHEMA_NEW ) );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenElementAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenElementAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenElementAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenElementAction.java Tue Nov 25 07:14:31 2008
@@ -63,8 +63,8 @@
      */
     public OpenElementAction( TreeViewer viewer )
     {
-        super( "&Open" );
-        setToolTipText( "Open" );
+        super( Messages.getString("OpenElementAction.OpenAction") );
+        setToolTipText( Messages.getString("OpenElementAction.OpenToolTip") );
         setId( PluginConstants.CMD_OPEN_ELEMENT );
         setActionDefinitionId( PluginConstants.CMD_OPEN_ELEMENT );
         setEnabled( true );
@@ -91,8 +91,8 @@
                 }
                 catch ( PartInitException e )
                 {
-                    PluginUtils.logError( "An error occured when opening the editor.", e );
-                    ViewUtils.displayErrorMessageBox( "Error", "An error occured when opening the editor." );
+                    PluginUtils.logError( Messages.getString("OpenElementAction.ErrorOpeningEditor"), e );
+                    ViewUtils.displayErrorMessageBox( Messages.getString("OpenElementAction.Error"), Messages.getString("OpenElementAction.ErrorOpeningEditor") );
                 }
             }
             else if ( selectedItem instanceof ObjectClassWrapper )
@@ -105,8 +105,8 @@
                 }
                 catch ( PartInitException e )
                 {
-                    PluginUtils.logError( "An error occured when opening the editor.", e );
-                    ViewUtils.displayErrorMessageBox( "Error", "An error occured when opening the editor." );
+                    PluginUtils.logError( Messages.getString("OpenElementAction.ErroropeningEditor"), e );
+                    ViewUtils.displayErrorMessageBox( Messages.getString("OpenElementAction.Error"), Messages.getString("OpenElementAction.ErrorOpeningEditor") );
                 }
             }
             else if ( selectedItem instanceof SchemaWrapper )
@@ -118,8 +118,8 @@
                 }
                 catch ( PartInitException e )
                 {
-                    PluginUtils.logError( "An error occured when opening the editor.", e );
-                    ViewUtils.displayErrorMessageBox( "Error", "An error occured when opening the editor." );
+                    PluginUtils.logError( Messages.getString("OpenElementAction.ErroropeningEditor"), e );
+                    ViewUtils.displayErrorMessageBox( Messages.getString("OpenElementAction.Error"), Messages.getString("OpenElementAction.ErrorOpeningEditor") );
                 }
             }
             else if ( selectedItem instanceof Folder )

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenHierarchyViewPreferencesAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenHierarchyViewPreferencesAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenHierarchyViewPreferencesAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenHierarchyViewPreferencesAction.java Tue Nov 25 07:14:31 2008
@@ -41,8 +41,8 @@
      */
     public OpenHierarchyViewPreferencesAction()
     {
-        super( "&Preferences..." );
-        setToolTipText( "Preferences..." );
+        super( Messages.getString("OpenHierarchyViewPreferencesAction.PreferencesAction") );
+        setToolTipText( Messages.getString("OpenHierarchyViewPreferencesAction.PreferencesToolTip") );
         setEnabled( true );
     }
 

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenProjectAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenProjectAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenProjectAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenProjectAction.java Tue Nov 25 07:14:31 2008
@@ -60,8 +60,8 @@
      */
     public OpenProjectAction( TableViewer viewer )
     {
-        super( "Op&en Project" );
-        setToolTipText( "Open Project" );
+        super( Messages.getString("OpenProjectAction.OpenProjectAction") );
+        setToolTipText( Messages.getString("OpenProjectAction.OpenProjectToolTip") );
         setEnabled( false );
         this.viewer = viewer;
         this.viewer.addSelectionChangedListener( new ISelectionChangedListener()

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSchemaViewPreferenceAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSchemaViewPreferenceAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSchemaViewPreferenceAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSchemaViewPreferenceAction.java Tue Nov 25 07:14:31 2008
@@ -44,8 +44,8 @@
      */
     public OpenSchemaViewPreferenceAction()
     {
-        super( "&Preferences..." );
-        setToolTipText( "Preferences..." );
+        super( Messages.getString("OpenSchemaViewPreferenceAction.PreferencesAction") );
+        setToolTipText( Messages.getString("OpenSchemaViewPreferenceAction.PreferencesToolTip") );
         setEnabled( false );
     }
 

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSchemaViewSortingDialogAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSchemaViewSortingDialogAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSchemaViewSortingDialogAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSchemaViewSortingDialogAction.java Tue Nov 25 07:14:31 2008
@@ -44,8 +44,8 @@
      */
     public OpenSchemaViewSortingDialogAction()
     {
-        super( "&Sorting..." );
-        setToolTipText( "Sorting..." );
+        super( Messages.getString("OpenSchemaViewSortingDialogAction.SortingAction") );
+        setToolTipText( Messages.getString("OpenSchemaViewSortingDialogAction.SortingToolTip") );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SORTING ) );
         setEnabled( false );
     }

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSearchViewPreferenceAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSearchViewPreferenceAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSearchViewPreferenceAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSearchViewPreferenceAction.java Tue Nov 25 07:14:31 2008
@@ -44,8 +44,8 @@
      */
     public OpenSearchViewPreferenceAction()
     {
-        super( "&Preferences..." );
-        setToolTipText( "Preferences..." );
+        super( Messages.getString("OpenSearchViewPreferenceAction.PreferencesAction") );
+        setToolTipText( Messages.getString("OpenSearchViewPreferenceAction.PreferencesToolTip") );
         setEnabled( true );
     }
 

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSearchViewSortingDialogAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSearchViewSortingDialogAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSearchViewSortingDialogAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenSearchViewSortingDialogAction.java Tue Nov 25 07:14:31 2008
@@ -44,8 +44,8 @@
      */
     public OpenSearchViewSortingDialogAction()
     {
-        super( "&Sorting..." );
-        setToolTipText( "Sorting..." );
+        super( Messages.getString("OpenSearchViewSortingDialogAction.SortingAction") );
+        setToolTipText( Messages.getString("OpenSearchViewSortingDialogAction.SortingToolTip") );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SORTING ) );
         setEnabled( true );
     }

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenTypeHierarchyAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenTypeHierarchyAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenTypeHierarchyAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/OpenTypeHierarchyAction.java Tue Nov 25 07:14:31 2008
@@ -61,8 +61,8 @@
      */
     public OpenTypeHierarchyAction( TreeViewer viewer )
     {
-        super( "Ope&n Type Hierarchy" );
-        setToolTipText( "Open Type Hierarchy" );
+        super( Messages.getString("OpenTypeHierarchyAction.OpenTypeAction") );
+        setToolTipText( Messages.getString("OpenTypeHierarchyAction.OpenTypeToolTip") );
         setId( PluginConstants.CMD_OPEN_TYPE_HIERARCHY );
         setActionDefinitionId( PluginConstants.CMD_OPEN_TYPE_HIERARCHY );
         setEnabled( true );
@@ -166,8 +166,8 @@
             }
             catch ( PartInitException e )
             {
-                PluginUtils.logError( "An error occured when opening the view.", e );
-                ViewUtils.displayErrorMessageBox( "Error", "An error occured when opening the view." );
+                PluginUtils.logError( Messages.getString("OpenTypeHierarchyAction.ErrorOpeningView"), e );
+                ViewUtils.displayErrorMessageBox( Messages.getString("OpenTypeHierarchyAction.Error"), Messages.getString("OpenTypeHierarchyAction.ErrorOpeningView") );
             }
         }
 

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/RenameProjectAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/RenameProjectAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/RenameProjectAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/RenameProjectAction.java Tue Nov 25 07:14:31 2008
@@ -61,7 +61,7 @@
      */
     public RenameProjectAction( TableViewer viewer )
     {
-        super( "Re&name Project..." );
+        super( Messages.getString("RenameProjectAction.RenameProjectAction") );
         setToolTipText( getText() );
         setId( PluginConstants.CMD_RENAME_PROJECT );
         setActionDefinitionId( PluginConstants.CMD_RENAME_PROJECT );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/RunCurrentSearchAgainAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/RunCurrentSearchAgainAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/RunCurrentSearchAgainAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/RunCurrentSearchAgainAction.java Tue Nov 25 07:14:31 2008
@@ -47,7 +47,7 @@
      */
     public RunCurrentSearchAgainAction( SearchView view )
     {
-        super( "Run the Current Search Again" );
+        super( Messages.getString("RunCurrentSearchAgainAction.RerunSearchAction") );
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_RUN_CURRENT_SEARCH_AGAIN ) );
         setEnabled( true );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSearchFieldAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSearchFieldAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSearchFieldAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSearchFieldAction.java Tue Nov 25 07:14:31 2008
@@ -50,7 +50,7 @@
      */
     public ShowSearchFieldAction( SearchView view )
     {
-        super( "Show Search Field", AS_CHECK_BOX );
+        super( Messages.getString("ShowSearchFieldAction.ShowSearchFieldAction"), AS_CHECK_BOX );
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SHOW_SEARCH_FIELD ) );
         setEnabled( true );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSearchHistoryAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSearchHistoryAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSearchHistoryAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSearchHistoryAction.java Tue Nov 25 07:14:31 2008
@@ -57,7 +57,7 @@
      */
     public ShowSearchHistoryAction( SearchView view )
     {
-        super( "Search History", AS_DROP_DOWN_MENU );
+        super( Messages.getString("ShowSearchHistoryAction.SearchHistoryAction"), AS_DROP_DOWN_MENU );
         this.view = view;
         setToolTipText( getText() );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SHOW_SEARCH_HISTORY ) );
@@ -180,7 +180,7 @@
         if ( previousSearches.length == 0 )
         {
             MenuItem item = new MenuItem( menu, SWT.RADIO );
-            item.setText( "(None)" );
+            item.setText( Messages.getString("ShowSearchHistoryAction.None") );
             item.setEnabled( false );
             item.setSelection( true );
         }
@@ -189,7 +189,7 @@
         new MenuItem( menu, SWT.SEPARATOR );
 
         MenuItem item = new MenuItem( menu, SWT.PUSH );
-        item.setText( "History..." );
+        item.setText( Messages.getString("ShowSearchHistoryAction.History") );
         item.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )
@@ -199,7 +199,7 @@
             }
         } );
         item = new MenuItem( menu, SWT.PUSH );
-        item.setText( "Clear History" );
+        item.setText( Messages.getString("ShowSearchHistoryAction.ClearHistory") );
         item.addSelectionListener( new SelectionAdapter()
         {
             public void widgetSelected( SelectionEvent e )

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSubtypeHierarchyAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSubtypeHierarchyAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSubtypeHierarchyAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSubtypeHierarchyAction.java Tue Nov 25 07:14:31 2008
@@ -43,8 +43,8 @@
      */
     public ShowSubtypeHierarchyAction( HierarchyView view )
     {
-        super( "Su&btype Hierarchy", AS_RADIO_BUTTON );
-        setToolTipText( "Show the Subtype Hierarchy" );
+        super( Messages.getString("ShowSubtypeHierarchyAction.SubtypeAction"), AS_RADIO_BUTTON );
+        setToolTipText( Messages.getString("ShowSubtypeHierarchyAction.SubtypeToolTip") );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SHOW_SUBTYPE_HIERARCHY ) );
         setEnabled( true );
         this.view = view;

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSupertypeHierarchyAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSupertypeHierarchyAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSupertypeHierarchyAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowSupertypeHierarchyAction.java Tue Nov 25 07:14:31 2008
@@ -43,8 +43,8 @@
      */
     public ShowSupertypeHierarchyAction( HierarchyView view )
     {
-        super( "Su&pertype Hierarchy", AS_RADIO_BUTTON );
-        setToolTipText( "Show the Supertype Hierarchy" );
+        super( Messages.getString("ShowSupertypeHierarchyAction.SupertypeAction"), AS_RADIO_BUTTON );
+        setToolTipText( Messages.getString("ShowSupertypeHierarchyAction.SupertypeToolTip") );
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SHOW_SUPERTYPE_HIERARCHY ) );
         setEnabled( true );
         this.view = view;

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowTypeHierarchyAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowTypeHierarchyAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowTypeHierarchyAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/ShowTypeHierarchyAction.java Tue Nov 25 07:14:31 2008
@@ -43,8 +43,8 @@
      */
     public ShowTypeHierarchyAction( HierarchyView view )
     {
-        super( "&Type Hierarchy", AS_RADIO_BUTTON );
-        setToolTipText( "Show the Type Hierarchy" );
+        super( Messages.getString("ShowTypeHierarchyAction.TypeAction"), AS_RADIO_BUTTON ); //$NON-NLS-1$
+        setToolTipText( Messages.getString("ShowTypeHierarchyAction.TypeToolTip") ); //$NON-NLS-1$
         setImageDescriptor( Activator.getDefault().getImageDescriptor( PluginConstants.IMG_SHOW_TYPE_HIERARCHY ) );
         setEnabled( true );
         this.view = view;

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/SwitchSchemaPresentationToFlatAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/SwitchSchemaPresentationToFlatAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/SwitchSchemaPresentationToFlatAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/SwitchSchemaPresentationToFlatAction.java Tue Nov 25 07:14:31 2008
@@ -42,8 +42,8 @@
      */
     public SwitchSchemaPresentationToFlatAction()
     {
-        super( "&Flat", AS_RADIO_BUTTON );
-        setToolTipText( "Flat" );
+        super( Messages.getString("SwitchSchemaPresentationToFlatAction.FlatAction"), AS_RADIO_BUTTON ); //$NON-NLS-1$
+        setToolTipText( Messages.getString("SwitchSchemaPresentationToFlatAction.FlatToolTip") ); //$NON-NLS-1$
         setEnabled( false );
 
         // Setting up the state of the action

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/SwitchSchemaPresentationToHierarchicalAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/SwitchSchemaPresentationToHierarchicalAction.java?rev=720511&r1=720510&r2=720511&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/SwitchSchemaPresentationToHierarchicalAction.java (original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/SwitchSchemaPresentationToHierarchicalAction.java Tue Nov 25 07:14:31 2008
@@ -42,8 +42,8 @@
      */
     public SwitchSchemaPresentationToHierarchicalAction()
     {
-        super( "&Hierarchical", AS_RADIO_BUTTON );
-        setToolTipText( "Hierarchical" );
+        super( Messages.getString("SwitchSchemaPresentationToHierarchicalAction.HierarchicalAction"), AS_RADIO_BUTTON ); //$NON-NLS-1$
+        setToolTipText( Messages.getString("SwitchSchemaPresentationToHierarchicalAction.HierarchicalToolTip") ); //$NON-NLS-1$
         setEnabled( false );
 
         // Setting up the state of the action



Mime
View raw message