Author: pwang
Date: 2009-04-03 16:07:45 -0700 (Fri, 03 Apr 2009)
New Revision: 16459
Added:
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/InstallNewSoftwareWizard.java
Log:
original creation
Added:
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/InstallNewSoftwareWizard.java
===================================================================
---
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/InstallNewSoftwareWizard.java
2009-04-03 15:27:23 UTC (rev 16458)
+++
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/InstallNewSoftwareWizard.java
2009-04-03 23:07:45 UTC (rev 16459)
@@ -0,0 +1,47 @@
+package org.eclipse.equinox.internal.provisional.p2.ui2.dialogs;
+
+import org.eclipse.equinox.internal.provisional.p2.ui2.policy.Policy;
+import
org.eclipse.equinox.internal.provisional.p2.ui2.QueryableMetadataRepositoryManager;
+import org.netbeans.api.wizard.WizardDisplayer;
+import org.netbeans.spi.wizard.Wizard;
+import org.netbeans.spi.wizard.WizardPage;
+import org.netbeans.spi.wizard.WizardPage.WizardResultProducer;
+import java.awt.Rectangle;
+import java.util.Properties;
+import java.net.URL;
+
+public class InstallNewSoftwareWizard {
+
+ public InstallNewSoftwareWizard(Policy policy, String profileId,
QueryableMetadataRepositoryManager manager){
+
+
+ WizardPage[] pages = new WizardPage[3];
+
+ AvailableSoftwarePage page1 = new AvailableSoftwarePage(policy,
profileId, manager);
+ InstallDetailsPage page2 = new InstallDetailsPage();
+ ReviewLicensesPage page3 = new ReviewLicensesPage();
+ pages[0] = page1;
+ pages[1] = page2;
+ pages[2] = page3;
+
+
+ //Change the background image on the left side of the wizard dialog
+ //ClassLoader loader =
InstallNewSoftwareWizard.class.getClassLoader();
+ //URL imgURL = loader.getResource("/icons/"+ "obj/iu_obj.gif");
+ //System.out.println("imgURL.toString() ="+ imgURL.toString());
+
+ //Properties imageProp = new Properties();
+
+ //imageProp.setProperty("wizard.sidebar.image", imgURL.toString());
+
+ //System.setProperties(imageProp);
+
+
+ //Use the utility method to compose a Wizard
+ Wizard wizard = WizardPage.createWizard("Install", pages);
+
+ //And show it on screen
+ WizardDisplayer.showWizard (wizard, new Rectangle(20,20,800,600));
+
+ }
+}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en
-~----------~----~----~----~------~----~------~--~---