Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2006-06-05 16:33:13 +0000
committerashatalin2006-06-05 16:33:13 +0000
commit9fe7d2e8627e3c45619d176be9d3942c02cc6fff (patch)
treed91403bcdad01dbaf2fcc6c3da98ea24df8817ed /plugins/org.eclipse.gmf.codegen/templates/editor
parenteca024ffe1abc9cd7e6bb9acff979969cd2c28c7 (diff)
downloadorg.eclipse.gmf-tooling-9fe7d2e8627e3c45619d176be9d3942c02cc6fff.tar.gz
org.eclipse.gmf-tooling-9fe7d2e8627e3c45619d176be9d3942c02cc6fff.tar.xz
org.eclipse.gmf-tooling-9fe7d2e8627e3c45619d176be9d3942c02cc6fff.zip
- ElementChooserDialog title generated
- diagram file extension marked as non-nls
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/editor')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/editor/ElementChooser.javajet1
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet2
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/editor/ElementChooser.javajet b/plugins/org.eclipse.gmf.codegen/templates/editor/ElementChooser.javajet
index 6828eb428..0129ddebe 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/editor/ElementChooser.javajet
+++ b/plugins/org.eclipse.gmf.codegen/templates/editor/ElementChooser.javajet
@@ -88,6 +88,7 @@ public class <%=genDiagram.getElementChooserClassName()%> extends Dialog {
*/
protected Control createDialogArea(Composite parent) {
Composite composite = (Composite) super.createDialogArea(parent);
+ getShell().setText("Select model element");
createModelBrowser(composite);
return composite;
}
diff --git a/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet b/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
index 78076bb0b..7f420d66b 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
+++ b/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
@@ -106,7 +106,7 @@ public class <%=genDiagram.getNewDiagramFileWizardClassName()%> extends Wizard {
IContainer parentContainer = mySelectedModelFile.getParent();
String originalFileName = mySelectedModelFile.getProjectRelativePath().removeFileExtension().lastSegment();
- String fileExtension = ".<%=editorGen.getDiagramFileExtension()%>";
+ String fileExtension = ".<%=editorGen.getDiagramFileExtension()%>"; //$NON-NLS-1$
String fileName = originalFileName + fileExtension;
for (int i = 1; parentContainer.getFile(new Path(fileName)).exists(); i++) {
fileName = originalFileName + i + fileExtension;

Back to the top