Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-12-22 17:53:08 +0000
committerEike Stepper2010-12-22 17:53:08 +0000
commit76a807016aa78720360d68deeb460c39b49b38d0 (patch)
tree320e064ba834c9d87612fbff6e7245e15172c188 /plugins/org.eclipse.emf.cdo.dawn.examples.acore.editor
parent7bc465b474f3a1c74672b3432e0fc93175331fb5 (diff)
downloadcdo-76a807016aa78720360d68deeb460c39b49b38d0.tar.gz
cdo-76a807016aa78720360d68deeb460c39b49b38d0.tar.xz
cdo-76a807016aa78720360d68deeb460c39b49b38d0.zip
Made Acore Root the default new model element
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.examples.acore.editor')
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.examples.acore.editor/src/org/eclipse/emf/cdo/dawn/examples/acore/presentation/AcoreModelWizard.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.editor/src/org/eclipse/emf/cdo/dawn/examples/acore/presentation/AcoreModelWizard.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.editor/src/org/eclipse/emf/cdo/dawn/examples/acore/presentation/AcoreModelWizard.java
index 205c6e44f4..5e8bf55370 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.editor/src/org/eclipse/emf/cdo/dawn/examples/acore/presentation/AcoreModelWizard.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.editor/src/org/eclipse/emf/cdo/dawn/examples/acore/presentation/AcoreModelWizard.java
@@ -4,10 +4,10 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Martin Fluegge - initial API and implementation
- *
+ *
*/
package org.eclipse.emf.cdo.dawn.examples.acore.presentation;
@@ -393,7 +393,7 @@ public class AcoreModelWizard extends Wizard implements INewWizard
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
- * @generated
+ * @generated NOT
*/
public void createControl(Composite parent)
{
@@ -428,9 +428,16 @@ public class AcoreModelWizard extends Wizard implements INewWizard
initialObjectField.setLayoutData(data);
}
+ int i = 0;
for (String objectName : getInitialObjectNames())
{
initialObjectField.add(getLabel(objectName));
+ if (AcorePackage.Literals.ACORE_ROOT.getName().equals(objectName))
+ {
+ initialObjectField.select(i);
+ }
+
+ ++i;
}
if (initialObjectField.getItemCount() == 1)

Back to the top