Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard')
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.classpath7
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.project28
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/META-INF/MANIFEST.MF13
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/build.properties5
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/icons/sample.gifbin983 -> 0 bytes
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/plugin.xml19
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/Activator.java51
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectPage.java366
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectPageCode.java99
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectWizard.java84
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/NewRelengProjectPage.xml75
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/dump.xml100
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/flattened.xml177
14 files changed, 0 insertions, 1031 deletions
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.classpath b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.classpath
deleted file mode 100644
index 304e861..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.project b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.project
deleted file mode 100644
index 937e241..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jet.ec2008.pushbuttonbuild.wizard</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 3ae5b74..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Mon Mar 17 15:11:45 PDT 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/META-INF/MANIFEST.MF b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/META-INF/MANIFEST.MF
deleted file mode 100644
index a17f956..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,13 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Wizard Plug-in
-Bundle-SymbolicName: org.eclipse.jet.ec2008.pushbuttonbuild.wizard;singleton:=true
-Bundle-Version: 1.0.0
-Bundle-Activator: org.eclipse.jet.ec2008.pushbuttonbuild.wizard.Activator
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.jet.ec2008.pbpmodel,
- org.eclipse.jet;bundle-version="0.9.0"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Export-Package: org.eclipse.jet.ec2008.pushbuttonbuild.wizard
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/build.properties b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/build.properties
deleted file mode 100644
index e9863e2..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/build.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/icons/sample.gif b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/icons/sample.gif
deleted file mode 100644
index 34fb3c9..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/icons/sample.gif
+++ /dev/null
Binary files differ
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/plugin.xml b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/plugin.xml
deleted file mode 100644
index eb3d635..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/plugin.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
- <extension
- point="org.eclipse.ui.newWizards">
- <category
- id="org.eclipse.jet.ec2008.pushbuttonbuild"
- name="Push Button Build">
- </category>
- <wizard
- class="org.eclipse.jet.ec2008.pushbuttonbuild.wizard.NewRelengProjectWizard"
- icon="icons/sample.gif"
- id="org.eclipse.jet.ec2008.pushbuttonbuild.wizard"
- name="Releng Project for Push Button Build"
- project="true">
- </wizard>
- </extension>
-
-</plugin>
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/Activator.java b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/Activator.java
deleted file mode 100644
index 9fbcf07..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/Activator.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
-package org.eclipse.jet.ec2008.pushbuttonbuild.wizard;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class Activator extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.jet.ec2008.pushbuttonbuild.wizard";
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectPage.java b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectPage.java
deleted file mode 100644
index 139fc88..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectPage.java
+++ /dev/null
@@ -1,366 +0,0 @@
-/**
- * Generated by org.eclipse.jet.ec2008.swtgen.codebehind from /org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/NewRelengProjectPage.xml
- */
-package org.eclipse.jet.ec2008.pushbuttonbuild.wizard;
-
-
-import org.eclipse.jface.layout.GridDataFactory;
-import org.eclipse.jface.layout.GridLayoutFactory;
-
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Group;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.List;
-import org.eclipse.swt.widgets.Text;
-
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.SWT;
-
-/**
- *
- */
-public class NewRelengProjectPage extends WizardPage {
-
- /**
- * Code behind class for NewRelengProjectPage
- */
- public static interface CodeBehind {
-
- /**
- * Perform any control required initialization. This method is called
- * by {@link NewRelengProjectPage#createControl(Composite parent)}
- */
- public abstract void doInitControls();
-
- /**
- * Set the wizardPage of the code-behind class. This method is called by the
- * wizard page constructor on the passed codeBehind class.
- */
- public abstract void setWizardPage(NewRelengProjectPage wizardPage);
-
- /**
- * Handle Selection event for bAdd
- */
- public abstract void bAdd_selected(SelectionEvent e);
-
- /**
- * Handle Selection event for bRemove
- */
- public abstract void bRemove_selected(SelectionEvent e);
-
- }
-
- public Text txtParentProjectName;
-
- public Text txtShortName;
-
- public Text txtProjectNamespace;
-
- public Text txtNewsgroupPublisherName;
-
- public Text txtNewsgroupPublisherEmail;
-
- public Combo ddlbJRE;
-
- public Button cbxTestsAreJarred;
-
- public Button cbxIsIncubation;
-
- public List lstExtraJars;
-
- public Button bAdd;
-
- public Button bRemove;
-
-
- private final CodeBehind codeBehind;
-
- /**
- * @param pageName
- */
- public NewRelengProjectPage(String pageName, CodeBehind codeBehind) {
- super(pageName);
- this.codeBehind = codeBehind;
- codeBehind.setWizardPage(this);
- }
-
- /**
- * @param pageName
- * @param title
- * @param titleImage
- */
- public NewRelengProjectPage(String pageName, String title,
- ImageDescriptor titleImage, CodeBehind codeBehind) {
- super(pageName, title, titleImage);
- this.codeBehind = codeBehind;
- codeBehind.setWizardPage(this);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
- */
- public void createControl(Composite parent) {
- initializeDialogUnits(parent);
-
- Composite relengComposite
- = new Composite(
- parent,
- SWT.NONE
- );
-
- GridLayoutFactory.swtDefaults()
- .numColumns(2)
- .applyTo(relengComposite);
-
- GridDataFactory.defaultsFor(relengComposite)
- .applyTo(relengComposite);
-
- Label lblParentProjectName
- = new Label(
- relengComposite,
- SWT.NONE
- );
- lblParentProjectName.setText("&Parent project name: ");
- GridDataFactory.defaultsFor(lblParentProjectName)
- .applyTo(lblParentProjectName);
-
- txtParentProjectName
- = new Text(
- relengComposite,
- SWT.NONE
- |SWT.BORDER
- );
- GridDataFactory.defaultsFor(txtParentProjectName)
- .align(SWT.FILL, SWT.BEGINNING)
- .grab(true, false)
- .applyTo(txtParentProjectName);
-
- Label lblShortName
- = new Label(
- relengComposite,
- SWT.NONE
- );
- lblShortName.setText("&Short name: ");
- GridDataFactory.defaultsFor(lblShortName)
- .applyTo(lblShortName);
-
- txtShortName
- = new Text(
- relengComposite,
- SWT.NONE
- |SWT.BORDER
- );
- GridDataFactory.defaultsFor(txtShortName)
- .align(SWT.FILL, SWT.BEGINNING)
- .grab(true, false)
- .applyTo(txtShortName);
-
- Label lblProjectNamespace
- = new Label(
- relengComposite,
- SWT.NONE
- );
- lblProjectNamespace.setText("Project N&amespace: ");
- GridDataFactory.defaultsFor(lblProjectNamespace)
- .applyTo(lblProjectNamespace);
-
- txtProjectNamespace
- = new Text(
- relengComposite,
- SWT.NONE
- |SWT.BORDER
- );
- GridDataFactory.defaultsFor(txtProjectNamespace)
- .align(SWT.FILL, SWT.BEGINNING)
- .grab(true, false)
- .applyTo(txtProjectNamespace);
-
- Group grpBuildNotifications
- = new Group(
- relengComposite,
- SWT.NONE
- );
- grpBuildNotifications.setText("Build Notifications");
-
- GridLayoutFactory.swtDefaults()
- .numColumns(2)
- .applyTo(grpBuildNotifications);
- GridDataFactory.defaultsFor(grpBuildNotifications)
- .align(SWT.FILL, SWT.BEGINNING)
- .grab(true, false)
- .span(2, 1)
- .applyTo(grpBuildNotifications);
-
- Label lblNewsgroupPublisherName
- = new Label(
- grpBuildNotifications,
- SWT.NONE
- );
- lblNewsgroupPublisherName.setText("Name of sender: ");
- GridDataFactory.defaultsFor(lblNewsgroupPublisherName)
- .applyTo(lblNewsgroupPublisherName);
-
- txtNewsgroupPublisherName
- = new Text(
- grpBuildNotifications,
- SWT.NONE
- |SWT.BORDER
- );
- GridDataFactory.defaultsFor(txtNewsgroupPublisherName)
- .align(SWT.FILL, SWT.BEGINNING)
- .grab(true, false)
- .applyTo(txtNewsgroupPublisherName);
-
- Label lblNewsgroupPublisherEmail
- = new Label(
- grpBuildNotifications,
- SWT.NONE
- );
- lblNewsgroupPublisherEmail.setText("E-mail address of sender: ");
- GridDataFactory.defaultsFor(lblNewsgroupPublisherEmail)
- .applyTo(lblNewsgroupPublisherEmail);
-
- txtNewsgroupPublisherEmail
- = new Text(
- grpBuildNotifications,
- SWT.NONE
- |SWT.BORDER
- );
- GridDataFactory.defaultsFor(txtNewsgroupPublisherEmail)
- .align(SWT.FILL, SWT.BEGINNING)
- .grab(true, false)
- .applyTo(txtNewsgroupPublisherEmail);
-
- Label lblJRE
- = new Label(
- relengComposite,
- SWT.NONE
- );
- lblJRE.setText("Minimum &JRE: ");
- GridDataFactory.defaultsFor(lblJRE)
- .applyTo(lblJRE);
-
- ddlbJRE
- = new Combo(
- relengComposite,
- SWT.NONE
- |SWT.READ_ONLY
- |SWT.DROP_DOWN
- );
- ddlbJRE.add("J2SE-1.4");
- ddlbJRE.add("J2SE-1.5");
- ddlbJRE.setText("J2SE-1.5");
- GridDataFactory.defaultsFor(ddlbJRE)
- .align(SWT.FILL, SWT.BEGINNING)
- .grab(true, false)
- .applyTo(ddlbJRE);
-
- cbxTestsAreJarred
- = new Button(
- relengComposite,
- SWT.CHECK
- );
- cbxTestsAreJarred.setText("Tests plug-ins are JAR'd");
- cbxTestsAreJarred.setSelection(true);
- GridDataFactory.defaultsFor(cbxTestsAreJarred)
- .span(2, 1)
- .applyTo(cbxTestsAreJarred);
-
- cbxIsIncubation
- = new Button(
- relengComposite,
- SWT.CHECK
- );
- cbxIsIncubation.setText("Incubating component/projet");
- cbxIsIncubation.setSelection(true);
- GridDataFactory.defaultsFor(cbxIsIncubation)
- .span(2, 1)
- .applyTo(cbxIsIncubation);
-
- Group grpExtraJars
- = new Group(
- relengComposite,
- SWT.NONE
- );
- grpExtraJars.setText("Extra JARs to build");
-
- GridLayoutFactory.swtDefaults()
- .numColumns(2)
- .applyTo(grpExtraJars);
- GridDataFactory.defaultsFor(grpExtraJars)
- .align(SWT.FILL, SWT.BEGINNING)
- .span(2, 1)
- .applyTo(grpExtraJars);
-
- lstExtraJars
- = new List(
- grpExtraJars,
- SWT.NONE
- |SWT.BORDER
- |SWT.SINGLE
- );
- GridDataFactory.defaultsFor(lstExtraJars)
- .align(SWT.FILL, SWT.BEGINNING)
- .grab(true, true)
- .span(1, 2)
- .applyTo(lstExtraJars);
-
- bAdd
- = new Button(
- grpExtraJars,
- SWT.PUSH
- );
- bAdd.setText("Add...");
- GridDataFactory.defaultsFor(bAdd)
- .applyTo(bAdd);
- bAdd.addSelectionListener( new SelectionAdapter() {
- public void widgetSelected(SelectionEvent e) {
- if(codeBehind != null) {
- codeBehind.bAdd_selected(e);
- }
-
- }});
-
- bRemove
- = new Button(
- grpExtraJars,
- SWT.PUSH
- );
- bRemove.setText("Remove");
- GridDataFactory.defaultsFor(bRemove)
- .applyTo(bRemove);
- bRemove.addSelectionListener( new SelectionAdapter() {
- public void widgetSelected(SelectionEvent e) {
- if(codeBehind != null) {
- codeBehind.bRemove_selected(e);
- }
-
- }});
-
-
- setControl(relengComposite);
- Dialog.applyDialogFont(relengComposite);
-
- if(codeBehind != null) {
- codeBehind.doInitControls();
- }
- }
-
- @Override
- public void setVisible(boolean visible) {
- super.setVisible(visible);
-
- if(visible) {
- txtParentProjectName.setFocus();
- }
-
- }
-
-}
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectPageCode.java b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectPageCode.java
deleted file mode 100644
index 53de511..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectPageCode.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
-/*
- * Generated by org.eclipse.jet.ec2008.swtgen.codebehind from /org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/NewRelengProjectPage.xml.
- * This class will not be modified by the transformation
- */
-package org.eclipse.jet.ec2008.pushbuttonbuild.wizard;
-
-
-import org.eclipse.jet.ec2008.pbpmodel.pushbuttonbuild.BuildType;
-import org.eclipse.jet.ec2008.pbpmodel.pushbuttonbuild.DocumentRoot;
-import org.eclipse.jet.ec2008.pbpmodel.pushbuttonbuild.ExtraZIPType;
-import org.eclipse.jet.ec2008.pbpmodel.pushbuttonbuild.JreType;
-import org.eclipse.jet.ec2008.pbpmodel.pushbuttonbuild.PushbuttonbuildFactory;
-import org.eclipse.jface.dialogs.IInputValidator;
-import org.eclipse.jface.dialogs.InputDialog;
-import org.eclipse.swt.events.SelectionEvent;
-
-/**
- *
- */
-public class NewRelengProjectPageCode implements
- NewRelengProjectPage.CodeBehind {
-
- private NewRelengProjectPage wizardPage;
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jet.ec2008.pushbuttonbuild.wizard.NewRelengProjectPage.CodeBehind#setWizardPage(org.eclipse.jet.ec2008.pushbuttonbuild.wizard.NewRelengProjectPage)
- */
- public void setWizardPage(NewRelengProjectPage wizardPage) {
- this.wizardPage = wizardPage;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jet.ec2008.pushbuttonbuild.wizard.NewRelengProjectPage.CodeBehind#doInitControls()
- */
- public void doInitControls() {
- // TODO Generated init method
- }
-
- public void bAdd_selected(SelectionEvent e) {
- InputDialog dialog = new InputDialog(wizardPage.getShell(),
- "Add Extra ZIP:", "Enter ZIP base name", null,
- new IInputValidator() {
-
- public String isValid(String newText) {
- return newText.length() > 0 ? null
- : "Enter a base name";
- }
- });
-
- int result = dialog.open();
-
- if (result == InputDialog.OK) {
- wizardPage.lstExtraJars.add(dialog.getValue());
- }
- }
-
- public void bRemove_selected(SelectionEvent e) {
- int index = wizardPage.lstExtraJars.getSelectionIndex();
- if(index >= 0) {
- wizardPage.lstExtraJars.remove(index);
- }
- }
-
- public DocumentRoot getStuff() {
- PushbuttonbuildFactory factory = PushbuttonbuildFactory.eINSTANCE;
- DocumentRoot dr = factory.createDocumentRoot();
-
- BuildType build = factory.createBuildType();
- build.setIsIncubation(wizardPage.cbxIsIncubation.getSelection());
- build.setJre(JreType.get(wizardPage.ddlbJRE.getText().trim()));
- build.setNewsgroupPublisherName(wizardPage.txtNewsgroupPublisherName
- .getText().trim());
- build.setNewsgroupPublisherEmail(wizardPage.txtNewsgroupPublisherEmail
- .getText().trim());
- build.setParentProjectName(wizardPage.txtParentProjectName.getText()
- .trim());
- build.setProjectNamespace(wizardPage.txtProjectNamespace.getText()
- .trim());
- build.setShortName(wizardPage.txtShortName.getText().trim());
- build.setTestsAreJarred(wizardPage.cbxTestsAreJarred.getSelection());
-
- String[] items = wizardPage.lstExtraJars.getItems();
- for (String item : items) {
- ExtraZIPType extraZIP = factory.createExtraZIPType();
- extraZIP.setName(item);
-
- build.getExtraZIP().add(extraZIP);
- }
-
- dr.setBuild(build);
-
- return dr;
- }
-}
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectWizard.java b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectWizard.java
deleted file mode 100644
index 6c2edc1..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src/org/eclipse/jet/ec2008/pushbuttonbuild/wizard/NewRelengProjectWizard.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
-/**
- *
- */
-package org.eclipse.jet.ec2008.pushbuttonbuild.wizard;
-
-import java.lang.reflect.InvocationTargetException;
-import java.text.MessageFormat;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jet.JET2Platform;
-import org.eclipse.jet.ec2008.pbpmodel.pushbuttonbuild.DocumentRoot;
-import org.eclipse.jface.operation.IRunnableWithProgress;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.ui.INewWizard;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.statushandlers.StatusManager;
-
-/**
- * @author pelder
- *
- */
-public class NewRelengProjectWizard extends Wizard implements INewWizard {
-
- private static final String JET_TRANSFORM_ID = "org.eclipse.jet.ec2008.pushbuttonbuild";
- private final NewRelengProjectPageCode newRelengProjectPageCode;
-
- /**
- *
- */
- public NewRelengProjectWizard() {
- newRelengProjectPageCode = new NewRelengProjectPageCode();
- setNeedsProgressMonitor(true);
- }
-
- @Override
- public void addPages() {
- addPage(new NewRelengProjectPage("releng", "New Releng Project", null, newRelengProjectPageCode));
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.wizard.Wizard#performFinish()
- */
- @Override
- public boolean performFinish() {
- final DocumentRoot stuff = newRelengProjectPageCode.getStuff();
-
- try {
- getContainer().run(false, false, new IRunnableWithProgress() {
-
- public void run(IProgressMonitor monitor)
- throws InvocationTargetException, InterruptedException {
-
- IStatus status = JET2Platform.runTransformOnObject(JET_TRANSFORM_ID, stuff, monitor);
-
- if(!status.isOK()) {
- StatusManager.getManager().handle(status, StatusManager.BLOCK);
- }
-
- }});
- } catch (InvocationTargetException e) {
- IStatus status = new Status(IStatus.ERROR,Activator.PLUGIN_ID,
- MessageFormat.format("Unexpected error invoking JET transformation {0}", new Object[] {JET_TRANSFORM_ID})
- , e);
- StatusManager.getManager().handle(status);
- } catch (InterruptedException e) {
- // ignore, cannot happen
- }
-
- return true;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
- */
- public void init(IWorkbench workbench, IStructuredSelection selection) {
- // TODO Auto-generated method stub
-
- }
-
-}
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/NewRelengProjectPage.xml b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/NewRelengProjectPage.xml
deleted file mode 100644
index 0aecc4f..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/NewRelengProjectPage.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<wizardPage class="NewRelengProjectPage"
- package="org.eclipse.jet.ec2008.pushbuttonbuild.wizard"
- srcFolder="org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src"
- xmlns="http://www.eclipse.org/modeling/jet/ec2008/wizardPageLayout"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.eclipse.org/modeling/jet/ec2008/wizardPageLayout platform:/resource/org.eclipse.jet.examples.ec2008/wizardPageLayout.xsd ">
- <composite name="relengComposite">
- <gridLayout><numColumns numColumns="2"/></gridLayout>
-
- <label name="lblParentProjectName" text="&amp;Parent project name: "></label>
- <text name="txtParentProjectName" isField="true">
- <gridData><grab horizontal="true" vertical="false"/><align hAlign="FILL" vAlign="BEGINNING"/></gridData>
- </text>
-
- <label name="lblShortName" text="&amp;Short name: "></label>
- <text name="txtShortName" isField="true">
- <gridData><grab horizontal="true" vertical="false"/><align hAlign="FILL" vAlign="BEGINNING"/></gridData>
- </text>
-
- <label name="lblProjectNamespace" text="Project N&amp;amespace: "></label>
- <text name="txtProjectNamespace" isField="true">
- <gridData><grab horizontal="true" vertical="false"/><align hAlign="FILL" vAlign="BEGINNING"/></gridData>
- </text>
-
- <group name="grpBuildNotifications" text="Build Notifications">
- <gridLayout><numColumns numColumns="2"/></gridLayout>
- <gridData><span vSpan="1" hSpan="2"/><align hAlign="FILL" vAlign="BEGINNING"/><grab horizontal="true" vertical="false"/></gridData>
-
- <label name="lblNewsgroupPublisherName" text="Name of sender: "></label>
- <text name="txtNewsgroupPublisherName" isField="true">
- <gridData><grab horizontal="true" vertical="false"/><align hAlign="FILL" vAlign="BEGINNING"/></gridData>
- </text>
-
- <label name="lblNewsgroupPublisherEmail" text="E-mail address of sender: "></label>
- <text name="txtNewsgroupPublisherEmail" isField="true">
- <gridData><grab horizontal="true" vertical="false"/><align hAlign="FILL" vAlign="BEGINNING"/></gridData>
- </text>
- </group>
-
- <label name="lblJRE" text="Minimum &amp;JRE: "></label>
- <combo name="ddlbJRE" isField="true" readOnly="true" style="DROP_DOWN" text="J2SE-1.5">
- <item>J2SE-1.4</item>
- <item>J2SE-1.5</item>
- <gridData><align hAlign="FILL" vAlign="BEGINNING"/><grab horizontal="true" vertical="false"/></gridData>
- </combo>
-
- <button style="CHECK" isField="true" name="cbxTestsAreJarred" selection="true" text="Tests plug-ins are JAR'd">
- <gridData><span vSpan="1" hSpan="2"/></gridData>
- </button>
-
- <button style="CHECK" isField="true" name="cbxIsIncubation" selection="true" text="Incubating component/projet">
- <gridData><span vSpan="1" hSpan="2"/></gridData>
- </button>
-
- <group name="grpExtraJars" text="Extra JARs to build">
- <gridLayout><numColumns numColumns="2"/></gridLayout>
- <gridData><span hSpan="2" vSpan="1"/><align hAlign="FILL" vAlign="BEGINNING"/></gridData>
- <list name="lstExtraJars" isField="true" style="SINGLE">
- <gridData>
- <span hSpan="1" vSpan="2"/>
- <align hAlign="FILL" vAlign="BEGINNING"/>
- <grab horizontal="true" vertical="true"/>
- </gridData>
- </list>
-
- <button style="PUSH" name="bAdd" isField="true" text="Add...">
- <event name="Selection"/>
- </button>
- <button style="PUSH" name="bRemove" isField="true" text="Remove">
- <event name="Selection"/>
- </button>
- </group>
- </composite>
-</wizardPage>
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/dump.xml b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/dump.xml
deleted file mode 100644
index ba99b34..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/dump.xml
+++ /dev/null
@@ -1,100 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<wizardPage srcFolder="org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src" package="org.eclipse.jet.ec2008.pushbuttonbuild.wizard" class="NewRelengProjectPage" codeBehindClass="NewRelengProjectPageCode">
- <control type="composite" parent="parent" name="relengComposite" javaType="org.eclipse.swt.widgets.Composite" initControlTemplate="templates/control/composite/initControl.jet" swtStylesTemplate="templates/control/composite/swtStyles.jet">
- <gridLayout>
- <numColumns numColumns="2"/>
- </gridLayout>
- </control>
- <control type="label" parent="relengComposite" name="lblParentProjectName" text="&Parent project name: " javaType="org.eclipse.swt.widgets.Label" initControlTemplate="templates/control/label/initControl.jet" swtStylesTemplate="templates/control/label/swtStyles.jet">
- </control>
- <control type="text" parent="relengComposite" isField="true" name="txtParentProjectName" javaType="org.eclipse.swt.widgets.Text" initControlTemplate="templates/control/text/initControl.jet" swtStylesTemplate="templates/control/text/swtStyles.jet">
- <gridData>
- <align hAlign="FILL" vAlign="BEGINNING"/>
- <grab horizontal="true" vertical="false"/>
- </gridData>
- </control>
- <control type="label" parent="relengComposite" name="lblShortName" text="&Short name: " javaType="org.eclipse.swt.widgets.Label" initControlTemplate="templates/control/label/initControl.jet" swtStylesTemplate="templates/control/label/swtStyles.jet">
- </control>
- <control type="text" parent="relengComposite" isField="true" name="txtShortName" javaType="org.eclipse.swt.widgets.Text" initControlTemplate="templates/control/text/initControl.jet" swtStylesTemplate="templates/control/text/swtStyles.jet">
- <gridData>
- <align hAlign="FILL" vAlign="BEGINNING"/>
- <grab horizontal="true" vertical="false"/>
- </gridData>
- </control>
- <control type="label" parent="relengComposite" name="lblProjectNamespace" text="Project N&amespace: " javaType="org.eclipse.swt.widgets.Label" initControlTemplate="templates/control/label/initControl.jet" swtStylesTemplate="templates/control/label/swtStyles.jet">
- </control>
- <control type="text" parent="relengComposite" isField="true" name="txtProjectNamespace" javaType="org.eclipse.swt.widgets.Text" initControlTemplate="templates/control/text/initControl.jet" swtStylesTemplate="templates/control/text/swtStyles.jet">
- <gridData>
- <align hAlign="FILL" vAlign="BEGINNING"/>
- <grab horizontal="true" vertical="false"/>
- </gridData>
- </control>
- <control type="group" parent="relengComposite" name="grpBuildNotifications" text="Build Notifications" javaType="org.eclipse.swt.widgets.Group" initControlTemplate="templates/control/group/initControl.jet" swtStylesTemplate="templates/control/group/swtStyles.jet">
- <gridLayout>
- <numColumns numColumns="2"/>
- </gridLayout>
- <gridData>
- <align hAlign="FILL" vAlign="BEGINNING"/>
- <grab horizontal="true" vertical="false"/>
- <span hSpan="2" vSpan="1"/>
- </gridData>
- </control>
- <control type="label" parent="grpBuildNotifications" name="lblNewsgroupPublisherName" text="Name of sender: " javaType="org.eclipse.swt.widgets.Label" initControlTemplate="templates/control/label/initControl.jet" swtStylesTemplate="templates/control/label/swtStyles.jet">
- </control>
- <control type="text" parent="grpBuildNotifications" isField="true" name="txtNewsgroupPublisherName" javaType="org.eclipse.swt.widgets.Text" initControlTemplate="templates/control/text/initControl.jet" swtStylesTemplate="templates/control/text/swtStyles.jet">
- <gridData>
- <align hAlign="FILL" vAlign="BEGINNING"/>
- <grab horizontal="true" vertical="false"/>
- </gridData>
- </control>
- <control type="label" parent="grpBuildNotifications" name="lblNewsgroupPublisherEmail" text="E-mail address of sender: " javaType="org.eclipse.swt.widgets.Label" initControlTemplate="templates/control/label/initControl.jet" swtStylesTemplate="templates/control/label/swtStyles.jet">
- </control>
- <control type="text" parent="grpBuildNotifications" isField="true" name="txtNewsgroupPublisherEmail" javaType="org.eclipse.swt.widgets.Text" initControlTemplate="templates/control/text/initControl.jet" swtStylesTemplate="templates/control/text/swtStyles.jet">
- <gridData>
- <align hAlign="FILL" vAlign="BEGINNING"/>
- <grab horizontal="true" vertical="false"/>
- </gridData>
- </control>
- <control type="label" parent="relengComposite" name="lblJRE" text="Minimum &JRE: " javaType="org.eclipse.swt.widgets.Label" initControlTemplate="templates/control/label/initControl.jet" swtStylesTemplate="templates/control/label/swtStyles.jet">
- </control>
- <control type="combo" parent="relengComposite" isField="true" name="ddlbJRE" readOnly="true" style="DROP_DOWN" text="J2SE-1.5" javaType="org.eclipse.swt.widgets.Combo" initControlTemplate="templates/control/combo/initControl.jet" swtStylesTemplate="templates/control/combo/swtStyles.jet">
- <gridData>
- <align hAlign="FILL" vAlign="BEGINNING"/>
- <grab horizontal="true" vertical="false"/>
- </gridData>
- <item>J2SE-1.4</item>
- <item>J2SE-1.5</item>
- </control>
- <control type="button" parent="relengComposite" isField="true" name="cbxTestsAreJarred" selection="true" style="CHECK" text="Tests plug-ins are JAR'd" javaType="org.eclipse.swt.widgets.Button" initControlTemplate="templates/control/button/initControl.jet" swtStylesTemplate="templates/control/button/swtStyles.jet">
- <gridData>
- <span hSpan="2" vSpan="1"/>
- </gridData>
- </control>
- <control type="button" parent="relengComposite" isField="true" name="cbxIsIncubation" selection="true" style="CHECK" text="Incubating component/projet" javaType="org.eclipse.swt.widgets.Button" initControlTemplate="templates/control/button/initControl.jet" swtStylesTemplate="templates/control/button/swtStyles.jet">
- <gridData>
- <span hSpan="2" vSpan="1"/>
- </gridData>
- </control>
- <control type="group" parent="relengComposite" name="grpExtraJars" text="Extra JARs to build" javaType="org.eclipse.swt.widgets.Group" initControlTemplate="templates/control/group/initControl.jet" swtStylesTemplate="templates/control/group/swtStyles.jet">
- <gridLayout>
- <numColumns numColumns="2"/>
- </gridLayout>
- <gridData>
- <align hAlign="FILL" vAlign="BEGINNING"/>
- <span hSpan="2" vSpan="1"/>
- </gridData>
- </control>
- <control type="list" parent="grpExtraJars" isField="true" name="lstExtraJars" style="SINGLE" javaType="org.eclipse.swt.widgets.List" initControlTemplate="templates/control/list/initControl.jet" swtStylesTemplate="templates/control/list/swtStyles.jet">
- <gridData>
- <align hAlign="FILL" vAlign="BEGINNING"/>
- <grab horizontal="true" vertical="true"/>
- <span hSpan="1" vSpan="2"/>
- </gridData>
- </control>
- <control type="button" parent="grpExtraJars" isField="true" name="bAdd" style="PUSH" text="Add..." javaType="org.eclipse.swt.widgets.Button" initControlTemplate="templates/control/button/initControl.jet" swtStylesTemplate="templates/control/button/swtStyles.jet">
- <event name="Selection" addListenerMethod="addSelectionListener" handlerBaseClass="org.eclipse.swt.events.SelectionAdapter" handlerMethod="widgetSelected" eventClass="org.eclipse.swt.events.SelectionEvent" delegateMethod="bAdd_selected"/>
- </control>
- <control type="button" parent="grpExtraJars" isField="true" name="bRemove" style="PUSH" text="Remove" javaType="org.eclipse.swt.widgets.Button" initControlTemplate="templates/control/button/initControl.jet" swtStylesTemplate="templates/control/button/swtStyles.jet">
- <event name="Selection" addListenerMethod="addSelectionListener" handlerBaseClass="org.eclipse.swt.events.SelectionAdapter" handlerMethod="widgetSelected" eventClass="org.eclipse.swt.events.SelectionEvent" delegateMethod="bRemove_selected"/>
- </control>
-</wizardPage>
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/flattened.xml b/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/flattened.xml
deleted file mode 100644
index d7ec496..0000000
--- a/examples/org.eclipse.jet.ec2008.pushbuttonbuild.wizard/wizardPages/flattened.xml
+++ /dev/null
@@ -1,177 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<wizardPage
- srcFolder="org.eclipse.jet.ec2008.pushbuttonbuild.wizard/src"
- package="org.eclipse.jet.ec2008.pushbuttonbuild.wizard"
- class="NewRelengProjectPage">
- <control
- type="composite"
- parent="parent"
- name="relengComposite"
- >
- <gridLayout><numColumns numColumns="2"/></gridLayout>
- </control>
- <control
- type="label"
- parent="relengComposite"
- name="lblParentProjectName"
- text="&amp;Parent project name: "
- >
- </control>
- <control
- type="text"
- parent="relengComposite"
- isField="true"
- name="txtParentProjectName"
- >
- <gridData><align hAlign="FILL" vAlign="BEGINNING"/><grab horizontal="true" vertical="false"/></gridData>
- </control>
- <control
- type="label"
- parent="relengComposite"
- name="lblShortName"
- text="&amp;Short name: "
- >
- </control>
- <control
- type="text"
- parent="relengComposite"
- isField="true"
- name="txtShortName"
- >
- <gridData><align hAlign="FILL" vAlign="BEGINNING"/><grab horizontal="true" vertical="false"/></gridData>
- </control>
- <control
- type="label"
- parent="relengComposite"
- name="lblProjectNamespace"
- text="Project N&amp;amespace: "
- >
- </control>
- <control
- type="text"
- parent="relengComposite"
- isField="true"
- name="txtProjectNamespace"
- >
- <gridData><align hAlign="FILL" vAlign="BEGINNING"/><grab horizontal="true" vertical="false"/></gridData>
- </control>
- <control
- type="group"
- parent="relengComposite"
- name="grpBuildNotifications"
- text="Build Notifications"
- >
- <gridLayout><numColumns numColumns="2"/></gridLayout>
- <gridData><align hAlign="FILL" vAlign="BEGINNING"/><grab horizontal="true" vertical="false"/><span hSpan="2" vSpan="1"/></gridData>
- </control>
- <control
- type="label"
- parent="grpBuildNotifications"
- name="lblNewsgroupPublisherName"
- text="Name of sender: "
- >
- </control>
- <control
- type="text"
- parent="grpBuildNotifications"
- isField="true"
- name="txtNewsgroupPublisherName"
- >
- <gridData><align hAlign="FILL" vAlign="BEGINNING"/><grab horizontal="true" vertical="false"/></gridData>
- </control>
- <control
- type="label"
- parent="grpBuildNotifications"
- name="lblNewsgroupPublisherEmail"
- text="E-mail address of sender: "
- >
- </control>
- <control
- type="text"
- parent="grpBuildNotifications"
- isField="true"
- name="txtNewsgroupPublisherEmail"
- >
- <gridData><align hAlign="FILL" vAlign="BEGINNING"/><grab horizontal="true" vertical="false"/></gridData>
- </control>
- <control
- type="label"
- parent="relengComposite"
- name="lblJRE"
- text="Minimum &amp;JRE: "
- >
- </control>
- <control
- type="combo"
- parent="relengComposite"
- isField="true"
- name="ddlbJRE"
- readOnly="true"
- style="DROP_DOWN"
- text="J2SE-1.5"
- >
- <gridData><align hAlign="FILL" vAlign="BEGINNING"/><grab horizontal="true" vertical="false"/></gridData>
- <item>J2SE-1.4</item>
- <item>J2SE-1.5</item>
- </control>
- <control
- type="button"
- parent="relengComposite"
- isField="true"
- name="cbxTestsAreJarred"
- selection="true"
- style="CHECK"
- text="Tests plug-ins are JAR'd"
- >
- <gridData><span hSpan="2" vSpan="1"/></gridData>
- </control>
- <control
- type="button"
- parent="relengComposite"
- isField="true"
- name="cbxIsIncubation"
- selection="true"
- style="CHECK"
- text="Incubating component/projet"
- >
- <gridData><span hSpan="2" vSpan="1"/></gridData>
- </control>
- <control
- type="group"
- parent="relengComposite"
- name="grpExtraJars"
- text="Extra JARs to build"
- >
- <gridLayout><numColumns numColumns="2"/></gridLayout>
- <gridData><align hAlign="FILL" vAlign="BEGINNING"/><span hSpan="2" vSpan="1"/></gridData>
- </control>
- <control
- type="list"
- parent="grpExtraJars"
- isField="true"
- name="lstExtraJars"
- style="SINGLE"
- >
- <gridData><align hAlign="FILL" vAlign="BEGINNING"/><grab horizontal="true" vertical="true"/><span hSpan="1" vSpan="2"/></gridData>
- </control>
- <control
- type="button"
- parent="grpExtraJars"
- isField="true"
- name="bAdd"
- style="PUSH"
- text="Add..."
- >
- <event name="Selection"/>
- </control>
- <control
- type="button"
- parent="grpExtraJars"
- isField="true"
- name="bRemove"
- style="PUSH"
- text="Remove"
- >
- <event name="Selection"/>
- </control>
-</wizardPage> \ No newline at end of file

Back to the top