From da36bd46832db377b9f670735ec3265ec15f3410 Mon Sep 17 00:00:00 2001 From: Martin Fluegge Date: Sun, 6 Jun 2010 14:39:45 +0000 Subject: [308232] [Dawn] Develop collaborative support for GMF on CDO https://bugs.eclipse.org/bugs/show_bug.cgi?id=308232 --- .../feature.xml | 8 +- .../src/template/GMFFragmentTemplate.xpt | 72 +-- .../acore/diagram/part/DawnAcoreDiagramEditor.java | 53 +- .../.settings/org.eclipse.jdt.core.prefs | 67 ++- .../edit/commands/AAttribute2CreateCommand.java | 1 + .../edit/commands/AAttributeCreateCommand.java | 1 + .../diagram/edit/commands/AClassCreateCommand.java | 1 + .../edit/commands/AInterfaceCreateCommand.java | 1 + .../edit/commands/AOperation2CreateCommand.java | 1 + .../edit/commands/AOperationCreateCommand.java | 1 + .../parts/AClassAAttributeCompartmentEditPart.java | 2 +- .../AClassAOperationClassCompartmentEditPart.java | 2 +- .../edit/parts/AClassAggregationsEditPart.java | 6 +- .../edit/parts/AClassAssociationsEditPart.java | 6 +- .../edit/parts/AClassCompositionsEditPart.java | 6 +- .../acore/diagram/edit/parts/AClassEditPart.java | 24 +- .../parts/AClassImplementedInterfacesEditPart.java | 6 +- .../edit/parts/AClassSubClassesEditPart.java | 6 +- ...faceAAttributeInterfaceCompartmentEditPart.java | 2 +- ...faceAOperationInterfaceCompartmentEditPart.java | 2 +- .../diagram/edit/parts/AInterfaceEditPart.java | 24 +- .../policies/AClassItemSemanticEditPolicy.java | 14 +- .../policies/ACoreRootCanonicalEditPolicy.java | 3 +- .../policies/AInterfaceItemSemanticEditPolicy.java | 14 +- .../policies/AcoreBaseItemSemanticEditPolicy.java | 12 +- .../diagram/part/AcoreDiagramEditorPlugin.java | 29 +- .../acore/diagram/part/AcoreDiagramEditorUtil.java | 15 +- .../acore/diagram/part/AcoreDocumentProvider.java | 32 +- .../acore/diagram/part/AcorePaletteFactory.java | 2 + .../acore/diagram/part/AcoreVisualIDRegistry.java | 8 +- .../dawn/examples/acore/diagram/part/Messages.java | 2 +- .../diagram/part/ModelElementSelectionPage.java | 3 + .../diagram/providers/AcoreParserProvider.java | 1 + .../acore/diagram/providers/AcoreViewProvider.java | 17 +- .../acore/diagram/sheet/AcorePropertySection.java | 1 + .../acore/provider/AAttributeItemProvider.java | 62 +-- .../acore/provider/ABasicClassItemProvider.java | 128 ++--- .../acore/provider/AClassChildItemProvider.java | 147 ++--- .../acore/provider/AClassItemProvider.java | 173 ++---- .../acore/provider/ACoreRootItemProvider.java | 128 ++--- .../acore/provider/AInterfaceItemProvider.java | 62 +-- .../acore/provider/AOperationItemProvider.java | 85 ++- .../acore/provider/AParameterItemProvider.java | 122 ++-- .../examples/acore/provider/AcoreEditPlugin.java | 50 +- .../provider/AcoreItemProviderAdapterFactory.java | 192 +++---- .../META-INF/MANIFEST.MF | 13 +- .../emf/cdo/dawn/examples/acore/AAttribute.java | 12 +- .../emf/cdo/dawn/examples/acore/ABasicClass.java | 53 +- .../emf/cdo/dawn/examples/acore/AClass.java | 71 ++- .../emf/cdo/dawn/examples/acore/AClassChild.java | 85 ++- .../emf/cdo/dawn/examples/acore/ACoreRoot.java | 53 +- .../emf/cdo/dawn/examples/acore/AInterface.java | 12 +- .../emf/cdo/dawn/examples/acore/AOperation.java | 23 +- .../emf/cdo/dawn/examples/acore/AParameter.java | 43 +- .../emf/cdo/dawn/examples/acore/AccessType.java | 156 +++--- .../emf/cdo/dawn/examples/acore/AcoreFactory.java | 63 +-- .../emf/cdo/dawn/examples/acore/AcorePackage.java | 620 ++++++++++----------- .../dawn/examples/acore/impl/AAttributeImpl.java | 20 +- .../dawn/examples/acore/impl/ABasicClassImpl.java | 51 +- .../dawn/examples/acore/impl/AClassChildImpl.java | 66 ++- .../cdo/dawn/examples/acore/impl/AClassImpl.java | 52 +- .../dawn/examples/acore/impl/ACoreRootImpl.java | 51 +- .../dawn/examples/acore/impl/AInterfaceImpl.java | 20 +- .../dawn/examples/acore/impl/AOperationImpl.java | 27 +- .../dawn/examples/acore/impl/AParameterImpl.java | 48 +- .../dawn/examples/acore/impl/AcoreFactoryImpl.java | 162 +++--- .../dawn/examples/acore/impl/AcorePackageImpl.java | 351 ++++++------ .../examples/acore/util/AcoreAdapterFactory.java | 239 ++++---- .../cdo/dawn/examples/acore/util/AcoreSwitch.java | 296 +++++----- .../META-INF/MANIFEST.MF | 6 +- .../eclipse/emf/cdo/dawn/tests/AllTestsDawn.java | 3 +- .../cdo/dawn/tests/DawnWrapperResourceTest.java | 53 ++ .../org/eclipse/emf/cdo/dawn/tests/GMFTest.java | 10 +- 73 files changed, 2039 insertions(+), 2214 deletions(-) create mode 100644 plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/DawnWrapperResourceTest.java diff --git a/features/org.eclipse.emf.cdo.dawn.examples-feature/feature.xml b/features/org.eclipse.emf.cdo.dawn.examples-feature/feature.xml index ba3836b187..a43f92988d 100644 --- a/features/org.eclipse.emf.cdo.dawn.examples-feature/feature.xml +++ b/features/org.eclipse.emf.cdo.dawn.examples-feature/feature.xml @@ -29,21 +29,21 @@ generated tag and modify it. + * Creates figure for this edit part. Body of this method does not depend on settings in generation model so you may + * safely remove generated tag and modify it. * * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassAssociationsEditPart.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassAssociationsEditPart.java index 395daea6bd..ba61ed9375 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassAssociationsEditPart.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassAssociationsEditPart.java @@ -48,10 +48,8 @@ public class AClassAssociationsEditPart extends ConnectionNodeEditPart implement } /** - * Creates figure for this edit part. - * - * Body of this method does not depend on settings in generation model - * so you may safely remove generated tag and modify it. + * Creates figure for this edit part. Body of this method does not depend on settings in generation model so you may + * safely remove generated tag and modify it. * * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassCompositionsEditPart.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassCompositionsEditPart.java index c572398f54..33102905c7 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassCompositionsEditPart.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassCompositionsEditPart.java @@ -52,10 +52,8 @@ public class AClassCompositionsEditPart extends ConnectionNodeEditPart implement } /** - * Creates figure for this edit part. - * - * Body of this method does not depend on settings in generation model - * so you may safely remove generated tag and modify it. + * Creates figure for this edit part. Body of this method does not depend on settings in generation model so you may + * safely remove generated tag and modify it. * * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassEditPart.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassEditPart.java index a71cfd13f5..d7818a9f4e 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassEditPart.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassEditPart.java @@ -82,7 +82,8 @@ public class AClassEditPart extends ShapeNodeEditPart super.createDefaultEditPolicies(); installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new AClassItemSemanticEditPolicy()); installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy()); - // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies + // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable + // editpolicies // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE); } @@ -140,14 +141,14 @@ public class AClassEditPart extends ShapeNodeEditPart if (childEditPart instanceof AClassAAttributeCompartmentEditPart) { IFigure pane = getPrimaryShape().getFigureClassAttributes(); - setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way + setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way pane.add(((AClassAAttributeCompartmentEditPart)childEditPart).getFigure()); return true; } if (childEditPart instanceof AClassAOperationClassCompartmentEditPart) { IFigure pane = getPrimaryShape().getFigureClassOperations(); - setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way + setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way pane.add(((AClassAOperationClassCompartmentEditPart)childEditPart).getFigure()); return true; } @@ -166,14 +167,14 @@ public class AClassEditPart extends ShapeNodeEditPart if (childEditPart instanceof AClassAAttributeCompartmentEditPart) { IFigure pane = getPrimaryShape().getFigureClassAttributes(); - setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way + setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way pane.remove(((AClassAAttributeCompartmentEditPart)childEditPart).getFigure()); return true; } if (childEditPart instanceof AClassAOperationClassCompartmentEditPart) { IFigure pane = getPrimaryShape().getFigureClassOperations(); - setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way + setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way pane.remove(((AClassAOperationClassCompartmentEditPart)childEditPart).getFigure()); return true; } @@ -230,10 +231,8 @@ public class AClassEditPart extends ShapeNodeEditPart } /** - * Creates figure for this edit part. - * - * Body of this method does not depend on settings in generation model - * so you may safely remove generated tag and modify it. + * Creates figure for this edit part. Body of this method does not depend on settings in generation model so you may + * safely remove generated tag and modify it. * * @generated */ @@ -248,9 +247,10 @@ public class AClassEditPart extends ShapeNodeEditPart } /** - * Default implementation treats passed figure as content pane. - * Respects layout one may have set for generated figure. - * @param nodeShape instance of generated figure class + * Default implementation treats passed figure as content pane. Respects layout one may have set for generated figure. + * + * @param nodeShape + * instance of generated figure class * @generated */ protected IFigure setupContentPane(IFigure nodeShape) diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassImplementedInterfacesEditPart.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassImplementedInterfacesEditPart.java index cadb28c77a..7fd0b0b9c3 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassImplementedInterfacesEditPart.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassImplementedInterfacesEditPart.java @@ -51,10 +51,8 @@ public class AClassImplementedInterfacesEditPart extends ConnectionNodeEditPart } /** - * Creates figure for this edit part. - * - * Body of this method does not depend on settings in generation model - * so you may safely remove generated tag and modify it. + * Creates figure for this edit part. Body of this method does not depend on settings in generation model so you may + * safely remove generated tag and modify it. * * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassSubClassesEditPart.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassSubClassesEditPart.java index 34c9a55e73..d811a8a317 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassSubClassesEditPart.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AClassSubClassesEditPart.java @@ -52,10 +52,8 @@ public class AClassSubClassesEditPart extends ConnectionNodeEditPart implements } /** - * Creates figure for this edit part. - * - * Body of this method does not depend on settings in generation model - * so you may safely remove generated tag and modify it. + * Creates figure for this edit part. Body of this method does not depend on settings in generation model so you may + * safely remove generated tag and modify it. * * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceAAttributeInterfaceCompartmentEditPart.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceAAttributeInterfaceCompartmentEditPart.java index aa8a2a2326..704e485d3b 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceAAttributeInterfaceCompartmentEditPart.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceAAttributeInterfaceCompartmentEditPart.java @@ -87,7 +87,7 @@ public class AInterfaceAAttributeInterfaceCompartmentEditPart extends ListCompar protected void setRatio(Double ratio) { // nothing to do -- parent layout does not accept Double constraints as ratio - // super.setRatio(ratio); + // super.setRatio(ratio); } } diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceAOperationInterfaceCompartmentEditPart.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceAOperationInterfaceCompartmentEditPart.java index f21ee2ede3..61f45610f3 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceAOperationInterfaceCompartmentEditPart.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceAOperationInterfaceCompartmentEditPart.java @@ -87,7 +87,7 @@ public class AInterfaceAOperationInterfaceCompartmentEditPart extends ListCompar protected void setRatio(Double ratio) { // nothing to do -- parent layout does not accept Double constraints as ratio - // super.setRatio(ratio); + // super.setRatio(ratio); } } diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceEditPart.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceEditPart.java index 9575419a06..247e111b9c 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceEditPart.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/parts/AInterfaceEditPart.java @@ -84,7 +84,8 @@ public class AInterfaceEditPart extends ShapeNodeEditPart super.createDefaultEditPolicies(); installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new AInterfaceItemSemanticEditPolicy()); installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy()); - // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies + // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable + // editpolicies // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE); } @@ -142,14 +143,14 @@ public class AInterfaceEditPart extends ShapeNodeEditPart if (childEditPart instanceof AInterfaceAAttributeInterfaceCompartmentEditPart) { IFigure pane = getPrimaryShape().getFigureInterfaceAttributes(); - setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way + setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way pane.add(((AInterfaceAAttributeInterfaceCompartmentEditPart)childEditPart).getFigure()); return true; } if (childEditPart instanceof AInterfaceAOperationInterfaceCompartmentEditPart) { IFigure pane = getPrimaryShape().getFigureInterfaceOperations(); - setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way + setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way pane.add(((AInterfaceAOperationInterfaceCompartmentEditPart)childEditPart).getFigure()); return true; } @@ -168,14 +169,14 @@ public class AInterfaceEditPart extends ShapeNodeEditPart if (childEditPart instanceof AInterfaceAAttributeInterfaceCompartmentEditPart) { IFigure pane = getPrimaryShape().getFigureInterfaceAttributes(); - setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way + setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way pane.remove(((AInterfaceAAttributeInterfaceCompartmentEditPart)childEditPart).getFigure()); return true; } if (childEditPart instanceof AInterfaceAOperationInterfaceCompartmentEditPart) { IFigure pane = getPrimaryShape().getFigureInterfaceOperations(); - setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way + setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way pane.remove(((AInterfaceAOperationInterfaceCompartmentEditPart)childEditPart).getFigure()); return true; } @@ -232,10 +233,8 @@ public class AInterfaceEditPart extends ShapeNodeEditPart } /** - * Creates figure for this edit part. - * - * Body of this method does not depend on settings in generation model - * so you may safely remove generated tag and modify it. + * Creates figure for this edit part. Body of this method does not depend on settings in generation model so you may + * safely remove generated tag and modify it. * * @generated */ @@ -250,9 +249,10 @@ public class AInterfaceEditPart extends ShapeNodeEditPart } /** - * Default implementation treats passed figure as content pane. - * Respects layout one may have set for generated figure. - * @param nodeShape instance of generated figure class + * Default implementation treats passed figure as content pane. Respects layout one may have set for generated figure. + * + * @param nodeShape + * instance of generated figure class * @generated */ protected IFigure setupContentPane(IFigure nodeShape) diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AClassItemSemanticEditPolicy.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AClassItemSemanticEditPolicy.java index 7c9ec3575c..3823060b8e 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AClassItemSemanticEditPolicy.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AClassItemSemanticEditPolicy.java @@ -185,8 +185,9 @@ public class AClassItemSemanticEditPolicy extends AcoreBaseItemSemanticEditPolic switch (AcoreVisualIDRegistry.getVisualID(cnode)) { case AAttribute2EditPart.VISUAL_ID: - cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true - // don't need explicit deletion of cnode as parent's view deletion would clean child views as well + cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: + // true + // don't need explicit deletion of cnode as parent's view deletion would clean child views as well // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode)); break; } @@ -199,8 +200,9 @@ public class AClassItemSemanticEditPolicy extends AcoreBaseItemSemanticEditPolic switch (AcoreVisualIDRegistry.getVisualID(cnode)) { case AOperation2EditPart.VISUAL_ID: - cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true - // don't need explicit deletion of cnode as parent's view deletion would clean child views as well + cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: + // true + // don't need explicit deletion of cnode as parent's view deletion would clean child views as well // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode)); break; } @@ -277,8 +279,8 @@ public class AClassItemSemanticEditPolicy extends AcoreBaseItemSemanticEditPolic } /** - * Returns command to reorient EReference based link. New link target or source - * should be the domain model element associated with this node. + * Returns command to reorient EReference based link. New link target or source should be the domain model element + * associated with this node. * * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/ACoreRootCanonicalEditPolicy.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/ACoreRootCanonicalEditPolicy.java index fa983769ad..fbff1c28e4 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/ACoreRootCanonicalEditPolicy.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/ACoreRootCanonicalEditPolicy.java @@ -139,7 +139,8 @@ public class ACoreRootCanonicalEditPolicy extends CanonicalEditPolicy List orphaned = cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren); boolean changed = deleteViews(orphaned.iterator()); // leave descriptors that reference survived semanticChildren. - // NOTE, we may want to stop using cleanCanonicalSemanticChildren() here, replacing with own code, that respects NodeDescriptors + // NOTE, we may want to stop using cleanCanonicalSemanticChildren() here, replacing with own code, that respects + // NodeDescriptors for (Iterator it = childDescriptors.iterator(); it.hasNext();) { AcoreNodeDescriptor next = it.next(); diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AInterfaceItemSemanticEditPolicy.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AInterfaceItemSemanticEditPolicy.java index 6669573eba..903be83b7f 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AInterfaceItemSemanticEditPolicy.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AInterfaceItemSemanticEditPolicy.java @@ -105,8 +105,9 @@ public class AInterfaceItemSemanticEditPolicy extends AcoreBaseItemSemanticEditP switch (AcoreVisualIDRegistry.getVisualID(cnode)) { case AAttributeEditPart.VISUAL_ID: - cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true - // don't need explicit deletion of cnode as parent's view deletion would clean child views as well + cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: + // true + // don't need explicit deletion of cnode as parent's view deletion would clean child views as well // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode)); break; } @@ -119,8 +120,9 @@ public class AInterfaceItemSemanticEditPolicy extends AcoreBaseItemSemanticEditP switch (AcoreVisualIDRegistry.getVisualID(cnode)) { case AOperationEditPart.VISUAL_ID: - cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true - // don't need explicit deletion of cnode as parent's view deletion would clean child views as well + cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: + // true + // don't need explicit deletion of cnode as parent's view deletion would clean child views as well // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode)); break; } @@ -165,8 +167,8 @@ public class AInterfaceItemSemanticEditPolicy extends AcoreBaseItemSemanticEditP } /** - * Returns command to reorient EReference based link. New link target or source - * should be the domain model element associated with this node. + * Returns command to reorient EReference based link. New link target or source should be the domain model element + * associated with this node. * * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AcoreBaseItemSemanticEditPolicy.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AcoreBaseItemSemanticEditPolicy.java index 94789ea680..b76cab75b9 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AcoreBaseItemSemanticEditPolicy.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/AcoreBaseItemSemanticEditPolicy.java @@ -55,6 +55,7 @@ public class AcoreBaseItemSemanticEditPolicy extends SemanticEditPolicy /** * Extended request data key to hold editpart visual id. + * * @generated */ public static final String VISUAL_ID_KEY = "visual_id"; //$NON-NLS-1$ @@ -73,11 +74,9 @@ public class AcoreBaseItemSemanticEditPolicy extends SemanticEditPolicy } /** - * Extended request data key to hold editpart visual id. - * Add visual id of edited editpart to extended data of the request - * so command switch can decide what kind of diagram element is being edited. - * It is done in those cases when it's not possible to deduce diagram - * element kind from domain element. + * Extended request data key to hold editpart visual id. Add visual id of edited editpart to extended data of the + * request so command switch can decide what kind of diagram element is being edited. It is done in those cases when + * it's not possible to deduce diagram element kind from domain element. * * @generated */ @@ -97,6 +96,7 @@ public class AcoreBaseItemSemanticEditPolicy extends SemanticEditPolicy /** * Returns visual id from request parameters. + * * @generated */ protected int getVisualID(IEditCommandRequest request) @@ -316,6 +316,7 @@ public class AcoreBaseItemSemanticEditPolicy extends SemanticEditPolicy /** * Returns editing domain from the host edit part. + * * @generated */ protected TransactionalEditingDomain getEditingDomain() @@ -325,6 +326,7 @@ public class AcoreBaseItemSemanticEditPolicy extends SemanticEditPolicy /** * Clean all shortcuts to the host element from the same diagram + * * @generated */ protected void addDestroyShortcutsCommand(ICompositeCommand cmd, View view) diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDiagramEditorPlugin.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDiagramEditorPlugin.java index d6c91dc927..fc5dc492a6 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDiagramEditorPlugin.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDiagramEditorPlugin.java @@ -142,11 +142,11 @@ public class AcoreDiagramEditorPlugin extends AbstractUIPlugin } /** - * Returns an image descriptor for the image file at the given - * plug-in relative path. - * + * Returns an image descriptor for the image file at the given plug-in relative path. + * * @generated - * @param path the path + * @param path + * the path * @return the image descriptor */ public static ImageDescriptor getBundledImageDescriptor(String path) @@ -155,12 +155,12 @@ public class AcoreDiagramEditorPlugin extends AbstractUIPlugin } /** - * Respects images residing in any plug-in. If path is relative, - * then this bundle is looked up for the image, otherwise, for absolute - * path, first segment is taken as id of plug-in with image - * + * Respects images residing in any plug-in. If path is relative, then this bundle is looked up for the image, + * otherwise, for absolute path, first segment is taken as id of plug-in with image + * * @generated - * @param path the path to image, either absolute (with plug-in id as first segment), or relative for bundled images + * @param path + * the path to image, either absolute (with plug-in id as first segment), or relative for bundled images * @return the image descriptor */ public static ImageDescriptor findImageDescriptor(String path) @@ -178,11 +178,12 @@ public class AcoreDiagramEditorPlugin extends AbstractUIPlugin } /** - * Returns an image for the image file at the given plug-in relative path. - * Client do not need to dispose this image. Images will be disposed automatically. - * + * Returns an image for the image file at the given plug-in relative path. Client do not need to dispose this image. + * Images will be disposed automatically. + * * @generated - * @param path the path + * @param path + * the path * @return image instance */ public Image getBundledImage(String path) @@ -198,7 +199,7 @@ public class AcoreDiagramEditorPlugin extends AbstractUIPlugin /** * Returns string from plug-in's resource bundle - * + * * @generated */ public static String getString(String key) diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDiagramEditorUtil.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDiagramEditorUtil.java index 5ec3d076be..fcc54a6773 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDiagramEditorUtil.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDiagramEditorUtil.java @@ -169,6 +169,7 @@ public class AcoreDiagramEditorUtil /** * This method should be called within a workspace modify operation since it creates resources. + * * @generated */ public static Resource createDiagram(URI diagramURI, URI modelURI, IProgressMonitor progressMonitor) @@ -224,9 +225,8 @@ public class AcoreDiagramEditorUtil } /** - * Create a new instance of domain element associated with canvas. - * - * + * Create a new instance of domain element associated with canvas. + * * @generated */ private static ACoreRoot createInitialModel() @@ -235,9 +235,8 @@ public class AcoreDiagramEditorUtil } /** - * Store model element in the resource. - * - * + * Store model element in the resource. + * * @generated */ private static void attachModelToResource(ACoreRoot model, Resource resource) @@ -248,7 +247,7 @@ public class AcoreDiagramEditorUtil /** * @generated */ - public static void selectElementsInDiagram(IDiagramWorkbenchPart diagramPart, List/*EditPart*/editParts) + public static void selectElementsInDiagram(IDiagramWorkbenchPart diagramPart, List/* EditPart */editParts) { diagramPart.getDiagramGraphicalViewer().deselectAll(); @@ -445,6 +444,6 @@ public class AcoreDiagramEditorUtil } return element2ViewMap; } - } //LazyElement2ViewMap + } // LazyElement2ViewMap } diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDocumentProvider.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDocumentProvider.java index 5120892e12..2c20f522d7 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDocumentProvider.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreDocumentProvider.java @@ -111,12 +111,13 @@ public class AcoreDocumentProvider extends AbstractDocumentProvider implements I } /** - * Sets up the given document as it would be provided for the given element. The - * content of the document is not changed. This default implementation is empty. - * Subclasses may reimplement. + * Sets up the given document as it would be provided for the given element. The content of the document is not + * changed. This default implementation is empty. Subclasses may reimplement. * - * @param element the blue-print element - * @param document the document to set up + * @param element + * the blue-print element + * @param document + * the document to set up * @generated */ protected void setupDocument(Object element, IDocument document) @@ -235,7 +236,7 @@ public class AcoreDocumentProvider extends AbstractDocumentProvider implements I try { Map options = new HashMap(GMFResourceFactory.getDefaultLoadOptions()); - // @see 171060 + // @see 171060 // options.put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE); resource.load(options); } @@ -387,7 +388,8 @@ public class AcoreDocumentProvider extends AbstractDocumentProvider implements I catch (CoreException ex) { AcoreDiagramEditorPlugin.getInstance().logError(Messages.AcoreDocumentProvider_isModifiable, ex); - // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.StorageDocumentProvider_isModifiable + // Error message to log was initially taken from + // org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.StorageDocumentProvider_isModifiable } } return info.isReadOnly(); @@ -419,7 +421,8 @@ public class AcoreDocumentProvider extends AbstractDocumentProvider implements I catch (CoreException ex) { AcoreDiagramEditorPlugin.getInstance().logError(Messages.AcoreDocumentProvider_isModifiable, ex); - // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.StorageDocumentProvider_isModifiable + // Error message to log was initially taken from + // org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.StorageDocumentProvider_isModifiable } } return info.isModifiable(); @@ -583,10 +586,8 @@ public class AcoreDocumentProvider extends AbstractDocumentProvider implements I do { /* - * XXX This is a workaround for - * https://bugs.eclipse.org/bugs/show_bug.cgi?id=67601 - * IResourceRuleFactory.createRule should iterate the hierarchy - * itself. + * XXX This is a workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=67601 + * IResourceRuleFactory.createRule should iterate the hierarchy itself. */ toCreateOrModify = parent; parent = toCreateOrModify.getParent(); @@ -632,7 +633,7 @@ public class AcoreDocumentProvider extends AbstractDocumentProvider implements I try { monitor.beginTask(Messages.AcoreDocumentProvider_SaveDiagramTask, - info.getResourceSet().getResources().size() + 1); //"Saving diagram" + info.getResourceSet().getResources().size() + 1); // "Saving diagram" for (Iterator it = info.getLoadedResourcesIterator(); it.hasNext();) { Resource nextResource = it.next(); @@ -745,7 +746,8 @@ public class AcoreDocumentProvider extends AbstractDocumentProvider implements I catch (CoreException ex) { AcoreDiagramEditorPlugin.getInstance().logError(Messages.AcoreDocumentProvider_handleElementContentChanged, ex); - // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.FileDocumentProvider_handleElementContentChanged + // Error message to log was initially taken from + // org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.FileDocumentProvider_handleElementContentChanged } } changedResource.unload(); @@ -1167,7 +1169,7 @@ public class AcoreDocumentProvider extends AbstractDocumentProvider implements I if (resource.isLoaded()) { boolean modified = false; - for (Iterator/**/it = myInfo.getLoadedResourcesIterator(); it + for (Iterator/* */it = myInfo.getLoadedResourcesIterator(); it .hasNext() && !modified;) { diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcorePaletteFactory.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcorePaletteFactory.java index 8cb627195a..d9cb10e1bf 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcorePaletteFactory.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcorePaletteFactory.java @@ -42,6 +42,7 @@ public class AcorePaletteFactory /** * Creates "Node" palette tool group + * * @generated */ private PaletteContainer createNode1Group() @@ -57,6 +58,7 @@ public class AcorePaletteFactory /** * Creates "Connections" palette tool group + * * @generated */ private PaletteContainer createConnections2Group() diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreVisualIDRegistry.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreVisualIDRegistry.java index 20c11815c2..8917fdca3d 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreVisualIDRegistry.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/AcoreVisualIDRegistry.java @@ -33,9 +33,8 @@ import org.eclipse.gmf.runtime.notation.Diagram; import org.eclipse.gmf.runtime.notation.View; /** - * This registry is used to determine which type of visual object should be - * created for the corresponding Diagram, Node, ChildNode or Link represented - * by a domain model object. + * This registry is used to determine which type of visual object should be created for the corresponding Diagram, Node, + * ChildNode or Link represented by a domain model object. * * @generated */ @@ -309,8 +308,7 @@ public class AcoreVisualIDRegistry } /** - * User can change implementation of this method to handle some specific - * situations not covered by default logic. + * User can change implementation of this method to handle some specific situations not covered by default logic. * * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/Messages.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/Messages.java index 5738eb08cf..1c2ec87460 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/Messages.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/Messages.java @@ -484,5 +484,5 @@ public class Messages extends NLS */ public static String AcoreModelingAssistantProviderMessage; - //TODO: put accessor fields manually + // TODO: put accessor fields manually } diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/ModelElementSelectionPage.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/ModelElementSelectionPage.java index 279aeb423c..6bcbbebe89 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/ModelElementSelectionPage.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/part/ModelElementSelectionPage.java @@ -30,6 +30,7 @@ import org.eclipse.swt.widgets.Label; /** * Wizard page that allows to select element from model. + * * @generated */ public class ModelElementSelectionPage extends WizardPage @@ -126,6 +127,7 @@ public class ModelElementSelectionPage extends WizardPage /** * Override to provide custom model element description. + * * @generated */ protected String getSelectionTitle() @@ -160,6 +162,7 @@ public class ModelElementSelectionPage extends WizardPage /** * Override to provide specific validation of the selected model element. + * * @generated */ protected boolean validatePage() diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/providers/AcoreParserProvider.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/providers/AcoreParserProvider.java index c9ddd72de4..36c098eb26 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/providers/AcoreParserProvider.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/providers/AcoreParserProvider.java @@ -194,6 +194,7 @@ public class AcoreParserProvider extends AbstractProvider implements IParserProv /** * Utility method that consults ParserService + * * @generated */ public static IParser getParser(IElementType type, EObject object, String parserHint) diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/providers/AcoreViewProvider.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/providers/AcoreViewProvider.java index f8424dd561..f7a0a17edc 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/providers/AcoreViewProvider.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/providers/AcoreViewProvider.java @@ -108,10 +108,9 @@ public class AcoreViewProvider extends AbstractProvider implements IViewProvider protected boolean provides(CreateViewForKindOperation op) { /* - if (op.getViewKind() == Node.class) - return getNodeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null; - if (op.getViewKind() == Edge.class) - return getEdgeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null; + * if (op.getViewKind() == Node.class) return getNodeViewClass(op.getSemanticAdapter(), op.getContainerView(), + * op.getSemanticHint()) != null; if (op.getViewKind() == Edge.class) return + * getEdgeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null; */ return true; } @@ -310,7 +309,7 @@ public class AcoreViewProvider extends AbstractProvider implements IViewProvider ViewUtil.insertChildView(containerView, node, index, persisted); node.setElement(domainElement); stampShortcut(containerView, node); - // initializeFromPreferences + // initializeFromPreferences final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore(); org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter @@ -352,7 +351,7 @@ public class AcoreViewProvider extends AbstractProvider implements IViewProvider ViewUtil.insertChildView(containerView, node, index, persisted); node.setElement(domainElement); stampShortcut(containerView, node); - // initializeFromPreferences + // initializeFromPreferences final IPreferenceStore prefStore = (IPreferenceStore)preferencesHint.getPreferenceStore(); org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter @@ -686,9 +685,9 @@ public class AcoreViewProvider extends AbstractProvider implements IViewProvider private Node createCompartment(View owner, String hint, boolean canCollapse, boolean hasTitle, boolean canSort, boolean canFilter) { - //SemanticListCompartment rv = NotationFactory.eINSTANCE.createSemanticListCompartment(); - //rv.setShowTitle(showTitle); - //rv.setCollapsed(isCollapsed); + // SemanticListCompartment rv = NotationFactory.eINSTANCE.createSemanticListCompartment(); + // rv.setShowTitle(showTitle); + // rv.setCollapsed(isCollapsed); Node rv; if (canCollapse) { diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/sheet/AcorePropertySection.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/sheet/AcorePropertySection.java index eb94a90fb0..cb87971e93 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/sheet/AcorePropertySection.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/sheet/AcorePropertySection.java @@ -71,6 +71,7 @@ public class AcorePropertySection extends AdvancedPropertySection implements IPr /** * Modify/unwrap selection. + * * @generated */ protected Object transformSelection(Object selected) diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AAttributeItemProvider.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AAttributeItemProvider.java index acd02fadce..e1e21f64fd 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AAttributeItemProvider.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AAttributeItemProvider.java @@ -11,15 +11,12 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore.provider; - import java.util.Collection; import java.util.List; import org.eclipse.emf.cdo.dawn.examples.acore.AAttribute; - import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; @@ -28,31 +25,24 @@ import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; import org.eclipse.emf.edit.provider.ITreeItemContentProvider; /** - * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute} object. - * - * + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute} object. + * * @generated */ -public class AAttributeItemProvider - extends AClassChildItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource +public class AAttributeItemProvider extends AClassChildItemProvider implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * This constructs an instance from a factory and a notifier. - * - * + * This constructs an instance from a factory and a notifier. + * * @generated */ public AAttributeItemProvider(AdapterFactory adapterFactory) @@ -61,9 +51,8 @@ public class AAttributeItemProvider } /** - * This returns the property descriptors for the adapted class. - * - * + * This returns the property descriptors for the adapted class. + * * @generated */ @Override @@ -78,9 +67,8 @@ public class AAttributeItemProvider } /** - * This returns AAttribute.gif. - * - * + * This returns AAttribute.gif. + * * @generated */ @Override @@ -90,25 +78,22 @@ public class AAttributeItemProvider } /** - * This returns the label text for the adapted class. - * - * + * This returns the label text for the adapted class. + * * @generated */ @Override public String getText(Object object) { String label = ((AAttribute)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_AAttribute_type") : - getString("_UI_AAttribute_type") + " " + label; + return label == null || label.length() == 0 ? getString("_UI_AAttribute_type") : getString("_UI_AAttribute_type") + + " " + label; } /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. + * * @generated */ @Override @@ -119,10 +104,9 @@ public class AAttributeItemProvider } /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under + * this object. + * * @generated */ @Override diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/ABasicClassItemProvider.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/ABasicClassItemProvider.java index b0c316d67d..fbb6c82d24 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/ABasicClassItemProvider.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/ABasicClassItemProvider.java @@ -11,21 +11,16 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore.provider; - import java.util.Collection; import java.util.List; import org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass; import org.eclipse.emf.cdo.dawn.examples.acore.AcoreFactory; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; - import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.ecore.EStructuralFeature; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -38,31 +33,24 @@ import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; /** - * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass} object. - * - * + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass} object. + * * @generated */ -public class ABasicClassItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource +public class ABasicClassItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * This constructs an instance from a factory and a notifier. - * - * + * This constructs an instance from a factory and a notifier. + * * @generated */ public ABasicClassItemProvider(AdapterFactory adapterFactory) @@ -71,9 +59,8 @@ public class ABasicClassItemProvider } /** - * This returns the property descriptors for the adapted class. - * - * + * This returns the property descriptors for the adapted class. + * * @generated */ @Override @@ -89,34 +76,25 @@ public class ABasicClassItemProvider } /** - * This adds a property descriptor for the Name feature. - * - * + * This adds a property descriptor for the Name feature. + * * @generated */ protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ABasicClass_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ABasicClass_name_feature", "_UI_ABasicClass_type"), - AcorePackage.Literals.ABASIC_CLASS__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_ABasicClass_name_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_ABasicClass_name_feature", "_UI_ABasicClass_type"), + AcorePackage.Literals.ABASIC_CLASS__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, + null)); } /** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * * @generated */ @Override @@ -132,8 +110,8 @@ public class ABasicClassItemProvider } /** - * - * + * + * * @generated */ @Override @@ -146,9 +124,8 @@ public class ABasicClassItemProvider } /** - * This returns ABasicClass.gif. - * - * + * This returns ABasicClass.gif. + * * @generated */ @Override @@ -158,25 +135,22 @@ public class ABasicClassItemProvider } /** - * This returns the label text for the adapted class. - * - * + * This returns the label text for the adapted class. + * * @generated */ @Override public String getText(Object object) { String label = ((ABasicClass)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_ABasicClass_type") : - getString("_UI_ABasicClass_type") + " " + label; + return label == null || label.length() == 0 ? getString("_UI_ABasicClass_type") : getString("_UI_ABasicClass_type") + + " " + label; } /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. + * * @generated */ @Override @@ -186,22 +160,21 @@ public class ABasicClassItemProvider switch (notification.getFeatureID(ABasicClass.class)) { - case AcorePackage.ABASIC_CLASS__NAME: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case AcorePackage.ABASIC_CLASS__OPERATIONS: - case AcorePackage.ABASIC_CLASS__ATTRIBUTES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; + case AcorePackage.ABASIC_CLASS__NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case AcorePackage.ABASIC_CLASS__OPERATIONS: + case AcorePackage.ABASIC_CLASS__ATTRIBUTES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; } super.notifyChanged(notification); } /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under + * this object. + * * @generated */ @Override @@ -209,21 +182,16 @@ public class ABasicClassItemProvider { super.collectNewChildDescriptors(newChildDescriptors, object); - newChildDescriptors.add - (createChildParameter - (AcorePackage.Literals.ABASIC_CLASS__OPERATIONS, - AcoreFactory.eINSTANCE.createAOperation())); + newChildDescriptors.add(createChildParameter(AcorePackage.Literals.ABASIC_CLASS__OPERATIONS, AcoreFactory.eINSTANCE + .createAOperation())); - newChildDescriptors.add - (createChildParameter - (AcorePackage.Literals.ABASIC_CLASS__ATTRIBUTES, - AcoreFactory.eINSTANCE.createAAttribute())); + newChildDescriptors.add(createChildParameter(AcorePackage.Literals.ABASIC_CLASS__ATTRIBUTES, AcoreFactory.eINSTANCE + .createAAttribute())); } /** - * Return the resource locator for this item provider's resources. - * - * + * Return the resource locator for this item provider's resources. + * * @generated */ @Override diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AClassChildItemProvider.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AClassChildItemProvider.java index e04044072e..eee0d7b609 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AClassChildItemProvider.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AClassChildItemProvider.java @@ -11,18 +11,14 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore.provider; - import java.util.Collection; import java.util.List; import org.eclipse.emf.cdo.dawn.examples.acore.AClassChild; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; - import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -35,31 +31,24 @@ import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; /** - * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild} object. - * - * + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild} object. + * * @generated */ -public class AClassChildItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource +public class AClassChildItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * This constructs an instance from a factory and a notifier. - * - * + * This constructs an instance from a factory and a notifier. + * * @generated */ public AClassChildItemProvider(AdapterFactory adapterFactory) @@ -68,9 +57,8 @@ public class AClassChildItemProvider } /** - * This returns the property descriptors for the adapted class. - * - * + * This returns the property descriptors for the adapted class. + * * @generated */ @Override @@ -88,78 +76,50 @@ public class AClassChildItemProvider } /** - * This adds a property descriptor for the Name feature. - * - * + * This adds a property descriptor for the Name feature. + * * @generated */ protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AClassChild_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AClassChild_name_feature", "_UI_AClassChild_type"), - AcorePackage.Literals.ACLASS_CHILD__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_AClassChild_name_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_AClassChild_name_feature", "_UI_AClassChild_type"), + AcorePackage.Literals.ACLASS_CHILD__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, + null)); } /** - * This adds a property descriptor for the Accessright feature. - * - * + * This adds a property descriptor for the Accessright feature. + * * @generated */ protected void addAccessrightPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AClassChild_accessright_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AClassChild_accessright_feature", "_UI_AClassChild_type"), - AcorePackage.Literals.ACLASS_CHILD__ACCESSRIGHT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_AClassChild_accessright_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_AClassChild_accessright_feature", "_UI_AClassChild_type"), + AcorePackage.Literals.ACLASS_CHILD__ACCESSRIGHT, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); } /** - * This adds a property descriptor for the Data Type feature. - * - * + * This adds a property descriptor for the Data Type feature. + * * @generated */ protected void addDataTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AClassChild_dataType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AClassChild_dataType_feature", "_UI_AClassChild_type"), - AcorePackage.Literals.ACLASS_CHILD__DATA_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_AClassChild_dataType_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_AClassChild_dataType_feature", "_UI_AClassChild_type"), + AcorePackage.Literals.ACLASS_CHILD__DATA_TYPE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, null)); } /** - * This returns AClassChild.gif. - * - * + * This returns AClassChild.gif. + * * @generated */ @Override @@ -169,25 +129,22 @@ public class AClassChildItemProvider } /** - * This returns the label text for the adapted class. - * - * + * This returns the label text for the adapted class. + * * @generated */ @Override public String getText(Object object) { String label = ((AClassChild)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_AClassChild_type") : - getString("_UI_AClassChild_type") + " " + label; + return label == null || label.length() == 0 ? getString("_UI_AClassChild_type") : getString("_UI_AClassChild_type") + + " " + label; } /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. + * * @generated */ @Override @@ -197,20 +154,19 @@ public class AClassChildItemProvider switch (notification.getFeatureID(AClassChild.class)) { - case AcorePackage.ACLASS_CHILD__NAME: - case AcorePackage.ACLASS_CHILD__ACCESSRIGHT: - case AcorePackage.ACLASS_CHILD__DATA_TYPE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; + case AcorePackage.ACLASS_CHILD__NAME: + case AcorePackage.ACLASS_CHILD__ACCESSRIGHT: + case AcorePackage.ACLASS_CHILD__DATA_TYPE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; } super.notifyChanged(notification); } /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under + * this object. + * * @generated */ @Override @@ -220,9 +176,8 @@ public class AClassChildItemProvider } /** - * Return the resource locator for this item provider's resources. - * - * + * Return the resource locator for this item provider's resources. + * * @generated */ @Override diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AClassItemProvider.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AClassItemProvider.java index a9fc3d11b4..f4a5cfb636 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AClassItemProvider.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AClassItemProvider.java @@ -11,16 +11,13 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore.provider; - import java.util.Collection; import java.util.List; import org.eclipse.emf.cdo.dawn.examples.acore.AClass; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; - import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -30,31 +27,24 @@ import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; import org.eclipse.emf.edit.provider.ITreeItemContentProvider; /** - * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass} object. - * - * + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass} object. + * * @generated */ -public class AClassItemProvider - extends ABasicClassItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource +public class AClassItemProvider extends ABasicClassItemProvider implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * This constructs an instance from a factory and a notifier. - * - * + * This constructs an instance from a factory and a notifier. + * * @generated */ public AClassItemProvider(AdapterFactory adapterFactory) @@ -63,9 +53,8 @@ public class AClassItemProvider } /** - * This returns the property descriptors for the adapted class. - * - * + * This returns the property descriptors for the adapted class. + * * @generated */ @Override @@ -85,124 +74,74 @@ public class AClassItemProvider } /** - * This adds a property descriptor for the Sub Classes feature. - * - * + * This adds a property descriptor for the Sub Classes feature. + * * @generated */ protected void addSubClassesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AClass_subClasses_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AClass_subClasses_feature", "_UI_AClass_type"), - AcorePackage.Literals.ACLASS__SUB_CLASSES, - true, - false, - true, - null, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_AClass_subClasses_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_AClass_subClasses_feature", "_UI_AClass_type"), + AcorePackage.Literals.ACLASS__SUB_CLASSES, true, false, true, null, null, null)); } /** - * This adds a property descriptor for the Implemented Interfaces feature. - * - * + * This adds a property descriptor for the Implemented Interfaces feature. + * * @generated */ protected void addImplementedInterfacesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AClass_implementedInterfaces_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AClass_implementedInterfaces_feature", "_UI_AClass_type"), - AcorePackage.Literals.ACLASS__IMPLEMENTED_INTERFACES, - true, - false, - true, - null, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_AClass_implementedInterfaces_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_AClass_implementedInterfaces_feature", "_UI_AClass_type"), + AcorePackage.Literals.ACLASS__IMPLEMENTED_INTERFACES, true, false, true, null, null, null)); } /** - * This adds a property descriptor for the Associations feature. - * - * + * This adds a property descriptor for the Associations feature. + * * @generated */ protected void addAssociationsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AClass_associations_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AClass_associations_feature", "_UI_AClass_type"), - AcorePackage.Literals.ACLASS__ASSOCIATIONS, - true, - false, - true, - null, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_AClass_associations_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_AClass_associations_feature", "_UI_AClass_type"), + AcorePackage.Literals.ACLASS__ASSOCIATIONS, true, false, true, null, null, null)); } /** - * This adds a property descriptor for the Compositions feature. - * - * + * This adds a property descriptor for the Compositions feature. + * * @generated */ protected void addCompositionsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AClass_compositions_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AClass_compositions_feature", "_UI_AClass_type"), - AcorePackage.Literals.ACLASS__COMPOSITIONS, - true, - false, - true, - null, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_AClass_compositions_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_AClass_compositions_feature", "_UI_AClass_type"), + AcorePackage.Literals.ACLASS__COMPOSITIONS, true, false, true, null, null, null)); } /** - * This adds a property descriptor for the Aggregations feature. - * - * + * This adds a property descriptor for the Aggregations feature. + * * @generated */ protected void addAggregationsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AClass_aggregations_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AClass_aggregations_feature", "_UI_AClass_type"), - AcorePackage.Literals.ACLASS__AGGREGATIONS, - true, - false, - true, - null, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_AClass_aggregations_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_AClass_aggregations_feature", "_UI_AClass_type"), + AcorePackage.Literals.ACLASS__AGGREGATIONS, true, false, true, null, null, null)); } /** - * This returns AClass.gif. - * - * + * This returns AClass.gif. + * * @generated */ @Override @@ -212,25 +151,22 @@ public class AClassItemProvider } /** - * This returns the label text for the adapted class. - * - * + * This returns the label text for the adapted class. + * * @generated */ @Override public String getText(Object object) { String label = ((AClass)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_AClass_type") : - getString("_UI_AClass_type") + " " + label; + return label == null || label.length() == 0 ? getString("_UI_AClass_type") : getString("_UI_AClass_type") + " " + + label; } /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. + * * @generated */ @Override @@ -241,10 +177,9 @@ public class AClassItemProvider } /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under + * this object. + * * @generated */ @Override diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/ACoreRootItemProvider.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/ACoreRootItemProvider.java index 316d9580c3..b06c4a0f0e 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/ACoreRootItemProvider.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/ACoreRootItemProvider.java @@ -11,21 +11,16 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore.provider; - import java.util.Collection; import java.util.List; import org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot; import org.eclipse.emf.cdo.dawn.examples.acore.AcoreFactory; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; - import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.ecore.EStructuralFeature; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -38,31 +33,24 @@ import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; /** - * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot} object. - * - * + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot} object. + * * @generated */ -public class ACoreRootItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource +public class ACoreRootItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * This constructs an instance from a factory and a notifier. - * - * + * This constructs an instance from a factory and a notifier. + * * @generated */ public ACoreRootItemProvider(AdapterFactory adapterFactory) @@ -71,9 +59,8 @@ public class ACoreRootItemProvider } /** - * This returns the property descriptors for the adapted class. - * - * + * This returns the property descriptors for the adapted class. + * * @generated */ @Override @@ -89,34 +76,25 @@ public class ACoreRootItemProvider } /** - * This adds a property descriptor for the Title feature. - * - * + * This adds a property descriptor for the Title feature. + * * @generated */ protected void addTitlePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ACoreRoot_title_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ACoreRoot_title_feature", "_UI_ACoreRoot_type"), - AcorePackage.Literals.ACORE_ROOT__TITLE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_ACoreRoot_title_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_ACoreRoot_title_feature", "_UI_ACoreRoot_type"), + AcorePackage.Literals.ACORE_ROOT__TITLE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, + null)); } /** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * * @generated */ @Override @@ -132,8 +110,8 @@ public class ACoreRootItemProvider } /** - * - * + * + * * @generated */ @Override @@ -146,9 +124,8 @@ public class ACoreRootItemProvider } /** - * This returns ACoreRoot.gif. - * - * + * This returns ACoreRoot.gif. + * * @generated */ @Override @@ -158,25 +135,22 @@ public class ACoreRootItemProvider } /** - * This returns the label text for the adapted class. - * - * + * This returns the label text for the adapted class. + * * @generated */ @Override public String getText(Object object) { String label = ((ACoreRoot)object).getTitle(); - return label == null || label.length() == 0 ? - getString("_UI_ACoreRoot_type") : - getString("_UI_ACoreRoot_type") + " " + label; + return label == null || label.length() == 0 ? getString("_UI_ACoreRoot_type") : getString("_UI_ACoreRoot_type") + + " " + label; } /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. + * * @generated */ @Override @@ -186,22 +160,21 @@ public class ACoreRootItemProvider switch (notification.getFeatureID(ACoreRoot.class)) { - case AcorePackage.ACORE_ROOT__TITLE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case AcorePackage.ACORE_ROOT__CLASSES: - case AcorePackage.ACORE_ROOT__INTERFACES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; + case AcorePackage.ACORE_ROOT__TITLE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case AcorePackage.ACORE_ROOT__CLASSES: + case AcorePackage.ACORE_ROOT__INTERFACES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; } super.notifyChanged(notification); } /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under + * this object. + * * @generated */ @Override @@ -209,21 +182,16 @@ public class ACoreRootItemProvider { super.collectNewChildDescriptors(newChildDescriptors, object); - newChildDescriptors.add - (createChildParameter - (AcorePackage.Literals.ACORE_ROOT__CLASSES, - AcoreFactory.eINSTANCE.createAClass())); + newChildDescriptors.add(createChildParameter(AcorePackage.Literals.ACORE_ROOT__CLASSES, AcoreFactory.eINSTANCE + .createAClass())); - newChildDescriptors.add - (createChildParameter - (AcorePackage.Literals.ACORE_ROOT__INTERFACES, - AcoreFactory.eINSTANCE.createAInterface())); + newChildDescriptors.add(createChildParameter(AcorePackage.Literals.ACORE_ROOT__INTERFACES, AcoreFactory.eINSTANCE + .createAInterface())); } /** - * Return the resource locator for this item provider's resources. - * - * + * Return the resource locator for this item provider's resources. + * * @generated */ @Override diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AInterfaceItemProvider.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AInterfaceItemProvider.java index 5f495f62bb..44bd9d31f2 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AInterfaceItemProvider.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AInterfaceItemProvider.java @@ -11,15 +11,12 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore.provider; - import java.util.Collection; import java.util.List; import org.eclipse.emf.cdo.dawn.examples.acore.AInterface; - import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; @@ -28,31 +25,24 @@ import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; import org.eclipse.emf.edit.provider.ITreeItemContentProvider; /** - * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface} object. - * - * + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface} object. + * * @generated */ -public class AInterfaceItemProvider - extends ABasicClassItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource +public class AInterfaceItemProvider extends ABasicClassItemProvider implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * This constructs an instance from a factory and a notifier. - * - * + * This constructs an instance from a factory and a notifier. + * * @generated */ public AInterfaceItemProvider(AdapterFactory adapterFactory) @@ -61,9 +51,8 @@ public class AInterfaceItemProvider } /** - * This returns the property descriptors for the adapted class. - * - * + * This returns the property descriptors for the adapted class. + * * @generated */ @Override @@ -78,9 +67,8 @@ public class AInterfaceItemProvider } /** - * This returns AInterface.gif. - * - * + * This returns AInterface.gif. + * * @generated */ @Override @@ -90,25 +78,22 @@ public class AInterfaceItemProvider } /** - * This returns the label text for the adapted class. - * - * + * This returns the label text for the adapted class. + * * @generated */ @Override public String getText(Object object) { String label = ((AInterface)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_AInterface_type") : - getString("_UI_AInterface_type") + " " + label; + return label == null || label.length() == 0 ? getString("_UI_AInterface_type") : getString("_UI_AInterface_type") + + " " + label; } /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. + * * @generated */ @Override @@ -119,10 +104,9 @@ public class AInterfaceItemProvider } /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under + * this object. + * * @generated */ @Override diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AOperationItemProvider.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AOperationItemProvider.java index 2e1979b5af..1936ad56fb 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AOperationItemProvider.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AOperationItemProvider.java @@ -11,19 +11,15 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore.provider; - import java.util.Collection; import java.util.List; import org.eclipse.emf.cdo.dawn.examples.acore.AOperation; import org.eclipse.emf.cdo.dawn.examples.acore.AcoreFactory; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; - import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EStructuralFeature; - import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; @@ -33,31 +29,24 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider; import org.eclipse.emf.edit.provider.ViewerNotification; /** - * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation} object. - * - * + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation} object. + * * @generated */ -public class AOperationItemProvider - extends AClassChildItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource +public class AOperationItemProvider extends AClassChildItemProvider implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * This constructs an instance from a factory and a notifier. - * - * + * This constructs an instance from a factory and a notifier. + * * @generated */ public AOperationItemProvider(AdapterFactory adapterFactory) @@ -66,9 +55,8 @@ public class AOperationItemProvider } /** - * This returns the property descriptors for the adapted class. - * - * + * This returns the property descriptors for the adapted class. + * * @generated */ @Override @@ -85,9 +73,9 @@ public class AOperationItemProvider /** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * * @generated */ @Override @@ -102,8 +90,8 @@ public class AOperationItemProvider } /** - * - * + * + * * @generated */ @Override @@ -116,9 +104,8 @@ public class AOperationItemProvider } /** - * This returns AOperation.gif. - * - * + * This returns AOperation.gif. + * * @generated */ @Override @@ -128,25 +115,22 @@ public class AOperationItemProvider } /** - * This returns the label text for the adapted class. - * - * + * This returns the label text for the adapted class. + * * @generated */ @Override public String getText(Object object) { String label = ((AOperation)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_AOperation_type") : - getString("_UI_AOperation_type") + " " + label; + return label == null || label.length() == 0 ? getString("_UI_AOperation_type") : getString("_UI_AOperation_type") + + " " + label; } /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. + * * @generated */ @Override @@ -156,18 +140,17 @@ public class AOperationItemProvider switch (notification.getFeatureID(AOperation.class)) { - case AcorePackage.AOPERATION__PARAMETERS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; + case AcorePackage.AOPERATION__PARAMETERS: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; } super.notifyChanged(notification); } /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under + * this object. + * * @generated */ @Override @@ -175,10 +158,8 @@ public class AOperationItemProvider { super.collectNewChildDescriptors(newChildDescriptors, object); - newChildDescriptors.add - (createChildParameter - (AcorePackage.Literals.AOPERATION__PARAMETERS, - AcoreFactory.eINSTANCE.createAParameter())); + newChildDescriptors.add(createChildParameter(AcorePackage.Literals.AOPERATION__PARAMETERS, AcoreFactory.eINSTANCE + .createAParameter())); } } diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AParameterItemProvider.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AParameterItemProvider.java index 07b21f7e43..21e8ecf65e 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AParameterItemProvider.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AParameterItemProvider.java @@ -11,18 +11,14 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore.provider; - import java.util.Collection; import java.util.List; import org.eclipse.emf.cdo.dawn.examples.acore.AParameter; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; - import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -35,31 +31,24 @@ import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; /** - * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter} object. - * - * + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter} object. + * * @generated */ -public class AParameterItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource +public class AParameterItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * This constructs an instance from a factory and a notifier. - * - * + * This constructs an instance from a factory and a notifier. + * * @generated */ public AParameterItemProvider(AdapterFactory adapterFactory) @@ -68,9 +57,8 @@ public class AParameterItemProvider } /** - * This returns the property descriptors for the adapted class. - * - * + * This returns the property descriptors for the adapted class. + * * @generated */ @Override @@ -87,55 +75,36 @@ public class AParameterItemProvider } /** - * This adds a property descriptor for the Name feature. - * - * + * This adds a property descriptor for the Name feature. + * * @generated */ protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AParameter_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AParameter_name_feature", "_UI_AParameter_type"), - AcorePackage.Literals.APARAMETER__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_AParameter_name_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_AParameter_name_feature", "_UI_AParameter_type"), + AcorePackage.Literals.APARAMETER__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, + null)); } /** - * This adds a property descriptor for the Type feature. - * - * + * This adds a property descriptor for the Type feature. + * * @generated */ protected void addTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AParameter_type_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AParameter_type_feature", "_UI_AParameter_type"), - AcorePackage.Literals.APARAMETER__TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_AParameter_type_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_AParameter_type_feature", "_UI_AParameter_type"), + AcorePackage.Literals.APARAMETER__TYPE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, + null)); } /** - * This returns AParameter.gif. - * - * + * This returns AParameter.gif. + * * @generated */ @Override @@ -145,25 +114,22 @@ public class AParameterItemProvider } /** - * This returns the label text for the adapted class. - * - * + * This returns the label text for the adapted class. + * * @generated */ @Override public String getText(Object object) { String label = ((AParameter)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_AParameter_type") : - getString("_UI_AParameter_type") + " " + label; + return label == null || label.length() == 0 ? getString("_UI_AParameter_type") : getString("_UI_AParameter_type") + + " " + label; } /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. + * * @generated */ @Override @@ -173,19 +139,18 @@ public class AParameterItemProvider switch (notification.getFeatureID(AParameter.class)) { - case AcorePackage.APARAMETER__NAME: - case AcorePackage.APARAMETER__TYPE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; + case AcorePackage.APARAMETER__NAME: + case AcorePackage.APARAMETER__TYPE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; } super.notifyChanged(notification); } /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under + * this object. + * * @generated */ @Override @@ -195,9 +160,8 @@ public class AParameterItemProvider } /** - * Return the resource locator for this item provider's resources. - * - * + * Return the resource locator for this item provider's resources. + * * @generated */ @Override diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AcoreEditPlugin.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AcoreEditPlugin.java index 21fab666cc..fc91055df9 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AcoreEditPlugin.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AcoreEditPlugin.java @@ -12,58 +12,49 @@ package org.eclipse.emf.cdo.dawn.examples.acore.provider; import org.eclipse.emf.common.EMFPlugin; - import org.eclipse.emf.common.util.ResourceLocator; /** - * This is the central singleton for the Acore edit plugin. - * - * + * This is the central singleton for the Acore edit plugin. + * * @generated */ public final class AcoreEditPlugin extends EMFPlugin { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * Keep track of the singleton. - * - * + * Keep track of the singleton. + * * @generated */ public static final AcoreEditPlugin INSTANCE = new AcoreEditPlugin(); /** - * Keep track of the singleton. - * - * + * Keep track of the singleton. + * * @generated */ private static Implementation plugin; /** - * Create the instance. - * - * + * Create the instance. + * * @generated */ public AcoreEditPlugin() { - super - (new ResourceLocator [] - { - }); + super(new ResourceLocator[] {}); } /** - * Returns the singleton instance of the Eclipse plugin. - * - * + * Returns the singleton instance of the Eclipse plugin. + * * @return the singleton instance. * @generated */ @@ -74,9 +65,8 @@ public final class AcoreEditPlugin extends EMFPlugin } /** - * Returns the singleton instance of the Eclipse plugin. - * - * + * Returns the singleton instance of the Eclipse plugin. + * * @return the singleton instance. * @generated */ @@ -86,17 +76,15 @@ public final class AcoreEditPlugin extends EMFPlugin } /** - * The actual implementation of the Eclipse Plugin. - * - * + * The actual implementation of the Eclipse Plugin. + * * @generated */ public static class Implementation extends EclipsePlugin { /** - * Creates an instance. - * - * + * Creates an instance. + * * @generated */ public Implementation() diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AcoreItemProviderAdapterFactory.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AcoreItemProviderAdapterFactory.java index 1ca1a9ebfb..de74ee1810 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AcoreItemProviderAdapterFactory.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.edit/src/org/eclipse/emf/cdo/dawn/examples/acore/provider/AcoreItemProviderAdapterFactory.java @@ -15,11 +15,9 @@ import java.util.ArrayList; import java.util.Collection; import org.eclipse.emf.cdo.dawn.examples.acore.util.AcoreAdapterFactory; - import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.Notifier; - import org.eclipse.emf.edit.provider.ChangeNotifier; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ComposedAdapterFactory; @@ -33,51 +31,50 @@ import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; import org.eclipse.emf.edit.provider.ITreeItemContentProvider; /** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * + * This is the factory that is used to provide the interfaces needed to support Viewers. The adapters generated by this + * factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. The adapters + * also support Eclipse property sheets. Note that most of the adapters are shared among multiple instances. + * * @generated */ -public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable +public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory implements ComposeableAdapterFactory, + IChangeNotifier, IDisposable { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * + * This keeps track of the root adapter factory that delegates to this adapter factory. + * * @generated */ protected ComposedAdapterFactory parentAdapterFactory; /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * * @generated */ protected IChangeNotifier changeNotifier = new ChangeNotifier(); /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * * @generated */ protected Collection supportedTypes = new ArrayList(); /** - * This constructs an instance. - * - * + * This constructs an instance. + * * @generated */ public AcoreItemProviderAdapterFactory() @@ -91,16 +88,16 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme /** * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass} instances. - * - * + * + * * @generated */ protected AClassItemProvider aClassItemProvider; /** - * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. - * - * + * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. + * * @generated */ @Override @@ -115,17 +112,17 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface} instances. - * - * + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface} + * instances. + * * @generated */ protected AInterfaceItemProvider aInterfaceItemProvider; /** - * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface}. - * + * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface}. * + * * @generated */ @Override @@ -140,17 +137,17 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot} instances. - * - * + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot} + * instances. + * * @generated */ protected ACoreRootItemProvider aCoreRootItemProvider; /** - * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot}. - * + * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot}. * + * * @generated */ @Override @@ -165,17 +162,17 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute} instances. - * - * + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute} + * instances. + * * @generated */ protected AAttributeItemProvider aAttributeItemProvider; /** - * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute}. - * + * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute}. * + * * @generated */ @Override @@ -190,17 +187,17 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation} instances. - * - * + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation} + * instances. + * * @generated */ protected AOperationItemProvider aOperationItemProvider; /** - * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation}. - * + * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation}. * + * * @generated */ @Override @@ -215,17 +212,17 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass} instances. - * - * + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass} + * instances. + * * @generated */ protected ABasicClassItemProvider aBasicClassItemProvider; /** - * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass}. - * + * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass}. * + * * @generated */ @Override @@ -240,17 +237,17 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter} instances. - * - * + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter} + * instances. + * * @generated */ protected AParameterItemProvider aParameterItemProvider; /** - * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter}. - * + * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter}. * + * * @generated */ @Override @@ -265,17 +262,17 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild} instances. - * - * + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild} + * instances. + * * @generated */ protected AClassChildItemProvider aClassChildItemProvider; /** - * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild}. - * + * This creates an adapter for a {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild}. * + * * @generated */ @Override @@ -290,9 +287,8 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This returns the root adapter factory that contains this factory. - * - * + * This returns the root adapter factory that contains this factory. + * * @generated */ public ComposeableAdapterFactory getRootAdapterFactory() @@ -301,9 +297,8 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This sets the composed adapter factory that contains this factory. - * - * + * This sets the composed adapter factory that contains this factory. + * * @generated */ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) @@ -312,8 +307,8 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * - * + * + * * @generated */ @Override @@ -323,9 +318,9 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * + * This implementation substitutes the factory itself as the key for the adapter. + * * @generated */ @Override @@ -335,8 +330,8 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * - * + * + * * @generated */ @Override @@ -355,9 +350,8 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This adds a listener. - * - * + * This adds a listener. + * * @generated */ public void addListener(INotifyChangedListener notifyChangedListener) @@ -366,9 +360,8 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This removes a listener. - * - * + * This removes a listener. + * * @generated */ public void removeListener(INotifyChangedListener notifyChangedListener) @@ -377,9 +370,9 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * * @generated */ public void fireNotifyChanged(Notification notification) @@ -393,21 +386,28 @@ public class AcoreItemProviderAdapterFactory extends AcoreAdapterFactory impleme } /** - * This disposes all of the item providers created by this factory. - * - * + * This disposes all of the item providers created by this factory. + * * @generated */ public void dispose() { - if (aClassItemProvider != null) aClassItemProvider.dispose(); - if (aInterfaceItemProvider != null) aInterfaceItemProvider.dispose(); - if (aCoreRootItemProvider != null) aCoreRootItemProvider.dispose(); - if (aAttributeItemProvider != null) aAttributeItemProvider.dispose(); - if (aOperationItemProvider != null) aOperationItemProvider.dispose(); - if (aBasicClassItemProvider != null) aBasicClassItemProvider.dispose(); - if (aParameterItemProvider != null) aParameterItemProvider.dispose(); - if (aClassChildItemProvider != null) aClassChildItemProvider.dispose(); + if (aClassItemProvider != null) + aClassItemProvider.dispose(); + if (aInterfaceItemProvider != null) + aInterfaceItemProvider.dispose(); + if (aCoreRootItemProvider != null) + aCoreRootItemProvider.dispose(); + if (aAttributeItemProvider != null) + aAttributeItemProvider.dispose(); + if (aOperationItemProvider != null) + aOperationItemProvider.dispose(); + if (aBasicClassItemProvider != null) + aBasicClassItemProvider.dispose(); + if (aParameterItemProvider != null) + aParameterItemProvider.dispose(); + if (aClassChildItemProvider != null) + aClassChildItemProvider.dispose(); } } diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/META-INF/MANIFEST.MF index 4be9a926b3..f88c63f23c 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/META-INF/MANIFEST.MF @@ -7,10 +7,11 @@ Bundle-ClassPath: . Bundle-Vendor: %providerName Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Export-Package: org.eclipse.emf.cdo.dawn.examples.acore, - org.eclipse.emf.cdo.dawn.examples.acore.impl, - org.eclipse.emf.cdo.dawn.examples.acore.util -Require-Bundle: org.eclipse.core.runtime, - org.eclipse.emf.ecore;visibility:=reexport, - org.eclipse.emf.cdo;visibility:=reexport +Export-Package: org.eclipse.emf.cdo.dawn.examples.acore;version="0.2.0", + org.eclipse.emf.cdo.dawn.examples.acore.impl;version="0.2.0", + org.eclipse.emf.cdo.dawn.examples.acore.util;version="0.2.0", + org.eclipse.emf.cdo.internal.dawn.examples.acore.bundle;version="0.2.0" +Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)", + org.eclipse.emf.ecore;bundle-version="[2.6.0,3.0.0)";visibility:=reexport, + org.eclipse.emf.cdo;bundle-version="[3.0.0,4.0.0)";visibility:=reexport Bundle-ActivationPolicy: lazy diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AAttribute.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AAttribute.java index 094fd150d5..b78ef6d163 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AAttribute.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AAttribute.java @@ -11,13 +11,9 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore; - /** - * - * A representation of the model object 'AAttribute'. - * - * - * + * A representation of the model object 'AAttribute'. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAAttribute() * @model * @generated @@ -25,8 +21,8 @@ package org.eclipse.emf.cdo.dawn.examples.acore; public interface AAttribute extends AClassChild { /** - * - * + * + * * @generated */ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/ABasicClass.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/ABasicClass.java index a320167511..a71ed7558c 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/ABasicClass.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/ABasicClass.java @@ -16,19 +16,16 @@ import org.eclipse.emf.cdo.CDOObject; import org.eclipse.emf.common.util.EList; /** - * - * A representation of the model object 'ABasic Class'. - * - * + * A representation of the model object 'ABasic Class'. *

* The following features are supported: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getOperations Operations}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getAttributes Attributes}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getName Name}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getOperations Operations}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getAttributes Attributes}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getName Name}
  • *
*

- * + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getABasicClass() * @model * @extends CDOObject @@ -37,21 +34,21 @@ import org.eclipse.emf.common.util.EList; public interface ABasicClass extends CDOObject { /** - * - * + * + * * @generated */ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * Returns the value of the 'Operations' containment reference list. - * The list contents are of type {@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation}. - * + * Returns the value of the 'Operations' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation}. *

- * If the meaning of the 'Operations' containment reference list isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Operations' containment reference list isn't clear, there really should be more of + * a description here... *

* + * * @return the value of the 'Operations' containment reference list. * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getABasicClass_Operations() * @model containment="true" @@ -60,14 +57,14 @@ public interface ABasicClass extends CDOObject EList getOperations(); /** - * Returns the value of the 'Attributes' containment reference list. - * The list contents are of type {@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute}. - * + * Returns the value of the 'Attributes' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute}. *

- * If the meaning of the 'Attributes' containment reference list isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Attributes' containment reference list isn't clear, there really should be more of + * a description here... *

* + * * @return the value of the 'Attributes' containment reference list. * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getABasicClass_Attributes() * @model containment="true" @@ -76,13 +73,12 @@ public interface ABasicClass extends CDOObject EList getAttributes(); /** - * Returns the value of the 'Name' attribute. - * + * Returns the value of the 'Name' attribute. *

- * If the meaning of the 'Name' attribute isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here... *

* + * * @return the value of the 'Name' attribute. * @see #setName(String) * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getABasicClass_Name() @@ -92,10 +88,11 @@ public interface ABasicClass extends CDOObject String getName(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getName Name}' + * attribute. + * + * @param value + * the new value of the 'Name' attribute. * @see #getName() * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AClass.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AClass.java index e8e8bfffae..af5e8589ab 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AClass.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AClass.java @@ -14,21 +14,18 @@ package org.eclipse.emf.cdo.dawn.examples.acore; import org.eclipse.emf.common.util.EList; /** - * - * A representation of the model object 'AClass'. - * - * + * A representation of the model object 'AClass'. *

* The following features are supported: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getSubClasses Sub Classes}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getImplementedInterfaces Implemented Interfaces}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getAssociations Associations}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getCompositions Compositions}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getAggregations Aggregations}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getSubClasses Sub Classes}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getImplementedInterfaces Implemented Interfaces}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getAssociations Associations}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getCompositions Compositions}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getAggregations Aggregations}
  • *
*

- * + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAClass() * @model * @generated @@ -36,21 +33,21 @@ import org.eclipse.emf.common.util.EList; public interface AClass extends ABasicClass { /** - * - * + * + * * @generated */ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * Returns the value of the 'Sub Classes' reference list. - * The list contents are of type {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. - * + * Returns the value of the 'Sub Classes' reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. *

- * If the meaning of the 'Sub Classes' reference list isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Sub Classes' reference list isn't clear, there really should be more of a + * description here... *

* + * * @return the value of the 'Sub Classes' reference list. * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAClass_SubClasses() * @model @@ -59,14 +56,14 @@ public interface AClass extends ABasicClass EList getSubClasses(); /** - * Returns the value of the 'Implemented Interfaces' reference list. - * The list contents are of type {@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface}. - * + * Returns the value of the 'Implemented Interfaces' reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface}. *

- * If the meaning of the 'Implemented Interfaces' reference list isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Implemented Interfaces' reference list isn't clear, there really should be more of + * a description here... *

* + * * @return the value of the 'Implemented Interfaces' reference list. * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAClass_ImplementedInterfaces() * @model @@ -75,14 +72,14 @@ public interface AClass extends ABasicClass EList getImplementedInterfaces(); /** - * Returns the value of the 'Associations' reference list. - * The list contents are of type {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. - * + * Returns the value of the 'Associations' reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. *

- * If the meaning of the 'Associations' reference list isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Associations' reference list isn't clear, there really should be more of a + * description here... *

* + * * @return the value of the 'Associations' reference list. * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAClass_Associations() * @model @@ -91,14 +88,14 @@ public interface AClass extends ABasicClass EList getAssociations(); /** - * Returns the value of the 'Compositions' reference list. - * The list contents are of type {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. - * + * Returns the value of the 'Compositions' reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. *

- * If the meaning of the 'Compositions' reference list isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Compositions' reference list isn't clear, there really should be more of a + * description here... *

* + * * @return the value of the 'Compositions' reference list. * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAClass_Compositions() * @model @@ -107,14 +104,14 @@ public interface AClass extends ABasicClass EList getCompositions(); /** - * Returns the value of the 'Aggregations' reference list. - * The list contents are of type {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. - * + * Returns the value of the 'Aggregations' reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. *

- * If the meaning of the 'Aggregations' reference list isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Aggregations' reference list isn't clear, there really should be more of a + * description here... *

* + * * @return the value of the 'Aggregations' reference list. * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAClass_Aggregations() * @model diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AClassChild.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AClassChild.java index d2224dacab..ee6115bb52 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AClassChild.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AClassChild.java @@ -14,19 +14,16 @@ package org.eclipse.emf.cdo.dawn.examples.acore; import org.eclipse.emf.cdo.CDOObject; /** - * - * A representation of the model object 'AClass Child'. - * - * + * A representation of the model object 'AClass Child'. *

* The following features are supported: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getName Name}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getAccessright Accessright}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getDataType Data Type}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getName Name}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getAccessright Accessright}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getDataType Data Type}
  • *
*

- * + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAClassChild() * @model * @extends CDOObject @@ -35,21 +32,20 @@ import org.eclipse.emf.cdo.CDOObject; public interface AClassChild extends CDOObject { /** - * - * + * + * * @generated */ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * Returns the value of the 'Name' attribute. - * The default value is "". - * + * Returns the value of the 'Name' attribute. The default value is "". *

- * If the meaning of the 'Name' attribute isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here... *

* + * * @return the value of the 'Name' attribute. * @see #setName(String) * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAClassChild_Name() @@ -59,25 +55,26 @@ public interface AClassChild extends CDOObject String getName(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getName Name}' + * attribute. + * + * @param value + * the new value of the 'Name' attribute. * @see #getName() * @generated */ void setName(String value); /** - * Returns the value of the 'Accessright' attribute. - * The default value is "public". - * The literals are from the enumeration {@link org.eclipse.emf.cdo.dawn.examples.acore.AccessType}. - * + * Returns the value of the 'Accessright' attribute. The default value is "public". The + * literals are from the enumeration {@link org.eclipse.emf.cdo.dawn.examples.acore.AccessType}. *

- * If the meaning of the 'Accessright' attribute isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Accessright' attribute isn't clear, there really should be more of a description + * here... *

* + * * @return the value of the 'Accessright' attribute. * @see org.eclipse.emf.cdo.dawn.examples.acore.AccessType * @see #isSetAccessright() @@ -90,10 +87,11 @@ public interface AClassChild extends CDOObject AccessType getAccessright(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getAccessright Accessright}' attribute. - * - * - * @param value the new value of the 'Accessright' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getAccessright + * Accessright}' attribute. + * + * @param value + * the new value of the 'Accessright' attribute. * @see org.eclipse.emf.cdo.dawn.examples.acore.AccessType * @see #isSetAccessright() * @see #unsetAccessright() @@ -103,9 +101,9 @@ public interface AClassChild extends CDOObject void setAccessright(AccessType value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getAccessright Accessright}' attribute. - * - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getAccessright + * Accessright}' attribute. + * * @see #isSetAccessright() * @see #getAccessright() * @see #setAccessright(AccessType) @@ -114,9 +112,9 @@ public interface AClassChild extends CDOObject void unsetAccessright(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getAccessright Accessright}' attribute is set. - * - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getAccessright + * Accessright}' attribute is set. + * * @return whether the value of the 'Accessright' attribute is set. * @see #unsetAccessright() * @see #getAccessright() @@ -126,13 +124,13 @@ public interface AClassChild extends CDOObject boolean isSetAccessright(); /** - * Returns the value of the 'Data Type' attribute. - * + * Returns the value of the 'Data Type' attribute. *

- * If the meaning of the 'Data Type' attribute isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Data Type' attribute isn't clear, there really should be more of a description + * here... *

* + * * @return the value of the 'Data Type' attribute. * @see #setDataType(String) * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAClassChild_DataType() @@ -142,10 +140,11 @@ public interface AClassChild extends CDOObject String getDataType(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getDataType Data Type}' attribute. - * - * - * @param value the new value of the 'Data Type' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getDataType Data Type}' + * attribute. + * + * @param value + * the new value of the 'Data Type' attribute. * @see #getDataType() * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/ACoreRoot.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/ACoreRoot.java index 97ef616eb0..9b64b5c5a5 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/ACoreRoot.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/ACoreRoot.java @@ -16,19 +16,16 @@ import org.eclipse.emf.cdo.CDOObject; import org.eclipse.emf.common.util.EList; /** - * - * A representation of the model object 'ACore Root'. - * - * + * A representation of the model object 'ACore Root'. *

* The following features are supported: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getTitle Title}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getClasses Classes}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getInterfaces Interfaces}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getTitle Title}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getClasses Classes}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getInterfaces Interfaces}
  • *
*

- * + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getACoreRoot() * @model * @extends CDOObject @@ -37,20 +34,19 @@ import org.eclipse.emf.common.util.EList; public interface ACoreRoot extends CDOObject { /** - * - * + * + * * @generated */ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * Returns the value of the 'Title' attribute. - * + * Returns the value of the 'Title' attribute. *

- * If the meaning of the 'Title' attribute isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Title' attribute isn't clear, there really should be more of a description here... *

* + * * @return the value of the 'Title' attribute. * @see #setTitle(String) * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getACoreRoot_Title() @@ -60,24 +56,25 @@ public interface ACoreRoot extends CDOObject String getTitle(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getTitle Title}' attribute. - * - * - * @param value the new value of the 'Title' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getTitle Title}' + * attribute. + * + * @param value + * the new value of the 'Title' attribute. * @see #getTitle() * @generated */ void setTitle(String value); /** - * Returns the value of the 'Classes' containment reference list. - * The list contents are of type {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. - * + * Returns the value of the 'Classes' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass}. *

- * If the meaning of the 'Classes' containment reference list isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Classes' containment reference list isn't clear, there really should be more of a + * description here... *

* + * * @return the value of the 'Classes' containment reference list. * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getACoreRoot_Classes() * @model containment="true" @@ -86,14 +83,14 @@ public interface ACoreRoot extends CDOObject EList getClasses(); /** - * Returns the value of the 'Interfaces' containment reference list. - * The list contents are of type {@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface}. - * + * Returns the value of the 'Interfaces' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface}. *

- * If the meaning of the 'Interfaces' containment reference list isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Interfaces' containment reference list isn't clear, there really should be more of + * a description here... *

* + * * @return the value of the 'Interfaces' containment reference list. * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getACoreRoot_Interfaces() * @model containment="true" diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AInterface.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AInterface.java index 02c91ca316..0067b27e3d 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AInterface.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AInterface.java @@ -11,13 +11,9 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore; - /** - * - * A representation of the model object 'AInterface'. - * - * - * + * A representation of the model object 'AInterface'. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAInterface() * @model * @generated @@ -25,8 +21,8 @@ package org.eclipse.emf.cdo.dawn.examples.acore; public interface AInterface extends ABasicClass { /** - * - * + * + * * @generated */ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AOperation.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AOperation.java index 2d3786c916..1d4727b242 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AOperation.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AOperation.java @@ -14,17 +14,14 @@ package org.eclipse.emf.cdo.dawn.examples.acore; import org.eclipse.emf.common.util.EList; /** - * - * A representation of the model object 'AOperation'. - * - * + * A representation of the model object 'AOperation'. *

* The following features are supported: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation#getParameters Parameters}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation#getParameters Parameters}
  • *
*

- * + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAOperation() * @model * @generated @@ -32,21 +29,21 @@ import org.eclipse.emf.common.util.EList; public interface AOperation extends AClassChild { /** - * - * + * + * * @generated */ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * Returns the value of the 'Parameters' containment reference list. - * The list contents are of type {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter}. - * + * Returns the value of the 'Parameters' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter}. *

- * If the meaning of the 'Parameters' containment reference list isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Parameters' containment reference list isn't clear, there really should be more of + * a description here... *

* + * * @return the value of the 'Parameters' containment reference list. * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAOperation_Parameters() * @model containment="true" diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AParameter.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AParameter.java index 2cd30b53ab..327964110e 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AParameter.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AParameter.java @@ -14,18 +14,15 @@ package org.eclipse.emf.cdo.dawn.examples.acore; import org.eclipse.emf.cdo.CDOObject; /** - * - * A representation of the model object 'AParameter'. - * - * + * A representation of the model object 'AParameter'. *

* The following features are supported: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getName Name}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getType Type}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getName Name}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getType Type}
  • *
*

- * + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAParameter() * @model * @extends CDOObject @@ -34,20 +31,19 @@ import org.eclipse.emf.cdo.CDOObject; public interface AParameter extends CDOObject { /** - * - * + * + * * @generated */ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * Returns the value of the 'Name' attribute. - * + * Returns the value of the 'Name' attribute. *

- * If the meaning of the 'Name' attribute isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here... *

* + * * @return the value of the 'Name' attribute. * @see #setName(String) * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAParameter_Name() @@ -58,22 +54,22 @@ public interface AParameter extends CDOObject /** * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. + * + * + * @param value + * the new value of the 'Name' attribute. * @see #getName() * @generated */ void setName(String value); /** - * Returns the value of the 'Type' attribute. - * + * Returns the value of the 'Type' attribute. *

- * If the meaning of the 'Type' attribute isn't clear, - * there really should be more of a description here... + * If the meaning of the 'Type' attribute isn't clear, there really should be more of a description here... *

* + * * @return the value of the 'Type' attribute. * @see #setType(String) * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAParameter_Type() @@ -84,9 +80,10 @@ public interface AParameter extends CDOObject /** * Sets the value of the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getType Type}' attribute. - * - * - * @param value the new value of the 'Type' attribute. + * + * + * @param value + * the new value of the 'Type' attribute. * @see #getType() * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AccessType.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AccessType.java index 2befc78aed..c5e4d7aa35 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AccessType.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AccessType.java @@ -11,17 +11,16 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore; +import org.eclipse.emf.common.util.Enumerator; + import java.util.Arrays; import java.util.Collections; import java.util.List; -import org.eclipse.emf.common.util.Enumerator; - /** - * - * A representation of the literals of the enumeration 'Access Type', - * and utility methods for working with them. - * + * A representation of the literals of the enumeration 'Access Type', and + * utility methods for working with them. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#getAccessType() * @model extendedMetaData="name='AccessType'" * @generated @@ -29,9 +28,8 @@ import org.eclipse.emf.common.util.Enumerator; public enum AccessType implements Enumerator { /** - * The 'PUBLIC' literal object. - * - * + * The 'PUBLIC' literal object. + * * @see #PUBLIC_VALUE * @generated * @ordered @@ -39,9 +37,8 @@ public enum AccessType implements Enumerator PUBLIC(0, "PUBLIC", "public"), /** - * The 'PRIVATE' literal object. - * - * + * The 'PRIVATE' literal object. + * * @see #PRIVATE_VALUE * @generated * @ordered @@ -49,9 +46,8 @@ public enum AccessType implements Enumerator PRIVATE(1, "PRIVATE", "private"), /** - * The 'PROECTED' literal object. - * - * + * The 'PROECTED' literal object. + * * @see #PROECTED_VALUE * @generated * @ordered @@ -59,9 +55,8 @@ public enum AccessType implements Enumerator PROECTED(2, "PROECTED", "protected"), /** - * The 'PACKAGE' literal object. - * - * + * The 'PACKAGE' literal object. + * * @see #PACKAGE_VALUE * @generated * @ordered @@ -69,20 +64,20 @@ public enum AccessType implements Enumerator PACKAGE(3, "PACKAGE", "package"); /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * The 'PUBLIC' literal value. - * + * The 'PUBLIC' literal value. *

- * If the meaning of 'PUBLIC' literal object isn't clear, - * there really should be more of a description here... + * If the meaning of 'PUBLIC' literal object isn't clear, there really should be more of a description + * here... *

* + * * @see #PUBLIC * @model literal="public" * @generated @@ -91,13 +86,13 @@ public enum AccessType implements Enumerator public static final int PUBLIC_VALUE = 0; /** - * The 'PRIVATE' literal value. - * + * The 'PRIVATE' literal value. *

- * If the meaning of 'PRIVATE' literal object isn't clear, - * there really should be more of a description here... + * If the meaning of 'PRIVATE' literal object isn't clear, there really should be more of a + * description here... *

* + * * @see #PRIVATE * @model literal="private" * @generated @@ -106,13 +101,13 @@ public enum AccessType implements Enumerator public static final int PRIVATE_VALUE = 1; /** - * The 'PROECTED' literal value. - * + * The 'PROECTED' literal value. *

- * If the meaning of 'PROECTED' literal object isn't clear, - * there really should be more of a description here... + * If the meaning of 'PROECTED' literal object isn't clear, there really should be more of a + * description here... *

* + * * @see #PROECTED * @model literal="protected" * @generated @@ -121,13 +116,13 @@ public enum AccessType implements Enumerator public static final int PROECTED_VALUE = 2; /** - * The 'PACKAGE' literal value. - * + * The 'PACKAGE' literal value. *

- * If the meaning of 'PACKAGE' literal object isn't clear, - * there really should be more of a description here... + * If the meaning of 'PACKAGE' literal object isn't clear, there really should be more of a + * description here... *

* + * * @see #PACKAGE * @model literal="package" * @generated @@ -136,32 +131,24 @@ public enum AccessType implements Enumerator public static final int PACKAGE_VALUE = 3; /** - * An array of all the 'Access Type' enumerators. - * - * + * An array of all the 'Access Type' enumerators. + * * @generated */ - private static final AccessType[] VALUES_ARRAY = - new AccessType[] - { - PUBLIC, - PRIVATE, - PROECTED, - PACKAGE, - }; + private static final AccessType[] VALUES_ARRAY = new AccessType[] { PUBLIC, PRIVATE, PROECTED, PACKAGE, }; /** - * A public read-only list of all the 'Access Type' enumerators. - * - * + * A public read-only list of all the 'Access Type' enumerators. + * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** - * Returns the 'Access Type' literal with the specified literal value. - * - * + * Returns the 'Access Type' literal with the specified literal value. + * * @generated */ public static AccessType get(String literal) @@ -178,9 +165,9 @@ public enum AccessType implements Enumerator } /** - * Returns the 'Access Type' literal with the specified name. - * - * + * Returns the 'Access Type' literal with the specified name. + * * @generated */ public static AccessType getByName(String name) @@ -197,48 +184,51 @@ public enum AccessType implements Enumerator } /** - * Returns the 'Access Type' literal with the specified integer value. - * - * + * Returns the 'Access Type' literal with the specified integer value. + * * @generated */ public static AccessType get(int value) { switch (value) { - case PUBLIC_VALUE: return PUBLIC; - case PRIVATE_VALUE: return PRIVATE; - case PROECTED_VALUE: return PROECTED; - case PACKAGE_VALUE: return PACKAGE; + case PUBLIC_VALUE: + return PUBLIC; + case PRIVATE_VALUE: + return PRIVATE; + case PROECTED_VALUE: + return PROECTED; + case PACKAGE_VALUE: + return PACKAGE; } return null; } /** - * - * + * + * * @generated */ private final int value; /** - * - * + * + * * @generated */ private final String name; /** - * - * + * + * * @generated */ private final String literal; /** - * Only this class can construct instances. - * - * + * Only this class can construct instances. + * * @generated */ private AccessType(int value, String name, String literal) @@ -249,8 +239,8 @@ public enum AccessType implements Enumerator } /** - * - * + * + * * @generated */ public int getValue() @@ -259,8 +249,8 @@ public enum AccessType implements Enumerator } /** - * - * + * + * * @generated */ public String getName() @@ -269,8 +259,8 @@ public enum AccessType implements Enumerator } /** - * - * + * + * * @generated */ public String getLiteral() @@ -279,9 +269,9 @@ public enum AccessType implements Enumerator } /** - * Returns the literal value of the enumerator, which is its string representation. - * - * + * Returns the literal value of the enumerator, which is its string representation. + * * @generated */ @Override @@ -289,5 +279,5 @@ public enum AccessType implements Enumerator { return literal; } - -} //AccessType + +} // AccessType diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AcoreFactory.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AcoreFactory.java index 6c964f273b..46a85133f8 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AcoreFactory.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AcoreFactory.java @@ -14,109 +14,98 @@ package org.eclipse.emf.cdo.dawn.examples.acore; import org.eclipse.emf.ecore.EFactory; /** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * + * The Factory for the model. It provides a create method for each non-abstract class of + * the model. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage * @generated */ public interface AcoreFactory extends EFactory { /** - * - * + * + * * @generated */ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * The singleton instance of the factory. - * - * + * The singleton instance of the factory. + * * @generated */ AcoreFactory eINSTANCE = org.eclipse.emf.cdo.dawn.examples.acore.impl.AcoreFactoryImpl.init(); /** - * Returns a new object of class 'AClass'. - * - * + * Returns a new object of class 'AClass'. + * * @return a new object of class 'AClass'. * @generated */ AClass createAClass(); /** - * Returns a new object of class 'AInterface'. - * - * + * Returns a new object of class 'AInterface'. + * * @return a new object of class 'AInterface'. * @generated */ AInterface createAInterface(); /** - * Returns a new object of class 'ACore Root'. - * - * + * Returns a new object of class 'ACore Root'. + * * @return a new object of class 'ACore Root'. * @generated */ ACoreRoot createACoreRoot(); /** - * Returns a new object of class 'AAttribute'. - * - * + * Returns a new object of class 'AAttribute'. + * * @return a new object of class 'AAttribute'. * @generated */ AAttribute createAAttribute(); /** - * Returns a new object of class 'AOperation'. - * - * + * Returns a new object of class 'AOperation'. + * * @return a new object of class 'AOperation'. * @generated */ AOperation createAOperation(); /** - * Returns a new object of class 'ABasic Class'. - * - * + * Returns a new object of class 'ABasic Class'. + * * @return a new object of class 'ABasic Class'. * @generated */ ABasicClass createABasicClass(); /** - * Returns a new object of class 'AParameter'. - * - * + * Returns a new object of class 'AParameter'. + * * @return a new object of class 'AParameter'. * @generated */ AParameter createAParameter(); /** - * Returns a new object of class 'AClass Child'. - * - * + * Returns a new object of class 'AClass Child'. + * * @return a new object of class 'AClass Child'. * @generated */ AClassChild createAClassChild(); /** - * Returns the package supported by this factory. - * - * + * Returns the package supported by this factory. + * * @return the package supported by this factory. * @generated */ AcorePackage getAcorePackage(); -} //AcoreFactory +} // AcoreFactory diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AcorePackage.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AcorePackage.java index 4f099c9829..0a62c4f0ff 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AcorePackage.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/AcorePackage.java @@ -19,16 +19,15 @@ import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; /** - * - * The Package for the model. - * It contains accessors for the meta objects to represent + * The Package for the model. It contains accessors for the meta objects to represent *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • *
* + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcoreFactory * @model kind="package" * @generated @@ -36,48 +35,44 @@ import org.eclipse.emf.ecore.EReference; public interface AcorePackage extends EPackage { /** - * - * + * + * * @generated */ String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * The package name. - * - * + * The package name. + * * @generated */ String eNAME = "acore"; /** - * The package namespace URI. - * - * + * The package namespace URI. + * * @generated */ String eNS_URI = "http://www.eclipse.org/emf/cdo/dawn/examples/2010/ACore"; /** - * The package namespace name. - * - * + * The package namespace name. + * * @generated */ String eNS_PREFIX = "acore"; /** - * The singleton instance of the package. - * - * + * The singleton instance of the package. + * * @generated */ AcorePackage eINSTANCE = org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl.init(); /** - * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl ABasic Class}' class. - * - * + * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl + * ABasic Class}' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getABasicClass() * @generated @@ -85,36 +80,35 @@ public interface AcorePackage extends EPackage int ABASIC_CLASS = 5; /** - * The feature id for the 'Operations' containment reference list. - * - * + * The feature id for the 'Operations' containment reference list. + * * @generated * @ordered */ int ABASIC_CLASS__OPERATIONS = 0; /** - * The feature id for the 'Attributes' containment reference list. - * - * + * The feature id for the 'Attributes' containment reference list. + * * @generated * @ordered */ int ABASIC_CLASS__ATTRIBUTES = 1; /** - * The feature id for the 'Name' attribute. - * - * + * The feature id for the 'Name' attribute. + * * @generated * @ordered */ int ABASIC_CLASS__NAME = 2; /** - * The number of structural features of the 'ABasic Class' class. - * - * + * The number of structural features of the 'ABasic Class' class. + * * @generated * @ordered */ @@ -122,8 +116,8 @@ public interface AcorePackage extends EPackage /** * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl AClass}' class. - * - * + * + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAClass() * @generated @@ -131,90 +125,84 @@ public interface AcorePackage extends EPackage int ACLASS = 0; /** - * The feature id for the 'Operations' containment reference list. - * - * + * The feature id for the 'Operations' containment reference list. + * * @generated * @ordered */ int ACLASS__OPERATIONS = ABASIC_CLASS__OPERATIONS; /** - * The feature id for the 'Attributes' containment reference list. - * - * + * The feature id for the 'Attributes' containment reference list. + * * @generated * @ordered */ int ACLASS__ATTRIBUTES = ABASIC_CLASS__ATTRIBUTES; /** - * The feature id for the 'Name' attribute. - * - * + * The feature id for the 'Name' attribute. + * * @generated * @ordered */ int ACLASS__NAME = ABASIC_CLASS__NAME; /** - * The feature id for the 'Sub Classes' reference list. - * - * + * The feature id for the 'Sub Classes' reference list. + * * @generated * @ordered */ int ACLASS__SUB_CLASSES = ABASIC_CLASS_FEATURE_COUNT + 0; /** - * The feature id for the 'Implemented Interfaces' reference list. - * - * + * The feature id for the 'Implemented Interfaces' reference list. + * * @generated * @ordered */ int ACLASS__IMPLEMENTED_INTERFACES = ABASIC_CLASS_FEATURE_COUNT + 1; /** - * The feature id for the 'Associations' reference list. - * - * + * The feature id for the 'Associations' reference list. + * * @generated * @ordered */ int ACLASS__ASSOCIATIONS = ABASIC_CLASS_FEATURE_COUNT + 2; /** - * The feature id for the 'Compositions' reference list. - * - * + * The feature id for the 'Compositions' reference list. + * * @generated * @ordered */ int ACLASS__COMPOSITIONS = ABASIC_CLASS_FEATURE_COUNT + 3; /** - * The feature id for the 'Aggregations' reference list. - * - * + * The feature id for the 'Aggregations' reference list. + * * @generated * @ordered */ int ACLASS__AGGREGATIONS = ABASIC_CLASS_FEATURE_COUNT + 4; /** - * The number of structural features of the 'AClass' class. - * - * + * The number of structural features of the 'AClass' class. + * * @generated * @ordered */ int ACLASS_FEATURE_COUNT = ABASIC_CLASS_FEATURE_COUNT + 5; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AInterfaceImpl AInterface}' class. - * - * + * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AInterfaceImpl AInterface} + * ' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AInterfaceImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAInterface() * @generated @@ -222,45 +210,43 @@ public interface AcorePackage extends EPackage int AINTERFACE = 1; /** - * The feature id for the 'Operations' containment reference list. - * - * + * The feature id for the 'Operations' containment reference list. + * * @generated * @ordered */ int AINTERFACE__OPERATIONS = ABASIC_CLASS__OPERATIONS; /** - * The feature id for the 'Attributes' containment reference list. - * - * + * The feature id for the 'Attributes' containment reference list. + * * @generated * @ordered */ int AINTERFACE__ATTRIBUTES = ABASIC_CLASS__ATTRIBUTES; /** - * The feature id for the 'Name' attribute. - * - * + * The feature id for the 'Name' attribute. + * * @generated * @ordered */ int AINTERFACE__NAME = ABASIC_CLASS__NAME; /** - * The number of structural features of the 'AInterface' class. - * - * + * The number of structural features of the 'AInterface' class. + * * @generated * @ordered */ int AINTERFACE_FEATURE_COUNT = ABASIC_CLASS_FEATURE_COUNT + 0; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl ACore Root}' class. - * - * + * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl ACore Root}' + * class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getACoreRoot() * @generated @@ -268,45 +254,43 @@ public interface AcorePackage extends EPackage int ACORE_ROOT = 2; /** - * The feature id for the 'Title' attribute. - * - * + * The feature id for the 'Title' attribute. + * * @generated * @ordered */ int ACORE_ROOT__TITLE = 0; /** - * The feature id for the 'Classes' containment reference list. - * - * + * The feature id for the 'Classes' containment reference list. + * * @generated * @ordered */ int ACORE_ROOT__CLASSES = 1; /** - * The feature id for the 'Interfaces' containment reference list. - * - * + * The feature id for the 'Interfaces' containment reference list. + * * @generated * @ordered */ int ACORE_ROOT__INTERFACES = 2; /** - * The number of structural features of the 'ACore Root' class. - * - * + * The number of structural features of the 'ACore Root' class. + * * @generated * @ordered */ int ACORE_ROOT_FEATURE_COUNT = 3; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl AClass Child}' class. - * - * + * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl + * AClass Child}' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAClassChild() * @generated @@ -314,45 +298,42 @@ public interface AcorePackage extends EPackage int ACLASS_CHILD = 7; /** - * The feature id for the 'Name' attribute. - * - * + * The feature id for the 'Name' attribute. + * * @generated * @ordered */ int ACLASS_CHILD__NAME = 0; /** - * The feature id for the 'Accessright' attribute. - * - * + * The feature id for the 'Accessright' attribute. + * * @generated * @ordered */ int ACLASS_CHILD__ACCESSRIGHT = 1; /** - * The feature id for the 'Data Type' attribute. - * - * + * The feature id for the 'Data Type' attribute. + * * @generated * @ordered */ int ACLASS_CHILD__DATA_TYPE = 2; /** - * The number of structural features of the 'AClass Child' class. - * - * + * The number of structural features of the 'AClass Child' class. + * * @generated * @ordered */ int ACLASS_CHILD_FEATURE_COUNT = 3; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AAttributeImpl AAttribute}' class. - * - * + * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AAttributeImpl AAttribute} + * ' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AAttributeImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAAttribute() * @generated @@ -360,45 +341,41 @@ public interface AcorePackage extends EPackage int AATTRIBUTE = 3; /** - * The feature id for the 'Name' attribute. - * - * + * The feature id for the 'Name' attribute. + * * @generated * @ordered */ int AATTRIBUTE__NAME = ACLASS_CHILD__NAME; /** - * The feature id for the 'Accessright' attribute. - * - * + * The feature id for the 'Accessright' attribute. + * * @generated * @ordered */ int AATTRIBUTE__ACCESSRIGHT = ACLASS_CHILD__ACCESSRIGHT; /** - * The feature id for the 'Data Type' attribute. - * - * + * The feature id for the 'Data Type' attribute. + * * @generated * @ordered */ int AATTRIBUTE__DATA_TYPE = ACLASS_CHILD__DATA_TYPE; /** - * The number of structural features of the 'AAttribute' class. - * - * + * The number of structural features of the 'AAttribute' class. + * * @generated * @ordered */ int AATTRIBUTE_FEATURE_COUNT = ACLASS_CHILD_FEATURE_COUNT + 0; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AOperationImpl AOperation}' class. - * - * + * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AOperationImpl AOperation} + * ' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AOperationImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAOperation() * @generated @@ -406,54 +383,50 @@ public interface AcorePackage extends EPackage int AOPERATION = 4; /** - * The feature id for the 'Name' attribute. - * - * + * The feature id for the 'Name' attribute. + * * @generated * @ordered */ int AOPERATION__NAME = ACLASS_CHILD__NAME; /** - * The feature id for the 'Accessright' attribute. - * - * + * The feature id for the 'Accessright' attribute. + * * @generated * @ordered */ int AOPERATION__ACCESSRIGHT = ACLASS_CHILD__ACCESSRIGHT; /** - * The feature id for the 'Data Type' attribute. - * - * + * The feature id for the 'Data Type' attribute. + * * @generated * @ordered */ int AOPERATION__DATA_TYPE = ACLASS_CHILD__DATA_TYPE; /** - * The feature id for the 'Parameters' containment reference list. - * - * + * The feature id for the 'Parameters' containment reference list. + * * @generated * @ordered */ int AOPERATION__PARAMETERS = ACLASS_CHILD_FEATURE_COUNT + 0; /** - * The number of structural features of the 'AOperation' class. - * - * + * The number of structural features of the 'AOperation' class. + * * @generated * @ordered */ int AOPERATION_FEATURE_COUNT = ACLASS_CHILD_FEATURE_COUNT + 1; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AParameterImpl AParameter}' class. - * - * + * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AParameterImpl AParameter} + * ' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AParameterImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAParameter() * @generated @@ -461,27 +434,24 @@ public interface AcorePackage extends EPackage int APARAMETER = 6; /** - * The feature id for the 'Name' attribute. - * - * + * The feature id for the 'Name' attribute. + * * @generated * @ordered */ int APARAMETER__NAME = 0; /** - * The feature id for the 'Type' attribute. - * - * + * The feature id for the 'Type' attribute. + * * @generated * @ordered */ int APARAMETER__TYPE = 1; /** - * The number of structural features of the 'AParameter' class. - * - * + * The number of structural features of the 'AParameter' class. + * * @generated * @ordered */ @@ -489,8 +459,8 @@ public interface AcorePackage extends EPackage /** * The meta object id for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AccessType Access Type}' enum. - * - * + * + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AccessType * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAccessType() * @generated @@ -498,20 +468,18 @@ public interface AcorePackage extends EPackage int ACCESS_TYPE = 8; /** - * The meta object id for the 'Access Type Object' data type. - * - * + * The meta object id for the 'Access Type Object' data type. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AccessType * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAccessTypeObject() * @generated */ int ACCESS_TYPE_OBJECT = 9; - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClass AClass}'. - * - * + * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClass AClass}'. + * * @return the meta object for class 'AClass'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClass * @generated @@ -519,9 +487,10 @@ public interface AcorePackage extends EPackage EClass getAClass(); /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getSubClasses Sub Classes}'. - * + * Returns the meta object for the reference list ' + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getSubClasses Sub Classes}'. * + * * @return the meta object for the reference list 'Sub Classes'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClass#getSubClasses() * @see #getAClass() @@ -530,9 +499,10 @@ public interface AcorePackage extends EPackage EReference getAClass_SubClasses(); /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getImplementedInterfaces Implemented Interfaces}'. - * - * + * Returns the meta object for the reference list ' + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getImplementedInterfaces Implemented Interfaces}'. + * + * * @return the meta object for the reference list 'Implemented Interfaces'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClass#getImplementedInterfaces() * @see #getAClass() @@ -541,9 +511,10 @@ public interface AcorePackage extends EPackage EReference getAClass_ImplementedInterfaces(); /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getAssociations Associations}'. - * - * + * Returns the meta object for the reference list ' + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getAssociations Associations}'. + * * @return the meta object for the reference list 'Associations'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClass#getAssociations() * @see #getAClass() @@ -552,9 +523,10 @@ public interface AcorePackage extends EPackage EReference getAClass_Associations(); /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getCompositions Compositions}'. - * - * + * Returns the meta object for the reference list ' + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getCompositions Compositions}'. + * * @return the meta object for the reference list 'Compositions'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClass#getCompositions() * @see #getAClass() @@ -563,9 +535,10 @@ public interface AcorePackage extends EPackage EReference getAClass_Compositions(); /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getAggregations Aggregations}'. - * - * + * Returns the meta object for the reference list ' + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AClass#getAggregations Aggregations}'. + * * @return the meta object for the reference list 'Aggregations'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClass#getAggregations() * @see #getAClass() @@ -575,8 +548,8 @@ public interface AcorePackage extends EPackage /** * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface AInterface}'. - * - * + * + * * @return the meta object for class 'AInterface'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AInterface * @generated @@ -585,8 +558,8 @@ public interface AcorePackage extends EPackage /** * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot ACore Root}'. - * - * + * + * * @return the meta object for class 'ACore Root'. * @see org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot * @generated @@ -594,9 +567,9 @@ public interface AcorePackage extends EPackage EClass getACoreRoot(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getTitle Title}'. - * - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getTitle + * Title}'. + * * @return the meta object for the attribute 'Title'. * @see org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getTitle() * @see #getACoreRoot() @@ -605,9 +578,10 @@ public interface AcorePackage extends EPackage EAttribute getACoreRoot_Title(); /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getClasses Classes}'. - * + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getClasses Classes}'. * + * * @return the meta object for the containment reference list 'Classes'. * @see org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getClasses() * @see #getACoreRoot() @@ -616,9 +590,10 @@ public interface AcorePackage extends EPackage EReference getACoreRoot_Classes(); /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getInterfaces Interfaces}'. - * - * + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getInterfaces Interfaces}'. + * * @return the meta object for the containment reference list 'Interfaces'. * @see org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot#getInterfaces() * @see #getACoreRoot() @@ -628,8 +603,8 @@ public interface AcorePackage extends EPackage /** * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute AAttribute}'. - * - * + * + * * @return the meta object for class 'AAttribute'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AAttribute * @generated @@ -638,8 +613,8 @@ public interface AcorePackage extends EPackage /** * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation AOperation}'. - * - * + * + * * @return the meta object for class 'AOperation'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AOperation * @generated @@ -647,9 +622,10 @@ public interface AcorePackage extends EPackage EClass getAOperation(); /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation#getParameters Parameters}'. - * - * + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation#getParameters Parameters}'. + * * @return the meta object for the containment reference list 'Parameters'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AOperation#getParameters() * @see #getAOperation() @@ -658,9 +634,9 @@ public interface AcorePackage extends EPackage EReference getAOperation_Parameters(); /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass ABasic Class}'. - * - * + * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass + * ABasic Class}'. + * * @return the meta object for class 'ABasic Class'. * @see org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass * @generated @@ -668,9 +644,10 @@ public interface AcorePackage extends EPackage EClass getABasicClass(); /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getOperations Operations}'. - * - * + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getOperations Operations}'. + * * @return the meta object for the containment reference list 'Operations'. * @see org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getOperations() * @see #getABasicClass() @@ -679,9 +656,10 @@ public interface AcorePackage extends EPackage EReference getABasicClass_Operations(); /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getAttributes Attributes}'. - * - * + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getAttributes Attributes}'. + * * @return the meta object for the containment reference list 'Attributes'. * @see org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getAttributes() * @see #getABasicClass() @@ -690,9 +668,9 @@ public interface AcorePackage extends EPackage EReference getABasicClass_Attributes(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getName Name}'. - * - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getName + * Name}'. + * * @return the meta object for the attribute 'Name'. * @see org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass#getName() * @see #getABasicClass() @@ -702,8 +680,8 @@ public interface AcorePackage extends EPackage /** * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter AParameter}'. - * - * + * + * * @return the meta object for class 'AParameter'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AParameter * @generated @@ -711,9 +689,9 @@ public interface AcorePackage extends EPackage EClass getAParameter(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getName Name}'. - * - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getName + * Name}'. + * * @return the meta object for the attribute 'Name'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getName() * @see #getAParameter() @@ -722,9 +700,9 @@ public interface AcorePackage extends EPackage EAttribute getAParameter_Name(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getType Type}'. - * - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getType + * Type}'. + * * @return the meta object for the attribute 'Type'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AParameter#getType() * @see #getAParameter() @@ -733,9 +711,9 @@ public interface AcorePackage extends EPackage EAttribute getAParameter_Type(); /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild AClass Child}'. - * - * + * Returns the meta object for class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild + * AClass Child}'. + * * @return the meta object for class 'AClass Child'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClassChild * @generated @@ -743,9 +721,9 @@ public interface AcorePackage extends EPackage EClass getAClassChild(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getName Name}'. - * - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getName + * Name}'. + * * @return the meta object for the attribute 'Name'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getName() * @see #getAClassChild() @@ -754,9 +732,10 @@ public interface AcorePackage extends EPackage EAttribute getAClassChild_Name(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getAccessright Accessright}'. - * - * + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getAccessright Accessright}'. + * * @return the meta object for the attribute 'Accessright'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getAccessright() * @see #getAClassChild() @@ -765,9 +744,9 @@ public interface AcorePackage extends EPackage EAttribute getAClassChild_Accessright(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getDataType Data Type}'. - * - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getDataType + * Data Type}'. + * * @return the meta object for the attribute 'Data Type'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClassChild#getDataType() * @see #getAClassChild() @@ -777,8 +756,8 @@ public interface AcorePackage extends EPackage /** * Returns the meta object for enum '{@link org.eclipse.emf.cdo.dawn.examples.acore.AccessType Access Type}'. - * - * + * + * * @return the meta object for enum 'Access Type'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AccessType * @generated @@ -786,9 +765,9 @@ public interface AcorePackage extends EPackage EEnum getAccessType(); /** - * Returns the meta object for data type '{@link org.eclipse.emf.cdo.dawn.examples.acore.AccessType Access Type Object}'. - * - * + * Returns the meta object for data type '{@link org.eclipse.emf.cdo.dawn.examples.acore.AccessType + * Access Type Object}'. + * * @return the meta object for data type 'Access Type Object'. * @see org.eclipse.emf.cdo.dawn.examples.acore.AccessType * @model instanceClass="org.eclipse.emf.cdo.dawn.examples.acore.AccessType" @@ -798,32 +777,31 @@ public interface AcorePackage extends EPackage EDataType getAccessTypeObject(); /** - * Returns the factory that creates the instances of the model. - * - * + * Returns the factory that creates the instances of the model. + * * @return the factory that creates the instances of the model. * @generated */ AcoreFactory getAcoreFactory(); /** - * - * Defines literals for the meta objects that represent + * Defines literals for the meta objects that represent *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • *
* + * * @generated */ interface Literals { /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl AClass}' class. - * - * + * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl AClass}' + * class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAClass() * @generated @@ -831,49 +809,49 @@ public interface AcorePackage extends EPackage EClass ACLASS = eINSTANCE.getAClass(); /** - * The meta object literal for the 'Sub Classes' reference list feature. - * + * The meta object literal for the 'Sub Classes' reference list feature. * + * * @generated */ EReference ACLASS__SUB_CLASSES = eINSTANCE.getAClass_SubClasses(); /** - * The meta object literal for the 'Implemented Interfaces' reference list feature. - * - * + * The meta object literal for the 'Implemented Interfaces' reference list feature. + * * @generated */ EReference ACLASS__IMPLEMENTED_INTERFACES = eINSTANCE.getAClass_ImplementedInterfaces(); /** - * The meta object literal for the 'Associations' reference list feature. - * + * The meta object literal for the 'Associations' reference list feature. * + * * @generated */ EReference ACLASS__ASSOCIATIONS = eINSTANCE.getAClass_Associations(); /** - * The meta object literal for the 'Compositions' reference list feature. - * + * The meta object literal for the 'Compositions' reference list feature. * + * * @generated */ EReference ACLASS__COMPOSITIONS = eINSTANCE.getAClass_Compositions(); /** - * The meta object literal for the 'Aggregations' reference list feature. - * + * The meta object literal for the 'Aggregations' reference list feature. * + * * @generated */ EReference ACLASS__AGGREGATIONS = eINSTANCE.getAClass_Aggregations(); /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AInterfaceImpl AInterface}' class. - * - * + * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AInterfaceImpl + * AInterface}' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AInterfaceImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAInterface() * @generated @@ -881,9 +859,9 @@ public interface AcorePackage extends EPackage EClass AINTERFACE = eINSTANCE.getAInterface(); /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl ACore Root}' class. - * - * + * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl + * ACore Root}' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getACoreRoot() * @generated @@ -891,33 +869,33 @@ public interface AcorePackage extends EPackage EClass ACORE_ROOT = eINSTANCE.getACoreRoot(); /** - * The meta object literal for the 'Title' attribute feature. - * - * + * The meta object literal for the 'Title' attribute feature. + * * @generated */ EAttribute ACORE_ROOT__TITLE = eINSTANCE.getACoreRoot_Title(); /** - * The meta object literal for the 'Classes' containment reference list feature. - * - * + * The meta object literal for the 'Classes' containment reference list feature. + * * @generated */ EReference ACORE_ROOT__CLASSES = eINSTANCE.getACoreRoot_Classes(); /** - * The meta object literal for the 'Interfaces' containment reference list feature. - * - * + * The meta object literal for the 'Interfaces' containment reference list feature. + * * @generated */ EReference ACORE_ROOT__INTERFACES = eINSTANCE.getACoreRoot_Interfaces(); /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AAttributeImpl AAttribute}' class. - * - * + * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AAttributeImpl + * AAttribute}' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AAttributeImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAAttribute() * @generated @@ -925,9 +903,9 @@ public interface AcorePackage extends EPackage EClass AATTRIBUTE = eINSTANCE.getAAttribute(); /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AOperationImpl AOperation}' class. - * - * + * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AOperationImpl + * AOperation}' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AOperationImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAOperation() * @generated @@ -935,17 +913,17 @@ public interface AcorePackage extends EPackage EClass AOPERATION = eINSTANCE.getAOperation(); /** - * The meta object literal for the 'Parameters' containment reference list feature. - * - * + * The meta object literal for the 'Parameters' containment reference list feature. + * * @generated */ EReference AOPERATION__PARAMETERS = eINSTANCE.getAOperation_Parameters(); /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl ABasic Class}' class. - * - * + * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl + * ABasic Class}' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getABasicClass() * @generated @@ -953,33 +931,33 @@ public interface AcorePackage extends EPackage EClass ABASIC_CLASS = eINSTANCE.getABasicClass(); /** - * The meta object literal for the 'Operations' containment reference list feature. - * - * + * The meta object literal for the 'Operations' containment reference list feature. + * * @generated */ EReference ABASIC_CLASS__OPERATIONS = eINSTANCE.getABasicClass_Operations(); /** - * The meta object literal for the 'Attributes' containment reference list feature. - * - * + * The meta object literal for the 'Attributes' containment reference list feature. + * * @generated */ EReference ABASIC_CLASS__ATTRIBUTES = eINSTANCE.getABasicClass_Attributes(); /** - * The meta object literal for the 'Name' attribute feature. - * - * + * The meta object literal for the 'Name' attribute feature. + * * @generated */ EAttribute ABASIC_CLASS__NAME = eINSTANCE.getABasicClass_Name(); /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AParameterImpl AParameter}' class. - * - * + * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AParameterImpl + * AParameter}' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AParameterImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAParameter() * @generated @@ -987,25 +965,25 @@ public interface AcorePackage extends EPackage EClass APARAMETER = eINSTANCE.getAParameter(); /** - * The meta object literal for the 'Name' attribute feature. - * - * + * The meta object literal for the 'Name' attribute feature. + * * @generated */ EAttribute APARAMETER__NAME = eINSTANCE.getAParameter_Name(); /** - * The meta object literal for the 'Type' attribute feature. - * - * + * The meta object literal for the 'Type' attribute feature. + * * @generated */ EAttribute APARAMETER__TYPE = eINSTANCE.getAParameter_Type(); /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl AClass Child}' class. - * - * + * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl + * AClass Child}' class. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAClassChild() * @generated @@ -1013,33 +991,33 @@ public interface AcorePackage extends EPackage EClass ACLASS_CHILD = eINSTANCE.getAClassChild(); /** - * The meta object literal for the 'Name' attribute feature. - * - * + * The meta object literal for the 'Name' attribute feature. + * * @generated */ EAttribute ACLASS_CHILD__NAME = eINSTANCE.getAClassChild_Name(); /** - * The meta object literal for the 'Accessright' attribute feature. - * - * + * The meta object literal for the 'Accessright' attribute feature. + * * @generated */ EAttribute ACLASS_CHILD__ACCESSRIGHT = eINSTANCE.getAClassChild_Accessright(); /** - * The meta object literal for the 'Data Type' attribute feature. - * - * + * The meta object literal for the 'Data Type' attribute feature. + * * @generated */ EAttribute ACLASS_CHILD__DATA_TYPE = eINSTANCE.getAClassChild_DataType(); /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AccessType Access Type}' enum. - * - * + * The meta object literal for the '{@link org.eclipse.emf.cdo.dawn.examples.acore.AccessType Access Type}' + * enum. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AccessType * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAccessType() * @generated @@ -1047,9 +1025,9 @@ public interface AcorePackage extends EPackage EEnum ACCESS_TYPE = eINSTANCE.getAccessType(); /** - * The meta object literal for the 'Access Type Object' data type. - * - * + * The meta object literal for the 'Access Type Object' data type. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AccessType * @see org.eclipse.emf.cdo.dawn.examples.acore.impl.AcorePackageImpl#getAccessTypeObject() * @generated @@ -1058,4 +1036,4 @@ public interface AcorePackage extends EPackage } -} //AcorePackage +} // AcorePackage diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AAttributeImpl.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AAttributeImpl.java index e0c3214e79..132ee9ed81 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AAttributeImpl.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AAttributeImpl.java @@ -17,26 +17,24 @@ import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; import org.eclipse.emf.ecore.EClass; /** - * - * An implementation of the model object 'AAttribute'. - * + * An implementation of the model object 'AAttribute'. *

*

- * + * * @generated */ public class AAttributeImpl extends AClassChildImpl implements AAttribute { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * - * + * + * * @generated */ protected AAttributeImpl() @@ -45,8 +43,8 @@ public class AAttributeImpl extends AClassChildImpl implements AAttribute } /** - * - * + * + * * @generated */ @Override @@ -55,4 +53,4 @@ public class AAttributeImpl extends AClassChildImpl implements AAttribute return AcorePackage.Literals.AATTRIBUTE; } -} //AAttributeImpl +} // AAttributeImpl diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/ABasicClassImpl.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/ABasicClassImpl.java index f106982b2c..917847098c 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/ABasicClassImpl.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/ABasicClassImpl.java @@ -16,39 +16,36 @@ import org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass; import org.eclipse.emf.cdo.dawn.examples.acore.AOperation; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; -import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.internal.cdo.CDOObjectImpl; +import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - /** - * - * An implementation of the model object 'ABasic Class'. - * + * An implementation of the model object 'ABasic Class'. *

* The following features are implemented: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl#getOperations Operations}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl#getAttributes Attributes}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl#getName Name}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl#getOperations Operations}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl#getAttributes Attributes}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ABasicClassImpl#getName Name}
  • *
*

- * + * * @generated */ public class ABasicClassImpl extends CDOObjectImpl implements ABasicClass { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * - * + * + * * @generated */ protected ABasicClassImpl() @@ -57,8 +54,8 @@ public class ABasicClassImpl extends CDOObjectImpl implements ABasicClass } /** - * - * + * + * * @generated */ @Override @@ -68,8 +65,8 @@ public class ABasicClassImpl extends CDOObjectImpl implements ABasicClass } /** - * - * + * + * * @generated */ @Override @@ -79,8 +76,8 @@ public class ABasicClassImpl extends CDOObjectImpl implements ABasicClass } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -90,8 +87,8 @@ public class ABasicClassImpl extends CDOObjectImpl implements ABasicClass } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -101,8 +98,8 @@ public class ABasicClassImpl extends CDOObjectImpl implements ABasicClass } /** - * - * + * + * * @generated */ public String getName() @@ -111,8 +108,8 @@ public class ABasicClassImpl extends CDOObjectImpl implements ABasicClass } /** - * - * + * + * * @generated */ public void setName(String newName) @@ -120,4 +117,4 @@ public class ABasicClassImpl extends CDOObjectImpl implements ABasicClass eSet(AcorePackage.Literals.ABASIC_CLASS__NAME, newName); } -} //ABasicClassImpl +} // ABasicClassImpl diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AClassChildImpl.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AClassChildImpl.java index f2639a3644..b8c874c639 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AClassChildImpl.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AClassChildImpl.java @@ -15,37 +15,35 @@ import org.eclipse.emf.cdo.dawn.examples.acore.AClassChild; import org.eclipse.emf.cdo.dawn.examples.acore.AccessType; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; -import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.internal.cdo.CDOObjectImpl; +import org.eclipse.emf.ecore.EClass; + /** - * - * An implementation of the model object 'AClass Child'. - * + * An implementation of the model object 'AClass Child'. *

* The following features are implemented: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl#getName Name}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl#getAccessright Accessright}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl#getDataType Data Type}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl#getName Name}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl#getAccessright Accessright}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassChildImpl#getDataType Data Type}
  • *
*

- * + * * @generated */ public class AClassChildImpl extends CDOObjectImpl implements AClassChild { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * - * + * + * * @generated */ protected AClassChildImpl() @@ -54,8 +52,8 @@ public class AClassChildImpl extends CDOObjectImpl implements AClassChild } /** - * - * + * + * * @generated */ @Override @@ -65,8 +63,8 @@ public class AClassChildImpl extends CDOObjectImpl implements AClassChild } /** - * - * + * + * * @generated */ @Override @@ -76,8 +74,8 @@ public class AClassChildImpl extends CDOObjectImpl implements AClassChild } /** - * - * + * + * * @generated */ public String getName() @@ -86,8 +84,8 @@ public class AClassChildImpl extends CDOObjectImpl implements AClassChild } /** - * - * + * + * * @generated */ public void setName(String newName) @@ -96,8 +94,8 @@ public class AClassChildImpl extends CDOObjectImpl implements AClassChild } /** - * - * + * + * * @generated */ public AccessType getAccessright() @@ -106,8 +104,8 @@ public class AClassChildImpl extends CDOObjectImpl implements AClassChild } /** - * - * + * + * * @generated */ public void setAccessright(AccessType newAccessright) @@ -116,8 +114,8 @@ public class AClassChildImpl extends CDOObjectImpl implements AClassChild } /** - * - * + * + * * @generated */ public void unsetAccessright() @@ -126,8 +124,8 @@ public class AClassChildImpl extends CDOObjectImpl implements AClassChild } /** - * - * + * + * * @generated */ public boolean isSetAccessright() @@ -136,8 +134,8 @@ public class AClassChildImpl extends CDOObjectImpl implements AClassChild } /** - * - * + * + * * @generated */ public String getDataType() @@ -146,8 +144,8 @@ public class AClassChildImpl extends CDOObjectImpl implements AClassChild } /** - * - * + * + * * @generated */ public void setDataType(String newDataType) @@ -155,4 +153,4 @@ public class AClassChildImpl extends CDOObjectImpl implements AClassChild eSet(AcorePackage.Literals.ACLASS_CHILD__DATA_TYPE, newDataType); } -} //AClassChildImpl +} // AClassChildImpl diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AClassImpl.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AClassImpl.java index 205caf0e42..8f3a2f9a8d 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AClassImpl.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AClassImpl.java @@ -16,38 +16,36 @@ import org.eclipse.emf.cdo.dawn.examples.acore.AInterface; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EClass; /** - * - * An implementation of the model object 'AClass'. - * + * An implementation of the model object 'AClass'. *

* The following features are implemented: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl#getSubClasses Sub Classes}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl#getImplementedInterfaces Implemented Interfaces}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl#getAssociations Associations}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl#getCompositions Compositions}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl#getAggregations Aggregations}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl#getSubClasses Sub Classes}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl#getImplementedInterfaces Implemented + * Interfaces}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl#getAssociations Associations}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl#getCompositions Compositions}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AClassImpl#getAggregations Aggregations}
  • *
*

- * + * * @generated */ public class AClassImpl extends ABasicClassImpl implements AClass { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * - * + * + * * @generated */ protected AClassImpl() @@ -56,8 +54,8 @@ public class AClassImpl extends ABasicClassImpl implements AClass } /** - * - * + * + * * @generated */ @Override @@ -67,8 +65,8 @@ public class AClassImpl extends ABasicClassImpl implements AClass } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -78,8 +76,8 @@ public class AClassImpl extends ABasicClassImpl implements AClass } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -89,8 +87,8 @@ public class AClassImpl extends ABasicClassImpl implements AClass } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -100,8 +98,8 @@ public class AClassImpl extends ABasicClassImpl implements AClass } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -111,8 +109,8 @@ public class AClassImpl extends ABasicClassImpl implements AClass } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -121,4 +119,4 @@ public class AClassImpl extends ABasicClassImpl implements AClass return (EList)eGet(AcorePackage.Literals.ACLASS__AGGREGATIONS, true); } -} //AClassImpl +} // AClassImpl diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/ACoreRootImpl.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/ACoreRootImpl.java index 829384d6c0..ca23a057da 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/ACoreRootImpl.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/ACoreRootImpl.java @@ -16,39 +16,36 @@ import org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot; import org.eclipse.emf.cdo.dawn.examples.acore.AInterface; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; -import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.internal.cdo.CDOObjectImpl; +import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - /** - * - * An implementation of the model object 'ACore Root'. - * + * An implementation of the model object 'ACore Root'. *

* The following features are implemented: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl#getTitle Title}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl#getClasses Classes}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl#getInterfaces Interfaces}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl#getTitle Title}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl#getClasses Classes}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.ACoreRootImpl#getInterfaces Interfaces}
  • *
*

- * + * * @generated */ public class ACoreRootImpl extends CDOObjectImpl implements ACoreRoot { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * - * + * + * * @generated */ protected ACoreRootImpl() @@ -57,8 +54,8 @@ public class ACoreRootImpl extends CDOObjectImpl implements ACoreRoot } /** - * - * + * + * * @generated */ @Override @@ -68,8 +65,8 @@ public class ACoreRootImpl extends CDOObjectImpl implements ACoreRoot } /** - * - * + * + * * @generated */ @Override @@ -79,8 +76,8 @@ public class ACoreRootImpl extends CDOObjectImpl implements ACoreRoot } /** - * - * + * + * * @generated */ public String getTitle() @@ -89,8 +86,8 @@ public class ACoreRootImpl extends CDOObjectImpl implements ACoreRoot } /** - * - * + * + * * @generated */ public void setTitle(String newTitle) @@ -99,8 +96,8 @@ public class ACoreRootImpl extends CDOObjectImpl implements ACoreRoot } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -110,8 +107,8 @@ public class ACoreRootImpl extends CDOObjectImpl implements ACoreRoot } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -120,4 +117,4 @@ public class ACoreRootImpl extends CDOObjectImpl implements ACoreRoot return (EList)eGet(AcorePackage.Literals.ACORE_ROOT__INTERFACES, true); } -} //ACoreRootImpl +} // ACoreRootImpl diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AInterfaceImpl.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AInterfaceImpl.java index e62b7cb8e2..001508e8d5 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AInterfaceImpl.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AInterfaceImpl.java @@ -17,26 +17,24 @@ import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; import org.eclipse.emf.ecore.EClass; /** - * - * An implementation of the model object 'AInterface'. - * + * An implementation of the model object 'AInterface'. *

*

- * + * * @generated */ public class AInterfaceImpl extends ABasicClassImpl implements AInterface { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * - * + * + * * @generated */ protected AInterfaceImpl() @@ -45,8 +43,8 @@ public class AInterfaceImpl extends ABasicClassImpl implements AInterface } /** - * - * + * + * * @generated */ @Override @@ -55,4 +53,4 @@ public class AInterfaceImpl extends ABasicClassImpl implements AInterface return AcorePackage.Literals.AINTERFACE; } -} //AInterfaceImpl +} // AInterfaceImpl diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AOperationImpl.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AOperationImpl.java index 02089f8490..d783cbbc27 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AOperationImpl.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AOperationImpl.java @@ -16,34 +16,31 @@ import org.eclipse.emf.cdo.dawn.examples.acore.AParameter; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EClass; /** - * - * An implementation of the model object 'AOperation'. - * + * An implementation of the model object 'AOperation'. *

* The following features are implemented: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AOperationImpl#getParameters Parameters}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AOperationImpl#getParameters Parameters}
  • *
*

- * + * * @generated */ public class AOperationImpl extends AClassChildImpl implements AOperation { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * - * + * + * * @generated */ protected AOperationImpl() @@ -52,8 +49,8 @@ public class AOperationImpl extends AClassChildImpl implements AOperation } /** - * - * + * + * * @generated */ @Override @@ -63,8 +60,8 @@ public class AOperationImpl extends AClassChildImpl implements AOperation } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -73,4 +70,4 @@ public class AOperationImpl extends AClassChildImpl implements AOperation return (EList)eGet(AcorePackage.Literals.AOPERATION__PARAMETERS, true); } -} //AOperationImpl +} // AOperationImpl diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AParameterImpl.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AParameterImpl.java index 876b16a09a..60edc6268d 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AParameterImpl.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AParameterImpl.java @@ -14,36 +14,34 @@ package org.eclipse.emf.cdo.dawn.examples.acore.impl; import org.eclipse.emf.cdo.dawn.examples.acore.AParameter; import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; -import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.internal.cdo.CDOObjectImpl; +import org.eclipse.emf.ecore.EClass; + /** - * - * An implementation of the model object 'AParameter'. - * + * An implementation of the model object 'AParameter'. *

* The following features are implemented: *

    - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AParameterImpl#getName Name}
  • - *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AParameterImpl#getType Type}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AParameterImpl#getName Name}
  • + *
  • {@link org.eclipse.emf.cdo.dawn.examples.acore.impl.AParameterImpl#getType Type}
  • *
*

- * + * * @generated */ public class AParameterImpl extends CDOObjectImpl implements AParameter { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * - * + * + * * @generated */ protected AParameterImpl() @@ -52,8 +50,8 @@ public class AParameterImpl extends CDOObjectImpl implements AParameter } /** - * - * + * + * * @generated */ @Override @@ -63,8 +61,8 @@ public class AParameterImpl extends CDOObjectImpl implements AParameter } /** - * - * + * + * * @generated */ @Override @@ -74,8 +72,8 @@ public class AParameterImpl extends CDOObjectImpl implements AParameter } /** - * - * + * + * * @generated */ public String getName() @@ -84,8 +82,8 @@ public class AParameterImpl extends CDOObjectImpl implements AParameter } /** - * - * + * + * * @generated */ public void setName(String newName) @@ -94,8 +92,8 @@ public class AParameterImpl extends CDOObjectImpl implements AParameter } /** - * - * + * + * * @generated */ public String getType() @@ -104,8 +102,8 @@ public class AParameterImpl extends CDOObjectImpl implements AParameter } /** - * - * + * + * * @generated */ public void setType(String newType) @@ -113,4 +111,4 @@ public class AParameterImpl extends CDOObjectImpl implements AParameter eSet(AcorePackage.Literals.APARAMETER__TYPE, newType); } -} //AParameterImpl +} // AParameterImpl diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AcoreFactoryImpl.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AcoreFactoryImpl.java index 8bf366ba74..e1eeb77b6e 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AcoreFactoryImpl.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AcoreFactoryImpl.java @@ -11,43 +11,50 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore.impl; -import org.eclipse.emf.cdo.dawn.examples.acore.*; +import org.eclipse.emf.cdo.dawn.examples.acore.AAttribute; +import org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass; +import org.eclipse.emf.cdo.dawn.examples.acore.AClass; +import org.eclipse.emf.cdo.dawn.examples.acore.AClassChild; +import org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot; +import org.eclipse.emf.cdo.dawn.examples.acore.AInterface; +import org.eclipse.emf.cdo.dawn.examples.acore.AOperation; +import org.eclipse.emf.cdo.dawn.examples.acore.AParameter; +import org.eclipse.emf.cdo.dawn.examples.acore.AccessType; +import org.eclipse.emf.cdo.dawn.examples.acore.AcoreFactory; +import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EDataType; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; - import org.eclipse.emf.ecore.impl.EFactoryImpl; - import org.eclipse.emf.ecore.plugin.EcorePlugin; /** - * - * An implementation of the model Factory. - * + * An implementation of the model Factory. + * * @generated */ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * Creates the default factory implementation. - * - * + * Creates the default factory implementation. + * * @generated */ public static AcoreFactory init() { try { - AcoreFactory theAcoreFactory = (AcoreFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/cdo/dawn/examples/2010/ACore"); + AcoreFactory theAcoreFactory = (AcoreFactory)EPackage.Registry.INSTANCE + .getEFactory("http://www.eclipse.org/emf/cdo/dawn/examples/2010/ACore"); if (theAcoreFactory != null) { return theAcoreFactory; @@ -61,9 +68,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * Creates an instance of the factory. - * - * + * Creates an instance of the factory. + * * @generated */ public AcoreFactoryImpl() @@ -72,8 +78,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ @Override @@ -81,22 +87,30 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory { switch (eClass.getClassifierID()) { - case AcorePackage.ACLASS: return (EObject)createAClass(); - case AcorePackage.AINTERFACE: return (EObject)createAInterface(); - case AcorePackage.ACORE_ROOT: return (EObject)createACoreRoot(); - case AcorePackage.AATTRIBUTE: return (EObject)createAAttribute(); - case AcorePackage.AOPERATION: return (EObject)createAOperation(); - case AcorePackage.ABASIC_CLASS: return (EObject)createABasicClass(); - case AcorePackage.APARAMETER: return (EObject)createAParameter(); - case AcorePackage.ACLASS_CHILD: return (EObject)createAClassChild(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + case AcorePackage.ACLASS: + return (EObject)createAClass(); + case AcorePackage.AINTERFACE: + return (EObject)createAInterface(); + case AcorePackage.ACORE_ROOT: + return (EObject)createACoreRoot(); + case AcorePackage.AATTRIBUTE: + return (EObject)createAAttribute(); + case AcorePackage.AOPERATION: + return (EObject)createAOperation(); + case AcorePackage.ABASIC_CLASS: + return (EObject)createABasicClass(); + case AcorePackage.APARAMETER: + return (EObject)createAParameter(); + case AcorePackage.ACLASS_CHILD: + return (EObject)createAClassChild(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** - * - * + * + * * @generated */ @Override @@ -104,18 +118,18 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory { switch (eDataType.getClassifierID()) { - case AcorePackage.ACCESS_TYPE: - return createAccessTypeFromString(eDataType, initialValue); - case AcorePackage.ACCESS_TYPE_OBJECT: - return createAccessTypeObjectFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + case AcorePackage.ACCESS_TYPE: + return createAccessTypeFromString(eDataType, initialValue); + case AcorePackage.ACCESS_TYPE_OBJECT: + return createAccessTypeObjectFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); } } /** - * - * + * + * * @generated */ @Override @@ -123,18 +137,18 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory { switch (eDataType.getClassifierID()) { - case AcorePackage.ACCESS_TYPE: - return convertAccessTypeToString(eDataType, instanceValue); - case AcorePackage.ACCESS_TYPE_OBJECT: - return convertAccessTypeObjectToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + case AcorePackage.ACCESS_TYPE: + return convertAccessTypeToString(eDataType, instanceValue); + case AcorePackage.ACCESS_TYPE_OBJECT: + return convertAccessTypeObjectToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); } } /** - * - * + * + * * @generated */ public AClass createAClass() @@ -144,8 +158,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ public AInterface createAInterface() @@ -155,8 +169,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ public ACoreRoot createACoreRoot() @@ -166,8 +180,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ public AAttribute createAAttribute() @@ -177,8 +191,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ public AOperation createAOperation() @@ -188,8 +202,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ public ABasicClass createABasicClass() @@ -199,8 +213,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ public AParameter createAParameter() @@ -210,8 +224,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ public AClassChild createAClassChild() @@ -221,20 +235,22 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ public AccessType createAccessTypeFromString(EDataType eDataType, String initialValue) { AccessType result = AccessType.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + if (result == null) + throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + + eDataType.getName() + "'"); return result; } /** - * - * + * + * * @generated */ public String convertAccessTypeToString(EDataType eDataType, Object instanceValue) @@ -243,8 +259,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ public AccessType createAccessTypeObjectFromString(EDataType eDataType, String initialValue) @@ -253,8 +269,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ public String convertAccessTypeObjectToString(EDataType eDataType, Object instanceValue) @@ -263,8 +279,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @generated */ public AcorePackage getAcorePackage() @@ -273,8 +289,8 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory } /** - * - * + * + * * @deprecated * @generated */ @@ -284,4 +300,4 @@ public class AcoreFactoryImpl extends EFactoryImpl implements AcoreFactory return AcorePackage.eINSTANCE; } -} //AcoreFactoryImpl +} // AcoreFactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AcorePackageImpl.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AcorePackageImpl.java index 84428f21d8..3bcce699d1 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AcorePackageImpl.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/impl/AcorePackageImpl.java @@ -29,104 +29,100 @@ import org.eclipse.emf.ecore.EDataType; import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; - import org.eclipse.emf.ecore.impl.EPackageImpl; /** - * - * An implementation of the model Package. - * + * An implementation of the model Package. + * * @generated */ public class AcorePackageImpl extends EPackageImpl implements AcorePackage { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * - * + * + * * @generated */ private EClass aClassEClass = null; /** - * - * + * + * * @generated */ private EClass aInterfaceEClass = null; /** - * - * + * + * * @generated */ private EClass aCoreRootEClass = null; /** - * - * + * + * * @generated */ private EClass aAttributeEClass = null; /** - * - * + * + * * @generated */ private EClass aOperationEClass = null; /** - * - * + * + * * @generated */ private EClass aBasicClassEClass = null; /** - * - * + * + * * @generated */ private EClass aParameterEClass = null; /** - * - * + * + * * @generated */ private EClass aClassChildEClass = null; /** - * - * + * + * * @generated */ private EEnum accessTypeEEnum = null; /** - * - * + * + * * @generated */ private EDataType accessTypeObjectEDataType = null; /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * + * Creates an instance of the model Package, registered with {@link org.eclipse.emf.ecore.EPackage.Registry + * EPackage.Registry} by the package package URI value. + *

+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also + * performs initialization of the package, or returns the registered package, if one already exists. + * * @see org.eclipse.emf.ecore.EPackage.Registry * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage#eNS_URI * @see #init() @@ -138,19 +134,19 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ private static boolean isInited = false; /** * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link AcorePackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * + *

+ * This method is used to initialize {@link AcorePackage#eINSTANCE} when that field is accessed. Clients should not + * invoke it directly. Instead, they should simply access that field to obtain the package. * + * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() @@ -158,10 +154,13 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage */ public static AcorePackage init() { - if (isInited) return (AcorePackage)EPackage.Registry.INSTANCE.getEPackage(AcorePackage.eNS_URI); + if (isInited) + return (AcorePackage)EPackage.Registry.INSTANCE.getEPackage(AcorePackage.eNS_URI); // Obtain or create and register package - AcorePackageImpl theAcorePackage = (AcorePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AcorePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new AcorePackageImpl()); + AcorePackageImpl theAcorePackage = (AcorePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AcorePackageImpl ? EPackage.Registry.INSTANCE + .get(eNS_URI) + : new AcorePackageImpl()); isInited = true; @@ -174,15 +173,14 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage // Mark meta-data to indicate it can't be changed theAcorePackage.freeze(); - // Update the registry and return the package EPackage.Registry.INSTANCE.put(AcorePackage.eNS_URI, theAcorePackage); return theAcorePackage; } /** - * - * + * + * * @generated */ public EClass getAClass() @@ -191,8 +189,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EReference getAClass_SubClasses() @@ -201,8 +199,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EReference getAClass_ImplementedInterfaces() @@ -211,8 +209,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EReference getAClass_Associations() @@ -221,8 +219,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EReference getAClass_Compositions() @@ -231,8 +229,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EReference getAClass_Aggregations() @@ -241,8 +239,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EClass getAInterface() @@ -251,8 +249,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EClass getACoreRoot() @@ -261,8 +259,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EAttribute getACoreRoot_Title() @@ -271,8 +269,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EReference getACoreRoot_Classes() @@ -281,8 +279,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EReference getACoreRoot_Interfaces() @@ -291,8 +289,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EClass getAAttribute() @@ -301,8 +299,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EClass getAOperation() @@ -311,8 +309,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EReference getAOperation_Parameters() @@ -321,8 +319,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EClass getABasicClass() @@ -331,8 +329,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EReference getABasicClass_Operations() @@ -341,8 +339,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EReference getABasicClass_Attributes() @@ -351,8 +349,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EAttribute getABasicClass_Name() @@ -361,8 +359,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EClass getAParameter() @@ -371,8 +369,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EAttribute getAParameter_Name() @@ -381,8 +379,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EAttribute getAParameter_Type() @@ -391,8 +389,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EClass getAClassChild() @@ -401,8 +399,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EAttribute getAClassChild_Name() @@ -411,8 +409,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EAttribute getAClassChild_Accessright() @@ -421,8 +419,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EAttribute getAClassChild_DataType() @@ -431,8 +429,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EEnum getAccessType() @@ -441,8 +439,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public EDataType getAccessTypeObject() @@ -451,8 +449,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ public AcoreFactory getAcoreFactory() @@ -461,22 +459,22 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ private boolean isCreated = false; /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * + * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its + * first. + * * @generated */ public void createPackageContents() { - if (isCreated) return; + if (isCreated) + return; isCreated = true; // Create classes and their features @@ -521,22 +519,22 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * - * + * + * * @generated */ private boolean isInitialized = false; /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * + * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any + * invocation but its first. + * * @generated */ public void initializePackageContents() { - if (isInitialized) return; + if (isInitialized) + return; isInitialized = true; // Initialize package @@ -556,37 +554,71 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage // Initialize classes and features; add operations and parameters initEClass(aClassEClass, AClass.class, "AClass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAClass_SubClasses(), this.getAClass(), null, "subClasses", null, 0, -1, AClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAClass_ImplementedInterfaces(), this.getAInterface(), null, "implementedInterfaces", null, 0, -1, AClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAClass_Associations(), this.getAClass(), null, "associations", null, 0, -1, AClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAClass_Compositions(), this.getAClass(), null, "compositions", null, 0, -1, AClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAClass_Aggregations(), this.getAClass(), null, "aggregations", null, 0, -1, AClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(aInterfaceEClass, AInterface.class, "AInterface", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAClass_SubClasses(), this.getAClass(), null, "subClasses", null, 0, -1, AClass.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getAClass_ImplementedInterfaces(), this.getAInterface(), null, "implementedInterfaces", null, 0, -1, + AClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAClass_Associations(), this.getAClass(), null, "associations", null, 0, -1, AClass.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getAClass_Compositions(), this.getAClass(), null, "compositions", null, 0, -1, AClass.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getAClass_Aggregations(), this.getAClass(), null, "aggregations", null, 0, -1, AClass.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(aInterfaceEClass, AInterface.class, "AInterface", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); initEClass(aCoreRootEClass, ACoreRoot.class, "ACoreRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getACoreRoot_Title(), ecorePackage.getEString(), "title", null, 0, 1, ACoreRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getACoreRoot_Classes(), this.getAClass(), null, "classes", null, 0, -1, ACoreRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getACoreRoot_Interfaces(), this.getAInterface(), null, "interfaces", null, 0, -1, ACoreRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(aAttributeEClass, AAttribute.class, "AAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(aOperationEClass, AOperation.class, "AOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAOperation_Parameters(), this.getAParameter(), null, "parameters", null, 0, -1, AOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(aBasicClassEClass, ABasicClass.class, "ABasicClass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getABasicClass_Operations(), this.getAOperation(), null, "operations", null, 0, -1, ABasicClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getABasicClass_Attributes(), this.getAAttribute(), null, "attributes", null, 0, -1, ABasicClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getABasicClass_Name(), ecorePackage.getEString(), "name", null, 0, 1, ABasicClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(aParameterEClass, AParameter.class, "AParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, AParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAParameter_Type(), ecorePackage.getEString(), "type", null, 0, 1, AParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(aClassChildEClass, AClassChild.class, "AClassChild", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAClassChild_Name(), ecorePackage.getEString(), "name", "", 0, 1, AClassChild.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAClassChild_Accessright(), this.getAccessType(), "accessright", "public", 0, 1, AClassChild.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAClassChild_DataType(), ecorePackage.getEString(), "dataType", null, 0, 1, AClassChild.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getACoreRoot_Title(), ecorePackage.getEString(), "title", null, 0, 1, ACoreRoot.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getACoreRoot_Classes(), this.getAClass(), null, "classes", null, 0, -1, ACoreRoot.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getACoreRoot_Interfaces(), this.getAInterface(), null, "interfaces", null, 0, -1, ACoreRoot.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(aAttributeEClass, AAttribute.class, "AAttribute", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(aOperationEClass, AOperation.class, "AOperation", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getAOperation_Parameters(), this.getAParameter(), null, "parameters", null, 0, -1, AOperation.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(aBasicClassEClass, ABasicClass.class, "ABasicClass", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getABasicClass_Operations(), this.getAOperation(), null, "operations", null, 0, -1, + ABasicClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getABasicClass_Attributes(), this.getAAttribute(), null, "attributes", null, 0, -1, + ABasicClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getABasicClass_Name(), ecorePackage.getEString(), "name", null, 0, 1, ABasicClass.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(aParameterEClass, AParameter.class, "AParameter", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, AParameter.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAParameter_Type(), ecorePackage.getEString(), "type", null, 0, 1, AParameter.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(aClassChildEClass, AClassChild.class, "AClassChild", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAClassChild_Name(), ecorePackage.getEString(), "name", "", 0, 1, AClassChild.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAClassChild_Accessright(), this.getAccessType(), "accessright", "public", 0, 1, + AClassChild.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getAClassChild_DataType(), ecorePackage.getEString(), "dataType", null, 0, 1, AClassChild.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Initialize enums and add enum literals initEEnum(accessTypeEEnum, AccessType.class, "AccessType"); @@ -596,7 +628,8 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage addEEnumLiteral(accessTypeEEnum, AccessType.PACKAGE); // Initialize data types - initEDataType(accessTypeObjectEDataType, AccessType.class, "AccessTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); + initEDataType(accessTypeObjectEDataType, AccessType.class, "AccessTypeObject", IS_SERIALIZABLE, + IS_GENERATED_INSTANCE_CLASS); // Create resource createResource(eNS_URI); @@ -607,29 +640,17 @@ public class AcorePackageImpl extends EPackageImpl implements AcorePackage } /** - * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. - * + * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. * + * * @generated */ protected void createExtendedMetaDataAnnotations() { - String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; - addAnnotation - (accessTypeEEnum, - source, - new String[] - { - "name", "AccessType" - }); - addAnnotation - (accessTypeObjectEDataType, - source, - new String[] - { - "name", "AccessType:Object", - "baseType", "AccessType" - }); - } - -} //AcorePackageImpl + String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; + addAnnotation(accessTypeEEnum, source, new String[] { "name", "AccessType" }); + addAnnotation(accessTypeObjectEDataType, source, new String[] { "name", "AccessType:Object", "baseType", + "AccessType" }); + } + +} // AcorePackageImpl diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreAdapterFactory.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreAdapterFactory.java index 4d51178bfe..cd68af8526 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreAdapterFactory.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreAdapterFactory.java @@ -11,44 +11,47 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore.util; -import org.eclipse.emf.cdo.dawn.examples.acore.*; +import org.eclipse.emf.cdo.dawn.examples.acore.AAttribute; +import org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass; +import org.eclipse.emf.cdo.dawn.examples.acore.AClass; +import org.eclipse.emf.cdo.dawn.examples.acore.AClassChild; +import org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot; +import org.eclipse.emf.cdo.dawn.examples.acore.AInterface; +import org.eclipse.emf.cdo.dawn.examples.acore.AOperation; +import org.eclipse.emf.cdo.dawn.examples.acore.AParameter; +import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notifier; - import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; - import org.eclipse.emf.ecore.EObject; /** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * + * The Adapter Factory for the model. It provides an adapter createXXX + * method for each class of the model. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage * @generated */ public class AcoreAdapterFactory extends AdapterFactoryImpl { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * The cached model package. - * - * + * The cached model package. + * * @generated */ protected static AcorePackage modelPackage; /** - * Creates an instance of the adapter factory. - * - * + * Creates an instance of the adapter factory. + * * @generated */ public AcoreAdapterFactory() @@ -60,10 +63,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl } /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * + * Returns whether this factory is applicable for the type of the object. This implementation + * returns true if the object is either the model's package or is an instance object of the model. + * * @return whether this factory is applicable for the type of the object. * @generated */ @@ -82,66 +85,72 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl } /** - * The switch that delegates to the createXXX methods. - * - * + * The switch that delegates to the createXXX methods. + * * @generated */ - protected AcoreSwitch modelSwitch = - new AcoreSwitch() + protected AcoreSwitch modelSwitch = new AcoreSwitch() + { + @Override + public Adapter caseAClass(AClass object) + { + return createAClassAdapter(); + } + + @Override + public Adapter caseAInterface(AInterface object) + { + return createAInterfaceAdapter(); + } + + @Override + public Adapter caseACoreRoot(ACoreRoot object) + { + return createACoreRootAdapter(); + } + + @Override + public Adapter caseAAttribute(AAttribute object) + { + return createAAttributeAdapter(); + } + + @Override + public Adapter caseAOperation(AOperation object) + { + return createAOperationAdapter(); + } + + @Override + public Adapter caseABasicClass(ABasicClass object) { - @Override - public Adapter caseAClass(AClass object) - { - return createAClassAdapter(); - } - @Override - public Adapter caseAInterface(AInterface object) - { - return createAInterfaceAdapter(); - } - @Override - public Adapter caseACoreRoot(ACoreRoot object) - { - return createACoreRootAdapter(); - } - @Override - public Adapter caseAAttribute(AAttribute object) - { - return createAAttributeAdapter(); - } - @Override - public Adapter caseAOperation(AOperation object) - { - return createAOperationAdapter(); - } - @Override - public Adapter caseABasicClass(ABasicClass object) - { - return createABasicClassAdapter(); - } - @Override - public Adapter caseAParameter(AParameter object) - { - return createAParameterAdapter(); - } - @Override - public Adapter caseAClassChild(AClassChild object) - { - return createAClassChildAdapter(); - } - @Override - public Adapter defaultCase(EObject object) - { - return createEObjectAdapter(); - } - }; + return createABasicClassAdapter(); + } + + @Override + public Adapter caseAParameter(AParameter object) + { + return createAParameterAdapter(); + } + + @Override + public Adapter caseAClassChild(AClassChild object) + { + return createAClassChildAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) + { + return createEObjectAdapter(); + } + }; /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. + * Creates an adapter for the target. + * + * @param target + * the object to adapt. * @return the adapter for the target. * @generated */ @@ -151,13 +160,11 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl return modelSwitch.doSwitch((EObject)target); } - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClass AClass}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClass + * AClass}'. This default implementation returns null so that we can easily ignore + * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClass * @generated @@ -168,11 +175,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface AInterface}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface + * AInterface}'. This default implementation returns null so that we can easily + * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.emf.cdo.dawn.examples.acore.AInterface * @generated @@ -183,11 +189,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot ACore Root}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot + * ACore Root}'. This default implementation returns null so that we can easily + * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot * @generated @@ -198,11 +203,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute AAttribute}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute + * AAttribute}'. This default implementation returns null so that we can easily + * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.emf.cdo.dawn.examples.acore.AAttribute * @generated @@ -213,11 +217,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation AOperation}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation + * AOperation}'. This default implementation returns null so that we can easily + * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.emf.cdo.dawn.examples.acore.AOperation * @generated @@ -228,11 +231,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass ABasic Class}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass + * ABasic Class}'. This default implementation returns null so that we can easily + * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass * @generated @@ -243,11 +245,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter AParameter}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter + * AParameter}'. This default implementation returns null so that we can easily + * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.emf.cdo.dawn.examples.acore.AParameter * @generated @@ -258,11 +259,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild AClass Child}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild + * AClass Child}'. This default implementation returns null so that we can easily + * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.emf.cdo.dawn.examples.acore.AClassChild * @generated @@ -273,10 +273,9 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * + * Creates a new adapter for the default case. This default implementation returns null. + * * @return the new adapter. * @generated */ @@ -285,4 +284,4 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl return null; } -} //AcoreAdapterFactory +} // AcoreAdapterFactory diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreSwitch.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreSwitch.java index e263f403da..bc6129c677 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreSwitch.java +++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreSwitch.java @@ -11,47 +11,49 @@ */ package org.eclipse.emf.cdo.dawn.examples.acore.util; -import java.util.List; - -import org.eclipse.emf.cdo.dawn.examples.acore.*; +import org.eclipse.emf.cdo.dawn.examples.acore.AAttribute; +import org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass; +import org.eclipse.emf.cdo.dawn.examples.acore.AClass; +import org.eclipse.emf.cdo.dawn.examples.acore.AClassChild; +import org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot; +import org.eclipse.emf.cdo.dawn.examples.acore.AInterface; +import org.eclipse.emf.cdo.dawn.examples.acore.AOperation; +import org.eclipse.emf.cdo.dawn.examples.acore.AParameter; +import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; +import java.util.List; + /** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * + * The Switch for the model's inheritance hierarchy. It supports the call + * {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is + * returned, which is the result of the switch. + * * @see org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage * @generated */ public class AcoreSwitch { /** - * - * + * + * * @generated */ public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n"; /** - * The cached model package - * - * + * The cached model package + * * @generated */ protected static AcorePackage modelPackage; /** - * Creates an instance of the switch. - * - * + * Creates an instance of the switch. + * * @generated */ public AcoreSwitch() @@ -64,8 +66,8 @@ public class AcoreSwitch /** * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * + * + * * @return the first non-null result returned by a caseXXX call. * @generated */ @@ -76,8 +78,8 @@ public class AcoreSwitch /** * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * + * + * * @return the first non-null result returned by a caseXXX call. * @generated */ @@ -90,17 +92,14 @@ public class AcoreSwitch else { List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch(eSuperTypes.get(0), theEObject); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); } } /** * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * + * + * * @return the first non-null result returned by a caseXXX call. * @generated */ @@ -108,77 +107,89 @@ public class AcoreSwitch { switch (classifierID) { - case AcorePackage.ACLASS: - { - AClass aClass = (AClass)theEObject; - T result = caseAClass(aClass); - if (result == null) result = caseABasicClass(aClass); - if (result == null) result = defaultCase(theEObject); - return result; - } - case AcorePackage.AINTERFACE: - { - AInterface aInterface = (AInterface)theEObject; - T result = caseAInterface(aInterface); - if (result == null) result = caseABasicClass(aInterface); - if (result == null) result = defaultCase(theEObject); - return result; - } - case AcorePackage.ACORE_ROOT: - { - ACoreRoot aCoreRoot = (ACoreRoot)theEObject; - T result = caseACoreRoot(aCoreRoot); - if (result == null) result = defaultCase(theEObject); - return result; - } - case AcorePackage.AATTRIBUTE: - { - AAttribute aAttribute = (AAttribute)theEObject; - T result = caseAAttribute(aAttribute); - if (result == null) result = caseAClassChild(aAttribute); - if (result == null) result = defaultCase(theEObject); - return result; - } - case AcorePackage.AOPERATION: - { - AOperation aOperation = (AOperation)theEObject; - T result = caseAOperation(aOperation); - if (result == null) result = caseAClassChild(aOperation); - if (result == null) result = defaultCase(theEObject); - return result; - } - case AcorePackage.ABASIC_CLASS: - { - ABasicClass aBasicClass = (ABasicClass)theEObject; - T result = caseABasicClass(aBasicClass); - if (result == null) result = defaultCase(theEObject); - return result; - } - case AcorePackage.APARAMETER: - { - AParameter aParameter = (AParameter)theEObject; - T result = caseAParameter(aParameter); - if (result == null) result = defaultCase(theEObject); - return result; - } - case AcorePackage.ACLASS_CHILD: - { - AClassChild aClassChild = (AClassChild)theEObject; - T result = caseAClassChild(aClassChild); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); + case AcorePackage.ACLASS: + { + AClass aClass = (AClass)theEObject; + T result = caseAClass(aClass); + if (result == null) + result = caseABasicClass(aClass); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case AcorePackage.AINTERFACE: + { + AInterface aInterface = (AInterface)theEObject; + T result = caseAInterface(aInterface); + if (result == null) + result = caseABasicClass(aInterface); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case AcorePackage.ACORE_ROOT: + { + ACoreRoot aCoreRoot = (ACoreRoot)theEObject; + T result = caseACoreRoot(aCoreRoot); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case AcorePackage.AATTRIBUTE: + { + AAttribute aAttribute = (AAttribute)theEObject; + T result = caseAAttribute(aAttribute); + if (result == null) + result = caseAClassChild(aAttribute); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case AcorePackage.AOPERATION: + { + AOperation aOperation = (AOperation)theEObject; + T result = caseAOperation(aOperation); + if (result == null) + result = caseAClassChild(aOperation); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case AcorePackage.ABASIC_CLASS: + { + ABasicClass aBasicClass = (ABasicClass)theEObject; + T result = caseABasicClass(aBasicClass); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case AcorePackage.APARAMETER: + { + AParameter aParameter = (AParameter)theEObject; + T result = caseAParameter(aParameter); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case AcorePackage.ACLASS_CHILD: + { + AClassChild aClassChild = (AClassChild)theEObject; + T result = caseAClassChild(aClassChild); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); } } /** - * Returns the result of interpreting the object as an instance of 'AClass'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. + * Returns the result of interpreting the object as an instance of 'AClass'. This + * implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of 'AClass'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -189,12 +200,11 @@ public class AcoreSwitch } /** - * Returns the result of interpreting the object as an instance of 'AInterface'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. + * Returns the result of interpreting the object as an instance of 'AInterface'. This + * implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of 'AInterface'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -205,12 +215,11 @@ public class AcoreSwitch } /** - * Returns the result of interpreting the object as an instance of 'ACore Root'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. + * Returns the result of interpreting the object as an instance of 'ACore Root'. This + * implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of 'ACore Root'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -221,12 +230,11 @@ public class AcoreSwitch } /** - * Returns the result of interpreting the object as an instance of 'AAttribute'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. + * Returns the result of interpreting the object as an instance of 'AAttribute'. This + * implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of 'AAttribute'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -237,12 +245,11 @@ public class AcoreSwitch } /** - * Returns the result of interpreting the object as an instance of 'AOperation'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. + * Returns the result of interpreting the object as an instance of 'AOperation'. This + * implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of 'AOperation'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -253,12 +260,11 @@ public class AcoreSwitch } /** - * Returns the result of interpreting the object as an instance of 'ABasic Class'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. + * Returns the result of interpreting the object as an instance of 'ABasic Class'. + * This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of 'ABasic Class'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -269,12 +275,11 @@ public class AcoreSwitch } /** - * Returns the result of interpreting the object as an instance of 'AParameter'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. + * Returns the result of interpreting the object as an instance of 'AParameter'. This + * implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of 'AParameter'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -285,12 +290,11 @@ public class AcoreSwitch } /** - * Returns the result of interpreting the object as an instance of 'AClass Child'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. + * Returns the result of interpreting the object as an instance of 'AClass Child'. + * This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of 'AClass Child'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -301,12 +305,12 @@ public class AcoreSwitch } /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. + * Returns the result of interpreting the object as an instance of 'EObject'. This + * implementation returns null; returning a non-null result will terminate the switch, but this is the last case + * anyway. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of 'EObject'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) * @generated @@ -316,4 +320,4 @@ public class AcoreSwitch return null; } -} //AcoreSwitch +} // AcoreSwitch diff --git a/plugins/org.eclipse.emf.cdo.dawn.tests/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.dawn.tests/META-INF/MANIFEST.MF index 708c5560e9..7ac6a713ae 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.tests/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.emf.cdo.dawn.tests/META-INF/MANIFEST.MF @@ -8,7 +8,11 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)", org.eclipse.emf.cdo.tests;bundle-version="3.0.0", org.eclipse.gmf;bundle-version="1.2.0", org.eclipse.gmf.runtime.notation;bundle-version="1.4.0", - org.eclipse.emf.cdo.dawn.reference.editor;bundle-version="0.2.0" + org.eclipse.emf.cdo.dawn.examples.acore;bundle-version="0.2.0", + org.eclipse.emf.cdo.dawn;bundle-version="0.2.0", + org.eclipse.emf.transaction;bundle-version="1.4.0", + org.eclipse.emf.workspace;bundle-version="1.4.0", + org.eclipse.gmf.runtime.emf.core;bundle-version="1.4.0" Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-Vendor: %providerName diff --git a/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/AllTestsDawn.java b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/AllTestsDawn.java index 8e7078ffbc..21a3c6361f 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/AllTestsDawn.java +++ b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/AllTestsDawn.java @@ -32,7 +32,8 @@ public class AllTestsDawn extends AllTests @Override protected void initTestClasses(List> testClasses) { - testClasses.add(GMFTest.class); + // testClasses.add(GMFTest.class); + testClasses.add(DawnWrapperResourceTest.class); } @Override diff --git a/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/DawnWrapperResourceTest.java b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/DawnWrapperResourceTest.java new file mode 100644 index 0000000000..75abaf5aa9 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/DawnWrapperResourceTest.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * 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: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.dawn.tests; + +import org.eclipse.emf.cdo.dawn.resources.DawnWrapperResource; +import org.eclipse.emf.cdo.session.CDOSession; +import org.eclipse.emf.cdo.tests.AbstractCDOTest; +import org.eclipse.emf.cdo.transaction.CDOTransaction; + +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.emf.ecore.resource.ResourceSet; +import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; +import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; + +import java.util.Collections; + +/** + * @author Martin Fluegge + */ +public class DawnWrapperResourceTest extends AbstractCDOTest +{ + + public void testPostEventTransactionHandler() throws Exception + { + + // TransactionalEditingDomain editingDomain = DawnGMFEditingDomainFactory.getInstance().createEditingDomain(); + + CDOSession session = openSession(); + CDOTransaction transaction = session.openTransaction(); + + ResourceSet resourceSet = new ResourceSetImpl(); + resourceSet.getResourceFactoryRegistry().getProtocolToFactoryMap().put("acore_diagram", new XMIResourceImpl()); + + // ResourceSet resourceSet = editingDomain.getResourceSet(); + + Resource resource = resourceSet.createResource(URI.createURI("dawn://repo1//default10.acore_diagram")); + + assertInstanceOf(DawnWrapperResource.class, resource); + + resource.save(Collections.EMPTY_MAP); + + session.close(); + } +} diff --git a/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/GMFTest.java b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/GMFTest.java index f77a473839..e5752e73ff 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/GMFTest.java +++ b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/GMFTest.java @@ -10,8 +10,8 @@ */ package org.eclipse.emf.cdo.dawn.tests; -import org.eclipse.emf.cdo.dawn.reference.editor.classdiagram.ClassDiagram; -import org.eclipse.emf.cdo.dawn.reference.editor.classdiagram.ClassdiagramPackage; +import org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot; +import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage; import org.eclipse.emf.cdo.eresource.CDOResource; import org.eclipse.emf.cdo.session.CDOSession; import org.eclipse.emf.cdo.tests.AbstractCDOTest; @@ -252,7 +252,7 @@ public class GMFTest extends AbstractCDOTest { ResourceSet resourceSet = new ResourceSetImpl(); - ClassdiagramPackage.eINSTANCE.eClass(); + AcorePackage.eINSTANCE.eClass(); resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("classdiagram_diagram", new XMIResourceFactoryImpl()); @@ -265,7 +265,7 @@ public class GMFTest extends AbstractCDOTest true); Diagram diagram = (Diagram)gmfResource.getContents().get(0); - ClassDiagram classDiagram = (ClassDiagram)diagram.getElement(); + ACoreRoot classDiagram = (ACoreRoot)diagram.getElement(); for (Object o : diagram.getPersistedChildren()) { @@ -301,7 +301,7 @@ public class GMFTest extends AbstractCDOTest Diagram reloadedDiagram = (Diagram)resource.getContents().get(1); - assertInstanceOf(ClassDiagram.class, reloadedDiagram.getElement()); + assertInstanceOf(ACoreRoot.class, reloadedDiagram.getElement()); assertEquals(true, reloadedDiagram.isVisible()); assertEquals(false, reloadedDiagram.isMutable()); -- cgit v1.2.3