beautify diagram wizard
diff --git a/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/CreateDiagramWizard.java b/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/CreateDiagramWizard.java
index f306cd3..11506fc 100644
--- a/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/CreateDiagramWizard.java
+++ b/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/CreateDiagramWizard.java
@@ -42,9 +42,10 @@
* The Class CreateDiagramWizard.
*/
public class CreateDiagramWizard extends BasicNewResourceWizard {
- private static final String PAGE_NAME_DIAGRAM_TYPE = "Diagram Type";
+ private static final String PAGE_NAME_DIAGRAM_TYPE = "Diagram Type";
private static final String PAGE_NAME_DIAGRAM_NAME = "Diagram Name";
+ private static final String WIZARD_WINDOW_TITLE = "New Diagram";
private Diagram diagram;
@@ -80,6 +81,7 @@
@Override
public void init(IWorkbench workbench, IStructuredSelection currentSelection) {
super.init(workbench, currentSelection);
+ setWindowTitle(WIZARD_WINDOW_TITLE);
}
/*
diff --git a/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/DiagramNameWizardPage.java b/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/DiagramNameWizardPage.java
index f3687fa..aa78cc5 100644
--- a/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/DiagramNameWizardPage.java
+++ b/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/DiagramNameWizardPage.java
@@ -34,16 +34,18 @@
*/
public class DiagramNameWizardPage extends AbstractWizardPage {
- // constants
+ private static final String PAGE_DESC = "Enter diagram name";
+ private static final String PAGE_TITLE = "Diagram";
+
private static final int SIZING_TEXT_FIELD_WIDTH = 250;
- // widgets
/**
* The text field.
*/
Text textField;
private Listener nameModifyListener = new Listener() {
+ @Override
public void handleEvent(Event e) {
boolean valid = validatePage();
setPageComplete(valid);
@@ -65,6 +67,7 @@
super(pageName, title, titleImage);
}
+
/**
* Instantiates a new diagram name wizard page.
*
@@ -73,6 +76,8 @@
*/
protected DiagramNameWizardPage(String pageName) {
super(pageName);
+ setTitle(PAGE_TITLE);
+ setDescription(PAGE_DESC);
}
@Override
@@ -95,6 +100,7 @@
setControl(composite);
}
+ @Override
public String getText() {
if (textField == null) {
return getInitialTextFieldValue();
diff --git a/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/DiagramTypeWizardPage.java b/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/DiagramTypeWizardPage.java
index 7c2eea0..8fe28b2 100644
--- a/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/DiagramTypeWizardPage.java
+++ b/examples/org.eclipse.graphiti.examples.common/src/org/eclipse/graphiti/examples/common/ui/DiagramTypeWizardPage.java
@@ -32,6 +32,8 @@
*/
public class DiagramTypeWizardPage extends AbstractWizardPage implements ITextProvider {
+ private static final String PAGE_DESC = "Select diagram type";
+ private static final String PAGE_TITLE = "Diagram";
// widget
/**
* The combo box.
@@ -60,6 +62,8 @@
*/
protected DiagramTypeWizardPage(String pageName) {
super(pageName);
+ setTitle(PAGE_TITLE);
+ setDescription(PAGE_DESC);
}
@Override
@@ -120,6 +124,7 @@
* @see
* org.eclipse.graphiti.examples.testview.wizard.ITextProvider#getText()
*/
+ @Override
public String getText() {
return comboBox.getText();
}