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

Robert Stryker rawblem at gmail.com
Mon Nov 13 23:48:19 EST 2006


  User: rawb    
  Date: 06/11/13 23:48:19

  Modified:    as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards  
                        AbstractJBossRuntimeWizardFragment.java
                        AbstractJBossServerWizardFragment.java
  Log:
  Added some explanations to new runtime and wizard wizard fragments. 
  
  Revision  Changes    Path
  1.6       +16 -4     jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/AbstractJBossRuntimeWizardFragment.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AbstractJBossRuntimeWizardFragment.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/AbstractJBossRuntimeWizardFragment.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- AbstractJBossRuntimeWizardFragment.java	13 Nov 2006 19:43:29 -0000	1.5
  +++ AbstractJBossRuntimeWizardFragment.java	14 Nov 2006 04:48:19 -0000	1.6
  @@ -79,7 +79,7 @@
   	private final static int SEVERITY_MAJOR = 2;
   	
   	private IWizardHandle handle;
  -	private Label nameLabel, homeDirLabel, installedJRELabel, configLabel; 
  +	private Label nameLabel, homeDirLabel, installedJRELabel, configLabel, explanationLabel; 
   	private Text nameText, homeDirText;
   	private Combo jreCombo;
   	private Button homeDirButton, jreButton;
  @@ -106,6 +106,7 @@
   		main.setLayout(new FormLayout());
   		
   		updateJREs();
  +		createExplanation(main);
   		createNameComposite(main);
   		createHomeComposite(main);
   		createJREComposite(main);
  @@ -163,7 +164,7 @@
   	
   	private void setWidgetDefaults() {
   		nameText.setText(generateNewRuntimeName());
  -		homeDirText.setText("");
  +		homeDirText.setText("c:/program files/jboss-4.0.5.ga");
   	}
   	private String generateNewRuntimeName() {
   		String base = "JBoss-runtime";
  @@ -202,6 +203,17 @@
   		return true;
   	}
   	
  +	private void createExplanation(Composite main) {
  +		explanationLabel = new Label(main, SWT.WRAP);
  +		FormData data = new FormData();
  +		data.top = new FormAttachment(0,5);
  +		data.left = new FormAttachment(0,5);
  +		data.right = new FormAttachment(100,-5);
  +		explanationLabel.setLayoutData(data);
  +		
  +		explanationLabel.setText(Messages.runtimeWizardFragmentExplanation);
  +	}
  +	
   	private void createNameComposite(Composite main) {
   		// Create our name composite
   		nameComposite = new Composite(main, SWT.NONE);
  @@ -209,7 +221,7 @@
   		FormData cData = new FormData();
   		cData.left = new FormAttachment(0,5);
   		cData.right = new FormAttachment(100,-5);
  -		cData.top = new FormAttachment(0, 10);
  +		cData.top = new FormAttachment(explanationLabel, 10);
   		nameComposite.setLayoutData(cData);
   		
   		nameComposite.setLayout(new FormLayout());
  
  
  
  1.6       +14 -3     jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/AbstractJBossServerWizardFragment.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AbstractJBossServerWizardFragment.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/AbstractJBossServerWizardFragment.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- AbstractJBossServerWizardFragment.java	13 Nov 2006 19:43:29 -0000	1.5
  +++ AbstractJBossServerWizardFragment.java	14 Nov 2006 04:48:19 -0000	1.6
  @@ -71,7 +71,7 @@
   	private final static int SEVERITY_MAJOR = 2;
   	
   	private IWizardHandle handle;
  -	private Label nameLabel, homeDirLabel, installedJRELabel, configLabel;// configLabel; 
  +	private Label nameLabel, homeDirLabel, installedJRELabel, configLabel, explanationLabel; 
   	private Text nameText, homeDirText, configText;
   	private Combo jreCombo;
   	private Composite nameComposite, homeDirComposite, jreComposite, configComposite;
  @@ -82,7 +82,6 @@
   	protected ArrayList installedJREs;
   	protected String[] jreNames;
   	protected int defaultVMIndex;
  -//	private JBossConfigurationTableViewer configurations;
   
   	
   	private IVMInstall selectedVM;
  @@ -105,6 +104,7 @@
   		
   		
   		updateJREs();
  +		createExplanationLabel(main);
   		createNameComposite(main);
   		
   		g = new Group(main, SWT.NONE);
  @@ -129,6 +129,17 @@
   		return main;
   	}
   
  +	private void createExplanationLabel(Composite main) {
  +		explanationLabel = new Label(main, SWT.NONE);
  +		FormData data = new FormData();
  +		data.top = new FormAttachment(0,5);
  +		data.left = new FormAttachment(0,5);
  +		data.right = new FormAttachment(100,-5);
  +		explanationLabel.setLayoutData(data);
  +		
  +		explanationLabel.setText(Messages.serverWizardFragmentExplanation);
  +	}
  +
   	private void createNameComposite(Composite main) {
   		// Create our name composite
   		nameComposite = new Composite(main, SWT.NONE);
  @@ -136,7 +147,7 @@
   		FormData cData = new FormData();
   		cData.left = new FormAttachment(0,5);
   		cData.right = new FormAttachment(100,-5);
  -		cData.top = new FormAttachment(0, 10);
  +		cData.top = new FormAttachment(explanationLabel, 10);
   		nameComposite.setLayoutData(cData);
   		
   		nameComposite.setLayout(new FormLayout());
  
  
  



More information about the jboss-cvs-commits mailing list