Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/Activator.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/OkDialog.java6
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/OkDialogFactory.java6
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/QuestionDialog.java6
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/QuestionDialogFactory.java1
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/composite/IFilteredElementSelectionComposite.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialog.java8
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogCallback.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogCallbackWithPreCommit.java10
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogWithoutResultCallback.java6
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IOkDialog.java14
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IOkDialogFactory.java10
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IQuestionDialog.java2
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IQuestionDialogFactory.java6
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IWithResultDialogCallback.java6
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/displaysync/SynchronizedComposite.java3
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/displaysync/SynchronizedObject.java6
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/handler/HandlerUtils.java12
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/tree/menu/ITreeMenu.java8
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/composite/FilteredElementSelectionComposite.java2
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/composite/SynchronizedFilteredElementSelectionComposite.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractDialog.java17
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractDialogWithCallback.java8
-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.java12
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/SynchronizedAbstractDialog.java10
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/handler/AbstractSelectionExpectedTypeHandler.java10
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/ExtendedTree.java29
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/item/AbstractTreeItem.java40
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeMenu.java29
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeMenuItem.java32
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeSubMenu.java10
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/ExtendedTreeMenu.java40
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/AbstractWidget.java19
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/AbstractCommandWidget.java26
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/AbstractGetOrCreateFilteredElementCommandWidget.java38
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/ICommandWidget.java10
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/IGetOrCreateFilteredElementCommmandWidget.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/CreateElementWidget.java11
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWidget.java22
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithButtonWidget.java14
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithDialogButtonWidget.java11
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithWizardButtonWidget.java10
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/AbstractGetPropertyWidget.java30
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/bounds/AbstractGetBoundsWidget.java15
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/name/AbstractGetElementNameWidget.java12
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/name/AbstractPrintElementWidget.java12
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/query/AbstractQueryWidget.java8
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/wizard/SynchronizedWizard.java8
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/IAbstractWidget.java14
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/getorcreate/IAbstractGetOrCreateElementWidget.java12
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/getorcreate/IAbstractGetOrCreateElementWithButtonWidget.java6
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/wizard/IExtendedWizard.java16
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedAbstractGetOrCreateElementWidget.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedAbstractGetOrCreateElementWithButtonWidget.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedGetOrCreateFilteredElementCommmandWidget.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedOkDialog.java15
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/widget/metaclass/FilteredElementSelectionWidget.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/PropertyElement.java10
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/PropertyElement2.java4
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/UIUtils.java22
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/WidgetProperties.java14
61 files changed, 355 insertions, 389 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/Activator.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/Activator.java
index 904422629b8..9609486e106 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/Activator.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/Activator.java
@@ -1,11 +1,11 @@
/**
* 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
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/OkDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/OkDialog.java
index 969188b98e1..64178f082c9 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/OkDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/OkDialog.java
@@ -1,11 +1,11 @@
-/**
+/**
* Copyright (c) Soft-Maint.
- *
+ *
* 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:
* Thomas Cicognani (Soft-Maint) - Bug 406565 - Ok Dialog
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/OkDialogFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/OkDialogFactory.java
index 9f58c9a0f89..471f3bf31ed 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/OkDialogFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/OkDialogFactory.java
@@ -1,11 +1,11 @@
-/**
+/**
* Copyright (c) Soft-Maint.
- *
+ *
* 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:
* Thomas Cicognani (Soft-Maint) - Bug 406565 - Ok Dialog
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/QuestionDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/QuestionDialog.java
index 4121bf8bc50..9fbca66009a 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/QuestionDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/QuestionDialog.java
@@ -33,7 +33,7 @@ import org.eclipse.swt.widgets.Shell;
/**
* A yes/no dialog, that replicates the JFace MessageDialog#openQuestion, but is designed to be easily testable with JUnit
- *
+ *
* @since 0.2
*/
public class QuestionDialog implements IQuestionDialog {
@@ -62,7 +62,7 @@ public class QuestionDialog implements IQuestionDialog {
/**
* Open the dialog.
- *
+ *
* @return the result
*/
public final void open() {
@@ -177,7 +177,7 @@ public class QuestionDialog implements IQuestionDialog {
public final Boolean getResult() {
return this.result;
}
-
+
public final Shell getShell() {
return this.shell;
}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/QuestionDialogFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/QuestionDialogFactory.java
index 2e96d8c802e..64e2f4a10a0 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/QuestionDialogFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/dialog/QuestionDialogFactory.java
@@ -29,4 +29,3 @@ public class QuestionDialogFactory implements IQuestionDialogFactory {
}
}
-
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/composite/IFilteredElementSelectionComposite.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/composite/IFilteredElementSelectionComposite.java
index 9be896017e1..dd9f9b2b496 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/composite/IFilteredElementSelectionComposite.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/composite/IFilteredElementSelectionComposite.java
@@ -1,11 +1,11 @@
/**
* 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
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialog.java
index 2ced2530a7d..d94d74e86a9 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialog.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -35,14 +35,14 @@ public interface IDialog<W extends Object> {
/**
* Open the dialog. This method is used for to open the dialog into the
* thread UI. So, this method has no to be called into the constructor.
- *
+ *
* @return the result of the dialog (OK or CANCEL).
*/
int open();
/**
* Return if the dialog is valid or not.
- *
+ *
* @return true if all the necessaries properties are set.
*/
boolean isDialogValid();
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogCallback.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogCallback.java
index 5492724e63b..a449e0728e2 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogCallback.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogCallback.java
@@ -13,14 +13,14 @@ package org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog;
/**
* A callback used to return a dialog's result asynchronously.
- *
+ *
* @param <T>
* the type of the result
*/
public interface IDialogCallback<T> {
/**
* The user committed their selection in the dialog.
- *
+ *
* @param result
* the result
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogCallbackWithPreCommit.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogCallbackWithPreCommit.java
index be363daed88..a7e2beb9177 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogCallbackWithPreCommit.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogCallbackWithPreCommit.java
@@ -18,12 +18,10 @@ package org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog;
* <p>
* The second dialog should either:
* <ul>
- * <li>call {@link IDialogCallback#committed(Object) committed} on the callback passed to
- * {@link IDialogCallbackWithPreCommit#openPrecommitDialog(Object, IDialogCallback) openPrecommitDialog} with the
- * definitive result
+ * <li>call {@link IDialogCallback#committed(Object) committed} on the callback passed to {@link IDialogCallbackWithPreCommit#openPrecommitDialog(Object, IDialogCallback) openPrecommitDialog} with the definitive result
* <li>do nothing if the pre-commit dialog was canceled
* </ul>
- *
+ *
* @param <T1>
* the type of the result for the first dialog
* @param <T2>
@@ -34,7 +32,7 @@ package org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog;
public interface IDialogCallbackWithPreCommit<T1, T2, D> {
/**
* The user confirmed their choice in the pre-commit dialog.
- *
+ *
* @param result
* the result of the first dialog
* @param precommitResult
@@ -45,7 +43,7 @@ public interface IDialogCallbackWithPreCommit<T1, T2, D> {
/**
* The user committed their selection in the first dialog. This method is called to let you open a second
* "pre-commit" dialog, that can prompt the user for confirmation.
- *
+ *
* @param result
* the result from the first dialog
* @param precommitCallback
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogWithoutResultCallback.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogWithoutResultCallback.java
index 069f9e3eb8b..2afa824b1d1 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogWithoutResultCallback.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IDialogWithoutResultCallback.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -14,7 +14,7 @@ package org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog;
/**
* A callback used to return a dialog's result asynchronously.
- *
+ *
* @since 0.3
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IOkDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IOkDialog.java
index e4128f8b8c0..597d79abf41 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IOkDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IOkDialog.java
@@ -1,11 +1,11 @@
-/**
+/**
* Copyright (c) Soft-Maint.
- *
+ *
* 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:
* Thomas Cicognani (Soft-Maint) - Bug 406565 - Ok Dialog
*/
@@ -13,20 +13,20 @@ package org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog;
/**
- *
+ *
* @author tcicognani
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
* @since 0.4
*/
public interface IOkDialog {
-
+
void commit();
boolean isInformation();
-
+
boolean isWarning();
-
+
boolean isError();
}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IOkDialogFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IOkDialogFactory.java
index b9e2910a230..34ba3d60f2a 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IOkDialogFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IOkDialogFactory.java
@@ -1,11 +1,11 @@
-/**
+/**
* Copyright (c) Soft-Maint.
- *
+ *
* 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:
* Thomas Cicognani (Soft-Maint) - Bug 406565 - Ok Dialog
*/
@@ -15,9 +15,9 @@ import org.eclipse.papyrus.emf.facet.util.ui.internal.dialog.OkDialogFactory;
import org.eclipse.swt.widgets.Shell;
/**
- *
+ *
* @author tcicognani
- *
+ *
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
* @since 0.4
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IQuestionDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IQuestionDialog.java
index 1a46bc8015b..f25f978429e 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IQuestionDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IQuestionDialog.java
@@ -29,7 +29,7 @@ public interface IQuestionDialog {
/**
* Get the user's answer
- *
+ *
* @return <ul>
* <li><code>true</code> if the user clicked "Yes"
* <li><code>false</code> if the user clicked "No"
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IQuestionDialogFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IQuestionDialogFactory.java
index bee29a87f88..ced204c1b81 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IQuestionDialogFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IQuestionDialogFactory.java
@@ -20,7 +20,7 @@ public interface IQuestionDialogFactory {
/**
* Instantiates a question dialog (without opening it)
- *
+ *
* @param parent
* the parent shell for the new dialog
* @param title
@@ -31,10 +31,10 @@ public interface IQuestionDialogFactory {
*/
@Deprecated
IQuestionDialog createQuestionDialog(Shell parent, String title, String message);
-
+
/**
* Instantiates a question dialog (without opening it)
- *
+ *
* @param parent
* the parent shell for the new dialog
* @param title
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IWithResultDialogCallback.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IWithResultDialogCallback.java
index 3cdeabe0393..24a9cddf57b 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IWithResultDialogCallback.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/dialog/IWithResultDialogCallback.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -16,7 +16,7 @@ package org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog;
/**
* A callback used to return a dialog's result asynchronously.
- *
+ *
* @since 0.3
* @noextend This interface is not intended to be extended by clients.
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/displaysync/SynchronizedComposite.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/displaysync/SynchronizedComposite.java
index b5336294f81..774a2fdeb3c 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/displaysync/SynchronizedComposite.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/displaysync/SynchronizedComposite.java
@@ -14,7 +14,6 @@
package org.eclipse.papyrus.emf.facet.util.ui.internal.exported.displaysync;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Display;
/**
* <ul>
@@ -29,7 +28,7 @@ public class SynchronizedComposite<C extends Composite> extends SynchronizedObje
public SynchronizedComposite(final C composite) {
super(composite, composite.getDisplay());
}
-
+
@Deprecated
protected C getSynchronizedComposite() {
return getSynchronizedObject();
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/displaysync/SynchronizedObject.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/displaysync/SynchronizedObject.java
index 2aabc8443e1..40cb2c13f1d 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/displaysync/SynchronizedObject.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/displaysync/SynchronizedObject.java
@@ -34,7 +34,7 @@ public class SynchronizedObject<O extends Object> {
this.display = display;
this.widgetThread = this.display.getThread();
}
-
+
protected final <T, E extends Exception> T syncExecWithResult(
final IRunnable<T, E> runnable) throws E {
T result;
@@ -71,7 +71,7 @@ public class SynchronizedObject<O extends Object> {
}
return result;
}
-
+
protected class ExceptionHandler {
private Exception exception;
@@ -107,7 +107,7 @@ public class SynchronizedObject<O extends Object> {
throw new DisplaySyncRuntimeException(e);
}
}
-
+
public O getSynchronizedObject() {
return this.object;
}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/handler/HandlerUtils.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/handler/HandlerUtils.java
index 932099591b1..2324938c80c 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/handler/HandlerUtils.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/handler/HandlerUtils.java
@@ -1,11 +1,11 @@
/**
* 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é (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
@@ -25,7 +25,7 @@ import org.eclipse.ui.PlatformUI;
/**
* Util class for Handlers.
- *
+ *
* @since 0.3
*/
public final class HandlerUtils {
@@ -36,7 +36,7 @@ public final class HandlerUtils {
/**
* Return the tree selection of the user's selection.
- *
+ *
* @return the current tree selection.
*/
public static IStructuredSelection getStructuredSelection() {
@@ -60,7 +60,7 @@ public final class HandlerUtils {
/**
* Return the current selection.
- *
+ *
* @return the current selection.
*/
public static Object getSelection() {
@@ -75,7 +75,7 @@ public final class HandlerUtils {
/**
* Return the active workbench window.
- *
+ *
* @return the active workbench window.
*/
public static Shell getWorkbenchWindowShell() {
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/tree/menu/ITreeMenu.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/tree/menu/ITreeMenu.java
index 714efd206f3..4e605d0ff19 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/tree/menu/ITreeMenu.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/tree/menu/ITreeMenu.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -27,7 +27,7 @@ public interface ITreeMenu<T extends Object> {
/**
* Select a menu item in the tree menu.
- *
+ *
* @param menuItemType
* @return an instance of T.
*/
@@ -35,7 +35,7 @@ public interface ITreeMenu<T extends Object> {
/**
* Select all the items of the tree with the name <code>treeItemName</code>
- *
+ *
* @param treeItemName
* the name of the item to select.
* @return the list of all the tree item with the name in parameter.
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/composite/FilteredElementSelectionComposite.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/composite/FilteredElementSelectionComposite.java
index 9e5960b6248..b29c2f26171 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/composite/FilteredElementSelectionComposite.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/composite/FilteredElementSelectionComposite.java
@@ -28,7 +28,7 @@ import org.eclipse.ui.dialogs.FilteredList;
/**
* A control for selecting an element from a list of elements, that can be
* filtered using the associated text field.
- *
+ *
* @since 0.3
*/
public class FilteredElementSelectionComposite extends Composite implements
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/composite/SynchronizedFilteredElementSelectionComposite.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/composite/SynchronizedFilteredElementSelectionComposite.java
index db9811e7cb3..c5b01fb6098 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/composite/SynchronizedFilteredElementSelectionComposite.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/composite/SynchronizedFilteredElementSelectionComposite.java
@@ -1,11 +1,11 @@
/**
* 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
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractDialog.java
index db94d0ee6db..9941b342a98 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractDialog.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -27,7 +27,7 @@ import org.eclipse.swt.widgets.Shell;
/**
* Abstract class representing a dialog. Some methods are implemented to avoid
* unnecessary duplication code.
- *
+ *
* @param <CB>
* The type of the callback.
* @param <P>
@@ -44,7 +44,7 @@ public abstract class AbstractDialog<CB extends Object, W extends ICommandWidget
/**
* Constructor.
- *
+ *
* @param callback
* the callback
* @param properties
@@ -80,8 +80,7 @@ public abstract class AbstractDialog<CB extends Object, W extends ICommandWidget
protected abstract void execute();
/**
- * Check if all the required attributes are setted ({@link #isDialogValid()}
- * and call the method {@link #execute()} to get and execute the widget
+ * Check if all the required attributes are setted ({@link #isDialogValid()} and call the method {@link #execute()} to get and execute the widget
* command. If the dialog is not valid, this method display the errors with
* the method {@link #setErrorMessage(String)}.
*/
@@ -117,21 +116,21 @@ public abstract class AbstractDialog<CB extends Object, W extends ICommandWidget
/**
* Create the associated widget to the dialog.
- *
+ *
* @return an instance of the widget.
*/
protected abstract W createWidget();
/**
* Return the message at the top of the dialog.
- *
+ *
* @return the message.
*/
protected abstract String getDialogMessage();
/**
* Return the title of the dialog.
- *
+ *
* @return the title.
*/
protected abstract String getDialogTitle();
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractDialogWithCallback.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractDialogWithCallback.java
index 1b14343e307..ddc24ec48ca 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractDialogWithCallback.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/AbstractDialogWithCallback.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -18,7 +18,7 @@ import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.comma
/**
* Abstract dialog with an {@link IDialogWithoutResultCallback} in parameter.
- *
+ *
* @since 0.3
*/
public abstract class AbstractDialogWithCallback<T extends Object, W extends ICommandWidget>
@@ -26,7 +26,7 @@ public abstract class AbstractDialogWithCallback<T extends Object, W extends ICo
/**
* Constructor.
- *
+ *
* @param editingDomain
* the current editing domain
* @param properties
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 ec9e183e4e5..1f59a8af5d2 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,11 +1,11 @@
/**
* 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
@@ -21,13 +21,13 @@ 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
@@ -40,7 +40,7 @@ public abstract class AbstractMainDialog<W extends ICommandWidget>
/**
* Constructor.
- *
+ *
* @param callback
* the callback.
* @param editedElement
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/SynchronizedAbstractDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/SynchronizedAbstractDialog.java
index ac0051d495c..fa57928d772 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/SynchronizedAbstractDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/dialog/SynchronizedAbstractDialog.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -20,17 +20,17 @@ import org.eclipse.swt.widgets.Display;
/**
* Synchronized class for safe run.
- *
+ *
* @see AbstractDialog
* @since 0.3
- *
+ *
*/
public class SynchronizedAbstractDialog<W extends Object> extends
SynchronizedObject<IDialog<W>> implements IDialog<W> {
/**
* Constructor.
- *
+ *
* @param object
* the to synchronized.
* @param display
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/handler/AbstractSelectionExpectedTypeHandler.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/handler/AbstractSelectionExpectedTypeHandler.java
index 717f16f2460..9e25abf20b3 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/handler/AbstractSelectionExpectedTypeHandler.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/handler/AbstractSelectionExpectedTypeHandler.java
@@ -1,11 +1,11 @@
/**
* 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é (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
@@ -17,9 +17,9 @@ import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.handler.HandlerUt
/**
* Abstract handler. All handlers must extends this class.
- *
+ *
* @see IFunctionDialogFactory
- *
+ *
* @see CreateFacetInFacetSetHandler
* @see CreateFacetSetInFacetSetHandler
* @see AddAttributeInFacetHandler
@@ -44,7 +44,7 @@ public abstract class AbstractSelectionExpectedTypeHandler extends AbstractHandl
/**
* Return the expected type of the selection.
- *
+ *
* @return the type expected.
*/
protected abstract Class<?> getSelectionExpectedType();
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/ExtendedTree.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/ExtendedTree.java
index 3418d245250..4934d9580a3 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/ExtendedTree.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/ExtendedTree.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -31,12 +31,12 @@ import org.eclipse.swt.widgets.Tree;
/**
* This class provides the creation of a {@link Tree} but with extended
* elements.</p>
- *
+ *
* This tree creates its menu {@link ExtendedTreeMenu} and had the list of all the items
* of the tree accessible with the method {@link #getTreeItems()}.
- *
+ *
* </p> Only one element of the tree can be selected at the same time.
- *
+ *
* @since 0.3
*/
public class ExtendedTree {
@@ -48,15 +48,14 @@ public class ExtendedTree {
/**
* Constructor.
- *
- * Create a new instance of a {@link Tree} and create the {@link ExtendedTreeMenu}
- * with the <code>menuItems</code> in parameter.
- *
+ *
+ * Create a new instance of a {@link Tree} and create the {@link ExtendedTreeMenu} with the <code>menuItems</code> in parameter.
+ *
* @param parent
* the parent of the TreeExtended.
* @param menuItems
* the items of the menu.
- *
+ *
* @see ExtendedTreeMenu
* @see AbstractTreeMenu
*/
@@ -126,7 +125,7 @@ public class ExtendedTree {
/**
* Add a {@link ModificationListener} to the list of listeners of the tree.
- *
+ *
* @param listener
*/
public void setListener(final Listener listener) {
@@ -134,8 +133,7 @@ public class ExtendedTree {
}
/**
- * When a modification appends, this method has to be called and the method
- * {@link #notifyChanged()} is called for the listener of this Tree.
+ * When a modification appends, this method has to be called and the method {@link #notifyChanged()} is called for the listener of this Tree.
*/
public void fireChanged() {
this.listener.handleEvent(null);
@@ -143,8 +141,7 @@ public class ExtendedTree {
/**
* @return a map of properties to pass to the {@link AbstractTreeItem}. Each
- * items add to override the method
- * {@link AbstractTreeItem#getExtraProperties(Map)} to get this
+ * items add to override the method {@link AbstractTreeItem#getExtraProperties(Map)} to get this
* properties.
*/
public void putExtraPropertiesToItems(final Map<String, Object> properties) {
@@ -153,7 +150,7 @@ public class ExtendedTree {
/**
* Return the first {@link AbstractTreeItem} of the tree.
- *
+ *
* @return the first item of the tree.
*/
public AbstractTreeItem<IDialog> getFirstTreeItem() {
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/item/AbstractTreeItem.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/item/AbstractTreeItem.java
index a91d24700ba..138fa276853 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/item/AbstractTreeItem.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/item/AbstractTreeItem.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -24,7 +24,7 @@ import org.eclipse.swt.widgets.TreeItem;
/**
* This abstract class represent an item of the tree. All the item types of the
* tree must extend this abstract class.
- *
+ *
* @since 0.3
*/
public abstract class AbstractTreeItem<T extends Object> {
@@ -35,7 +35,7 @@ public abstract class AbstractTreeItem<T extends Object> {
/**
* Create a new item {@link TreeItem} into the parent.
- *
+ *
* @param parent
* the parent of the item to create.
*/
@@ -49,7 +49,7 @@ public abstract class AbstractTreeItem<T extends Object> {
/**
* Create a new item {@link TreeItem} into the parent.
- *
+ *
* @param parent
* the parent of the item to create.
*/
@@ -64,8 +64,7 @@ public abstract class AbstractTreeItem<T extends Object> {
}
/**
- * Initialize the tree item with the text and call the method
- * {@link #onItemCreation()} if the user wants an extra action.
+ * Initialize the tree item with the text and call the method {@link #onItemCreation()} if the user wants an extra action.
*/
private void initialize(final TreeItem item) {
item.setChecked(true);
@@ -80,7 +79,7 @@ public abstract class AbstractTreeItem<T extends Object> {
/**
* Return the default message when the item is created.
- *
+ *
* @return the default message.
*/
public static String getDefaultItemText() {
@@ -89,9 +88,8 @@ public abstract class AbstractTreeItem<T extends Object> {
/**
* Return the text to display for the item. This text can be null or an
- * empty string (the value of the string will be {@link Messages#item_todo}
- * ). The item text can be setted later with {@link #setItemText(String)}.
- *
+ * empty string (the value of the string will be {@link Messages#item_todo} ). The item text can be setted later with {@link #setItemText(String)}.
+ *
* @return the text of the item in the tree.
*/
public abstract String getItemText();
@@ -108,7 +106,7 @@ public abstract class AbstractTreeItem<T extends Object> {
/**
* Return the value of this item.
- *
+ *
* @return the value.
*/
public abstract Object returnValue();
@@ -126,7 +124,7 @@ public abstract class AbstractTreeItem<T extends Object> {
/**
* Return the children of this item in the tree.
- *
+ *
* @return the list of the children.
*/
public TreeItem[] getChildren() {
@@ -135,7 +133,7 @@ public abstract class AbstractTreeItem<T extends Object> {
/**
* Return the parent of this item on the tree.
- *
+ *
* @return the parent of the item or null if the item is root.
*/
public AbstractTreeItem<T> getParent() {
@@ -144,7 +142,7 @@ public abstract class AbstractTreeItem<T extends Object> {
/**
* Edit the text of the item into the tree.
- *
+ *
* @param newText
* the new text.
*/
@@ -153,8 +151,7 @@ public abstract class AbstractTreeItem<T extends Object> {
}
/**
- * When a modification append, this method has to be called and the method
- * {@link #notifyChanged()} is called for the listener of this Tree.
+ * When a modification append, this method has to be called and the method {@link #notifyChanged()} is called for the listener of this Tree.
*/
protected void fireChanged() {
this.getMenuItem().fireChanged();
@@ -191,10 +188,8 @@ public abstract class AbstractTreeItem<T extends Object> {
}
/**
- * This method gets the <code>properties</code> passed by the
- * {@link #treeExtended} via the method
- * {@link ExtendedTree#putExtraPropertiesToItems(Map)}.
- *
+ * This method gets the <code>properties</code> passed by the {@link #treeExtended} via the method {@link ExtendedTree#putExtraPropertiesToItems(Map)}.
+ *
* @return the extraProperties
*/
public Map<String, Object> getExtraProperties() {
@@ -202,7 +197,8 @@ public abstract class AbstractTreeItem<T extends Object> {
}
/**
- * @param extraProperties the extraProperties to set
+ * @param extraProperties
+ * the extraProperties to set
*/
public void setExtraProperties(final Map<String, Object> extraProperties) {
this.extraProperties = extraProperties;
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeMenu.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeMenu.java
index 5915f90568c..75f7a643a08 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeMenu.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeMenu.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -24,7 +24,7 @@ import org.eclipse.swt.widgets.TreeItem;
/**
* Abstract class providing the creation of any item into the menu.
- *
+ *
* @see AbstractTreeMenuItem
* @see AbstractTreeSubMenu
* @since 0.3
@@ -60,8 +60,8 @@ public abstract class AbstractTreeMenu<T extends Object> {
if (this.isMenuItemCreated()) {
deleteMenuItem();
}
- this.setMenuItemCreated(true);
- this.menuItem = createMenuItem(menu);
+ this.setMenuItemCreated(true);
+ this.menuItem = createMenuItem(menu);
} else {
deleteMenuItem();
this.setMenuItemCreated(false);
@@ -71,7 +71,7 @@ public abstract class AbstractTreeMenu<T extends Object> {
/**
* Return if the menu item has to be enabled or not (by checking if the
* associated AbstractTreeItem is enabled or not).
- *
+ *
* @return if the menu item has to be enabled or not.
*/
public boolean isEnabled(final ExtendedTreeMenu<T> menuTree) {
@@ -82,7 +82,7 @@ public abstract class AbstractTreeMenu<T extends Object> {
/**
* Return if the menu item has to be enabled or not (by checking if the
* associated AbstractTreeItem is enabled or not).
- *
+ *
* @return if the menu item has to be enabled or not.
*/
public abstract boolean isEnabled();
@@ -90,7 +90,7 @@ public abstract class AbstractTreeMenu<T extends Object> {
/**
* Create the concrete item. Has to be overrided by the classes extending
* this abstract class.
- *
+ *
* @param parent
* the parent of the item.
* @return the item created.
@@ -119,7 +119,7 @@ public abstract class AbstractTreeMenu<T extends Object> {
/**
* This method is called when the menu item is selected.
- *
+ *
* @return can return an instance of T.
*/
public abstract T onMenuItemSelection();
@@ -146,10 +146,10 @@ public abstract class AbstractTreeMenu<T extends Object> {
/**
* Set the properties to pass to the new items.
- *
+ *
* @param extraProperties
* the properties to pass.
- *
+ *
*/
public void setExtraProperties(final Map<String, Object> extraProperties) {
this.properties = extraProperties;
@@ -186,18 +186,17 @@ public abstract class AbstractTreeMenu<T extends Object> {
/**
* Return the {@link AbstractTreeItem} according to the {@link TreeItem}.
- *
+ *
* @param treeItem
* the treeItem related.
- * @return the {@link AbstractTreeItem} related to the <code>treeItem</code>
- * .
+ * @return the {@link AbstractTreeItem} related to the <code>treeItem</code> .
*/
public abstract AbstractTreeItem<T> getTreeItemExtended(
final TreeItem treeItem);
/**
* Remove the item in parameter of the tree.
- *
+ *
* @param item
* the item to remove.
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeMenuItem.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeMenuItem.java
index e23ce06e430..db51660ef6b 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeMenuItem.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeMenuItem.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -22,13 +22,9 @@ import org.eclipse.swt.widgets.TreeItem;
/**
* Abstract class for the tree menu item. Each Menu Item had an handler which
- * provide the methods: <li>{@link #isEnabled()} : return if the menu item has
- * to be displayed.</li> <li>{@link #onMenuItemSelection()} : this method will
- * be execute when the item is selected.</li> <li>
- * {@link #getAssociatedTreeItemClass()} : links this class with an
- * {@link AbstractTreeItem}. This item will be instantiate when the user select
- * this element on the tree menu.</li>
- *
+ * provide the methods: <li>{@link #isEnabled()} : return if the menu item has to be displayed.</li> <li>{@link #onMenuItemSelection()} : this method will be execute when the item is selected.</li> <li>
+ * {@link #getAssociatedTreeItemClass()} : links this class with an {@link AbstractTreeItem}. This item will be instantiate when the user select this element on the tree menu.</li>
+ *
* @see AbstractTreeItem
* @see AbstractTreeMenu
* @since 0.3
@@ -66,7 +62,7 @@ public abstract class AbstractTreeMenuItem<T extends Object> extends
/**
* Create a new item {@link TreeItem} into the parent.
- *
+ *
* @param parent
* the parent of the item to create.
*/
@@ -76,7 +72,7 @@ public abstract class AbstractTreeMenuItem<T extends Object> extends
/**
* Create a new item {@link TreeItem} into the parent.
- *
+ *
* @param parent
* the parent of the item to create.
*/
@@ -86,7 +82,7 @@ public abstract class AbstractTreeMenuItem<T extends Object> extends
/**
* Create a new item {@link TreeItem} into the parent.
- *
+ *
* @param parent
* the parent of the item to create.
*/
@@ -114,7 +110,7 @@ public abstract class AbstractTreeMenuItem<T extends Object> extends
/**
* Find the treeItem searching into the all tree.
- *
+ *
* @param treeItem
* the treeItem to find.
* @return the corresponding {@link AbstractTreeItem}. Null if not.
@@ -172,7 +168,7 @@ public abstract class AbstractTreeMenuItem<T extends Object> extends
/**
* Set a new text to the last item created.
- *
+ *
* @param newText
* the new text to set.
*/
@@ -184,8 +180,7 @@ public abstract class AbstractTreeMenuItem<T extends Object> extends
}
/**
- * When a modification append, this method has to be called and the method
- * {@link #notifyChanged()} is called for the listener of this Tree.
+ * When a modification append, this method has to be called and the method {@link #notifyChanged()} is called for the listener of this Tree.
*/
public void fireChanged() {
final ExtendedTreeMenu<T> treeMenu = getTreeMenu();
@@ -196,9 +191,8 @@ public abstract class AbstractTreeMenuItem<T extends Object> extends
/**
* Return the class associated with this menu item. When this menu item will
- * be selected, a new instance of this associated {@link AbstractTreeItem}
- * will be created.
- *
+ * be selected, a new instance of this associated {@link AbstractTreeItem} will be created.
+ *
* @return the associated class.
*/
public abstract Class<? extends AbstractTreeItem<T>> getAssociatedTreeItemClass();
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeSubMenu.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeSubMenu.java
index bb2b03c2dd6..227440a7b75 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeSubMenu.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/AbstractTreeSubMenu.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -24,7 +24,7 @@ import org.eclipse.swt.widgets.TreeItem;
* Class for the creation of a sub-menu in the menu. The sub-menu is not
* selectable and own a list of sub-items (declared by the contributor with the
* extension point).
- *
+ *
* @since 0.3
*/
public abstract class AbstractTreeSubMenu<T extends Object> extends
@@ -42,7 +42,7 @@ public abstract class AbstractTreeSubMenu<T extends Object> extends
/**
* Add an item to the list of the sub-menu items.
- *
+ *
* @param item
* the item to add.
*/
@@ -70,7 +70,7 @@ public abstract class AbstractTreeSubMenu<T extends Object> extends
/**
* Create the concrete sub menu into the tree menu.
- *
+ *
* @param parent
* the menu parent of this sub menu.
* @return the new item into the menu.
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/ExtendedTreeMenu.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/ExtendedTreeMenu.java
index 36560d76519..eb01e75aefc 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/ExtendedTreeMenu.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/tree/menu/ExtendedTreeMenu.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -26,11 +26,9 @@ import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
/**
- * This class provide the creation of the menu {@link Menu} of the tree (
- * {@link #createMenu(Control, ExtendedTree)}. The menu add a list of
- * {@link AbstractTreeItem} and for each an {@link AbstractTreeItem} which will
+ * This class provide the creation of the menu {@link Menu} of the tree ( {@link #createMenu(Control, ExtendedTree)}. The menu add a list of {@link AbstractTreeItem} and for each an {@link AbstractTreeItem} which will
* be instantiate when the menu item is selected.
- *
+ *
* @since 0.3
*/
public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
@@ -42,7 +40,7 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
/**
* Constructor.
- *
+ *
* @param parent
* the parent of the menu.
* @param treeExtended
@@ -58,7 +56,7 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
/**
* This method creates the tree menu, add put the listener into the menu.
- *
+ *
* @param parent
* the parent of the menu.
* @param treeExtended
@@ -79,8 +77,7 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
}
/**
- * This method is called when the menu is displayed. It calls all the
- * {@link AbstractTreeMenu#refresh(TreeMenu)} method of each element of the
+ * This method is called when the menu is displayed. It calls all the {@link AbstractTreeMenu#refresh(TreeMenu)} method of each element of the
* menu.
*/
public void onMenuShown() {
@@ -91,7 +88,7 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
/**
* Return the list of all the items of this menu.
- *
+ *
* @return the list of the {@link AbstractTreeMenu} of this menu.
*/
public List<AbstractTreeMenu<IDialog>> getTreeMenuItems() {
@@ -100,7 +97,7 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
/**
* Return the {@link Menu} of this TreeMenu.
- *
+ *
* @return the menu.
*/
public Menu getMenu() {
@@ -109,7 +106,7 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
/**
* Put this <code>properties</code> to each items created.
- *
+ *
* @param properties
* the list of properties to pass.
*/
@@ -182,8 +179,7 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
}
/**
- * This method call the method
- * {@link AbstractTreeItem#onItemMouseSelection()} of the current selection.
+ * This method call the method {@link AbstractTreeItem#onItemMouseSelection()} of the current selection.
*/
public void onMouseSelection() {
final AbstractTreeItem<IDialog> treeMenu = getTreeItemExtended(getCurrentItemSelected());
@@ -194,8 +190,7 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
}
/**
- * When a modification append, this method has to be called and the method
- * {@link #notifyChanged()} is called for the listener of this Tree.
+ * When a modification append, this method has to be called and the method {@link #notifyChanged()} is called for the listener of this Tree.
*/
public void fireChanged() {
this.treeExtended.fireChanged();
@@ -210,7 +205,7 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
/**
* Select the item into the menu (if the item exist).
- *
+ *
* @return can return a {@link IDialog}. Can be null.
*/
public IDialog selectMenuItem(
@@ -224,9 +219,8 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
}
/**
- * Return (if exist) the {@link AbstractTreeMenu} with the name
- * <code>menuItemName</code> into the items of the tree menu.
- *
+ * Return (if exist) the {@link AbstractTreeMenu} with the name <code>menuItemName</code> into the items of the tree menu.
+ *
* @param menuItemType
* the name of the element to find.
* @return the item menu with the name in parameter (can be null).
@@ -311,7 +305,7 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
/**
* get all the items of the tree with the name <code>treeItemName</code>
- *
+ *
* @param treeItemName
* the name of the item to select.
* @return the list of all the tree item with the name in parameter.
@@ -331,7 +325,7 @@ public class ExtendedTreeMenu<IDialog> implements ITreeMenu<IDialog> {
/**
* Select a item into the tree.
- *
+ *
* @param treeItem
* the {@link AbstractTreeItem} to select
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/AbstractWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/AbstractWidget.java
index 78680f27444..b8374f76a99 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/AbstractWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/AbstractWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -28,10 +28,10 @@ import org.eclipse.swt.widgets.Composite;
/**
* An abstract class providing the creation of a specific action widget.</p>
- *
+ *
* The listener provided by the {@link #getWidgetListener()} is applied on the
* widget and called when the mouse move into the dialog.
- *
+ *
* @see AbstractCommandWidget
* @see AbstractGetOrCreateFilteredElementCommandWidget
* @see FilteredElementSelectionWidget
@@ -52,7 +52,7 @@ public abstract class AbstractWidget extends Composite implements IAbstractWidge
/**
* The constructor.
- *
+ *
* @param parent
* the parent of the widget.
* @param editingDomain
@@ -69,7 +69,7 @@ public abstract class AbstractWidget extends Composite implements IAbstractWidge
/**
* Add the widget to the list of sub widgets.
- *
+ *
* @param widget
* the widget to add.
*/
@@ -93,7 +93,7 @@ public abstract class AbstractWidget extends Composite implements IAbstractWidge
/**
* Return the string containing the error for this widget.
- *
+ *
* @return null if there is no error. The string containing the error if
* there is an error.
*/
@@ -114,7 +114,7 @@ public abstract class AbstractWidget extends Composite implements IAbstractWidge
/**
* Add the abstractWidget in parameter to the list of listeners of the
* widget.
- *
+ *
* @param abstractWidget
* the abstractWidget to listen.
*/
@@ -129,8 +129,7 @@ public abstract class AbstractWidget extends Composite implements IAbstractWidge
}
/**
- * When a modification append, this method is called and the method
- * {@link #notifyChanged()} is called for each listeners of this widget.
+ * When a modification append, this method is called and the method {@link #notifyChanged()} is called for each listeners of this widget.
*/
protected void fireChanged() {
for (final IAbstractWidget listener : this.listeners) {
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/AbstractCommandWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/AbstractCommandWidget.java
index 85d0621e515..0610cf2665d 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/AbstractCommandWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/AbstractCommandWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -22,16 +22,13 @@ import org.eclipse.swt.widgets.Composite;
/**
* This abstract class provides all the necessary methods for the creation of a
- * widget. The widget must return a {@link Command} (with the method
- * {@link #getCommand()}) that will be executed when the "ok" button of the
+ * widget. The widget must return a {@link Command} (with the method {@link #getCommand()}) that will be executed when the "ok" button of the
* dialog will be pressed.</p>
- *
+ *
* The widget have to get all the necessary properties for the creation of the
* element (with the command). To get all the properties, the widget have to add
- * all the subwidgets he needs for the edition of the command. Each subwidget
- * {@link AbstractWidget} will edit a specific property of the
- * {@link WidgetProperties}.
- *
+ * all the subwidgets he needs for the edition of the command. Each subwidget {@link AbstractWidget} will edit a specific property of the {@link WidgetProperties}.
+ *
* @since 0.3
*/
public abstract class AbstractCommandWidget extends AbstractWidget implements ICommandWidget {
@@ -39,20 +36,21 @@ public abstract class AbstractCommandWidget extends AbstractWidget implements IC
/**
* Constructor. Initialize the {@link IFacetCommandFactory} for the creation
* of the command.
- *
+ *
* @param parent
* the parent {@link AbstractDialog} of this widget.
* @param editingDomain
* the current editing domain.
* @param properties
- * The {@link WidgetProperties} provided by the
- * {@link AbstractMainDialog} that the widget had to edit.
+ * The {@link WidgetProperties} provided by the {@link AbstractMainDialog} that the widget had to edit.
*/
public AbstractCommandWidget(final Composite parent) {
super(parent);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget#getCommand()
*/
public abstract Object getCommand();
@@ -72,7 +70,7 @@ public abstract class AbstractCommandWidget extends AbstractWidget implements IC
public abstract void onDialogValidation();
-
+
public <A> A adapt(final Class<A> adapterType) {
A result = null;
if (adapterType.isInstance(this)) {
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/AbstractGetOrCreateFilteredElementCommandWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/AbstractGetOrCreateFilteredElementCommandWidget.java
index c7a147ee050..cb71f8fdd35 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/AbstractGetOrCreateFilteredElementCommandWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/AbstractGetOrCreateFilteredElementCommandWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -26,15 +26,13 @@ import org.eclipse.swt.widgets.Composite;
* This abstract class allows the user to select or create an element (the
* concretes classes extending this abstract class will specify the type for
* this elements).</p>
- *
+ *
* The widget contains two composite:
* <nl>
- * <li> {@link FilteredElementSelectionWidget} : display a filtered list with the
- * elements returned by {@link #getElements()}</li>
- * <li> {@link CreateElementWidget} : create a "new..." button, and display the
- * dialog returned by {@link #createDialog()} when clicked</li>
+ * <li> {@link FilteredElementSelectionWidget} : display a filtered list with the elements returned by {@link #getElements()}</li>
+ * <li> {@link CreateElementWidget} : create a "new..." button, and display the dialog returned by {@link #createDialog()} when clicked</li>
* </nl>
- *
+ *
* @see GetOrCreateFacetSetWidget
* @see GetOrCreateFacetWidget
* @see GetOrCreateOperationWidget
@@ -50,9 +48,8 @@ public abstract class AbstractGetOrCreateFilteredElementCommandWidget<T extends
private CreateElementWidget<W> createElementW;
/**
- * Constructor. Initialize a new layout containing {@value #COLUMN_NUMBER}
- * columns.
- *
+ * Constructor. Initialize a new layout containing {@value #COLUMN_NUMBER} columns.
+ *
* @param parent
* the parent of this widget.
* @param editingDomain
@@ -80,9 +77,8 @@ public abstract class AbstractGetOrCreateFilteredElementCommandWidget<T extends
/**
* This method must return the all the elements that the user can choose
- * (with the name to display has the key to the map). The method
- * {@link #getSuperFacetSet(Object)} can be useful.
- *
+ * (with the name to display has the key to the map). The method {@link #getSuperFacetSet(Object)} can be useful.
+ *
* @return a map of the elements to display.
*/
protected abstract Map<String, T> getElements();
@@ -90,7 +86,7 @@ public abstract class AbstractGetOrCreateFilteredElementCommandWidget<T extends
/**
* @return the dialog that the "New..." button of this widget will open.
* Null if you want no "New..." button.
- *
+ *
* @see AbstractDialog
*/
protected abstract IDialog<W> createDialog();
@@ -103,7 +99,9 @@ public abstract class AbstractGetOrCreateFilteredElementCommandWidget<T extends
this.elementSelection.setElements(getElements().keySet().toArray());
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.IGetOrCreateFilteredElementCommmandWidget#getElementSelected()
*/
public T getElementSelected() {
@@ -117,7 +115,9 @@ public abstract class AbstractGetOrCreateFilteredElementCommandWidget<T extends
return result;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.IGetOrCreateFilteredElementCommmandWidget#selectElement(T)
*/
public void selectElement(final T element) {
@@ -137,7 +137,9 @@ public abstract class AbstractGetOrCreateFilteredElementCommandWidget<T extends
selectElement(element);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.IGetOrCreateFilteredElementCommmandWidget#pressNewButton()
*/
public IDialog<W> pressNewButton() {
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/ICommandWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/ICommandWidget.java
index 18cd3f2c235..36aca5c0afd 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/ICommandWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/ICommandWidget.java
@@ -1,11 +1,11 @@
/**
* 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:
* Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
*/
@@ -22,9 +22,9 @@ public interface ICommandWidget extends IAbstractWidget {
/**
* Return the command for the widget specific action. The factory can be
* used for the creation of the {@link Command}.
- *
+ *
* @see IFacetCommandFactory
- *
+ *
* @return the command.
*/
Object getCommand();
@@ -34,7 +34,7 @@ public interface ICommandWidget extends IAbstractWidget {
* pressed.
*/
void onDialogValidation();
-
+
<A> A adapt(Class<A> adapterType);
} \ No newline at end of file
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/IGetOrCreateFilteredElementCommmandWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/IGetOrCreateFilteredElementCommmandWidget.java
index 3467e9820c0..800e001ce08 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/IGetOrCreateFilteredElementCommmandWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/command/IGetOrCreateFilteredElementCommmandWidget.java
@@ -1,11 +1,11 @@
/**
* 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:
* Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/CreateElementWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/CreateElementWidget.java
index 2c3480285b2..3fb65c30e5c 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/CreateElementWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/CreateElementWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -28,7 +28,7 @@ import org.eclipse.swt.widgets.Listener;
/**
* WidgetComposite for the creation of the "New..." button. This widget will
* open the dialog passed in the constructor.
- *
+ *
* @since 0.3
*/
public class CreateElementWidget<W extends Object> extends AbstractWidget {
@@ -37,9 +37,8 @@ public class CreateElementWidget<W extends Object> extends AbstractWidget {
private final AbstractGetOrCreateFilteredElementCommandWidget<?, ?> typedParent;
/**
- * Constructor. Initialize the {@link LayoutData} with the
- * {@link AbstractWidget} attribute 'fillGridData'.
- *
+ * Constructor. Initialize the {@link LayoutData} with the {@link AbstractWidget} attribute 'fillGridData'.
+ *
* @param parent
* the parent of this composite.
* @param editingDomain
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWidget.java
index 808857ad998..916ec836671 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -25,11 +25,9 @@ import org.eclipse.swt.widgets.Text;
/**
* Abstract class for the creation of a composite that allows the selection or
- * creation of an element. Classes implementing this class must overrides
- * {@link #getSubWidgets()} method. This class prepare the composite for
- * {@link #COLUMN_NUMBER} subComposites and provide the method
- * {@link #createTextField(boolean)} for the creation of a textField area.
- *
+ * creation of an element. Classes implementing this class must overrides {@link #getSubWidgets()} method. This class prepare the composite for {@link #COLUMN_NUMBER} subComposites and provide the method {@link #createTextField(boolean)} for the creation of a
+ * textField area.
+ *
* @see AbstractGetOrCreateElementWithButtonWidget
* @see AbstractGetElementNameWidget
* @since 0.3
@@ -46,9 +44,8 @@ public abstract class AbstractGetOrCreateElementWidget<T extends Object>
private Text text;
/**
- * Constructor. Initialize the composite with a layout of
- * {@value #COLUMN_NUMBER} columns.
- *
+ * Constructor. Initialize the composite with a layout of {@value #COLUMN_NUMBER} columns.
+ *
* @param parent
* the parent containing this composite.
* @param style
@@ -77,9 +74,8 @@ public abstract class AbstractGetOrCreateElementWidget<T extends Object>
}
/**
- * Create the text field in the composite.</p> If the property
- * {@link #propertyElement} has a value, the field is not editable.
- *
+ * Create the text field in the composite.</p> If the property {@link #propertyElement} has a value, the field is not editable.
+ *
* @param enabled
* set if the field must be editable or not.
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithButtonWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithButtonWidget.java
index 05e9d8a2295..2bd268cb0a8 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithButtonWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithButtonWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -23,14 +23,14 @@ import org.eclipse.swt.widgets.Composite;
/**
* Provide all the necessary for the creation of a composite that have: </p>
- *
+ *
* Label : [ textField ][...] </p>
- *
+ *
* The button will execute {@link #openDialog()} method when pressed. </p>
- *
+ *
* The {@link #getLabel()} method have to be override and provide the label of
* the 'Label'.
- *
+ *
* @see GetOrCreateFacetSetWidget
* @see GetOrCreateFacetWidget
* @see GetOrCreateOperationWidget
@@ -45,7 +45,7 @@ public abstract class AbstractGetOrCreateElementWithButtonWidget<T extends Objec
/**
* Constructor.
- *
+ *
* @param parent
* the parent of this composite.
* @param editingDomain
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithDialogButtonWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithDialogButtonWidget.java
index ebb2d31f50a..f048bf525db 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithDialogButtonWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithDialogButtonWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -24,7 +24,7 @@ import org.eclipse.swt.widgets.Text;
/**
* Has the same goal than {@link AbstractGetOrCreateElementWithButtonWidget} but
* especially for dialogs.
- *
+ *
* @since 0.3
*/
public abstract class AbstractGetOrCreateElementWithDialogButtonWidget<T extends ENamedElement, W extends Object>
@@ -42,6 +42,7 @@ public abstract class AbstractGetOrCreateElementWithDialogButtonWidget<T extends
public void commited(final T result) {
onCommited(result);
}
+
public void canceled(final T result) {
onCanceled();
}
@@ -71,7 +72,7 @@ public abstract class AbstractGetOrCreateElementWithDialogButtonWidget<T extends
/**
* Create and return the dialog that will be display when the [...] button
* is pressed.
- *
+ *
* @return the dialog.
*/
protected abstract IDialog<W> getCreationDialog(
@@ -79,7 +80,7 @@ public abstract class AbstractGetOrCreateElementWithDialogButtonWidget<T extends
/**
* Create the synchronized dialog for the selection of the type.
- *
+ *
* @return the dialog.
*/
private IDialog<W> createSynchronizedDialog(final IDialog<W> dialog) {
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithWizardButtonWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithWizardButtonWidget.java
index 8f605c793b2..ba6b4026eab 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithWizardButtonWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/getorcreate/AbstractGetOrCreateElementWithWizardButtonWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -21,7 +21,7 @@ import org.eclipse.swt.widgets.Display;
/**
* Has the same goal than {@link AbstractGetOrCreateElementWithButtonWidget} but
* especially for dialogs.
- *
+ *
* @since 0.3
*/
public abstract class AbstractGetOrCreateElementWithWizardButtonWidget<T extends Object, W extends IExtendedWizard>
@@ -58,7 +58,7 @@ public abstract class AbstractGetOrCreateElementWithWizardButtonWidget<T extends
/**
* Create the wizard for the selection of the type.
- *
+ *
* @return the wizard.
*/
protected abstract W createIWizard();
@@ -66,7 +66,7 @@ public abstract class AbstractGetOrCreateElementWithWizardButtonWidget<T extends
/**
* Action to do when the dialog opened with the button "..." is closed with
* the "Ok" button.
- *
+ *
* @param selectETypeDialog
*/
protected abstract void onWizardCommited(W wizard);
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/AbstractGetPropertyWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/AbstractGetPropertyWidget.java
index 9bc6fd62f68..c0dcb36b353 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/AbstractGetPropertyWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/AbstractGetPropertyWidget.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -25,20 +25,18 @@ import org.eclipse.swt.widgets.Label;
/**
* This Abstract class provides all the elements to create:</p>
- *
+ *
* Label : [x]</p>
- *
- * The label is set by {@link #getLabel()}. The checkbox is initialized with the
- * {@link PropertyElement} attributes
+ *
+ * The label is set by {@link #getLabel()}. The checkbox is initialized with the {@link PropertyElement} attributes
* <nl>
- * <li>{@link PropertyElement#getValue()} (the value of the property must be a
- * boolean)</li>
+ * <li>{@link PropertyElement#getValue()} (the value of the property must be a boolean)</li>
* <li>{@link PropertyElement#isChangeable()}</li>
* </nl>
- *
+ *
* The {@link #getError()} method return 'null' because no error can be returned
* (the value of the checkbox is 'true' or 'false').
- *
+ *
* @see GetChangeableWidget
* @see GetOrderedWidget
* @see GetDerivedWidget
@@ -56,10 +54,9 @@ public abstract class AbstractGetPropertyWidget extends AbstractWidget {
private Button propertyButton;
/**
- * Constructor. Initialize the composite with a layout of
- * {@value #COLUMN_NUMBER} columns and the layoutData with the
+ * Constructor. Initialize the composite with a layout of {@value #COLUMN_NUMBER} columns and the layoutData with the
* 'fillGridData' attribute of {@link AbstractWidget}.
- *
+ *
* @param parent
* the parent containing this composite.
* @param style
@@ -68,7 +65,7 @@ public abstract class AbstractGetPropertyWidget extends AbstractWidget {
* the current editing domain.
* @param propertyElement
* the property element that this composite will edit.
- *
+ *
* @see AbstractWidget
*/
protected AbstractGetPropertyWidget(final Composite parent,
@@ -99,8 +96,7 @@ public abstract class AbstractGetPropertyWidget extends AbstractWidget {
/**
* Create a checkbox initialized with the {@link PropertyElement} attributes
* <nl>
- * <li>Default value : {@link PropertyElement#getValue()} (the value of the
- * property must be a boolean)</li>
+ * <li>Default value : {@link PropertyElement#getValue()} (the value of the property must be a boolean)</li>
* <li>Enabled : {@link PropertyElement#isChangeable()}</li>
* </nl>
*/
@@ -142,7 +138,7 @@ public abstract class AbstractGetPropertyWidget extends AbstractWidget {
/**
* Method to change the distance between the label and the checkbox.
- *
+ *
* @param lABEL_WIDTH_HINT
* the lABEL_WIDTH_HINT to set
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/bounds/AbstractGetBoundsWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/bounds/AbstractGetBoundsWidget.java
index 7b3a64dda33..e99b90b9bb9 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/bounds/AbstractGetBoundsWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/bounds/AbstractGetBoundsWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -26,9 +26,9 @@ import org.eclipse.swt.widgets.Spinner;
* This abstract class provide a simple way to create a composite for the
* edition of bounds. The {@link Spinner} composite is used for the edition of
* number.</p>
- *
+ *
* No error is return because the default value is 0.
- *
+ *
* @see Spinner
* @see GetUpperBoundWidget
* @see GetLowerBoundWidget
@@ -45,9 +45,8 @@ public abstract class AbstractGetBoundsWidget extends AbstractWidget {
private Spinner spinner;
/**
- * Constructor. Initialize the composite with a layout of
- * {@value #COLUMN_NUMBER} columns.
- *
+ * Constructor. Initialize the composite with a layout of {@value #COLUMN_NUMBER} columns.
+ *
* @param parent
* the parent containing this composite.
* @param style
@@ -112,7 +111,7 @@ public abstract class AbstractGetBoundsWidget extends AbstractWidget {
/**
* Set the bound value.
- *
+ *
* @param value
* the value to set.
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/name/AbstractGetElementNameWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/name/AbstractGetElementNameWidget.java
index 66b6de548d9..a9c0c1da246 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/name/AbstractGetElementNameWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/name/AbstractGetElementNameWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -20,14 +20,14 @@ import org.eclipse.swt.widgets.Composite;
/**
* This abstract class provide the creation of:</p>
- *
+ *
* Label : [ TextFiled ]</p>
- *
+ *
* Where the label is getted by {@link #getLabel()}. The TextField will set the
* value of the {@link PropertyElement} when edited. If the field is not setted,
* an error will be displayed at the top of the dialog when the 'ok' button is
* pressed.
- *
+ *
* @see GetAttributeNameWidget
* @see GetFacetNameWidget
* @see GetFacetSetNameWidget
@@ -41,7 +41,7 @@ public abstract class AbstractGetElementNameWidget extends
/**
* Constructor.
- *
+ *
* @param parent
* the parent of this composite.
* @param editingDomain
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/name/AbstractPrintElementWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/name/AbstractPrintElementWidget.java
index 24b11088dbb..668ac323c2c 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/name/AbstractPrintElementWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/component/properties/name/AbstractPrintElementWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -19,12 +19,12 @@ import org.eclipse.swt.widgets.Composite;
/**
* This abstract class provide the creation of:</p>
- *
+ *
* Label : [//TextFiled//]</p>
- *
+ *
* Where the label is getted by {@link #getLabel()}. The textField is disabled
* an initializated with the value of the {@link #getTextFieldInitialText()}.
- *
+ *
* @since 0.3
*/
public abstract class AbstractPrintElementWidget<T extends Object> extends
@@ -32,7 +32,7 @@ public abstract class AbstractPrintElementWidget<T extends Object> extends
/**
* Constructor.
- *
+ *
* @param parent
* the parent of this composite.
* @param editingDomain
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/query/AbstractQueryWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/query/AbstractQueryWidget.java
index 3ac0dced850..c9b936d96f3 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/query/AbstractQueryWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/widget/query/AbstractQueryWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -18,7 +18,7 @@ import org.eclipse.swt.widgets.Composite;
/**
* This abstract class must be used by the plug-ins extending this plug-in. It
* provides a simple way to create the widget for the edition of the query.
- *
+ *
* @since 0.3
*/
public abstract class AbstractQueryWidget<P extends Object> extends
@@ -26,7 +26,7 @@ public abstract class AbstractQueryWidget<P extends Object> extends
/**
* Constructor.
- *
+ *
* @param parent
* the parent of this widget.
* @param editingDomain
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/wizard/SynchronizedWizard.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/wizard/SynchronizedWizard.java
index d15b25d56ce..341fcd791f9 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/wizard/SynchronizedWizard.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/util/wizard/SynchronizedWizard.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -25,7 +25,7 @@ import org.eclipse.swt.widgets.Display;
/**
* Synchronized class for safe run.
- *
+ *
* @see WizardFactoryImpl
* @since 0.3
*/
@@ -34,7 +34,7 @@ public class SynchronizedWizard<T extends IExtendedWizard> extends
/**
* Constructor.
- *
+ *
* @param object
* the to synchronized.
* @param display
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/IAbstractWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/IAbstractWidget.java
index cecc8c172f2..4a7238bcaab 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/IAbstractWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/IAbstractWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -15,7 +15,7 @@ package org.eclipse.papyrus.emf.facet.util.ui.internal.exported.widget;
import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.AbstractWidget;
/**
- *
+ *
* @see AbstractWidget
* @since 0.3
* @noextend This interface is not intended to be extended by clients.
@@ -26,7 +26,7 @@ public interface IAbstractWidget {
/**
* Add the abstractWidget in parameter to the list of listeners of the
* widget.
- *
+ *
* @param abstractWidget
* the abstractWidget to listen.
*/
@@ -38,16 +38,16 @@ public interface IAbstractWidget {
* void.
*/
void notifyChanged();
-
+
/**
* Create the content of the widget (call {@link #addSubWidgets()}) and
* sub-widgets.
*/
void createWidgetContent();
-
+
/**
* Return the string containing the error for this widget.
- *
+ *
* @return null if there is no error. The string containing the error if
* there is an error.
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/getorcreate/IAbstractGetOrCreateElementWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/getorcreate/IAbstractGetOrCreateElementWidget.java
index b1d77eb2156..13210788854 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/getorcreate/IAbstractGetOrCreateElementWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/getorcreate/IAbstractGetOrCreateElementWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -18,8 +18,8 @@ import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.widget.IAbstractW
/**
* Interface.
- *
- *
+ *
+ *
* @see AbstractGetOrCreateElementWidget
* @since 0.3
* @noextend This interface is not intended to be extended by clients.
@@ -31,10 +31,10 @@ public interface IAbstractGetOrCreateElementWidget extends IAbstractWidget {
* @return the text field.
*/
String getText();
-
+
/**
* Set the text field.
- *
+ *
* @param text
* the new text.
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/getorcreate/IAbstractGetOrCreateElementWithButtonWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/getorcreate/IAbstractGetOrCreateElementWithButtonWidget.java
index 85db1cd7f3e..add3f5caec5 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/getorcreate/IAbstractGetOrCreateElementWithButtonWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/widget/getorcreate/IAbstractGetOrCreateElementWithButtonWidget.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -32,7 +32,7 @@ public interface IAbstractGetOrCreateElementWithButtonWidget<D>
/**
* Press the button.
- *
+ *
* @return the potential object return when the button is pressed. Can be
* null.
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/wizard/IExtendedWizard.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/wizard/IExtendedWizard.java
index 2ff79027229..c8f0dae7653 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/wizard/IExtendedWizard.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/exported/wizard/IExtendedWizard.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -16,11 +16,11 @@ import org.eclipse.jface.wizard.IWizardPage;
/**
* Interface for the facets wizards.
- *
+ *
* @since 0.3
*/
public interface IExtendedWizard extends IWizard {
-
+
/**
* @return the current page of the wizard.
*/
@@ -28,28 +28,28 @@ public interface IExtendedWizard extends IWizard {
/**
* Simulate the action of pressing the next button.
- *
+ *
* @return the next page.
*/
IWizardPage next();
/**
* Simulate the action of pressing the previous button.
- *
+ *
* @return the previous page.
*/
IWizardPage previous();
/**
* Simulate the action of pressing the finish button.
- *
+ *
* @return true if the wizard finish correctly.
*/
boolean finish();
/**
* Open the wizard.
- *
+ *
* @return the return code when the wizard closes.
*/
int open();
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedAbstractGetOrCreateElementWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedAbstractGetOrCreateElementWidget.java
index 22cbb2309e5..d12fe792209 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedAbstractGetOrCreateElementWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedAbstractGetOrCreateElementWidget.java
@@ -1,11 +1,11 @@
/**
* 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:
* Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedAbstractGetOrCreateElementWithButtonWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedAbstractGetOrCreateElementWithButtonWidget.java
index d23a476955b..624a78cea19 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedAbstractGetOrCreateElementWithButtonWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedAbstractGetOrCreateElementWithButtonWidget.java
@@ -1,11 +1,11 @@
/**
* 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:
* Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedGetOrCreateFilteredElementCommmandWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedGetOrCreateFilteredElementCommmandWidget.java
index eedf55acc19..c4368e60aa3 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedGetOrCreateFilteredElementCommmandWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedGetOrCreateFilteredElementCommmandWidget.java
@@ -1,11 +1,11 @@
/**
* 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:
* Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedOkDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedOkDialog.java
index d45b8ecedec..15d0faba6e2 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedOkDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/sync/generated/SynchronizedOkDialog.java
@@ -1,11 +1,11 @@
-/**
+/**
* Copyright (c) Soft-Maint.
- *
+ *
* 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:
* Thomas Cicognani (Soft-Maint) - Bug 406565 - Ok Dialog
*/
@@ -25,6 +25,7 @@ public class SynchronizedOkDialog extends SynchronizedObject<IOkDialog>
public SynchronizedOkDialog(final IOkDialog object, final Display display) {
super(object, display);
}
+
public final void commit() {
voidExceptionFreeRunnable(new AbstractVoidExceptionFreeRunnable() {
@Override
@@ -33,7 +34,7 @@ public class SynchronizedOkDialog extends SynchronizedObject<IOkDialog>
}
});
}
-
+
public final boolean isError() {
return safeSyncExec(new AbstractExceptionFreeRunnable<Boolean>() {
@Override
@@ -42,7 +43,7 @@ public class SynchronizedOkDialog extends SynchronizedObject<IOkDialog>
}
}).booleanValue();
}
-
+
public final boolean isInformation() {
return safeSyncExec(new AbstractExceptionFreeRunnable<Boolean>() {
@Override
@@ -51,7 +52,7 @@ public class SynchronizedOkDialog extends SynchronizedObject<IOkDialog>
}
}).booleanValue();
}
-
+
public final boolean isWarning() {
return safeSyncExec(new AbstractExceptionFreeRunnable<Boolean>() {
@Override
@@ -60,5 +61,5 @@ public class SynchronizedOkDialog extends SynchronizedObject<IOkDialog>
}
}).booleanValue();
}
-
+
}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/widget/metaclass/FilteredElementSelectionWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/widget/metaclass/FilteredElementSelectionWidget.java
index 44ad664f344..7fcd27055be 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/widget/metaclass/FilteredElementSelectionWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/internal/widget/metaclass/FilteredElementSelectionWidget.java
@@ -1,11 +1,11 @@
/**
* 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
*/
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/PropertyElement.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/PropertyElement.java
index e1079f878ae..a0fc112a268 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/PropertyElement.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/PropertyElement.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -20,7 +20,7 @@ package org.eclipse.papyrus.emf.facet.util.ui.utils;
* <li>unique</li>
* <li>...</li>
* </ol>
- *
+ *
* @since 0.3
*/
public class PropertyElement {
@@ -34,7 +34,7 @@ public class PropertyElement {
/**
* Constructor
- *
+ *
* @param name
* the name of the property.
* @param type
@@ -49,7 +49,7 @@ public class PropertyElement {
/**
* Constructor
- *
+ *
* @param name
* the name of the property.
* @param type
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/PropertyElement2.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/PropertyElement2.java
index 2cd6bbe5482..6185e224d71 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/PropertyElement2.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/PropertyElement2.java
@@ -1,8 +1,8 @@
/**
* Copyright (c) 2012 Mia-Software.
- *
+ *
* All rights reserved.
- *
+ *
* Contributors:
* Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
* Grégoire Dupé (Mia-Software) - Integration into ITM-Factory
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/UIUtils.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/UIUtils.java
index 76f67eaafd2..fae53605829 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/UIUtils.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/UIUtils.java
@@ -1,11 +1,11 @@
/**
* 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
*/
@@ -28,7 +28,7 @@ import org.eclipse.swt.widgets.Text;
/**
* This util class provides methods for the creation of basics ui components
* like buttons or text field.
- *
+ *
* @since 0.3
*/
public final class UIUtils {
@@ -42,7 +42,7 @@ public final class UIUtils {
/**
* Create the label (with the given labelName) in the given composite. The
* layoutData of the label is {@link #getLabelGridData()}.
- *
+ *
* @param parent
* the composite parent.
* @param labelName
@@ -58,7 +58,7 @@ public final class UIUtils {
/**
* Create and return a new button.
- *
+ *
* @param parent
* the button parent.
* @param text
@@ -83,7 +83,7 @@ public final class UIUtils {
/**
* Create and return a new text field.
- *
+ *
* @param parent
* the text field parent.
* @param text
@@ -111,7 +111,7 @@ public final class UIUtils {
/**
* Create a combobox with a label.
- *
+ *
* @param parent
* the parent of the combobox.
* @param enabled
@@ -149,7 +149,7 @@ public final class UIUtils {
/**
* Create and return a new text field.
- *
+ *
* @param parent
* the text field parent.
* @param text
@@ -187,7 +187,7 @@ public final class UIUtils {
/**
* Create and return a new checkbox.
- *
+ *
* @param parent
* the checkbox parent.
* @param enabled
@@ -213,7 +213,7 @@ public final class UIUtils {
/**
* Create and return a new spinner.
- *
+ *
* @param parent
* the parent of the spinner.
* @param maxValue
@@ -227,7 +227,7 @@ public final class UIUtils {
* @param modifyListener
* the listener when the spinner is changed (can be null).
* @return the new spinner.
- *
+ *
* @see Spinner
*/
public static Spinner createSpinner(final Composite parent,
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/WidgetProperties.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/WidgetProperties.java
index 6bf4c58c7a8..3701c0cf086 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/WidgetProperties.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/papyrus/emf/facet/util/ui/utils/WidgetProperties.java
@@ -1,11 +1,11 @@
/**
* 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
@@ -19,7 +19,7 @@ import org.eclipse.emf.ecore.ETypedElement;
/**
* This class contain all the possible properties for the facets creations.
- *
+ *
* @since 0.3
*/
public class WidgetProperties<T extends Object> {
@@ -34,20 +34,20 @@ public class WidgetProperties<T extends Object> {
/**
* Add a new property in the map.
- *
+ *
* @param element
* the key, the {@link ETypedElement} of the property.
* @param property
* the property.
*/
public void addProperty(final T element,
- final PropertyElement property) {
+ final PropertyElement property) {
getProperties().put(element, property);
}
/**
* Get the list of properties.
- *
+ *
* @return a map of the properties.
*/
private Map<T, PropertyElement> getProperties() {
@@ -56,7 +56,7 @@ public class WidgetProperties<T extends Object> {
/**
* Return the {@link PropertyElement} for the given element.
- *
+ *
* @param element
* the element.
* @return the property.

Back to the top