Lines 7-21
Link Here
|
7 |
package org.eclipse.gmf.codegen.gmfgen.presentation; |
7 |
package org.eclipse.gmf.codegen.gmfgen.presentation; |
8 |
|
8 |
|
9 |
|
9 |
|
10 |
import java.util.ArrayList; |
|
|
11 |
import java.util.Collection; |
12 |
import java.util.Collections; |
13 |
import java.util.HashMap; |
10 |
import java.util.HashMap; |
14 |
import java.util.Iterator; |
|
|
15 |
import java.util.List; |
16 |
import java.util.Map; |
11 |
import java.util.Map; |
17 |
import java.util.MissingResourceException; |
|
|
18 |
import java.util.StringTokenizer; |
19 |
|
12 |
|
20 |
import org.eclipse.core.resources.IContainer; |
13 |
import org.eclipse.core.resources.IContainer; |
21 |
import org.eclipse.core.resources.IFile; |
14 |
import org.eclipse.core.resources.IFile; |
Lines 26-58
Link Here
|
26 |
import org.eclipse.core.runtime.IProgressMonitor; |
19 |
import org.eclipse.core.runtime.IProgressMonitor; |
27 |
import org.eclipse.core.runtime.Path; |
20 |
import org.eclipse.core.runtime.Path; |
28 |
import org.eclipse.emf.common.util.URI; |
21 |
import org.eclipse.emf.common.util.URI; |
29 |
import org.eclipse.emf.ecore.EClass; |
|
|
30 |
import org.eclipse.emf.ecore.EClassifier; |
31 |
import org.eclipse.emf.ecore.EObject; |
22 |
import org.eclipse.emf.ecore.EObject; |
32 |
import org.eclipse.emf.ecore.resource.Resource; |
23 |
import org.eclipse.emf.ecore.resource.Resource; |
33 |
import org.eclipse.emf.ecore.resource.ResourceSet; |
24 |
import org.eclipse.emf.ecore.resource.ResourceSet; |
34 |
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; |
25 |
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; |
35 |
import org.eclipse.emf.ecore.xmi.XMLResource; |
26 |
import org.eclipse.emf.ecore.xmi.XMLResource; |
36 |
import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry; |
27 |
import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry; |
37 |
import org.eclipse.gmf.codegen.gmfgen.GMFGenFactory; |
|
|
38 |
import org.eclipse.gmf.codegen.gmfgen.GMFGenPackage; |
28 |
import org.eclipse.gmf.codegen.gmfgen.GMFGenPackage; |
39 |
import org.eclipse.gmf.codegen.gmfgen.presentation.EditorPlugin; |
|
|
40 |
|
41 |
|
42 |
import org.eclipse.jface.dialogs.MessageDialog; |
29 |
import org.eclipse.jface.dialogs.MessageDialog; |
43 |
import org.eclipse.jface.viewers.ISelection; |
30 |
import org.eclipse.jface.viewers.ISelection; |
44 |
import org.eclipse.jface.viewers.IStructuredSelection; |
31 |
import org.eclipse.jface.viewers.IStructuredSelection; |
45 |
import org.eclipse.jface.viewers.StructuredSelection; |
32 |
import org.eclipse.jface.viewers.StructuredSelection; |
46 |
import org.eclipse.jface.wizard.Wizard; |
33 |
import org.eclipse.jface.wizard.Wizard; |
47 |
import org.eclipse.jface.wizard.WizardPage; |
|
|
48 |
import org.eclipse.swt.SWT; |
49 |
import org.eclipse.swt.events.ModifyEvent; |
50 |
import org.eclipse.swt.events.ModifyListener; |
51 |
import org.eclipse.swt.layout.GridData; |
52 |
import org.eclipse.swt.layout.GridLayout; |
53 |
import org.eclipse.swt.widgets.Combo; |
54 |
import org.eclipse.swt.widgets.Composite; |
55 |
import org.eclipse.swt.widgets.Label; |
56 |
import org.eclipse.ui.INewWizard; |
34 |
import org.eclipse.ui.INewWizard; |
57 |
import org.eclipse.ui.IWorkbench; |
35 |
import org.eclipse.ui.IWorkbench; |
58 |
import org.eclipse.ui.IWorkbenchPage; |
36 |
import org.eclipse.ui.IWorkbenchPage; |
Lines 69-94
Link Here
|
69 |
* This is a simple wizard for creating a new model file. |
47 |
* This is a simple wizard for creating a new model file. |
70 |
* <!-- begin-user-doc --> |
48 |
* <!-- begin-user-doc --> |
71 |
* <!-- end-user-doc --> |
49 |
* <!-- end-user-doc --> |
72 |
* @generated |
50 |
* @generated NOT |
73 |
*/ |
51 |
*/ |
74 |
public class GMFGenModelWizard extends Wizard implements INewWizard { |
52 |
public class GMFGenModelWizard extends Wizard implements INewWizard { |
75 |
/** |
53 |
/** |
76 |
* This caches an instance of the model package. |
|
|
77 |
* <!-- begin-user-doc --> |
78 |
* <!-- end-user-doc --> |
79 |
* @generated |
80 |
*/ |
81 |
protected GMFGenPackage gmfGenPackage = GMFGenPackage.eINSTANCE; |
82 |
|
83 |
/** |
84 |
* This caches an instance of the model factory. |
85 |
* <!-- begin-user-doc --> |
86 |
* <!-- end-user-doc --> |
87 |
* @generated |
88 |
*/ |
89 |
protected GMFGenFactory gmfGenFactory = gmfGenPackage.getGMFGenFactory(); |
90 |
|
91 |
/** |
92 |
* This is the file creation page. |
54 |
* This is the file creation page. |
93 |
* <!-- begin-user-doc --> |
55 |
* <!-- begin-user-doc --> |
94 |
* <!-- end-user-doc --> |
56 |
* <!-- end-user-doc --> |
Lines 97-110
Link Here
|
97 |
protected GMFGenModelWizardNewFileCreationPage newFileCreationPage; |
59 |
protected GMFGenModelWizardNewFileCreationPage newFileCreationPage; |
98 |
|
60 |
|
99 |
/** |
61 |
/** |
100 |
* This is the initial object creation page. |
|
|
101 |
* <!-- begin-user-doc --> |
102 |
* <!-- end-user-doc --> |
103 |
* @generated |
104 |
*/ |
105 |
protected GMFGenModelWizardInitialObjectCreationPage initialObjectCreationPage; |
106 |
|
107 |
/** |
108 |
* Remember the selection during initialization for populating the default container. |
62 |
* Remember the selection during initialization for populating the default container. |
109 |
* <!-- begin-user-doc --> |
63 |
* <!-- begin-user-doc --> |
110 |
* <!-- end-user-doc --> |
64 |
* <!-- end-user-doc --> |
Lines 121-134
Link Here
|
121 |
protected IWorkbench workbench; |
75 |
protected IWorkbench workbench; |
122 |
|
76 |
|
123 |
/** |
77 |
/** |
124 |
* Caches the names of the types that can be created as the root object. |
|
|
125 |
* <!-- begin-user-doc --> |
126 |
* <!-- end-user-doc --> |
127 |
* @generated |
128 |
*/ |
129 |
protected List initialObjectNames; |
130 |
|
131 |
/** |
132 |
* This just records the information. |
78 |
* This just records the information. |
133 |
* <!-- begin-user-doc --> |
79 |
* <!-- begin-user-doc --> |
134 |
* <!-- end-user-doc --> |
80 |
* <!-- end-user-doc --> |
Lines 142-263
Link Here
|
142 |
} |
88 |
} |
143 |
|
89 |
|
144 |
/** |
90 |
/** |
145 |
* Returns the names of the types that can be created as the root object. |
|
|
146 |
* <!-- begin-user-doc --> |
147 |
* <!-- end-user-doc --> |
148 |
* @generated |
149 |
*/ |
150 |
protected Collection getInitialObjectNames() { |
151 |
if (initialObjectNames == null) { |
152 |
initialObjectNames = new ArrayList(); |
153 |
for (Iterator classifiers = gmfGenPackage.getEClassifiers().iterator(); classifiers.hasNext(); ) { |
154 |
EClassifier eClassifier = (EClassifier)classifiers.next(); |
155 |
if (eClassifier instanceof EClass) { |
156 |
EClass eClass = (EClass)eClassifier; |
157 |
if (!eClass.isAbstract()) { |
158 |
initialObjectNames.add(eClass.getName()); |
159 |
} |
160 |
} |
161 |
} |
162 |
Collections.sort(initialObjectNames, java.text.Collator.getInstance()); |
163 |
} |
164 |
return initialObjectNames; |
165 |
} |
166 |
|
167 |
/** |
168 |
* Create a new model. |
91 |
* Create a new model. |
169 |
* <!-- begin-user-doc --> |
92 |
* <!-- begin-user-doc --> |
170 |
* <!-- end-user-doc --> |
93 |
* <!-- end-user-doc --> |
171 |
* @generated |
94 |
* @generated NOT |
172 |
*/ |
95 |
*/ |
173 |
protected EObject createInitialModel() { |
96 |
protected EObject createInitialModel() { |
174 |
EClass eClass = (EClass)gmfGenPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName()); |
97 |
return GMFGenPackage.eINSTANCE.getGMFGenFactory().createGenEditorGenerator(); |
175 |
EObject rootObject = gmfGenFactory.create(eClass); |
|
|
176 |
return rootObject; |
177 |
} |
98 |
} |
178 |
|
99 |
|
179 |
/** |
100 |
/** |
180 |
* Do the work after everything is specified. |
101 |
* Do the work after everything is specified. |
181 |
* <!-- begin-user-doc --> |
102 |
* <!-- begin-user-doc --> |
182 |
* <!-- end-user-doc --> |
103 |
* <!-- end-user-doc --> |
183 |
* @generated |
104 |
* @generated NOT |
184 |
*/ |
105 |
*/ |
185 |
public boolean performFinish() { |
106 |
public boolean performFinish() { |
186 |
try { |
107 |
try { |
187 |
// Remember the file. |
|
|
188 |
// |
189 |
final IFile modelFile = getModelFile(); |
108 |
final IFile modelFile = getModelFile(); |
190 |
|
109 |
createModelFile(modelFile); |
191 |
// Do the work within an operation. |
110 |
return openEditor(modelFile); |
192 |
// |
|
|
193 |
WorkspaceModifyOperation operation = |
194 |
new WorkspaceModifyOperation() { |
195 |
protected void execute(IProgressMonitor progressMonitor) { |
196 |
try { |
197 |
// Create a resource set |
198 |
// |
199 |
ResourceSet resourceSet = new ResourceSetImpl(); |
200 |
|
201 |
// Get the URI of the model file. |
202 |
// |
203 |
URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString()); |
204 |
|
205 |
// Create a resource for this file. |
206 |
// |
207 |
Resource resource = resourceSet.createResource(fileURI); |
208 |
|
209 |
// Add the initial model object to the contents. |
210 |
// |
211 |
EObject rootObject = createInitialModel(); |
212 |
if (rootObject != null) { |
213 |
resource.getContents().add(rootObject); |
214 |
} |
215 |
|
216 |
// Save the contents of the resource to the file system. |
217 |
// |
218 |
Map options = new HashMap(); |
219 |
options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding()); |
220 |
resource.save(options); |
221 |
} |
222 |
catch (Exception exception) { |
223 |
EditorPlugin.INSTANCE.log(exception); |
224 |
} |
225 |
finally { |
226 |
progressMonitor.done(); |
227 |
} |
228 |
} |
229 |
}; |
230 |
|
231 |
getContainer().run(false, false, operation); |
232 |
|
233 |
// Select the new file resource in the current view. |
234 |
// |
235 |
IWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow(); |
236 |
IWorkbenchPage page = workbenchWindow.getActivePage(); |
237 |
final IWorkbenchPart activePart = page.getActivePart(); |
238 |
if (activePart instanceof ISetSelectionTarget) { |
239 |
final ISelection targetSelection = new StructuredSelection(modelFile); |
240 |
getShell().getDisplay().asyncExec |
241 |
(new Runnable() { |
242 |
public void run() { |
243 |
((ISetSelectionTarget)activePart).selectReveal(targetSelection); |
244 |
} |
245 |
}); |
246 |
} |
247 |
|
248 |
// Open an editor on the new file. |
249 |
// |
250 |
try { |
251 |
page.openEditor |
252 |
(new FileEditorInput(modelFile), |
253 |
workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId()); |
254 |
} |
255 |
catch (PartInitException exception) { |
256 |
MessageDialog.openError(workbenchWindow.getShell(), EditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage()); |
257 |
return false; |
258 |
} |
259 |
|
260 |
return true; |
261 |
} |
111 |
} |
262 |
catch (Exception exception) { |
112 |
catch (Exception exception) { |
263 |
EditorPlugin.INSTANCE.log(exception); |
113 |
EditorPlugin.INSTANCE.log(exception); |
Lines 265-270
Link Here
|
265 |
} |
115 |
} |
266 |
} |
116 |
} |
267 |
|
117 |
|
|
|
118 |
protected boolean openEditor(final IFile modelFile) { |
119 |
// Select the new file resource in the current view. |
120 |
// |
121 |
IWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow(); |
122 |
IWorkbenchPage page = workbenchWindow.getActivePage(); |
123 |
final IWorkbenchPart activePart = page.getActivePart(); |
124 |
if (activePart instanceof ISetSelectionTarget) { |
125 |
final ISelection targetSelection = new StructuredSelection(modelFile); |
126 |
getShell().getDisplay().asyncExec |
127 |
(new Runnable() { |
128 |
public void run() { |
129 |
((ISetSelectionTarget)activePart).selectReveal(targetSelection); |
130 |
} |
131 |
}); |
132 |
} |
133 |
|
134 |
// Open an editor on the new file. |
135 |
// |
136 |
try { |
137 |
page.openEditor |
138 |
(new FileEditorInput(modelFile), |
139 |
workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId()); |
140 |
} |
141 |
catch (PartInitException exception) { |
142 |
MessageDialog.openError(workbenchWindow.getShell(), EditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage()); |
143 |
return false; |
144 |
} |
145 |
|
146 |
return true; |
147 |
} |
148 |
|
149 |
protected void createModelFile(final IFile modelFile) throws Exception { |
150 |
// Do the work within an operation. |
151 |
// |
152 |
WorkspaceModifyOperation operation = |
153 |
new WorkspaceModifyOperation() { |
154 |
protected void execute(IProgressMonitor progressMonitor) { |
155 |
try { |
156 |
// Create a resource set |
157 |
// |
158 |
ResourceSet resourceSet = new ResourceSetImpl(); |
159 |
|
160 |
// Get the URI of the model file. |
161 |
// |
162 |
URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString()); |
163 |
|
164 |
// Create a resource for this file. |
165 |
// |
166 |
Resource resource = resourceSet.createResource(fileURI); |
167 |
|
168 |
// Add the initial model object to the contents. |
169 |
// |
170 |
EObject rootObject = createInitialModel(); |
171 |
if (rootObject != null) { |
172 |
resource.getContents().add(rootObject); |
173 |
} |
174 |
|
175 |
// Save the contents of the resource to the file system. |
176 |
// |
177 |
Map options = new HashMap(); |
178 |
options.put(XMLResource.OPTION_ENCODING, "UTF-8"); |
179 |
resource.save(options); |
180 |
} |
181 |
catch (Exception exception) { |
182 |
EditorPlugin.INSTANCE.log(exception); |
183 |
} |
184 |
finally { |
185 |
progressMonitor.done(); |
186 |
} |
187 |
} |
188 |
}; |
189 |
|
190 |
getContainer().run(false, false, operation); |
191 |
} |
192 |
|
268 |
/** |
193 |
/** |
269 |
* This is the one page of the wizard. |
194 |
* This is the one page of the wizard. |
270 |
* <!-- begin-user-doc --> |
195 |
* <!-- begin-user-doc --> |
Lines 318-532
Link Here
|
318 |
} |
243 |
} |
319 |
|
244 |
|
320 |
/** |
245 |
/** |
321 |
* This is the page where the type of object to create is selected. |
|
|
322 |
* <!-- begin-user-doc --> |
323 |
* <!-- end-user-doc --> |
324 |
* @generated |
325 |
*/ |
326 |
public class GMFGenModelWizardInitialObjectCreationPage extends WizardPage { |
327 |
/** |
328 |
* <!-- begin-user-doc --> |
329 |
* <!-- end-user-doc --> |
330 |
* @generated |
331 |
*/ |
332 |
protected Combo initialObjectField; |
333 |
|
334 |
/** |
335 |
* @generated |
336 |
* <!-- begin-user-doc --> |
337 |
* <!-- end-user-doc --> |
338 |
*/ |
339 |
protected List encodings; |
340 |
|
341 |
/** |
342 |
* <!-- begin-user-doc --> |
343 |
* <!-- end-user-doc --> |
344 |
* @generated |
345 |
*/ |
346 |
protected Combo encodingField; |
347 |
|
348 |
/** |
349 |
* Pass in the selection. |
350 |
* <!-- begin-user-doc --> |
351 |
* <!-- end-user-doc --> |
352 |
* @generated |
353 |
*/ |
354 |
public GMFGenModelWizardInitialObjectCreationPage(String pageId) { |
355 |
super(pageId); |
356 |
} |
357 |
|
358 |
/** |
359 |
* <!-- begin-user-doc --> |
360 |
* <!-- end-user-doc --> |
361 |
* @generated |
362 |
*/ |
363 |
public void createControl(Composite parent) { |
364 |
Composite composite = new Composite(parent, SWT.NONE); |
365 |
{ |
366 |
GridLayout layout = new GridLayout(); |
367 |
layout.numColumns = 1; |
368 |
layout.verticalSpacing = 12; |
369 |
composite.setLayout(layout); |
370 |
|
371 |
GridData data = new GridData(); |
372 |
data.verticalAlignment = GridData.FILL; |
373 |
data.grabExcessVerticalSpace = true; |
374 |
data.horizontalAlignment = GridData.FILL; |
375 |
composite.setLayoutData(data); |
376 |
} |
377 |
|
378 |
Label containerLabel = new Label(composite, SWT.LEFT); |
379 |
{ |
380 |
containerLabel.setText(EditorPlugin.INSTANCE.getString("_UI_ModelObject")); |
381 |
|
382 |
GridData data = new GridData(); |
383 |
data.horizontalAlignment = GridData.FILL; |
384 |
containerLabel.setLayoutData(data); |
385 |
} |
386 |
|
387 |
initialObjectField = new Combo(composite, SWT.BORDER); |
388 |
{ |
389 |
GridData data = new GridData(); |
390 |
data.horizontalAlignment = GridData.FILL; |
391 |
data.grabExcessHorizontalSpace = true; |
392 |
initialObjectField.setLayoutData(data); |
393 |
} |
394 |
|
395 |
for (Iterator i = getInitialObjectNames().iterator(); i.hasNext(); ) { |
396 |
initialObjectField.add(getLabel((String)i.next())); |
397 |
} |
398 |
|
399 |
if (initialObjectField.getItemCount() == 1) { |
400 |
initialObjectField.select(0); |
401 |
} |
402 |
initialObjectField.addModifyListener(validator); |
403 |
|
404 |
Label encodingLabel = new Label(composite, SWT.LEFT); |
405 |
{ |
406 |
encodingLabel.setText(EditorPlugin.INSTANCE.getString("_UI_XMLEncoding")); |
407 |
|
408 |
GridData data = new GridData(); |
409 |
data.horizontalAlignment = GridData.FILL; |
410 |
encodingLabel.setLayoutData(data); |
411 |
} |
412 |
encodingField = new Combo(composite, SWT.BORDER); |
413 |
{ |
414 |
GridData data = new GridData(); |
415 |
data.horizontalAlignment = GridData.FILL; |
416 |
data.grabExcessHorizontalSpace = true; |
417 |
encodingField.setLayoutData(data); |
418 |
} |
419 |
|
420 |
for (Iterator i = getEncodings().iterator(); i.hasNext(); ) { |
421 |
encodingField.add((String)i.next()); |
422 |
} |
423 |
|
424 |
encodingField.select(0); |
425 |
encodingField.addModifyListener(validator); |
426 |
|
427 |
setPageComplete(validatePage()); |
428 |
setControl(composite); |
429 |
} |
430 |
|
431 |
/** |
432 |
* <!-- begin-user-doc --> |
433 |
* <!-- end-user-doc --> |
434 |
* @generated |
435 |
*/ |
436 |
protected ModifyListener validator = |
437 |
new ModifyListener() { |
438 |
public void modifyText(ModifyEvent e) { |
439 |
setPageComplete(validatePage()); |
440 |
} |
441 |
}; |
442 |
|
443 |
/** |
444 |
* <!-- begin-user-doc --> |
445 |
* <!-- end-user-doc --> |
446 |
* @generated |
447 |
*/ |
448 |
protected boolean validatePage() { |
449 |
return getInitialObjectName() != null && getEncodings().contains(encodingField.getText()); |
450 |
} |
451 |
|
452 |
/** |
453 |
* <!-- begin-user-doc --> |
454 |
* <!-- end-user-doc --> |
455 |
* @generated |
456 |
*/ |
457 |
public void setVisible(boolean visible) { |
458 |
super.setVisible(visible); |
459 |
if (visible) { |
460 |
if (initialObjectField.getItemCount() == 1) { |
461 |
initialObjectField.clearSelection(); |
462 |
encodingField.setFocus(); |
463 |
} |
464 |
else { |
465 |
encodingField.clearSelection(); |
466 |
initialObjectField.setFocus(); |
467 |
} |
468 |
} |
469 |
} |
470 |
|
471 |
/** |
472 |
* <!-- begin-user-doc --> |
473 |
* <!-- end-user-doc --> |
474 |
* @generated |
475 |
*/ |
476 |
public String getInitialObjectName() { |
477 |
String label = initialObjectField.getText(); |
478 |
|
479 |
for (Iterator i = getInitialObjectNames().iterator(); i.hasNext(); ) { |
480 |
String name = (String)i.next(); |
481 |
if (getLabel(name).equals(label)) { |
482 |
return name; |
483 |
} |
484 |
} |
485 |
return null; |
486 |
} |
487 |
|
488 |
/** |
489 |
* <!-- begin-user-doc --> |
490 |
* <!-- end-user-doc --> |
491 |
* @generated |
492 |
*/ |
493 |
public String getEncoding() { |
494 |
return encodingField.getText(); |
495 |
} |
496 |
|
497 |
/** |
498 |
* Returns the label for the specified type name. |
499 |
* <!-- begin-user-doc --> |
500 |
* <!-- end-user-doc --> |
501 |
* @generated |
502 |
*/ |
503 |
protected String getLabel(String typeName) { |
504 |
try { |
505 |
return EditorPlugin.INSTANCE.getString("_UI_" + typeName + "_type"); |
506 |
} |
507 |
catch(MissingResourceException mre) { |
508 |
EditorPlugin.INSTANCE.log(mre); |
509 |
} |
510 |
return typeName; |
511 |
} |
512 |
|
513 |
/** |
514 |
* <!-- begin-user-doc --> |
515 |
* <!-- end-user-doc --> |
516 |
* @generated |
517 |
*/ |
518 |
protected Collection getEncodings() { |
519 |
if (encodings == null) { |
520 |
encodings = new ArrayList(); |
521 |
for (StringTokenizer stringTokenizer = new StringTokenizer(EditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens(); ) { |
522 |
encodings.add(stringTokenizer.nextToken()); |
523 |
} |
524 |
} |
525 |
return encodings; |
526 |
} |
527 |
} |
528 |
|
529 |
/** |
530 |
* The framework calls this to create the contents of the wizard. |
246 |
* The framework calls this to create the contents of the wizard. |
531 |
* <!-- begin-user-doc --> |
247 |
* <!-- begin-user-doc --> |
532 |
* <!-- end-user-doc --> |
248 |
* <!-- end-user-doc --> |
Lines 574-583
Link Here
|
574 |
} |
290 |
} |
575 |
} |
291 |
} |
576 |
} |
292 |
} |
577 |
initialObjectCreationPage = new GMFGenModelWizardInitialObjectCreationPage("Whatever2"); |
|
|
578 |
initialObjectCreationPage.setTitle(EditorPlugin.INSTANCE.getString("_UI_GMFGenModelWizard_label")); |
579 |
initialObjectCreationPage.setDescription(EditorPlugin.INSTANCE.getString("_UI_Wizard_initial_object_description")); |
580 |
addPage(initialObjectCreationPage); |
581 |
} |
293 |
} |
582 |
|
294 |
|
583 |
/** |
295 |
/** |