diff options
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.efacet.sdk.ui/src/org/eclipse/papyrus/emf/facet/efacet/sdk/ui/internal/dialog/creation/AddAttributeInFacetDialog.java')
-rw-r--r-- | plugins/facet/org.eclipse.papyrus.emf.facet.efacet.sdk.ui/src/org/eclipse/papyrus/emf/facet/efacet/sdk/ui/internal/dialog/creation/AddAttributeInFacetDialog.java | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.sdk.ui/src/org/eclipse/papyrus/emf/facet/efacet/sdk/ui/internal/dialog/creation/AddAttributeInFacetDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.sdk.ui/src/org/eclipse/papyrus/emf/facet/efacet/sdk/ui/internal/dialog/creation/AddAttributeInFacetDialog.java index d507da2b68e..9d8a21c9589 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.sdk.ui/src/org/eclipse/papyrus/emf/facet/efacet/sdk/ui/internal/dialog/creation/AddAttributeInFacetDialog.java +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.sdk.ui/src/org/eclipse/papyrus/emf/facet/efacet/sdk/ui/internal/dialog/creation/AddAttributeInFacetDialog.java @@ -1,66 +1,66 @@ -/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.dialog.creation;
-
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetFactory;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.exported.widget.IEStructuralFeatureWidget;
-import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.sync.generated.SynchronizedEStructuralFeatureWidget;
-import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.widget.edition.EditFacetAttributeWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-
-/**
- * Dialog for the edition of an attribute in a facet.
- */
-public class AddAttributeInFacetDialog extends
- AbstractEStructuralFeatureDialog<IEStructuralFeatureWidget> {
-
- /**
- * Constructor.
- *
- * @param selection
- * the selection in the model (ecore file).
- */
- public AddAttributeInFacetDialog(final Facet facet,
- final EditingDomain editingDomain) {
- super(null, editingDomain, new PropertyElement2<Facet>(false, facet));
- }
-
- @Override
- protected IEStructuralFeatureWidget createWidget() {
- final EditFacetAttributeWidget widget = new EditFacetAttributeWidget(
- this.getDialogComposite(),
- EFacetFactory.eINSTANCE.createFacetAttribute(),
- this.getEditingDomain(), this.getContainerProperty(),
- this.getNameProperty(), this.getLowerBdProperty(),
- this.getUpperBdProperty(), this.getTypeProperty(),
- this.getOrderedProperty(), this.getUniqueProperty(),
- this.getQueryProperty(), this.getVolatileProperty(),
- this.getChangeableroperty(), this.getDerivedroperty(),
- this.getTransientProperty());
- return new SynchronizedEStructuralFeatureWidget(widget,
- widget.getDisplay());
- }
-
- @Override
- protected String getDialogMessage() {
- return Messages.Add_an_Attribute_desc;
- }
-
- @Override
- protected String getDialogTitle() {
- return Messages.Add_an_Attribute;
- }
-}
+/** + * Copyright (c) 2012 Mia-Software. + * + * 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: + * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors + * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors + */ +package org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.dialog.creation; + +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetFactory; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet; +import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.Messages; +import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.exported.widget.IEStructuralFeatureWidget; +import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.sync.generated.SynchronizedEStructuralFeatureWidget; +import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.widget.edition.EditFacetAttributeWidget; +import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2; + +/** + * Dialog for the edition of an attribute in a facet. + */ +public class AddAttributeInFacetDialog extends + AbstractEStructuralFeatureDialog<IEStructuralFeatureWidget> { + + /** + * Constructor. + * + * @param selection + * the selection in the model (ecore file). + */ + public AddAttributeInFacetDialog(final Facet facet, + final EditingDomain editingDomain) { + super(null, editingDomain, new PropertyElement2<Facet>(false, facet)); + } + + @Override + protected IEStructuralFeatureWidget createWidget() { + final EditFacetAttributeWidget widget = new EditFacetAttributeWidget( + this.getDialogComposite(), + EFacetFactory.eINSTANCE.createFacetAttribute(), + this.getEditingDomain(), this.getContainerProperty(), + this.getNameProperty(), this.getLowerBdProperty(), + this.getUpperBdProperty(), this.getTypeProperty(), + this.getOrderedProperty(), this.getUniqueProperty(), + this.getQueryProperty(), this.getVolatileProperty(), + this.getChangeableroperty(), this.getDerivedroperty(), + this.getTransientProperty()); + return new SynchronizedEStructuralFeatureWidget(widget, + widget.getDisplay()); + } + + @Override + protected String getDialogMessage() { + return Messages.Add_an_Attribute_desc; + } + + @Override + protected String getDialogTitle() { + return Messages.Add_an_Attribute; + } +} |