diff options
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractMainDialog.java')
-rw-r--r-- | plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractMainDialog.java | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractMainDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractMainDialog.java index 1f59a8af5d2..f1ff13339af 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractMainDialog.java +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractMainDialog.java @@ -1,62 +1,62 @@ -/**
- * 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.util.ui.internal.exported.util.dialog;
-
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.AbstractWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractCommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.WidgetProperties;
-
-/**
- * This abstract class will create a dialog. All the action's dialog must
- * extends this class. It provides a simple way to create a standard dialog for
- * this ui.</p>
- *
- * A single {@link AbstractCommandWidget} is created by the dialog wich will
- * contain all the subwidgets {@link AbstractWidget}.
- *
- * The dialog have to create all the properties {@link WidgetProperties} that
- * the widgets {@link AbstractCommandWidget} will need.
- *
- * @see AbstractCommandWidget
- * @see AbstractWidget
- * @see AbstractAddElementDialog
- * @since 0.3
- */
-public abstract class AbstractMainDialog<W extends ICommandWidget>
- extends AbstractDialog<Object, W> {
-
- private final Object selection;
-
- /**
- * Constructor.
- *
- * @param callback
- * the callback.
- * @param editedElement
- * the selection in the model (ecore file).
- */
- protected AbstractMainDialog(final Object editedElement) {
- super();
- this.selection = editedElement;
- }
-
- /**
- * @return the selection in the model.
- */
- protected Object getSelection() {
- return this.selection;
- }
-
-
-}
+/** + * 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.util.ui.internal.exported.util.dialog; + +import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.AbstractWidget; +import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractCommandWidget; +import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget; +import org.eclipse.papyrus.emf.facet.util.ui.utils.WidgetProperties; + +/** + * This abstract class will create a dialog. All the action's dialog must + * extends this class. It provides a simple way to create a standard dialog for + * this ui.</p> + * + * A single {@link AbstractCommandWidget} is created by the dialog wich will + * contain all the subwidgets {@link AbstractWidget}. + * + * The dialog have to create all the properties {@link WidgetProperties} that + * the widgets {@link AbstractCommandWidget} will need. + * + * @see AbstractCommandWidget + * @see AbstractWidget + * @see AbstractAddElementDialog + * @since 0.3 + */ +public abstract class AbstractMainDialog<W extends ICommandWidget> + extends AbstractDialog<Object, W> { + + private final Object selection; + + /** + * Constructor. + * + * @param callback + * the callback. + * @param editedElement + * the selection in the model (ecore file). + */ + protected AbstractMainDialog(final Object editedElement) { + super(); + this.selection = editedElement; + } + + /** + * @return the selection in the model. + */ + protected Object getSelection() { + return this.selection; + } + + +} |