EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.featureconfig.presentation]

COVERAGE SUMMARY FOR SOURCE FILE [featureconfigModelWizard.java]

nameclass, %method, %block, %line, %
featureconfigModelWizard.java0%   (0/6)0%   (0/25)0%   (0/807)0%   (0/173)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class featureconfigModelWizard0%   (0/1)0%   (0/8)0%   (0/336)0%   (0/70)
<static initializer> 0%   (0/1)0%   (0/16)0%   (0/5)
addPages (): void 0%   (0/1)0%   (0/149)0%   (0/24)
createInitialModel (): EObject 0%   (0/1)0%   (0/15)0%   (0/3)
featureconfigModelWizard (): void 0%   (0/1)0%   (0/11)0%   (0/3)
getInitialObjectNames (): Collection 0%   (0/1)0%   (0/44)0%   (0/9)
getModelFile (): IFile 0%   (0/1)0%   (0/4)0%   (0/1)
init (IWorkbench, IStructuredSelection): void 0%   (0/1)0%   (0/19)0%   (0/5)
performFinish (): boolean 0%   (0/1)0%   (0/78)0%   (0/21)
     
class featureconfigModelWizard$10%   (0/1)0%   (0/2)0%   (0/66)0%   (0/17)
execute (IProgressMonitor): void 0%   (0/1)0%   (0/57)0%   (0/15)
featureconfigModelWizard$1 (featureconfigModelWizard, IFile): void 0%   (0/1)0%   (0/9)0%   (0/2)
     
class featureconfigModelWizard$20%   (0/1)0%   (0/2)0%   (0/19)0%   (0/4)
featureconfigModelWizard$2 (featureconfigModelWizard, IWorkbenchPart, ISelect... 0%   (0/1)0%   (0/12)0%   (0/2)
run (): void 0%   (0/1)0%   (0/7)0%   (0/2)
     
class featureconfigModelWizard$featureconfigModelWizardInitialObjectCreationPage0%   (0/1)0%   (0/8)0%   (0/315)0%   (0/71)
createControl (Composite): void 0%   (0/1)0%   (0/185)0%   (0/42)
featureconfigModelWizard$featureconfigModelWizardInitialObjectCreationPage (f... 0%   (0/1)0%   (0/13)0%   (0/5)
getEncoding (): String 0%   (0/1)0%   (0/4)0%   (0/1)
getEncodings (): Collection 0%   (0/1)0%   (0/28)0%   (0/5)
getInitialObjectName (): String 0%   (0/1)0%   (0/27)0%   (0/5)
getLabel (String): String 0%   (0/1)0%   (0/18)0%   (0/4)
setVisible (boolean): void 0%   (0/1)0%   (0/26)0%   (0/8)
validatePage (): boolean 0%   (0/1)0%   (0/14)0%   (0/1)
     
class featureconfigModelWizard$featureconfigModelWizardInitialObjectCreationPage$10%   (0/1)0%   (0/2)0%   (0/13)0%   (0/4)
featureconfigModelWizard$featureconfigModelWizardInitialObjectCreationPage$1 ... 0%   (0/1)0%   (0/6)0%   (0/2)
modifyText (ModifyEvent): void 0%   (0/1)0%   (0/7)0%   (0/2)
     
class featureconfigModelWizard$featureconfigModelWizardNewFileCreationPage0%   (0/1)0%   (0/3)0%   (0/58)0%   (0/12)
featureconfigModelWizard$featureconfigModelWizardNewFileCreationPage (feature... 0%   (0/1)0%   (0/8)0%   (0/3)
getModelFile (): IFile 0%   (0/1)0%   (0/9)0%   (0/1)
validatePage (): boolean 0%   (0/1)0%   (0/41)0%   (0/8)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.featureconfig.presentation;
8 
9 
10import java.util.ArrayList;
11import java.util.Arrays;
12import java.util.Collection;
13import java.util.Collections;
14import java.util.HashMap;
15import java.util.List;
16import java.util.Map;
17import java.util.MissingResourceException;
18import java.util.StringTokenizer;
19 
20import org.eclipse.core.resources.IContainer;
21import org.eclipse.core.resources.IFile;
22import org.eclipse.core.resources.IFolder;
23import org.eclipse.core.resources.IProject;
24import org.eclipse.core.resources.IResource;
25import org.eclipse.core.resources.ResourcesPlugin;
26import org.eclipse.core.runtime.IProgressMonitor;
27import org.eclipse.core.runtime.Path;
28import org.eclipse.emf.common.CommonPlugin;
29import org.eclipse.emf.common.util.URI;
30import org.eclipse.emf.ecore.EClass;
31import org.eclipse.emf.ecore.EClassifier;
32import org.eclipse.emf.ecore.EObject;
33import org.eclipse.emf.ecore.resource.Resource;
34import org.eclipse.emf.ecore.resource.ResourceSet;
35import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
36import org.eclipse.emf.ecore.xmi.XMLResource;
37import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry;
38import org.eclipse.jface.dialogs.MessageDialog;
39import org.eclipse.jface.viewers.ISelection;
40import org.eclipse.jface.viewers.IStructuredSelection;
41import org.eclipse.jface.viewers.StructuredSelection;
42import org.eclipse.jface.wizard.Wizard;
43import org.eclipse.jface.wizard.WizardPage;
44import org.eclipse.swt.SWT;
45import org.eclipse.swt.events.ModifyEvent;
46import org.eclipse.swt.events.ModifyListener;
47import org.eclipse.swt.layout.GridData;
48import org.eclipse.swt.layout.GridLayout;
49import org.eclipse.swt.widgets.Combo;
50import org.eclipse.swt.widgets.Composite;
51import org.eclipse.swt.widgets.Label;
52import org.eclipse.ui.INewWizard;
53import org.eclipse.ui.IWorkbench;
54import org.eclipse.ui.IWorkbenchPage;
55import org.eclipse.ui.IWorkbenchPart;
56import org.eclipse.ui.IWorkbenchWindow;
57import org.eclipse.ui.PartInitException;
58import org.eclipse.ui.actions.WorkspaceModifyOperation;
59import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
60import org.eclipse.ui.part.FileEditorInput;
61import org.eclipse.ui.part.ISetSelectionTarget;
62 
63import de.uka.ipd.sdq.featureconfig.featureconfigFactory;
64import de.uka.ipd.sdq.featureconfig.featureconfigPackage;
65import de.uka.ipd.sdq.featureconfig.provider.FeatureConfigEditPlugin;
66 
67 
68/**
69 * This is a simple wizard for creating a new model file.
70 * <!-- begin-user-doc -->
71 * <!-- end-user-doc -->
72 * @generated
73 */
74public class featureconfigModelWizard extends Wizard implements INewWizard {
75        /**
76         * The supported extensions for created files.
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        public static final List<String> FILE_EXTENSIONS =
82                Collections.unmodifiableList(Arrays.asList(FeatureConfigEditorPlugin.INSTANCE.getString("_UI_featureconfigEditorFilenameExtensions").split("\\s*,\\s*")));
83 
84        /**
85         * A formatted list of supported file extensions, suitable for display.
86         * <!-- begin-user-doc -->
87         * <!-- end-user-doc -->
88         * @generated
89         */
90        public static final String FORMATTED_FILE_EXTENSIONS =
91                FeatureConfigEditorPlugin.INSTANCE.getString("_UI_featureconfigEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", ");
92 
93        /**
94         * This caches an instance of the model package.
95         * <!-- begin-user-doc -->
96         * <!-- end-user-doc -->
97         * @generated
98         */
99        protected featureconfigPackage _featureconfigPackage = featureconfigPackage.eINSTANCE;
100 
101        /**
102         * This caches an instance of the model factory.
103         * <!-- begin-user-doc -->
104         * <!-- end-user-doc -->
105         * @generated
106         */
107        protected featureconfigFactory _featureconfigFactory = _featureconfigPackage.getfeatureconfigFactory();
108 
109        /**
110         * This is the file creation page.
111         * <!-- begin-user-doc -->
112         * <!-- end-user-doc -->
113         * @generated
114         */
115        protected featureconfigModelWizardNewFileCreationPage newFileCreationPage;
116 
117        /**
118         * This is the initial object creation page.
119         * <!-- begin-user-doc -->
120         * <!-- end-user-doc -->
121         * @generated
122         */
123        protected featureconfigModelWizardInitialObjectCreationPage initialObjectCreationPage;
124 
125        /**
126         * Remember the selection during initialization for populating the default container.
127         * <!-- begin-user-doc -->
128         * <!-- end-user-doc -->
129         * @generated
130         */
131        protected IStructuredSelection selection;
132 
133        /**
134         * Remember the workbench during initialization.
135         * <!-- begin-user-doc -->
136         * <!-- end-user-doc -->
137         * @generated
138         */
139        protected IWorkbench workbench;
140 
141        /**
142         * Caches the names of the types that can be created as the root object.
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        protected List<String> initialObjectNames;
148 
149        /**
150         * This just records the information.
151         * <!-- begin-user-doc -->
152         * <!-- end-user-doc -->
153         * @generated
154         */
155        public void init(IWorkbench workbench, IStructuredSelection selection) {
156                this.workbench = workbench;
157                this.selection = selection;
158                setWindowTitle(FeatureConfigEditorPlugin.INSTANCE.getString("_UI_Wizard_label"));
159                setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(FeatureConfigEditorPlugin.INSTANCE.getImage("full/wizban/Newfeatureconfig")));
160        }
161 
162        /**
163         * Returns the names of the types that can be created as the root object.
164         * <!-- begin-user-doc -->
165         * <!-- end-user-doc -->
166         * @generated
167         */
168        protected Collection<String> getInitialObjectNames() {
169                if (initialObjectNames == null) {
170                        initialObjectNames = new ArrayList<String>();
171                        for (EClassifier eClassifier : _featureconfigPackage.getEClassifiers()) {
172                                if (eClassifier instanceof EClass) {
173                                        EClass eClass = (EClass)eClassifier;
174                                        if (!eClass.isAbstract()) {
175                                                initialObjectNames.add(eClass.getName());
176                                        }
177                                }
178                        }
179                        Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());
180                }
181                return initialObjectNames;
182        }
183 
184        /**
185         * Create a new model.
186         * <!-- begin-user-doc -->
187         * <!-- end-user-doc -->
188         * @generated
189         */
190        protected EObject createInitialModel() {
191                EClass eClass = (EClass)_featureconfigPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName());
192                EObject rootObject = _featureconfigFactory.create(eClass);
193                return rootObject;
194        }
195 
196        /**
197         * Do the work after everything is specified.
198         * <!-- begin-user-doc -->
199         * <!-- end-user-doc -->
200         * @generated
201         */
202        @Override
203        public boolean performFinish() {
204                try {
205                        // Remember the file.
206                        //
207                        final IFile modelFile = getModelFile();
208 
209                        // Do the work within an operation.
210                        //
211                        WorkspaceModifyOperation operation =
212                                new WorkspaceModifyOperation() {
213                                        @Override
214                                        protected void execute(IProgressMonitor progressMonitor) {
215                                                try {
216                                                        // Create a resource set
217                                                        //
218                                                        ResourceSet resourceSet = new ResourceSetImpl();
219 
220                                                        // Get the URI of the model file.
221                                                        //
222                                                        URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);
223 
224                                                        // Create a resource for this file.
225                                                        //
226                                                        Resource resource = resourceSet.createResource(fileURI);
227 
228                                                        // Add the initial model object to the contents.
229                                                        //
230                                                        EObject rootObject = createInitialModel();
231                                                        if (rootObject != null) {
232                                                                resource.getContents().add(rootObject);
233                                                        }
234 
235                                                        // Save the contents of the resource to the file system.
236                                                        //
237                                                        Map<Object, Object> options = new HashMap<Object, Object>();
238                                                        options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());
239                                                        resource.save(options);
240                                                }
241                                                catch (Exception exception) {
242                                                        FeatureConfigEditorPlugin.INSTANCE.log(exception);
243                                                }
244                                                finally {
245                                                        progressMonitor.done();
246                                                }
247                                        }
248                                };
249 
250                        getContainer().run(false, false, operation);
251 
252                        // Select the new file resource in the current view.
253                        //
254                        IWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow();
255                        IWorkbenchPage page = workbenchWindow.getActivePage();
256                        final IWorkbenchPart activePart = page.getActivePart();
257                        if (activePart instanceof ISetSelectionTarget) {
258                                final ISelection targetSelection = new StructuredSelection(modelFile);
259                                getShell().getDisplay().asyncExec
260                                        (new Runnable() {
261                                                 public void run() {
262                                                         ((ISetSelectionTarget)activePart).selectReveal(targetSelection);
263                                                 }
264                                         });
265                        }
266 
267                        // Open an editor on the new file.
268                        //
269                        try {
270                                page.openEditor
271                                        (new FileEditorInput(modelFile),
272                                         workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());                                                  
273                        }
274                        catch (PartInitException exception) {
275                                MessageDialog.openError(workbenchWindow.getShell(), FeatureConfigEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage());
276                                return false;
277                        }
278 
279                        return true;
280                }
281                catch (Exception exception) {
282                        FeatureConfigEditorPlugin.INSTANCE.log(exception);
283                        return false;
284                }
285        }
286 
287        /**
288         * This is the one page of the wizard.
289         * <!-- begin-user-doc -->
290         * <!-- end-user-doc -->
291         * @generated
292         */
293        public class featureconfigModelWizardNewFileCreationPage extends WizardNewFileCreationPage {
294                /**
295                 * Pass in the selection.
296                 * <!-- begin-user-doc -->
297                 * <!-- end-user-doc -->
298                 * @generated
299                 */
300                public featureconfigModelWizardNewFileCreationPage(String pageId, IStructuredSelection selection) {
301                        super(pageId, selection);
302                }
303 
304                /**
305                 * The framework calls this to see if the file is correct.
306                 * <!-- begin-user-doc -->
307                 * <!-- end-user-doc -->
308                 * @generated
309                 */
310                @Override
311                protected boolean validatePage() {
312                        if (super.validatePage()) {
313                                String extension = new Path(getFileName()).getFileExtension();
314                                if (extension == null || !FILE_EXTENSIONS.contains(extension)) {
315                                        String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" : "_WARN_FilenameExtension";
316                                        setErrorMessage(FeatureConfigEditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));
317                                        return false;
318                                }
319                                return true;
320                        }
321                        return false;
322                }
323 
324                /**
325                 * <!-- begin-user-doc -->
326                 * <!-- end-user-doc -->
327                 * @generated
328                 */
329                public IFile getModelFile() {
330                        return ResourcesPlugin.getWorkspace().getRoot().getFile(getContainerFullPath().append(getFileName()));
331                }
332        }
333 
334        /**
335         * This is the page where the type of object to create is selected.
336         * <!-- begin-user-doc -->
337         * <!-- end-user-doc -->
338         * @generated
339         */
340        public class featureconfigModelWizardInitialObjectCreationPage extends WizardPage {
341                /**
342                 * <!-- begin-user-doc -->
343                 * <!-- end-user-doc -->
344                 * @generated
345                 */
346                protected Combo initialObjectField;
347 
348                /**
349                 * @generated
350                 * <!-- begin-user-doc -->
351                 * <!-- end-user-doc -->
352                 */
353                protected List<String> encodings;
354 
355                /**
356                 * <!-- begin-user-doc -->
357                 * <!-- end-user-doc -->
358                 * @generated
359                 */
360                protected Combo encodingField;
361 
362                /**
363                 * Pass in the selection.
364                 * <!-- begin-user-doc -->
365                 * <!-- end-user-doc -->
366                 * @generated
367                 */
368                public featureconfigModelWizardInitialObjectCreationPage(String pageId) {
369                        super(pageId);
370                }
371 
372                /**
373                 * <!-- begin-user-doc -->
374                 * <!-- end-user-doc -->
375                 * @generated
376                 */
377                public void createControl(Composite parent) {
378                        Composite composite = new Composite(parent, SWT.NONE); {
379                                GridLayout layout = new GridLayout();
380                                layout.numColumns = 1;
381                                layout.verticalSpacing = 12;
382                                composite.setLayout(layout);
383 
384                                GridData data = new GridData();
385                                data.verticalAlignment = GridData.FILL;
386                                data.grabExcessVerticalSpace = true;
387                                data.horizontalAlignment = GridData.FILL;
388                                composite.setLayoutData(data);
389                        }
390 
391                        Label containerLabel = new Label(composite, SWT.LEFT);
392                        {
393                                containerLabel.setText(FeatureConfigEditorPlugin.INSTANCE.getString("_UI_ModelObject"));
394 
395                                GridData data = new GridData();
396                                data.horizontalAlignment = GridData.FILL;
397                                containerLabel.setLayoutData(data);
398                        }
399 
400                        initialObjectField = new Combo(composite, SWT.BORDER);
401                        {
402                                GridData data = new GridData();
403                                data.horizontalAlignment = GridData.FILL;
404                                data.grabExcessHorizontalSpace = true;
405                                initialObjectField.setLayoutData(data);
406                        }
407 
408                        for (String objectName : getInitialObjectNames()) {
409                                initialObjectField.add(getLabel(objectName));
410                        }
411 
412                        if (initialObjectField.getItemCount() == 1) {
413                                initialObjectField.select(0);
414                        }
415                        initialObjectField.addModifyListener(validator);
416 
417                        Label encodingLabel = new Label(composite, SWT.LEFT);
418                        {
419                                encodingLabel.setText(FeatureConfigEditorPlugin.INSTANCE.getString("_UI_XMLEncoding"));
420 
421                                GridData data = new GridData();
422                                data.horizontalAlignment = GridData.FILL;
423                                encodingLabel.setLayoutData(data);
424                        }
425                        encodingField = new Combo(composite, SWT.BORDER);
426                        {
427                                GridData data = new GridData();
428                                data.horizontalAlignment = GridData.FILL;
429                                data.grabExcessHorizontalSpace = true;
430                                encodingField.setLayoutData(data);
431                        }
432 
433                        for (String encoding : getEncodings()) {
434                                encodingField.add(encoding);
435                        }
436 
437                        encodingField.select(0);
438                        encodingField.addModifyListener(validator);
439 
440                        setPageComplete(validatePage());
441                        setControl(composite);
442                }
443 
444                /**
445                 * <!-- begin-user-doc -->
446                 * <!-- end-user-doc -->
447                 * @generated
448                 */
449                protected ModifyListener validator =
450                        new ModifyListener() {
451                                public void modifyText(ModifyEvent e) {
452                                        setPageComplete(validatePage());
453                                }
454                        };
455 
456                /**
457                 * <!-- begin-user-doc -->
458                 * <!-- end-user-doc -->
459                 * @generated
460                 */
461                protected boolean validatePage() {
462                        return getInitialObjectName() != null && getEncodings().contains(encodingField.getText());
463                }
464 
465                /**
466                 * <!-- begin-user-doc -->
467                 * <!-- end-user-doc -->
468                 * @generated
469                 */
470                @Override
471                public void setVisible(boolean visible) {
472                        super.setVisible(visible);
473                        if (visible) {
474                                if (initialObjectField.getItemCount() == 1) {
475                                        initialObjectField.clearSelection();
476                                        encodingField.setFocus();
477                                }
478                                else {
479                                        encodingField.clearSelection();
480                                        initialObjectField.setFocus();
481                                }
482                        }
483                }
484 
485                /**
486                 * <!-- begin-user-doc -->
487                 * <!-- end-user-doc -->
488                 * @generated
489                 */
490                public String getInitialObjectName() {
491                        String label = initialObjectField.getText();
492 
493                        for (String name : getInitialObjectNames()) {
494                                if (getLabel(name).equals(label)) {
495                                        return name;
496                                }
497                        }
498                        return null;
499                }
500 
501                /**
502                 * <!-- begin-user-doc -->
503                 * <!-- end-user-doc -->
504                 * @generated
505                 */
506                public String getEncoding() {
507                        return encodingField.getText();
508                }
509 
510                /**
511                 * Returns the label for the specified type name.
512                 * <!-- begin-user-doc -->
513                 * <!-- end-user-doc -->
514                 * @generated
515                 */
516                protected String getLabel(String typeName) {
517                        try {
518                                return FeatureConfigEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type");
519                        }
520                        catch(MissingResourceException mre) {
521                                FeatureConfigEditorPlugin.INSTANCE.log(mre);
522                        }
523                        return typeName;
524                }
525 
526                /**
527                 * <!-- begin-user-doc -->
528                 * <!-- end-user-doc -->
529                 * @generated
530                 */
531                protected Collection<String> getEncodings() {
532                        if (encodings == null) {
533                                encodings = new ArrayList<String>();
534                                for (StringTokenizer stringTokenizer = new StringTokenizer(FeatureConfigEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens(); ) {
535                                        encodings.add(stringTokenizer.nextToken());
536                                }
537                        }
538                        return encodings;
539                }
540        }
541 
542        /**
543         * The framework calls this to create the contents of the wizard.
544         * <!-- begin-user-doc -->
545         * <!-- end-user-doc -->
546         * @generated
547         */
548                @Override
549        public void addPages() {
550                // Create a page, set the title, and the initial model file name.
551                //
552                newFileCreationPage = new featureconfigModelWizardNewFileCreationPage("Whatever", selection);
553                newFileCreationPage.setTitle(FeatureConfigEditorPlugin.INSTANCE.getString("_UI_featureconfigModelWizard_label"));
554                newFileCreationPage.setDescription(FeatureConfigEditorPlugin.INSTANCE.getString("_UI_featureconfigModelWizard_description"));
555                newFileCreationPage.setFileName(FeatureConfigEditorPlugin.INSTANCE.getString("_UI_featureconfigEditorFilenameDefaultBase") + "." + FILE_EXTENSIONS.get(0));
556                addPage(newFileCreationPage);
557 
558                // Try and get the resource selection to determine a current directory for the file dialog.
559                //
560                if (selection != null && !selection.isEmpty()) {
561                        // Get the resource...
562                        //
563                        Object selectedElement = selection.iterator().next();
564                        if (selectedElement instanceof IResource) {
565                                // Get the resource parent, if its a file.
566                                //
567                                IResource selectedResource = (IResource)selectedElement;
568                                if (selectedResource.getType() == IResource.FILE) {
569                                        selectedResource = selectedResource.getParent();
570                                }
571 
572                                // This gives us a directory...
573                                //
574                                if (selectedResource instanceof IFolder || selectedResource instanceof IProject) {
575                                        // Set this for the container.
576                                        //
577                                        newFileCreationPage.setContainerFullPath(selectedResource.getFullPath());
578 
579                                        // Make up a unique new name here.
580                                        //
581                                        String defaultModelBaseFilename = FeatureConfigEditorPlugin.INSTANCE.getString("_UI_featureconfigEditorFilenameDefaultBase");
582                                        String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0);
583                                        String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension;
584                                        for (int i = 1; ((IContainer)selectedResource).findMember(modelFilename) != null; ++i) {
585                                                modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension;
586                                        }
587                                        newFileCreationPage.setFileName(modelFilename);
588                                }
589                        }
590                }
591                initialObjectCreationPage = new featureconfigModelWizardInitialObjectCreationPage("Whatever2");
592                initialObjectCreationPage.setTitle(FeatureConfigEditorPlugin.INSTANCE.getString("_UI_featureconfigModelWizard_label"));
593                initialObjectCreationPage.setDescription(FeatureConfigEditorPlugin.INSTANCE.getString("_UI_Wizard_initial_object_description"));
594                addPage(initialObjectCreationPage);
595        }
596 
597        /**
598         * Get the file from the page.
599         * <!-- begin-user-doc -->
600         * <!-- end-user-doc -->
601         * @generated
602         */
603        public IFile getModelFile() {
604                return newFileCreationPage.getModelFile();
605        }
606 
607}

[all classes][de.uka.ipd.sdq.featureconfig.presentation]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov