[jboss-cvs] jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/preferencepages ...

Robert Stryker rawblem at gmail.com
Wed Sep 20 17:03:42 EDT 2006


  User: rawb    
  Date: 06/09/20 17:03:42

  Modified:    as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/preferencepages  
                        ViewPreferencePage.java
                        JBossServersPreferencePage.java
  Log:
  NLS moved messages
  
  Revision  Changes    Path
  1.4       +6 -12     jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/preferencepages/ViewPreferencePage.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ViewPreferencePage.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/preferencepages/ViewPreferencePage.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- ViewPreferencePage.java	12 Aug 2006 01:02:06 -0000	1.3
  +++ ViewPreferencePage.java	20 Sep 2006 21:03:42 -0000	1.4
  @@ -49,8 +49,8 @@
   import org.eclipse.ui.IWorkbench;
   import org.eclipse.ui.IWorkbenchPreferencePage;
   import org.eclipse.ui.part.PageBook;
  -import org.jboss.ide.eclipse.as.core.util.ASDebug;
   import org.jboss.ide.eclipse.as.ui.JBossServerUIPlugin;
  +import org.jboss.ide.eclipse.as.ui.Messages;
   import org.jboss.ide.eclipse.as.ui.JBossServerUIPlugin.ServerViewProvider;
   import org.jboss.ide.eclipse.as.ui.views.JBossServerView;
   
  @@ -176,13 +176,13 @@
   		        table.setHeaderVisible(true);
   		        table.setLinesVisible(false);
   		        TableColumn column0 = new TableColumn(table, SWT.NONE);
  -		        column0.setText("Name");
  +		        column0.setText(Messages.ViewPreferencePageName);
   		        TableColumn column1 = new TableColumn(table, SWT.NONE);
  -		        column1.setText("Enabled");
  +		        column1.setText(Messages.ViewPreferencePageEnabled);
   		        TableColumn column2 = new TableColumn(table, SWT.NONE);
  -		        column2.setText("Weight");
  +		        column2.setText(Messages.ViewPreferencePageWeight);
   		        TableColumn column3 = new TableColumn(table, SWT.NONE);
  -		        column3.setText("Description");
  +		        column3.setText(Messages.ViewPreferencePageDescription);
   		        
   		        providers = JBossServerUIPlugin.getDefault().getAllServerViewProviders();
   		        int minWidth = 0;
  @@ -307,7 +307,7 @@
   			
   			setLayout(new FormLayout());
   			Button enabled = new Button(this, SWT.CHECK);
  -			enabled.setText("Enabled");
  +			enabled.setText(Messages.ViewPreferencePageEnabled);
   			enabled.setSelection(provider.isEnabled());
   			
   			
  @@ -316,13 +316,7 @@
   		
   	}
   	
  -	
  -	
   	public void init(IWorkbench workbench) {
   	}
   	
  -	
  -	
  -	
  -
   }
  
  
  
  1.4       +7 -7      jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/preferencepages/JBossServersPreferencePage.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: JBossServersPreferencePage.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/preferencepages/JBossServersPreferencePage.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- JBossServersPreferencePage.java	9 Aug 2006 19:27:07 -0000	1.3
  +++ JBossServersPreferencePage.java	20 Sep 2006 21:03:42 -0000	1.4
  @@ -27,7 +27,6 @@
   
   import org.eclipse.core.runtime.CoreException;
   import org.eclipse.core.runtime.NullProgressMonitor;
  -import org.eclipse.jface.action.Action;
   import org.eclipse.jface.preference.PreferencePage;
   import org.eclipse.jface.resource.ImageDescriptor;
   import org.eclipse.jface.viewers.ILabelProviderListener;
  @@ -63,6 +62,7 @@
   import org.jboss.ide.eclipse.as.core.JBossServerCore;
   import org.jboss.ide.eclipse.as.core.server.JBossServer;
   import org.jboss.ide.eclipse.as.core.server.ServerAttributeHelper;
  +import org.jboss.ide.eclipse.as.ui.Messages;
   
   
   public class JBossServersPreferencePage extends PreferencePage implements
  @@ -175,7 +175,7 @@
   
   	protected void createTimeoutGroup(Composite main) {
   		timeoutGroup = new Group(main, SWT.NONE);
  -		timeoutGroup.setText("Server Timeouts");
  +		timeoutGroup.setText(Messages.PreferencePageServerTimeouts);
   		FormData groupData = new FormData();
   		groupData.right = new FormAttachment(100, -5);
   		groupData.left = new FormAttachment(pageColumn+2, 0);
  @@ -197,14 +197,14 @@
   		startTD.left = new FormAttachment(0,5);
   		startTD.top = new FormAttachment(0,5);
   		startTimeoutLabel.setLayoutData(startTD);
  -		startTimeoutLabel.setText("Start Timeout");
  +		startTimeoutLabel.setText(Messages.PreferencePageStartTimeouts);
   		
   		
   		FormData stopTD = new FormData();
   		stopTD.left = new FormAttachment(0,5);
   		stopTD.top = new FormAttachment(startSpinner,4);
   		stopTimeoutLabel.setLayoutData(stopTD);
  -		stopTimeoutLabel.setText("Stop Timeout");
  +		stopTimeoutLabel.setText(Messages.PreferencePageStopTimeouts);
   		
   		timeoutGroup.layout();
   		int startWidth = startTimeoutLabel.getSize().x;
  @@ -252,9 +252,9 @@
   		b2D.top = new FormAttachment(abortOnTimeout,5);
   		ignoreOnTimeout.setLayoutData(b2D);
   		
  -		uponTimeoutLabel.setText("Upon Timeout: ");
  -		abortOnTimeout.setText("Abort Server Start");
  -		ignoreOnTimeout.setText("Set Server State to \"Started\"");
  +		uponTimeoutLabel.setText(Messages.PreferencePageUponTimeout);
  +		abortOnTimeout.setText(Messages.PreferencePageUponTimeoutAbort);
  +		ignoreOnTimeout.setText(Messages.PreferencePageUponTimeoutIgnore);
   
   		
   	}
  
  
  



More information about the jboss-cvs-commits mailing list