directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r720836 - /directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/
Date Wed, 26 Nov 2008 12:45:08 GMT
Author: felixk
Date: Wed Nov 26 04:45:02 2008
New Revision: 720836

URL: http://svn.apache.org/viewvc?rev=720836&view=rev
Log:
Formatting

Modified:
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEMatchingRulesComboLabelProvider.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATESuperiorComboLabelProvider.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATESyntaxComboLabelProvider.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditor.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorInput.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorSourceCodePage.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorUsedByPage.java

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEMatchingRulesComboLabelProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEMatchingRulesComboLabelProvider.java?rev=720836&r1=720835&r2=720836&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEMatchingRulesComboLabelProvider.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEMatchingRulesComboLabelProvider.java
Wed Nov 26 04:45:02 2008
@@ -50,7 +50,8 @@
             }
             else
             {
-                return NLS.bind( Messages.getString("ATEMatchingRulesComboLabelProvider.None"),
new String[]{mr.getOid()}); //$NON-NLS-1$
+                return NLS.bind(
+                    Messages.getString( "ATEMatchingRulesComboLabelProvider.None" ), new
String[] { mr.getOid() } ); //$NON-NLS-1$
             }
         }
         else if ( obj instanceof NonExistingMatchingRule )

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATESuperiorComboLabelProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATESuperiorComboLabelProvider.java?rev=720836&r1=720835&r2=720836&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATESuperiorComboLabelProvider.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATESuperiorComboLabelProvider.java
Wed Nov 26 04:45:02 2008
@@ -51,7 +51,8 @@
             }
             else
             {
-                return NLS.bind( Messages.getString("ATESuperiorComboLabelProvider.None"),new
String[]{ at.getOid()}); //$NON-NLS-1$
+                return NLS.bind(
+                    Messages.getString( "ATESuperiorComboLabelProvider.None" ), new String[]
{ at.getOid() } ); //$NON-NLS-1$
             }
         }
         else if ( obj instanceof NonExistingAttributeType )

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATESyntaxComboLabelProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATESyntaxComboLabelProvider.java?rev=720836&r1=720835&r2=720836&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATESyntaxComboLabelProvider.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATESyntaxComboLabelProvider.java
Wed Nov 26 04:45:02 2008
@@ -50,7 +50,8 @@
             }
             else
             {
-                return NLS.bind( Messages.getString("ATESyntaxComboLabelProvider.None"),
new String[]{ syntax.getOid()}); //$NON-NLS-1$
+                return NLS.bind(
+                    Messages.getString( "ATESyntaxComboLabelProvider.None" ), new String[]
{ syntax.getOid() } ); //$NON-NLS-1$
             }
         }
         else if ( obj instanceof NonExistingSyntax )

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditor.java?rev=720836&r1=720835&r2=720836&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditor.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditor.java
Wed Nov 26 04:45:02 2008
@@ -88,7 +88,7 @@
             {
                 if ( !sourceCode.canLeaveThePage() )
                 {
-                    notifyError( Messages.getString("AttributeTypeEditor.CodeErrors") );
+                    notifyError( Messages.getString( "AttributeTypeEditor.CodeErrors" ) );
                     return;
                 }
 
@@ -193,7 +193,7 @@
         // Verifying if there is an error on the source code page
         if ( !sourceCode.canLeaveThePage() )
         {
-            notifyError( Messages.getString("AttributeTypeEditor.AttributeErrors") );
+            notifyError( Messages.getString( "AttributeTypeEditor.AttributeErrors" ) );
             monitor.setCanceled( true );
             return;
         }

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorInput.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorInput.java?rev=720836&r1=720835&r2=720836&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorInput.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorInput.java
Wed Nov 26 04:45:02 2008
@@ -100,7 +100,8 @@
      */
     public String getToolTipText()
     {
-        return NLS.bind( Messages.getString("AttributeTypeEditorInput.FromSchema"),new String[]{
getName(), attributeType.getSchema()});
+        return NLS.bind( Messages.getString( "AttributeTypeEditorInput.FromSchema" ), new
String[]
+            { getName(), attributeType.getSchema() } );
     }
 
 

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java?rev=720836&r1=720835&r2=720836&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java
Wed Nov 26 04:45:02 2008
@@ -265,13 +265,14 @@
             if ( editDialog.isDirty() )
             {
                 modifiedAttributeType.setNames( editDialog.getAliases() );
-                if ( ( modifiedAttributeType.getNamesRef() != null ) && ( modifiedAttributeType.getNamesRef().length
!= 0 ) )
+                if ( ( modifiedAttributeType.getNamesRef() != null )
+                    && ( modifiedAttributeType.getNamesRef().length != 0 ) )
                 {
                     aliasesLabel.setText( ViewUtils.concateAliases( modifiedAttributeType.getNamesRef()
) );
                 }
                 else
                 {
-                    aliasesLabel.setText( Messages.getString("AttributeTypeEditorOverviewPage.None")
);
+                    aliasesLabel.setText( Messages.getString( "AttributeTypeEditorOverviewPage.None"
) );
                 }
                 setEditorDirty();
             }
@@ -299,13 +300,13 @@
                 else
                 {
                     oidText.setForeground( ViewUtils.COLOR_RED );
-                    oidText.setToolTipText( Messages.getString("AttributeTypeEditorOverviewPage.ElementOIDExists")
);
+                    oidText.setToolTipText( Messages.getString( "AttributeTypeEditorOverviewPage.ElementOIDExists"
) );
                 }
             }
             else
             {
                 oidText.setForeground( ViewUtils.COLOR_RED );
-                oidText.setToolTipText( Messages.getString("AttributeTypeEditorOverviewPage.MalformedOID")
);
+                oidText.setToolTipText( Messages.getString( "AttributeTypeEditorOverviewPage.MalformedOID"
) );
             }
         }
     };
@@ -631,7 +632,7 @@
      */
     public AttributeTypeEditorOverviewPage( FormEditor editor )
     {
-        super( editor, ID, Messages.getString("AttributeTypeEditorOverviewPage.Overview")
);
+        super( editor, ID, Messages.getString( "AttributeTypeEditorOverviewPage.Overview"
) );
         schemaHandler = Activator.getDefault().getSchemaHandler();
         schemaHandler.addListener( schemaHandlerListener );
     }
@@ -669,7 +670,8 @@
         addListeners();
 
         // Help Context for Dynamic Help
-        PlatformUI.getWorkbench().getHelpSystem().setHelp( form, PluginConstants.PLUGIN_ID
+ "." + "attribute_type_editor" ); //$NON-NLS-1$ //$NON-NLS-2$
+        PlatformUI.getWorkbench().getHelpSystem().setHelp( form,
+            PluginConstants.PLUGIN_ID + "." + "attribute_type_editor" ); //$NON-NLS-1$ //$NON-NLS-2$
     }
 
 
@@ -686,8 +688,10 @@
         // General Information Section
         Section section_general_information = toolkit.createSection( parent, Section.DESCRIPTION
| Section.EXPANDED
             | Section.TITLE_BAR );
-        section_general_information.setDescription( Messages.getString("AttributeTypeEditorOverviewPage.SpecifyGeneralInformation")
);
-        section_general_information.setText( Messages.getString("AttributeTypeEditorOverviewPage.GeneralInformation")
);
+        section_general_information.setDescription( Messages
+            .getString( "AttributeTypeEditorOverviewPage.SpecifyGeneralInformation" ) );
+        section_general_information
+            .setText( Messages.getString( "AttributeTypeEditorOverviewPage.GeneralInformation"
) );
 
         // Creating the layout of the section
         Composite client_general_information = toolkit.createComposite( section_general_information
);
@@ -700,32 +704,37 @@
 
         // Adding elements to the section
         // ALIASES Button
-        toolkit.createLabel( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.Aliases")
);
+        toolkit
+            .createLabel( client_general_information, Messages.getString( "AttributeTypeEditorOverviewPage.Aliases"
) );
         aliasesLabel = toolkit.createLabel( client_general_information, "" ); //$NON-NLS-1$
         aliasesLabel.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false, 2, 1
) );
         toolkit.createLabel( client_general_information, "" ); //$NON-NLS-1$
-        aliasesButton = toolkit.createButton( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.EditAliases"),
SWT.PUSH );
+        aliasesButton = toolkit.createButton( client_general_information, Messages
+            .getString( "AttributeTypeEditorOverviewPage.EditAliases" ), SWT.PUSH );
         aliasesButton.setLayoutData( new GridData( SWT.NONE, SWT.NONE, false, false, 2, 1
) );
 
         // OID Field
-        toolkit.createLabel( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.OID")
);
+        toolkit.createLabel( client_general_information, Messages.getString( "AttributeTypeEditorOverviewPage.OID"
) );
         oidText = toolkit.createText( client_general_information, "" ); //$NON-NLS-1$
         oidText.setLayoutData( new GridData( SWT.FILL, 0, true, false, 2, 1 ) );
 
         // DESCRIPTION Field
-        toolkit.createLabel( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.Description")
);
+        toolkit.createLabel( client_general_information, Messages
+            .getString( "AttributeTypeEditorOverviewPage.Description" ) );
         descriptionText = toolkit.createText( client_general_information, "", SWT.MULTI |
SWT.V_SCROLL ); //$NON-NLS-1$
         GridData descriptionGridData = new GridData( SWT.FILL, SWT.NONE, true, false, 2,
1 );
         descriptionGridData.heightHint = 42;
         descriptionText.setLayoutData( descriptionGridData );
 
         // SCHEMA Field
-        schemaLink = toolkit.createHyperlink( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.Schema"),
SWT.WRAP );
+        schemaLink = toolkit.createHyperlink( client_general_information, Messages
+            .getString( "AttributeTypeEditorOverviewPage.Schema" ), SWT.WRAP );
         schemaLabel = toolkit.createLabel( client_general_information, "" ); //$NON-NLS-1$
         schemaLabel.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 )
);
 
         // SUP Combo
-        supLabel = toolkit.createHyperlink( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.SuperiorType"),
SWT.WRAP );
+        supLabel = toolkit.createHyperlink( client_general_information, Messages
+            .getString( "AttributeTypeEditorOverviewPage.SuperiorType" ), SWT.WRAP );
         supCombo = new Combo( client_general_information, SWT.READ_ONLY | SWT.SINGLE );
         supCombo.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 ) );
         supComboViewer = new ComboViewer( supCombo );
@@ -733,13 +742,14 @@
         supComboViewer.setLabelProvider( new ATESuperiorComboLabelProvider() );
 
         // USAGE Combo
-        toolkit.createLabel( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.Usage")
);
+        toolkit.createLabel( client_general_information, Messages.getString( "AttributeTypeEditorOverviewPage.Usage"
) );
         usageCombo = new Combo( client_general_information, SWT.READ_ONLY | SWT.SINGLE );
         usageCombo.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 ) );
         initUsageCombo();
 
         // SYNTAX Combo
-        toolkit.createLabel( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.Syntax")
);
+        toolkit
+            .createLabel( client_general_information, Messages.getString( "AttributeTypeEditorOverviewPage.Syntax"
) );
         syntaxCombo = new Combo( client_general_information, SWT.READ_ONLY | SWT.SINGLE );
         syntaxCombo.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 )
);
         syntaxComboViewer = new ComboViewer( syntaxCombo );
@@ -747,22 +757,26 @@
         syntaxComboViewer.setLabelProvider( new ATESyntaxComboLabelProvider() );
 
         // SYNTAX LENGTH Field
-        toolkit.createLabel( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.SyntaxLength")
);
+        toolkit.createLabel( client_general_information, Messages
+            .getString( "AttributeTypeEditorOverviewPage.SyntaxLength" ) );
         syntaxLengthText = toolkit.createText( client_general_information, "" ); //$NON-NLS-1$
         syntaxLengthText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2,
1 ) );
 
         // OBSOLETE Checkbox
         toolkit.createLabel( client_general_information, "" ); // Filling the first column
//$NON-NLS-1$
-        obsoleteCheckbox = toolkit.createButton( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.Obsolete"),
SWT.CHECK );
+        obsoleteCheckbox = toolkit.createButton( client_general_information, Messages
+            .getString( "AttributeTypeEditorOverviewPage.Obsolete" ), SWT.CHECK );
         obsoleteCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
 
         // SINGLE-VALUE Checkbox
-        singleValueCheckbox = toolkit.createButton( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.SingleValue"),
SWT.CHECK );
+        singleValueCheckbox = toolkit.createButton( client_general_information, Messages
+            .getString( "AttributeTypeEditorOverviewPage.SingleValue" ), SWT.CHECK );
         singleValueCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false
) );
 
         // COLLECTIVE Checkbox
         toolkit.createLabel( client_general_information, "" ); // Filling the first column
//$NON-NLS-1$
-        collectiveCheckbox = toolkit.createButton( client_general_information, Messages.getString("AttributeTypeEditorOverviewPage.Collective"),
SWT.CHECK );
+        collectiveCheckbox = toolkit.createButton( client_general_information, Messages
+            .getString( "AttributeTypeEditorOverviewPage.Collective" ), SWT.CHECK );
         collectiveCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false )
);
 
         // NO-USER-MODIFICATION Checkbox
@@ -785,8 +799,9 @@
         // Matching Rules Section
         Section section_matching_rules = toolkit.createSection( parent, Section.DESCRIPTION
| Section.EXPANDED
             | Section.TITLE_BAR );
-        section_matching_rules.setDescription( Messages.getString("AttributeTypeEditorOverviewPage.SpecifyMatchingRules")
);
-        section_matching_rules.setText( Messages.getString("AttributeTypeEditorOverviewPage.MatchingRules")
);
+        section_matching_rules.setDescription( Messages
+            .getString( "AttributeTypeEditorOverviewPage.SpecifyMatchingRules" ) );
+        section_matching_rules.setText( Messages.getString( "AttributeTypeEditorOverviewPage.MatchingRules"
) );
 
         // Creating the layout of the section
         Composite client_matching_rules = toolkit.createComposite( section_matching_rules
);
@@ -798,7 +813,7 @@
         section_matching_rules.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true
) );
 
         // EQUALITY Combo
-        toolkit.createLabel( client_matching_rules, Messages.getString("AttributeTypeEditorOverviewPage.Equality")
);
+        toolkit.createLabel( client_matching_rules, Messages.getString( "AttributeTypeEditorOverviewPage.Equality"
) );
         equalityCombo = new Combo( client_matching_rules, SWT.READ_ONLY | SWT.SINGLE );
         equalityCombo.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         equalityComboViewer = new ComboViewer( equalityCombo );
@@ -806,7 +821,7 @@
         equalityComboViewer.setLabelProvider( new ATEMatchingRulesComboLabelProvider() );
 
         // ORDERING Combo
-        toolkit.createLabel( client_matching_rules, Messages.getString("AttributeTypeEditorOverviewPage.Ordering")
);
+        toolkit.createLabel( client_matching_rules, Messages.getString( "AttributeTypeEditorOverviewPage.Ordering"
) );
         orderingCombo = new Combo( client_matching_rules, SWT.READ_ONLY | SWT.SINGLE );
         orderingCombo.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         orderingComboViewer = new ComboViewer( orderingCombo );
@@ -814,7 +829,7 @@
         orderingComboViewer.setLabelProvider( new ATEMatchingRulesComboLabelProvider() );
 
         // SUBSTRING Combo
-        toolkit.createLabel( client_matching_rules, Messages.getString("AttributeTypeEditorOverviewPage.Substring")
);
+        toolkit.createLabel( client_matching_rules, Messages.getString( "AttributeTypeEditorOverviewPage.Substring"
) );
         substringCombo = new Combo( client_matching_rules, SWT.READ_ONLY | SWT.SINGLE );
         substringCombo.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         substringComboViewer = new ComboViewer( substringCombo );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorSourceCodePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorSourceCodePage.java?rev=720836&r1=720835&r2=720836&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorSourceCodePage.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorSourceCodePage.java
Wed Nov 26 04:45:02 2008
@@ -106,7 +106,7 @@
      */
     public AttributeTypeEditorSourceCodePage( FormEditor editor )
     {
-        super( editor, ID, Messages.getString("AttributeTypeEditorSourceCodePage.SourceCode")
);
+        super( editor, ID, Messages.getString( "AttributeTypeEditorSourceCodePage.SourceCode"
) );
     }
 
 
@@ -147,7 +147,8 @@
         schemaSourceViewer.getTextWidget().addModifyListener( schemaSourceViewerListener
);
 
         // Help Context for Dynamic Help
-        PlatformUI.getWorkbench().getHelpSystem().setHelp( form, PluginConstants.PLUGIN_ID
+ "." + "attribute_type_editor" ); //$NON-NLS-1$ //$NON-NLS-2$
+        PlatformUI.getWorkbench().getHelpSystem().setHelp( form,
+            PluginConstants.PLUGIN_ID + "." + "attribute_type_editor" ); //$NON-NLS-1$ //$NON-NLS-2$
     }
 
 

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorUsedByPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorUsedByPage.java?rev=720836&r1=720835&r2=720836&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorUsedByPage.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorUsedByPage.java
Wed Nov 26 04:45:02 2008
@@ -210,7 +210,7 @@
      */
     public AttributeTypeEditorUsedByPage( FormEditor editor )
     {
-        super( editor, ID, Messages.getString("AttributeTypeEditorUsedByPage.UsedBy") );
+        super( editor, ID, Messages.getString( "AttributeTypeEditorUsedByPage.UsedBy" ) );
         schemaHandler = Activator.getDefault().getSchemaHandler();
         schemaHandler.addListener( schemaHandlerListener );
     }
@@ -244,7 +244,8 @@
         addListeners();
 
         // Help Context for Dynamic Help
-        PlatformUI.getWorkbench().getHelpSystem().setHelp( form, PluginConstants.PLUGIN_ID
+ "." + "attribute_type_editor" ); //$NON-NLS-1$ //$NON-NLS-2$
+        PlatformUI.getWorkbench().getHelpSystem().setHelp( form,
+            PluginConstants.PLUGIN_ID + "." + "attribute_type_editor" ); //$NON-NLS-1$ //$NON-NLS-2$
     }
 
 
@@ -264,13 +265,19 @@
         String names[] = modifiedAttributeType.getNamesRef();
         if ( ( names != null ) && ( names.length > 0 ) )
         {
-            mandatoryAttributeSection.setDescription( NLS.bind( Messages.getString("AttributeTypeEditorUsedByPage.AttributeTypeMandatory"),
new String[]{ ViewUtils.concateAliases( names )}) ); //$NON-NLS-1$
+            mandatoryAttributeSection
+                .setDescription( NLS
+                    .bind(
+                        Messages.getString( "AttributeTypeEditorUsedByPage.AttributeTypeMandatory"
), new String[] { ViewUtils.concateAliases( names ) } ) ); //$NON-NLS-1$
         }
         else
         {
-            mandatoryAttributeSection.setDescription( NLS.bind( Messages.getString("AttributeTypeEditorUsedByPage.AttributeTypeMandatory"),
new String[]{modifiedAttributeType.getOid()}) ); //$NON-NLS-1$
+            mandatoryAttributeSection
+                .setDescription( NLS
+                    .bind(
+                        Messages.getString( "AttributeTypeEditorUsedByPage.AttributeTypeMandatory"
), new String[] { modifiedAttributeType.getOid() } ) ); //$NON-NLS-1$
         }
-        mandatoryAttributeSection.setText( Messages.getString("AttributeTypeEditorUsedByPage.AsMandatoryAttribute")
);
+        mandatoryAttributeSection.setText( Messages.getString( "AttributeTypeEditorUsedByPage.AsMandatoryAttribute"
) );
 
         // Creating the layout of the section
         Composite mandatoryAttributeSectionClient = toolkit.createComposite( mandatoryAttributeSection
);
@@ -305,13 +312,19 @@
         String names[] = modifiedAttributeType.getNamesRef();
         if ( ( names != null ) && ( names.length > 0 ) )
         {
-            optionalAttributeSection.setDescription( NLS.bind( Messages.getString("AttributeTypeEditorUsedByPage.AttributeTypeOptional"),new
String[]{ViewUtils.concateAliases( names )}) ); //$NON-NLS-1$
+            optionalAttributeSection
+                .setDescription( NLS
+                    .bind(
+                        Messages.getString( "AttributeTypeEditorUsedByPage.AttributeTypeOptional"
), new String[] { ViewUtils.concateAliases( names ) } ) ); //$NON-NLS-1$
         }
         else
         {
-            optionalAttributeSection.setDescription( NLS.bind( Messages.getString("AttributeTypeEditorUsedByPage.AttributeTypeOptional"),
new String[]{modifiedAttributeType.getOid()}) ); //$NON-NLS-1$
+            optionalAttributeSection
+                .setDescription( NLS
+                    .bind(
+                        Messages.getString( "AttributeTypeEditorUsedByPage.AttributeTypeOptional"
), new String[] { modifiedAttributeType.getOid() } ) ); //$NON-NLS-1$
         }
-        optionalAttributeSection.setText( Messages.getString("AttributeTypeEditorUsedByPage.AsOptionalAttribute")
);
+        optionalAttributeSection.setText( Messages.getString( "AttributeTypeEditorUsedByPage.AsOptionalAttribute"
) );
 
         // Creating the layout of the section
         Composite optionalAttributeSectionClient = toolkit.createComposite( optionalAttributeSection
);



Mime
View raw message