Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 2750 invoked from network); 26 Nov 2008 13:44:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2008 13:44:46 -0000 Received: (qmail 78702 invoked by uid 500); 26 Nov 2008 13:44:57 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 78641 invoked by uid 500); 26 Nov 2008 13:44:57 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 78632 invoked by uid 99); 26 Nov 2008 13:44:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 05:44:57 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 13:43:38 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2617F23888A6; Wed, 26 Nov 2008 05:44:25 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r720849 - in /directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences: HierarchyViewPreferencePage.java PluginPreferencePage.java SchemaViewPreferencePage.java SearchViewPreferencePage.java Date: Wed, 26 Nov 2008 13:44:24 -0000 To: commits@directory.apache.org From: felixk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081126134425.2617F23888A6@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: felixk Date: Wed Nov 26 05:44:22 2008 New Revision: 720849 URL: http://svn.apache.org/viewvc?rev=720849&view=rev Log: Formatting Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/HierarchyViewPreferencePage.java directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/PluginPreferencePage.java directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/SchemaViewPreferencePage.java directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/SearchViewPreferencePage.java Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/HierarchyViewPreferencePage.java URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/HierarchyViewPreferencePage.java?rev=720849&r1=720848&r2=720849&view=diff ============================================================================== --- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/HierarchyViewPreferencePage.java (original) +++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/HierarchyViewPreferencePage.java Wed Nov 26 05:44:22 2008 @@ -71,7 +71,7 @@ { super(); super.setPreferenceStore( Activator.getDefault().getPreferenceStore() ); - super.setDescription( Messages.getString("HierarchyViewPreferencePage.GeneralSettings") ); //$NON-NLS-1$ + super.setDescription( Messages.getString( "HierarchyViewPreferencePage.GeneralSettings" ) ); //$NON-NLS-1$ } @@ -87,7 +87,7 @@ // Label Group Group labelGroup = new Group( composite, SWT.NONE ); labelGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); - labelGroup.setText( Messages.getString("HierarchyViewPreferencePage.Label") ); //$NON-NLS-1$ + labelGroup.setText( Messages.getString( "HierarchyViewPreferencePage.Label" ) ); //$NON-NLS-1$ labelGroup.setLayout( new GridLayout() ); Composite labelGroupComposite = new Composite( labelGroup, SWT.NONE ); GridLayout gl = new GridLayout( 1, false ); @@ -106,18 +106,20 @@ // Use Label Label useLabel = new Label( labelComposite, SWT.NONE ); - useLabel.setText( Messages.getString("HierarchyViewPreferencePage.Use") ); //$NON-NLS-1$ + useLabel.setText( Messages.getString( "HierarchyViewPreferencePage.Use" ) ); //$NON-NLS-1$ // Label Combo labelCombo = new Combo( labelComposite, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER ); labelCombo.setLayoutData( new GridData() ); - labelCombo.setItems( new String[] - { Messages.getString("HierarchyViewPreferencePage.FirstName"), Messages.getString("HierarchyViewPreferencePage.AllAliases"), Messages.getString("HierarchyViewPreferencePage.OID") } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + labelCombo + .setItems( new String[] + { + Messages.getString( "HierarchyViewPreferencePage.FirstName" ), Messages.getString( "HierarchyViewPreferencePage.AllAliases" ), Messages.getString( "HierarchyViewPreferencePage.OID" ) } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ labelCombo.setEnabled( true ); // As label Label Label asLabel = new Label( labelComposite, SWT.NONE ); - asLabel.setText( Messages.getString("HierarchyViewPreferencePage.AsLabel") ); //$NON-NLS-1$ + asLabel.setText( Messages.getString( "HierarchyViewPreferencePage.AsLabel" ) ); //$NON-NLS-1$ // Abbreviate row composite Composite abbreviateComposite = new Composite( labelGroupComposite, SWT.NONE ); @@ -130,7 +132,7 @@ // Limit label lenght to Label limitButton = new Button( abbreviateComposite, SWT.CHECK ); - limitButton.setText( Messages.getString("HierarchyViewPreferencePage.LimitLabel") ); //$NON-NLS-1$ + limitButton.setText( Messages.getString( "HierarchyViewPreferencePage.LimitLabel" ) ); //$NON-NLS-1$ gd = new GridData(); gd.horizontalSpan = 1; limitButton.setLayoutData( gd ); @@ -159,12 +161,12 @@ // Characters Label Label charactersLabel = new Label( abbreviateComposite, SWT.NONE ); - charactersLabel.setText( Messages.getString("HierarchyViewPreferencePage.Characters") ); //$NON-NLS-1$ + charactersLabel.setText( Messages.getString( "HierarchyViewPreferencePage.Characters" ) ); //$NON-NLS-1$ // Secondary Label Group Group secondaryLabelGroup = new Group( composite, SWT.NONE ); secondaryLabelGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); - secondaryLabelGroup.setText( Messages.getString("HierarchyViewPreferencePage.SecondaryLabel") ); //$NON-NLS-1$ + secondaryLabelGroup.setText( Messages.getString( "HierarchyViewPreferencePage.SecondaryLabel" ) ); //$NON-NLS-1$ secondaryLabelGroup.setLayout( new GridLayout() ); Composite secondaryLabelGroupComposite = new Composite( secondaryLabelGroup, SWT.NONE ); gl = new GridLayout( 1, false ); @@ -173,7 +175,7 @@ secondaryLabelGroupComposite.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); secondaryLabelButtonDisplay = new Button( secondaryLabelGroupComposite, SWT.CHECK ); - secondaryLabelButtonDisplay.setText( Messages.getString("HierarchyViewPreferencePage.DisplaySecondaryLabel") ); //$NON-NLS-1$ + secondaryLabelButtonDisplay.setText( Messages.getString( "HierarchyViewPreferencePage.DisplaySecondaryLabel" ) ); //$NON-NLS-1$ // Label row composite Composite secondaryLabelComposite = new Composite( secondaryLabelGroupComposite, SWT.NONE ); @@ -186,18 +188,20 @@ // Use Label Label useLabel2 = new Label( secondaryLabelComposite, SWT.NONE ); - useLabel2.setText( Messages.getString("HierarchyViewPreferencePage.Use") ); //$NON-NLS-1$ + useLabel2.setText( Messages.getString( "HierarchyViewPreferencePage.Use" ) ); //$NON-NLS-1$ // Label Combo secondaryLabelCombo = new Combo( secondaryLabelComposite, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER ); secondaryLabelCombo.setLayoutData( new GridData() ); - secondaryLabelCombo.setItems( new String[] - { Messages.getString("HierarchyViewPreferencePage.FirstName"), Messages.getString("HierarchyViewPreferencePage.AllAliases"), Messages.getString("HierarchyViewPreferencePage.OID") } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + secondaryLabelCombo + .setItems( new String[] + { + Messages.getString( "HierarchyViewPreferencePage.FirstName" ), Messages.getString( "HierarchyViewPreferencePage.AllAliases" ), Messages.getString( "HierarchyViewPreferencePage.OID" ) } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ secondaryLabelCombo.setEnabled( true ); // As label Label Label asLabel2 = new Label( secondaryLabelComposite, SWT.NONE ); - asLabel2.setText( Messages.getString("HierarchyViewPreferencePage.AsSecondaryLabel") ); //$NON-NLS-1$ + asLabel2.setText( Messages.getString( "HierarchyViewPreferencePage.AsSecondaryLabel" ) ); //$NON-NLS-1$ // Abbreviate row composite Composite abbreviateComposite2 = new Composite( secondaryLabelGroup, SWT.NONE ); @@ -210,7 +214,7 @@ // Limit label length to Label secondaryLabelLimitButton = new Button( abbreviateComposite2, SWT.CHECK ); - secondaryLabelLimitButton.setText( Messages.getString("HierarchyViewPreferencePage.LimitSecondaryLabel") ); //$NON-NLS-1$ + secondaryLabelLimitButton.setText( Messages.getString( "HierarchyViewPreferencePage.LimitSecondaryLabel" ) ); //$NON-NLS-1$ gd = new GridData(); gd.horizontalSpan = 1; secondaryLabelLimitButton.setLayoutData( gd ); @@ -239,7 +243,7 @@ // Characters Label Label secondaryLabelcharactersLabel = new Label( abbreviateComposite2, SWT.NONE ); - secondaryLabelcharactersLabel.setText( Messages.getString("HierarchyViewPreferencePage.Characters") ); //$NON-NLS-1$ + secondaryLabelcharactersLabel.setText( Messages.getString( "HierarchyViewPreferencePage.Characters" ) ); //$NON-NLS-1$ initFieldsFromPreferences(); @@ -371,17 +375,20 @@ { IPreferenceStore store = Activator.getDefault().getPreferenceStore(); - if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( Messages.getString("HierarchyViewPreferencePage.FirstName") ) ) //$NON-NLS-1$ + if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( + Messages.getString( "HierarchyViewPreferencePage.FirstName" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_LABEL, PluginConstants.PREFS_HIERARCHY_VIEW_LABEL_FIRST_NAME ); } - else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( Messages.getString("HierarchyViewPreferencePage.AllAliases") ) ) //$NON-NLS-1$ + else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( + Messages.getString( "HierarchyViewPreferencePage.AllAliases" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_LABEL, PluginConstants.PREFS_HIERARCHY_VIEW_LABEL_ALL_ALIASES ); } - else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( Messages.getString("HierarchyViewPreferencePage.OID") ) ) //$NON-NLS-1$ + else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( + Messages.getString( "HierarchyViewPreferencePage.OID" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_LABEL, PluginConstants.PREFS_HIERARCHY_VIEW_LABEL_OID ); } @@ -390,17 +397,20 @@ store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_SECONDARY_LABEL_DISPLAY, secondaryLabelButtonDisplay .getSelection() ); - if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( Messages.getString("HierarchyViewPreferencePage.FirstName") ) ) //$NON-NLS-1$ + if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( + Messages.getString( "HierarchyViewPreferencePage.FirstName" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_SECONDARY_LABEL, PluginConstants.PREFS_HIERARCHY_VIEW_LABEL_FIRST_NAME ); } - else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( Messages.getString("HierarchyViewPreferencePage.AllAliases") ) ) //$NON-NLS-1$ + else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( + Messages.getString( "HierarchyViewPreferencePage.AllAliases" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_SECONDARY_LABEL, PluginConstants.PREFS_HIERARCHY_VIEW_LABEL_ALL_ALIASES ); } - else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( Messages.getString("HierarchyViewPreferencePage.OID") ) ) //$NON-NLS-1$ + else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( + Messages.getString( "HierarchyViewPreferencePage.OID" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_HIERARCHY_VIEW_SECONDARY_LABEL, PluginConstants.PREFS_HIERARCHY_VIEW_LABEL_OID ); Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/PluginPreferencePage.java URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/PluginPreferencePage.java?rev=720849&r1=720848&r2=720849&view=diff ============================================================================== --- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/PluginPreferencePage.java (original) +++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/PluginPreferencePage.java Wed Nov 26 05:44:22 2008 @@ -63,7 +63,7 @@ { super(); setPreferenceStore( Activator.getDefault().getPreferenceStore() ); - setDescription( Messages.getString("PluginPreferencePage.GeneralSettings") ); //$NON-NLS-1$ + setDescription( Messages.getString( "PluginPreferencePage.GeneralSettings" ) ); //$NON-NLS-1$ } @@ -76,89 +76,89 @@ composite.setLayout( new GridLayout() ); composite.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) ); -// // SchemaConnectors Group -// Group schemaConnectorsGroup = new Group( composite, SWT.NONE ); -// schemaConnectorsGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); -// schemaConnectorsGroup.setLayout( new GridLayout( 2, true ) ); -// schemaConnectorsGroup.setText( "Schema Connectors" ); -// -// // Available Schema Connectors Label -// Label availableSchemaConnectorsLabel = new Label( schemaConnectorsGroup, SWT.NONE ); -// availableSchemaConnectorsLabel.setText( "Available Connectors:" ); -// -// // Description Label -// Label descriptionLabel = new Label( schemaConnectorsGroup, SWT.NONE ); -// descriptionLabel.setText( "Description:" ); -// // SchemaConnectors TableViewer -// final TableViewer schemaConnectorsTableViewer = new TableViewer( schemaConnectorsGroup, SWT.BORDER | SWT.SINGLE -// | SWT.FULL_SELECTION ); -// GridData gridData = new GridData( SWT.FILL, SWT.NONE, true, false ); -// gridData.heightHint = 125; -// schemaConnectorsTableViewer.getTable().setLayoutData( gridData ); -// schemaConnectorsTableViewer.setContentProvider( new ArrayContentProvider() ); -// schemaConnectorsTableViewer.setLabelProvider( new LabelProvider() -// { -// public String getText( Object element ) -// { -// return ( ( SchemaConnector ) element ).getName(); -// } -// -// -// public Image getImage( Object element ) -// { -// return Activator.getDefault().getImage( PluginConstants.IMG_SCHEMA_CONNECTOR ); -// } -// } ); -// -// schemaConnectorsTableViewer.setComparator( new ViewerComparator( new Comparator() -// { -// public int compare( String o1, String o2 ) -// { -// if ( ( o1 != null ) && ( o2 != null ) ) -// { -// return o1.compareToIgnoreCase( o2 ); -// } -// -// // Default -// return 0; -// } -// } ) ); -// -// // schemaConnectorsTableViewer.setComparator( new ViewerComparator( new Comparator() -// // { -// // public int compare( SchemaConnector o1, SchemaConnector o2 ) -// // { -// // String name1 = o1.getName(); -// // String name2 = o2.getName(); -// // -// // if ( ( name1 != null ) && ( name2 != null ) ) -// // { -// // return name1.compareToIgnoreCase( name2 ); -// // } -// // -// // // Default -// // return 0; -// // } -// // } ) ); -// schemaConnectorsTableViewer.setInput( PluginUtils.getSchemaConnectors() ); -// -// // Description Text -// final Text descriptionText = new Text( schemaConnectorsGroup, SWT.BORDER | SWT.MULTI | SWT.READ_ONLY ); -// descriptionText.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) ); -// -// schemaConnectorsTableViewer.addSelectionChangedListener( new ISelectionChangedListener() -// { -// public void selectionChanged( SelectionChangedEvent event ) -// { -// SchemaConnector schemaConnector = ( SchemaConnector ) ( ( StructuredSelection ) schemaConnectorsTableViewer -// .getSelection() ).getFirstElement(); -// -// if ( schemaConnector != null ) -// { -// descriptionText.setText( schemaConnector.getDescription() ); -// } -// } -// } ); + // // SchemaConnectors Group + // Group schemaConnectorsGroup = new Group( composite, SWT.NONE ); + // schemaConnectorsGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); + // schemaConnectorsGroup.setLayout( new GridLayout( 2, true ) ); + // schemaConnectorsGroup.setText( "Schema Connectors" ); + // + // // Available Schema Connectors Label + // Label availableSchemaConnectorsLabel = new Label( schemaConnectorsGroup, SWT.NONE ); + // availableSchemaConnectorsLabel.setText( "Available Connectors:" ); + // + // // Description Label + // Label descriptionLabel = new Label( schemaConnectorsGroup, SWT.NONE ); + // descriptionLabel.setText( "Description:" ); + // // SchemaConnectors TableViewer + // final TableViewer schemaConnectorsTableViewer = new TableViewer( schemaConnectorsGroup, SWT.BORDER | SWT.SINGLE + // | SWT.FULL_SELECTION ); + // GridData gridData = new GridData( SWT.FILL, SWT.NONE, true, false ); + // gridData.heightHint = 125; + // schemaConnectorsTableViewer.getTable().setLayoutData( gridData ); + // schemaConnectorsTableViewer.setContentProvider( new ArrayContentProvider() ); + // schemaConnectorsTableViewer.setLabelProvider( new LabelProvider() + // { + // public String getText( Object element ) + // { + // return ( ( SchemaConnector ) element ).getName(); + // } + // + // + // public Image getImage( Object element ) + // { + // return Activator.getDefault().getImage( PluginConstants.IMG_SCHEMA_CONNECTOR ); + // } + // } ); + // + // schemaConnectorsTableViewer.setComparator( new ViewerComparator( new Comparator() + // { + // public int compare( String o1, String o2 ) + // { + // if ( ( o1 != null ) && ( o2 != null ) ) + // { + // return o1.compareToIgnoreCase( o2 ); + // } + // + // // Default + // return 0; + // } + // } ) ); + // + // // schemaConnectorsTableViewer.setComparator( new ViewerComparator( new Comparator() + // // { + // // public int compare( SchemaConnector o1, SchemaConnector o2 ) + // // { + // // String name1 = o1.getName(); + // // String name2 = o2.getName(); + // // + // // if ( ( name1 != null ) && ( name2 != null ) ) + // // { + // // return name1.compareToIgnoreCase( name2 ); + // // } + // // + // // // Default + // // return 0; + // // } + // // } ) ); + // schemaConnectorsTableViewer.setInput( PluginUtils.getSchemaConnectors() ); + // + // // Description Text + // final Text descriptionText = new Text( schemaConnectorsGroup, SWT.BORDER | SWT.MULTI | SWT.READ_ONLY ); + // descriptionText.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) ); + // + // schemaConnectorsTableViewer.addSelectionChangedListener( new ISelectionChangedListener() + // { + // public void selectionChanged( SelectionChangedEvent event ) + // { + // SchemaConnector schemaConnector = ( SchemaConnector ) ( ( StructuredSelection ) schemaConnectorsTableViewer + // .getSelection() ).getFirstElement(); + // + // if ( schemaConnector != null ) + // { + // descriptionText.setText( schemaConnector.getDescription() ); + // } + // } + // } ); return parent; } Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/SchemaViewPreferencePage.java URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/SchemaViewPreferencePage.java?rev=720849&r1=720848&r2=720849&view=diff ============================================================================== --- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/SchemaViewPreferencePage.java (original) +++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/SchemaViewPreferencePage.java Wed Nov 26 05:44:22 2008 @@ -71,7 +71,7 @@ { super(); setPreferenceStore( Activator.getDefault().getPreferenceStore() ); - setDescription( Messages.getString("SchemaViewPreferencePage.GeneralSettings") ); //$NON-NLS-1$ + setDescription( Messages.getString( "SchemaViewPreferencePage.GeneralSettings" ) ); //$NON-NLS-1$ } @@ -87,7 +87,7 @@ // Label Group Group labelGroup = new Group( composite, SWT.NONE ); labelGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); - labelGroup.setText( Messages.getString("SchemaViewPreferencePage.Label") ); //$NON-NLS-1$ + labelGroup.setText( Messages.getString( "SchemaViewPreferencePage.Label" ) ); //$NON-NLS-1$ labelGroup.setLayout( new GridLayout() ); Composite labelGroupComposite = new Composite( labelGroup, SWT.NONE ); GridLayout gl = new GridLayout( 1, false ); @@ -106,18 +106,20 @@ // Use Label Label useLabel = new Label( labelComposite, SWT.NONE ); - useLabel.setText( Messages.getString("SchemaViewPreferencePage.Use") ); //$NON-NLS-1$ + useLabel.setText( Messages.getString( "SchemaViewPreferencePage.Use" ) ); //$NON-NLS-1$ // Label Combo labelCombo = new Combo( labelComposite, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER ); labelCombo.setLayoutData( new GridData() ); - labelCombo.setItems( new String[] - { Messages.getString("SchemaViewPreferencePage.FirstName"), Messages.getString("SchemaViewPreferencePage.AllAliases"), Messages.getString("SchemaViewPreferencePage.OID") } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + labelCombo + .setItems( new String[] + { + Messages.getString( "SchemaViewPreferencePage.FirstName" ), Messages.getString( "SchemaViewPreferencePage.AllAliases" ), Messages.getString( "SchemaViewPreferencePage.OID" ) } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ labelCombo.setEnabled( true ); // As label Label Label asLabel = new Label( labelComposite, SWT.NONE ); - asLabel.setText( Messages.getString("SchemaViewPreferencePage.AsLabel") ); //$NON-NLS-1$ + asLabel.setText( Messages.getString( "SchemaViewPreferencePage.AsLabel" ) ); //$NON-NLS-1$ // Abbreviate row composite Composite abbreviateComposite = new Composite( labelGroupComposite, SWT.NONE ); @@ -130,7 +132,7 @@ // Limit label lenght to Label limitButton = new Button( abbreviateComposite, SWT.CHECK ); - limitButton.setText( Messages.getString("SchemaViewPreferencePage.LimitLabel") ); //$NON-NLS-1$ + limitButton.setText( Messages.getString( "SchemaViewPreferencePage.LimitLabel" ) ); //$NON-NLS-1$ gd = new GridData(); gd.horizontalSpan = 1; limitButton.setLayoutData( gd ); @@ -159,12 +161,12 @@ // Characters Label Label charactersLabel = new Label( abbreviateComposite, SWT.NONE ); - charactersLabel.setText( Messages.getString("SchemaViewPreferencePage.Characters") ); //$NON-NLS-1$ + charactersLabel.setText( Messages.getString( "SchemaViewPreferencePage.Characters" ) ); //$NON-NLS-1$ // Secondary Label Group Group secondaryLabelGroup = new Group( composite, SWT.NONE ); secondaryLabelGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); - secondaryLabelGroup.setText( Messages.getString("SchemaViewPreferencePage.SecondaryLabel") ); //$NON-NLS-1$ + secondaryLabelGroup.setText( Messages.getString( "SchemaViewPreferencePage.SecondaryLabel" ) ); //$NON-NLS-1$ secondaryLabelGroup.setLayout( new GridLayout() ); Composite secondaryLabelGroupComposite = new Composite( secondaryLabelGroup, SWT.NONE ); gl = new GridLayout( 1, false ); @@ -173,7 +175,7 @@ secondaryLabelGroupComposite.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); secondaryLabelButtonDisplay = new Button( secondaryLabelGroupComposite, SWT.CHECK ); - secondaryLabelButtonDisplay.setText( Messages.getString("SchemaViewPreferencePage.DisplaySecondaryLabel") ); //$NON-NLS-1$ + secondaryLabelButtonDisplay.setText( Messages.getString( "SchemaViewPreferencePage.DisplaySecondaryLabel" ) ); //$NON-NLS-1$ // Label row composite Composite secondaryLabelComposite = new Composite( secondaryLabelGroupComposite, SWT.NONE ); @@ -186,18 +188,20 @@ // Use Label Label useLabel2 = new Label( secondaryLabelComposite, SWT.NONE ); - useLabel2.setText( Messages.getString("SchemaViewPreferencePage.Use") ); //$NON-NLS-1$ + useLabel2.setText( Messages.getString( "SchemaViewPreferencePage.Use" ) ); //$NON-NLS-1$ // Label Combo secondaryLabelCombo = new Combo( secondaryLabelComposite, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER ); secondaryLabelCombo.setLayoutData( new GridData() ); - secondaryLabelCombo.setItems( new String[] - { Messages.getString("SchemaViewPreferencePage.FirstName"), Messages.getString("SchemaViewPreferencePage.AllAliases"), Messages.getString("SchemaViewPreferencePage.OID") } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + secondaryLabelCombo + .setItems( new String[] + { + Messages.getString( "SchemaViewPreferencePage.FirstName" ), Messages.getString( "SchemaViewPreferencePage.AllAliases" ), Messages.getString( "SchemaViewPreferencePage.OID" ) } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ secondaryLabelCombo.setEnabled( true ); // As label Label Label asLabel2 = new Label( secondaryLabelComposite, SWT.NONE ); - asLabel2.setText( Messages.getString("SchemaViewPreferencePage.AsSecondaryLabel") ); //$NON-NLS-1$ + asLabel2.setText( Messages.getString( "SchemaViewPreferencePage.AsSecondaryLabel" ) ); //$NON-NLS-1$ // Abbreviate row composite Composite abbreviateComposite2 = new Composite( secondaryLabelGroup, SWT.NONE ); @@ -210,7 +214,7 @@ // Limit label lenght to Label secondaryLabelLimitButton = new Button( abbreviateComposite2, SWT.CHECK ); - secondaryLabelLimitButton.setText( Messages.getString("SchemaViewPreferencePage.LimitSecondaryLabel") ); //$NON-NLS-1$ + secondaryLabelLimitButton.setText( Messages.getString( "SchemaViewPreferencePage.LimitSecondaryLabel" ) ); //$NON-NLS-1$ gd = new GridData(); gd.horizontalSpan = 1; secondaryLabelLimitButton.setLayoutData( gd ); @@ -240,7 +244,7 @@ // Schema Label Group Group schemaLabelGroup = new Group( composite, SWT.NONE ); schemaLabelGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); - schemaLabelGroup.setText( Messages.getString("SchemaViewPreferencePage.SchemaLabel") ); //$NON-NLS-1$ + schemaLabelGroup.setText( Messages.getString( "SchemaViewPreferencePage.SchemaLabel" ) ); //$NON-NLS-1$ schemaLabelGroup.setLayout( new GridLayout() ); Composite schemaLabelGroupComposite = new Composite( schemaLabelGroup, SWT.NONE ); gl = new GridLayout( 1, false ); @@ -249,11 +253,11 @@ schemaLabelGroupComposite.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); schemaLabelButtonDisplay = new Button( schemaLabelGroupComposite, SWT.CHECK ); - schemaLabelButtonDisplay.setText( Messages.getString("SchemaViewPreferencePage.DisplaySchemaLabel") ); //$NON-NLS-1$ + schemaLabelButtonDisplay.setText( Messages.getString( "SchemaViewPreferencePage.DisplaySchemaLabel" ) ); //$NON-NLS-1$ // Characters Label Label secondaryLabelcharactersLabel = new Label( abbreviateComposite2, SWT.NONE ); - secondaryLabelcharactersLabel.setText( Messages.getString("SchemaViewPreferencePage.Characters") ); //$NON-NLS-1$ + secondaryLabelcharactersLabel.setText( Messages.getString( "SchemaViewPreferencePage.Characters" ) ); //$NON-NLS-1$ initFieldsFromPreferences(); @@ -391,17 +395,20 @@ { IPreferenceStore store = Activator.getDefault().getPreferenceStore(); - if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( Messages.getString("SchemaViewPreferencePage.FirstName") ) ) //$NON-NLS-1$ + if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( + Messages.getString( "SchemaViewPreferencePage.FirstName" ) ) ) //$NON-NLS-1$ { store .setValue( PluginConstants.PREFS_SCHEMA_VIEW_LABEL, PluginConstants.PREFS_SCHEMA_VIEW_LABEL_FIRST_NAME ); } - else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( Messages.getString("SchemaViewPreferencePage.AllAliases") ) ) //$NON-NLS-1$ + else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( + Messages.getString( "SchemaViewPreferencePage.AllAliases" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_SCHEMA_VIEW_LABEL, PluginConstants.PREFS_SCHEMA_VIEW_LABEL_ALL_ALIASES ); } - else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( Messages.getString("SchemaViewPreferencePage.OID") ) ) //$NON-NLS-1$ + else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( + Messages.getString( "SchemaViewPreferencePage.OID" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_SCHEMA_VIEW_LABEL, PluginConstants.PREFS_SCHEMA_VIEW_LABEL_OID ); } @@ -410,17 +417,20 @@ store.setValue( PluginConstants.PREFS_SCHEMA_VIEW_SECONDARY_LABEL_DISPLAY, secondaryLabelButtonDisplay .getSelection() ); - if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( Messages.getString("SchemaViewPreferencePage.FirstName") ) ) //$NON-NLS-1$ + if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( + Messages.getString( "SchemaViewPreferencePage.FirstName" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_SCHEMA_VIEW_SECONDARY_LABEL, PluginConstants.PREFS_SCHEMA_VIEW_LABEL_FIRST_NAME ); } - else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( Messages.getString("SchemaViewPreferencePage.AllAliases") ) ) //$NON-NLS-1$ + else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( + Messages.getString( "SchemaViewPreferencePage.AllAliases" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_SCHEMA_VIEW_SECONDARY_LABEL, PluginConstants.PREFS_SCHEMA_VIEW_LABEL_ALL_ALIASES ); } - else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( Messages.getString("SchemaViewPreferencePage.OID") ) ) //$NON-NLS-1$ + else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( + Messages.getString( "SchemaViewPreferencePage.OID" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_SCHEMA_VIEW_SECONDARY_LABEL, PluginConstants.PREFS_SCHEMA_VIEW_LABEL_OID ); Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/SearchViewPreferencePage.java URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/SearchViewPreferencePage.java?rev=720849&r1=720848&r2=720849&view=diff ============================================================================== --- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/SearchViewPreferencePage.java (original) +++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/preferences/SearchViewPreferencePage.java Wed Nov 26 05:44:22 2008 @@ -71,7 +71,7 @@ { super(); setPreferenceStore( Activator.getDefault().getPreferenceStore() ); - setDescription( Messages.getString("SearchViewPreferencePage.GeneralSettings") ); //$NON-NLS-1$ + setDescription( Messages.getString( "SearchViewPreferencePage.GeneralSettings" ) ); //$NON-NLS-1$ } @@ -87,7 +87,7 @@ // Label Group Group labelGroup = new Group( composite, SWT.NONE ); labelGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); - labelGroup.setText( Messages.getString("SearchViewPreferencePage.Label") ); //$NON-NLS-1$ + labelGroup.setText( Messages.getString( "SearchViewPreferencePage.Label" ) ); //$NON-NLS-1$ labelGroup.setLayout( new GridLayout() ); Composite labelGroupComposite = new Composite( labelGroup, SWT.NONE ); GridLayout gl = new GridLayout( 1, false ); @@ -106,18 +106,20 @@ // Use Label Label useLabel = new Label( labelComposite, SWT.NONE ); - useLabel.setText( Messages.getString("SearchViewPreferencePage.Use") ); //$NON-NLS-1$ + useLabel.setText( Messages.getString( "SearchViewPreferencePage.Use" ) ); //$NON-NLS-1$ // Label Combo labelCombo = new Combo( labelComposite, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER ); labelCombo.setLayoutData( new GridData() ); - labelCombo.setItems( new String[] - { Messages.getString("SearchViewPreferencePage.FirstName"), Messages.getString("SearchViewPreferencePage.AllAliases"), Messages.getString("SearchViewPreferencePage.OID") } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + labelCombo + .setItems( new String[] + { + Messages.getString( "SearchViewPreferencePage.FirstName" ), Messages.getString( "SearchViewPreferencePage.AllAliases" ), Messages.getString( "SearchViewPreferencePage.OID" ) } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ labelCombo.setEnabled( true ); // As label Label Label asLabel = new Label( labelComposite, SWT.NONE ); - asLabel.setText( Messages.getString("SearchViewPreferencePage.AsLabel") ); //$NON-NLS-1$ + asLabel.setText( Messages.getString( "SearchViewPreferencePage.AsLabel" ) ); //$NON-NLS-1$ // Abbreviate row composite Composite abbreviateComposite = new Composite( labelGroupComposite, SWT.NONE ); @@ -130,7 +132,7 @@ // Limit label lenght to Label limitButton = new Button( abbreviateComposite, SWT.CHECK ); - limitButton.setText( Messages.getString("SearchViewPreferencePage.LimitLength") ); //$NON-NLS-1$ + limitButton.setText( Messages.getString( "SearchViewPreferencePage.LimitLength" ) ); //$NON-NLS-1$ gd = new GridData(); gd.horizontalSpan = 1; limitButton.setLayoutData( gd ); @@ -159,12 +161,12 @@ // Characters Label Label charactersLabel = new Label( abbreviateComposite, SWT.NONE ); - charactersLabel.setText( Messages.getString("SearchViewPreferencePage.Characters") ); //$NON-NLS-1$ + charactersLabel.setText( Messages.getString( "SearchViewPreferencePage.Characters" ) ); //$NON-NLS-1$ // Secondary Label Group Group secondaryLabelGroup = new Group( composite, SWT.NONE ); secondaryLabelGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); - secondaryLabelGroup.setText( Messages.getString("SearchViewPreferencePage.SecondaryLabel") ); //$NON-NLS-1$ + secondaryLabelGroup.setText( Messages.getString( "SearchViewPreferencePage.SecondaryLabel" ) ); //$NON-NLS-1$ secondaryLabelGroup.setLayout( new GridLayout() ); Composite secondaryLabelGroupComposite = new Composite( secondaryLabelGroup, SWT.NONE ); gl = new GridLayout( 1, false ); @@ -173,7 +175,7 @@ secondaryLabelGroupComposite.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); secondaryLabelButtonDisplay = new Button( secondaryLabelGroupComposite, SWT.CHECK ); - secondaryLabelButtonDisplay.setText( Messages.getString("SearchViewPreferencePage.DisplaySecondaryLabel") ); //$NON-NLS-1$ + secondaryLabelButtonDisplay.setText( Messages.getString( "SearchViewPreferencePage.DisplaySecondaryLabel" ) ); //$NON-NLS-1$ // Label row composite Composite secondaryLabelComposite = new Composite( secondaryLabelGroupComposite, SWT.NONE ); @@ -186,18 +188,20 @@ // Use Label Label useLabel2 = new Label( secondaryLabelComposite, SWT.NONE ); - useLabel2.setText( Messages.getString("SearchViewPreferencePage.Use") ); //$NON-NLS-1$ + useLabel2.setText( Messages.getString( "SearchViewPreferencePage.Use" ) ); //$NON-NLS-1$ // Label Combo secondaryLabelCombo = new Combo( secondaryLabelComposite, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER ); secondaryLabelCombo.setLayoutData( new GridData() ); - secondaryLabelCombo.setItems( new String[] - { Messages.getString("SearchViewPreferencePage.FirstName"), Messages.getString("SearchViewPreferencePage.AllAliases"), Messages.getString("SearchViewPreferencePage.OID") } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + secondaryLabelCombo + .setItems( new String[] + { + Messages.getString( "SearchViewPreferencePage.FirstName" ), Messages.getString( "SearchViewPreferencePage.AllAliases" ), Messages.getString( "SearchViewPreferencePage.OID" ) } ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ secondaryLabelCombo.setEnabled( true ); // As label Label Label asLabel2 = new Label( secondaryLabelComposite, SWT.NONE ); - asLabel2.setText( Messages.getString("SearchViewPreferencePage.AsSecondaryLabel") ); //$NON-NLS-1$ + asLabel2.setText( Messages.getString( "SearchViewPreferencePage.AsSecondaryLabel" ) ); //$NON-NLS-1$ // Abbreviate row composite Composite abbreviateComposite2 = new Composite( secondaryLabelGroup, SWT.NONE ); @@ -210,7 +214,7 @@ // Limit label lenght to Label secondaryLabelLimitButton = new Button( abbreviateComposite2, SWT.CHECK ); - secondaryLabelLimitButton.setText( Messages.getString("SearchViewPreferencePage.LimitSecondaryLabel") ); //$NON-NLS-1$ + secondaryLabelLimitButton.setText( Messages.getString( "SearchViewPreferencePage.LimitSecondaryLabel" ) ); //$NON-NLS-1$ gd = new GridData(); gd.horizontalSpan = 1; secondaryLabelLimitButton.setLayoutData( gd ); @@ -239,12 +243,12 @@ // Characters Label Label secondaryLabelcharactersLabel = new Label( abbreviateComposite2, SWT.NONE ); - secondaryLabelcharactersLabel.setText( Messages.getString("SearchViewPreferencePage.Characters") ); //$NON-NLS-1$ + secondaryLabelcharactersLabel.setText( Messages.getString( "SearchViewPreferencePage.Characters" ) ); //$NON-NLS-1$ // Schema Label Group Group schemaLabelGroup = new Group( composite, SWT.NONE ); schemaLabelGroup.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); - schemaLabelGroup.setText( Messages.getString("SearchViewPreferencePage.SchemaLabel") ); //$NON-NLS-1$ + schemaLabelGroup.setText( Messages.getString( "SearchViewPreferencePage.SchemaLabel" ) ); //$NON-NLS-1$ schemaLabelGroup.setLayout( new GridLayout() ); Composite schemaLabelGroupComposite = new Composite( schemaLabelGroup, SWT.NONE ); gl = new GridLayout( 1, false ); @@ -253,7 +257,7 @@ schemaLabelGroupComposite.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); schemaLabelButtonDisplay = new Button( schemaLabelGroupComposite, SWT.CHECK ); - schemaLabelButtonDisplay.setText( Messages.getString("SearchViewPreferencePage.DisplaySchemaLabel") ); //$NON-NLS-1$ + schemaLabelButtonDisplay.setText( Messages.getString( "SearchViewPreferencePage.DisplaySchemaLabel" ) ); //$NON-NLS-1$ initFieldsFromPreferences(); @@ -391,17 +395,20 @@ { IPreferenceStore store = Activator.getDefault().getPreferenceStore(); - if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( Messages.getString("SearchViewPreferencePage.FirstName") ) ) //$NON-NLS-1$ + if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( + Messages.getString( "SearchViewPreferencePage.FirstName" ) ) ) //$NON-NLS-1$ { store .setValue( PluginConstants.PREFS_SEARCH_VIEW_LABEL, PluginConstants.PREFS_SEARCH_VIEW_LABEL_FIRST_NAME ); } - else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( Messages.getString("SearchViewPreferencePage.AllAliases") ) ) //$NON-NLS-1$ + else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( + Messages.getString( "SearchViewPreferencePage.AllAliases" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_SEARCH_VIEW_LABEL, PluginConstants.PREFS_SEARCH_VIEW_LABEL_ALL_ALIASES ); } - else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( Messages.getString("SearchViewPreferencePage.OID") ) ) //$NON-NLS-1$ + else if ( labelCombo.getItem( labelCombo.getSelectionIndex() ).equals( + Messages.getString( "SearchViewPreferencePage.OID" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_SEARCH_VIEW_LABEL, PluginConstants.PREFS_SEARCH_VIEW_LABEL_OID ); } @@ -410,17 +417,20 @@ store.setValue( PluginConstants.PREFS_SEARCH_VIEW_SECONDARY_LABEL_DISPLAY, secondaryLabelButtonDisplay .getSelection() ); - if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( Messages.getString("SearchViewPreferencePage.FirstName") ) ) //$NON-NLS-1$ + if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( + Messages.getString( "SearchViewPreferencePage.FirstName" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_SEARCH_VIEW_SECONDARY_LABEL, PluginConstants.PREFS_SEARCH_VIEW_LABEL_FIRST_NAME ); } - else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( Messages.getString("SearchViewPreferencePage.AllAliases") ) ) //$NON-NLS-1$ + else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( + Messages.getString( "SearchViewPreferencePage.AllAliases" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_SEARCH_VIEW_SECONDARY_LABEL, PluginConstants.PREFS_SEARCH_VIEW_LABEL_ALL_ALIASES ); } - else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( Messages.getString("SearchViewPreferencePage.OID") ) ) //$NON-NLS-1$ + else if ( secondaryLabelCombo.getItem( secondaryLabelCombo.getSelectionIndex() ).equals( + Messages.getString( "SearchViewPreferencePage.OID" ) ) ) //$NON-NLS-1$ { store.setValue( PluginConstants.PREFS_SEARCH_VIEW_SECONDARY_LABEL, PluginConstants.PREFS_SEARCH_VIEW_LABEL_OID );