summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorghillairet2012-01-11 16:06:32 (EST)
committer mgolubev2012-01-11 16:06:32 (EST)
commit25fea9ae0e528d53e4f8daebd8a3001d9119721b (patch)
treef17cc31d1e8204c671b99dcbc09ccc1cedacfb7f
parent1b6648a01b03c73397f2db11777660dcccd01407 (diff)
downloadorg.eclipse.gmf-tooling-25fea9ae0e528d53e4f8daebd8a3001d9119721b.zip
org.eclipse.gmf-tooling-25fea9ae0e528d53e4f8daebd8a3001d9119721b.tar.gz
org.eclipse.gmf-tooling-25fea9ae0e528d53e4f8daebd8a3001d9119721b.tar.bz2
[368344] - Add Check Button in GenModel Generation Wizard to allow
using of Modeled Viewmap
-rw-r--r--plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/Messages.java1
-rw-r--r--plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/ViewmapProducerWizardPage.java12
-rw-r--r--plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/messages.properties1
3 files changed, 12 insertions, 2 deletions
diff --git a/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/Messages.java b/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/Messages.java
index 3c976d4..8d351ec 100644
--- a/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/Messages.java
+++ b/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/Messages.java
@@ -115,6 +115,7 @@ public class Messages extends NLS {
public static String ResourceGroup_invalidFilename;
public static String ResourceGroup_pathOccupied;
public static String WizardNewFileCreationPage_file;
+ public static String ViewmapProducerWizardPage_btnUseModeledViewmap_text;
static {
diff --git a/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/ViewmapProducerWizardPage.java b/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/ViewmapProducerWizardPage.java
index 96b417f..e5dbf27 100644
--- a/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/ViewmapProducerWizardPage.java
+++ b/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/ViewmapProducerWizardPage.java
@@ -48,6 +48,7 @@ class ViewmapProducerWizardPage extends WizardPage {
private Button generateRCPButton;
private Button useMapModeButton;
private Button useRuntimeFiguresButton;
+ private Button useModeledViewmapButton;
private Text templatesPathText;
private Text qvtoFileControl;
private Text preReconcileTranfsormText;
@@ -58,6 +59,7 @@ class ViewmapProducerWizardPage extends WizardPage {
private Button postReconcileTransformBtn;
private ExpandItem myTemplatePathItem;
private ExpandItem myTransformsItem;
+ private Composite composite;
protected ViewmapProducerWizardPage(String pageName) {
super(pageName);
@@ -68,7 +70,7 @@ class ViewmapProducerWizardPage extends WizardPage {
public void createControl(Composite parent) {
initializeDialogUnits(parent);
- Composite composite = new Composite(parent, SWT.NONE);
+ composite = new Composite(parent, SWT.NONE);
composite.setLayout(new GridLayout());
createControls(composite);
@@ -95,11 +97,14 @@ class ViewmapProducerWizardPage extends WizardPage {
generateRCPButton = new Button(result, SWT.CHECK);
generateRCPButton.setText(Messages.ViewmapProducerWizardPage_btn_rcp);
generateRCPButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_CENTER));
+ useModeledViewmapButton = new Button(composite, SWT.CHECK);
+ useModeledViewmapButton.setText(Messages.ViewmapProducerWizardPage_btnUseModeledViewmap_text);
+ useModeledViewmapButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_CENTER));
SelectionListener selectionListener = new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {
widgetSelected(e);
}
-
+
public void widgetSelected(SelectionEvent e) {
if (generateRCPButton == e.widget) {
getOperation().getOptions().setGenerateRCP(generateRCPButton.getSelection());
@@ -107,6 +112,8 @@ class ViewmapProducerWizardPage extends WizardPage {
getOperation().getOptions().setUseMapMode(useMapModeButton.getSelection());
} else if (useRuntimeFiguresButton == e.widget) {
getOperation().getOptions().setUseRuntimeFigures(useRuntimeFiguresButton.getSelection());
+ } else if (useModeledViewmapButton == e.widget) {
+ getOperation().getOptions().setInTransformationCodeGen(!useModeledViewmapButton.getSelection());
}
validatePage();
}
@@ -114,6 +121,7 @@ class ViewmapProducerWizardPage extends WizardPage {
useMapModeButton.addSelectionListener(selectionListener);
useRuntimeFiguresButton.addSelectionListener(selectionListener);
generateRCPButton.addSelectionListener(selectionListener);
+ useModeledViewmapButton.addSelectionListener(selectionListener);
createAdvancedControls(result);
Composite glue = new Composite(result, SWT.NONE);
glue.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
diff --git a/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/messages.properties b/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/messages.properties
index 91b3261..7274469 100644
--- a/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/messages.properties
+++ b/plugins/org.eclipse.gmf.bridge.ui/src/org/eclipse/gmf/internal/bridge/transform/messages.properties
@@ -49,6 +49,7 @@ ViewmapProducerWizardPage_btn_mapmode=Use IMapMode
ViewmapProducerWizardPage_btn_runtime=Utilize enhanced features of GMF runtime
ViewmapProducerWizardPage_btn_rcp=Generate RCP Application
ViewmapProducerWizardPage_i_not_recommended=It is not recommended to use IMapMode for pure-GEF diagram editors
+ViewmapProducerWizardPage_btnUseModeledViewmap_text=Use Modeled Viewmap
GenModelConfigurationPage_btn_create_default=Default GenModel...
GenModelConfigurationPage_btn_refresh_stale=Refresh stale GenModel...
GMFGenNewFileCreationPage_e_filename=The file name must end in ".{0}"