[jboss-cvs] jbosside/core/plugins/org.jboss.ide.eclipse.firstrun/src/main/org/jboss/ide/eclipse/firstrun/wizard/pages/upgrade20 ...

Robert Stryker rawblem at gmail.com
Mon Nov 13 18:39:49 EST 2006


  User: rawb    
  Date: 06/11/13 18:39:49

  Modified:    core/plugins/org.jboss.ide.eclipse.firstrun/src/main/org/jboss/ide/eclipse/firstrun/wizard/pages/upgrade20  
                        FirstRunInfoPage20.java FirstRunFinalPage20.java
  Log:
  The API has been changed. Three new boolean methods have been added. hasPossibleChanges() returns whether a page performs changes to a workspace
  shouldShow() designates whether the page should show anyway, so long as one page hasPossibleChanges()
  isDefaultPage() designates that this page should show even if 0 pages return true for hasPossibleChanges()
  
  Revision  Changes    Path
  1.4       +14 -2     jbosside/core/plugins/org.jboss.ide.eclipse.firstrun/src/main/org/jboss/ide/eclipse/firstrun/wizard/pages/upgrade20/FirstRunInfoPage20.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FirstRunInfoPage20.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/core/plugins/org.jboss.ide.eclipse.firstrun/src/main/org/jboss/ide/eclipse/firstrun/wizard/pages/upgrade20/FirstRunInfoPage20.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- FirstRunInfoPage20.java	2 Oct 2006 20:39:35 -0000	1.3
  +++ FirstRunInfoPage20.java	13 Nov 2006 23:39:49 -0000	1.4
  @@ -28,6 +28,7 @@
   import org.eclipse.swt.widgets.Label;
   import org.jboss.ide.eclipse.firstrun.FirstRunMessages;
   import org.jboss.ide.eclipse.firstrun.FirstRunPlugin;
  +import org.jboss.ide.eclipse.firstrun.wizard.FirstRunWizard;
   import org.jboss.ide.eclipse.firstrun.wizard.pages.AbstractFirstRunPage;
   
   public class FirstRunInfoPage20 extends AbstractFirstRunPage {
  @@ -47,7 +48,10 @@
   
         Label label = new Label(main, SWT.WRAP);
   
  +      if( ((FirstRunWizard)getWizard()).getNumPagesWithChanges() != 0 )
         label.setText(FirstRunMessages.getString("InfoPage20.info"));
  +      else 
  +    	  label.setText(FirstRunMessages.getString("InfoPage20.welcomeOnly"));
   
         setControl(main);
      }
  @@ -55,9 +59,17 @@
      public void initialize() {
      }
   
  +	public boolean hasPossibleChanges() {
  +		return false;
  +	}
  +
      public void performFinishWithProgress(IProgressMonitor monitor) {
   	   monitor.beginTask(getClass().getName(), 1);
   	   monitor.worked(1);
   	   monitor.done();
      }
  +   
  +   public boolean isDefaultPage() {
  +	   return true;
  +   }
   }
  
  
  
  1.4       +4 -0      jbosside/core/plugins/org.jboss.ide.eclipse.firstrun/src/main/org/jboss/ide/eclipse/firstrun/wizard/pages/upgrade20/FirstRunFinalPage20.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FirstRunFinalPage20.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/core/plugins/org.jboss.ide.eclipse.firstrun/src/main/org/jboss/ide/eclipse/firstrun/wizard/pages/upgrade20/FirstRunFinalPage20.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- FirstRunFinalPage20.java	2 Oct 2006 20:39:35 -0000	1.3
  +++ FirstRunFinalPage20.java	13 Nov 2006 23:39:49 -0000	1.4
  @@ -60,6 +60,10 @@
      public void initialize() {
   	}
   
  +	public boolean hasPossibleChanges() {
  +		return false;
  +	}
  +
      public void performFinishWithProgress(IProgressMonitor monitor) {
   	   monitor.beginTask(getClass().getName(), 1);
   	   monitor.worked(1);
  
  
  



More information about the jboss-cvs-commits mailing list