Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2007-04-18 09:10:40 -0400
committeratikhomirov2007-04-18 09:10:40 -0400
commit4f76a9b5ecb628083f173c53fcecc799b884c085 (patch)
tree59bb71d737419ec509fec001b10eacfc676188d3
parentfb2a0bc405679c64d8fcf464b078033b1d6d107a (diff)
downloadorg.eclipse.gmf-tooling-4f76a9b5ecb628083f173c53fcecc799b884c085.tar.gz
org.eclipse.gmf-tooling-4f76a9b5ecb628083f173c53fcecc799b884c085.tar.xz
org.eclipse.gmf-tooling-4f76a9b5ecb628083f173c53fcecc799b884c085.zip
overriding method to pass constant value is not a good approach
-rw-r--r--plugins/org.eclipse.gmf.map.edit/src/org/eclipse/gmf/mappings/presentation/MapRefModelPages.java20
1 files changed, 3 insertions, 17 deletions
diff --git a/plugins/org.eclipse.gmf.map.edit/src/org/eclipse/gmf/mappings/presentation/MapRefModelPages.java b/plugins/org.eclipse.gmf.map.edit/src/org/eclipse/gmf/mappings/presentation/MapRefModelPages.java
index 67114a3e9..82c22ff47 100644
--- a/plugins/org.eclipse.gmf.map.edit/src/org/eclipse/gmf/mappings/presentation/MapRefModelPages.java
+++ b/plugins/org.eclipse.gmf.map.edit/src/org/eclipse/gmf/mappings/presentation/MapRefModelPages.java
@@ -85,12 +85,7 @@ public class MapRefModelPages {
}
protected void addDomainPage(Wizard wizard, ResourceLocationProvider rloc) {
- domainModelSelectionPage = new ExtensibleModelSelectionPage("domain", rloc, getResourceSet()) { //$NON-NLS-1$
-
- protected String getModelFileExtension() {
- return "ecore"; //$NON-NLS-1$
- }
- };
+ domainModelSelectionPage = new ExtensibleModelSelectionPage("domain", rloc, getResourceSet(), "ecore"); //$NON-NLS-1$ //$NON-NLS-2$
domainModelSelectionPage.setTitle("Select Domain Model");
domainModelSelectionPage.setDescription("Load domain model and select element for canvas mapping.");
List<URI> uris = rloc.getSelectedURIs("ecore"); //$NON-NLS-1$
@@ -138,12 +133,7 @@ public class MapRefModelPages {
}
protected void addGraphPage(Wizard wizard, ResourceLocationProvider rloc) {
- graphModelSelectionPage = new ExtensibleModelSelectionPage("graph", rloc, getResourceSet()) { //$NON-NLS-1$
-
- protected String getModelFileExtension() {
- return "gmfgraph"; //$NON-NLS-1$
- }
- };
+ graphModelSelectionPage = new ExtensibleModelSelectionPage("graph", rloc, getResourceSet(), "gmfgraph"); //$NON-NLS-1$ //$NON-NLS-2$
graphModelSelectionPage.setTitle("Select Diagram Canvas");
graphModelSelectionPage.setDescription("Load graphical definition model and select diagram canvas for canvas mapping.");
List<URI> uris = rloc.getSelectedURIs("gmfgraph"); //$NON-NLS-1$
@@ -173,11 +163,7 @@ public class MapRefModelPages {
}
protected void addToolPage(Wizard wizard, ResourceLocationProvider rloc) {
- toolModelSelectionPage = new ExtensibleModelSelectionPage("tool", rloc, getResourceSet()) { //$NON-NLS-1$
-
- protected String getModelFileExtension() {
- return "gmftool"; //$NON-NLS-1$
- }
+ toolModelSelectionPage = new ExtensibleModelSelectionPage("tool", rloc, getResourceSet(), "gmftool") { //$NON-NLS-1$ //$NON-NLS-2$
public void validatePage() {
CreateNewModelExtension ext = (CreateNewModelExtension) getExtension("new"); //$NON-NLS-1$

Back to the top