Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IETypedElementSelectionWidget.java84
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IETypedElementSelectionWidgetFactory.java110
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IFacetSetSelectionWidget.java100
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IFacetSetSelectionWidgetFactory.java88
4 files changed, 191 insertions, 191 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IETypedElementSelectionWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IETypedElementSelectionWidget.java
index e75618ad6e2..66875bdf96c 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IETypedElementSelectionWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IETypedElementSelectionWidget.java
@@ -1,42 +1,42 @@
-/*******************************************************************************
- * 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:
- * Gregoire Dupe (Mia-Software) - Bug 370442 - rewrite the Facet loading dialog for v0.2
- * Nicolas Bros (Mia-Software) - Bug 370806 - [table] rewrite the "allowed contents" query selection dialog for v0.2
- *******************************************************************************/
-package org.eclipse.papyrus.emf.facet.efacet.ui.internal.exported.widget;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.ecore.ETypedElement;
-
-/**
- * A widget to select one or more {@link ETypedElement}s from a list
- *
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- * @since 0.2.0
- */
-public interface IETypedElementSelectionWidget {
-
- /**
- * This method can be called at any time to change the {@link ETypedElement}s which can be selected by the user.
- *
- * @param available
- * the {@link ETypedElement}s that can be selected in this widget
- */
- void setAvailableETypedElements(Collection<? extends ETypedElement> available);
-
- /** @return the list of selected {@link ETypedElement}s */
- List<ETypedElement> getSelectedETypedElements();
-
- /** Select the given {@link ETypedElement}s in this widget. */
- void setSelectedETypedElements(Collection<? extends ETypedElement> elementsToSelect);
-
-}
+/*******************************************************************************
+ * 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:
+ * Gregoire Dupe (Mia-Software) - Bug 370442 - rewrite the Facet loading dialog for v0.2
+ * Nicolas Bros (Mia-Software) - Bug 370806 - [table] rewrite the "allowed contents" query selection dialog for v0.2
+ *******************************************************************************/
+package org.eclipse.papyrus.emf.facet.efacet.ui.internal.exported.widget;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.ecore.ETypedElement;
+
+/**
+ * A widget to select one or more {@link ETypedElement}s from a list
+ *
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ * @since 0.2.0
+ */
+public interface IETypedElementSelectionWidget {
+
+ /**
+ * This method can be called at any time to change the {@link ETypedElement}s which can be selected by the user.
+ *
+ * @param available
+ * the {@link ETypedElement}s that can be selected in this widget
+ */
+ void setAvailableETypedElements(Collection<? extends ETypedElement> available);
+
+ /** @return the list of selected {@link ETypedElement}s */
+ List<ETypedElement> getSelectedETypedElements();
+
+ /** Select the given {@link ETypedElement}s in this widget. */
+ void setSelectedETypedElements(Collection<? extends ETypedElement> elementsToSelect);
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IETypedElementSelectionWidgetFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IETypedElementSelectionWidgetFactory.java
index 5e19a8a0c26..1de1ddaec13 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IETypedElementSelectionWidgetFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IETypedElementSelectionWidgetFactory.java
@@ -1,55 +1,55 @@
-/*******************************************************************************
- * 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:
- * Gregoire Dupe (Mia-Software) - Bug 370442 - rewrite the Facet loading dialog for v0.2
- * Nicolas Bros (Mia-Software) - Bug 370806 - [table] rewrite the "allowed contents" query selection dialog for v0.2
- * Vincent Lorenzo (CEA-LIST) - Bug 372644 - Create Customizable tooltips for the TreeViewer using a CustomizableLabelProvider
- * Gregoire Dupe (Mia-Software) - Bug 372626 - Aggregates
- *******************************************************************************/
-package org.eclipse.papyrus.emf.facet.efacet.ui.internal.exported.widget;
-
-import java.util.Collection;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.emf.facet.custom.core.ICustomizationManager;
-import org.eclipse.papyrus.emf.facet.efacet.ui.internal.widget.ETypedElementSelectionWidgetFactory;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Factory for {@link IETypedElementSelectionWidget}
- *
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- * @since 0.2.0
- */
-public interface IETypedElementSelectionWidgetFactory {
- /** This is the default instance of this interface. */
- IETypedElementSelectionWidgetFactory DEFAULT = new ETypedElementSelectionWidgetFactory();
-
- /**
- * Open a dialog to let the user select ETypedElements
- *
- * @param selectionMaxSize
- * the maximum number of typed elements that the user can select.
- * @param allowEmpty
- * whether to allow the user to select no ETypedElement (i.e :
- * select <code>null</code>)
- * @param parentComposite
- * the parent composite
- * @param customManager
- * the customization manager used by the
- * ICustomizableLabelProvider
- * @since 0.2
- */
- IETypedElementSelectionWidget createETypedElementSelectionWidget(
- int selectionMaxSize,
- boolean allowEmpty,
- Composite parentComposite,
- ICustomizationManager customManager,
- Collection<? extends EObject> knownEPackage);
-}
+/*******************************************************************************
+ * 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:
+ * Gregoire Dupe (Mia-Software) - Bug 370442 - rewrite the Facet loading dialog for v0.2
+ * Nicolas Bros (Mia-Software) - Bug 370806 - [table] rewrite the "allowed contents" query selection dialog for v0.2
+ * Vincent Lorenzo (CEA-LIST) - Bug 372644 - Create Customizable tooltips for the TreeViewer using a CustomizableLabelProvider
+ * Gregoire Dupe (Mia-Software) - Bug 372626 - Aggregates
+ *******************************************************************************/
+package org.eclipse.papyrus.emf.facet.efacet.ui.internal.exported.widget;
+
+import java.util.Collection;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.emf.facet.custom.core.ICustomizationManager;
+import org.eclipse.papyrus.emf.facet.efacet.ui.internal.widget.ETypedElementSelectionWidgetFactory;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * Factory for {@link IETypedElementSelectionWidget}
+ *
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ * @since 0.2.0
+ */
+public interface IETypedElementSelectionWidgetFactory {
+ /** This is the default instance of this interface. */
+ IETypedElementSelectionWidgetFactory DEFAULT = new ETypedElementSelectionWidgetFactory();
+
+ /**
+ * Open a dialog to let the user select ETypedElements
+ *
+ * @param selectionMaxSize
+ * the maximum number of typed elements that the user can select.
+ * @param allowEmpty
+ * whether to allow the user to select no ETypedElement (i.e :
+ * select <code>null</code>)
+ * @param parentComposite
+ * the parent composite
+ * @param customManager
+ * the customization manager used by the
+ * ICustomizableLabelProvider
+ * @since 0.2
+ */
+ IETypedElementSelectionWidget createETypedElementSelectionWidget(
+ int selectionMaxSize,
+ boolean allowEmpty,
+ Composite parentComposite,
+ ICustomizationManager customManager,
+ Collection<? extends EObject> knownEPackage);
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IFacetSetSelectionWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IFacetSetSelectionWidget.java
index f755dc50579..593fb7c40e6 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IFacetSetSelectionWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IFacetSetSelectionWidget.java
@@ -1,50 +1,50 @@
-/*******************************************************************************
- * Copyright (c) 2012 CEA LIST.
- * 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:
- * Nicolas Bros (Mia-Software) - Bug 372865 - FacetSet selection dialog
- *******************************************************************************/
-package org.eclipse.papyrus.emf.facet.efacet.ui.internal.exported.widget;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet;
-import org.eclipse.swt.widgets.Control;
-
-/**
- * A widget to select one or more {@link FacetSet}s from a tree
- *
- * @since 0.2.0
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- */
-public interface IFacetSetSelectionWidget {
-
- /**
- * This method can be called at any time to change the {@link FacetSet}s which can be selected by the user.
- *
- * @param available
- * the {@link FacetSet}s that can be selected in this widget
- */
- void setAvailableFacetSets(Collection<? extends FacetSet> available);
-
- /** @return the list of selected {@link FacetSet}s */
- List<FacetSet> getSelectedFacetSets();
-
- /** Select the given {@link FacetSet}s in this widget. */
- void setSelectedFacetSets(Collection<? extends FacetSet> newSelection);
-
- /**
- * @return the validation status : the selection is not valid if {@link IStatus#getSeverity()} >= {@link IStatus#ERROR}
- */
- IStatus getValidationStatus();
-
- /** @return the SWT control */
- Control getControl();
-}
+/*******************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ * 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:
+ * Nicolas Bros (Mia-Software) - Bug 372865 - FacetSet selection dialog
+ *******************************************************************************/
+package org.eclipse.papyrus.emf.facet.efacet.ui.internal.exported.widget;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet;
+import org.eclipse.swt.widgets.Control;
+
+/**
+ * A widget to select one or more {@link FacetSet}s from a tree
+ *
+ * @since 0.2.0
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ */
+public interface IFacetSetSelectionWidget {
+
+ /**
+ * This method can be called at any time to change the {@link FacetSet}s which can be selected by the user.
+ *
+ * @param available
+ * the {@link FacetSet}s that can be selected in this widget
+ */
+ void setAvailableFacetSets(Collection<? extends FacetSet> available);
+
+ /** @return the list of selected {@link FacetSet}s */
+ List<FacetSet> getSelectedFacetSets();
+
+ /** Select the given {@link FacetSet}s in this widget. */
+ void setSelectedFacetSets(Collection<? extends FacetSet> newSelection);
+
+ /**
+ * @return the validation status : the selection is not valid if {@link IStatus#getSeverity()} >= {@link IStatus#ERROR}
+ */
+ IStatus getValidationStatus();
+
+ /** @return the SWT control */
+ Control getControl();
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IFacetSetSelectionWidgetFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IFacetSetSelectionWidgetFactory.java
index 2c535ab9b14..c40fd9066e6 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IFacetSetSelectionWidgetFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui/src/org/eclipse/papyrus/emf/facet/efacet/ui/internal/exported/widget/IFacetSetSelectionWidgetFactory.java
@@ -1,44 +1,44 @@
-/*******************************************************************************
- * Copyright (c) 2012 CEA LIST.
- * 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:
- * Nicolas Bros (Mia-Software) - Bug 372865 - FacetSet selection dialog
- *******************************************************************************/
-package org.eclipse.papyrus.emf.facet.efacet.ui.internal.exported.widget;
-
-import org.eclipse.papyrus.emf.facet.efacet.ui.internal.widget.FacetSetSelectionWidgetFactory;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Factory for {@link IFacetSetSelectionWidget}
- *
- * @since 0.2.0
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- */
-public interface IFacetSetSelectionWidgetFactory {
- /** This is the default instance of this interface. */
- IFacetSetSelectionWidgetFactory DEFAULT = new FacetSetSelectionWidgetFactory();
-
- /**
- * Open a dialog to let the user select ETypedElements
- *
- * @param selectionMaxSize
- * the maximum number of typed elements that the user can select.
- * @param allowEmpty
- * whether to allow the user to select no ETypedElement (i.e : select <code>null</code>)
- * @param parentComposite
- * the parent composite
- * @param onChange
- * called when the selection changes
- */
- IFacetSetSelectionWidget createFacetSetSelectionWidget(
- int selectionMaxSize,
- boolean allowEmpty,
- Composite parentComposite,
- Runnable onChange);
-}
+/*******************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ * 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:
+ * Nicolas Bros (Mia-Software) - Bug 372865 - FacetSet selection dialog
+ *******************************************************************************/
+package org.eclipse.papyrus.emf.facet.efacet.ui.internal.exported.widget;
+
+import org.eclipse.papyrus.emf.facet.efacet.ui.internal.widget.FacetSetSelectionWidgetFactory;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * Factory for {@link IFacetSetSelectionWidget}
+ *
+ * @since 0.2.0
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ */
+public interface IFacetSetSelectionWidgetFactory {
+ /** This is the default instance of this interface. */
+ IFacetSetSelectionWidgetFactory DEFAULT = new FacetSetSelectionWidgetFactory();
+
+ /**
+ * Open a dialog to let the user select ETypedElements
+ *
+ * @param selectionMaxSize
+ * the maximum number of typed elements that the user can select.
+ * @param allowEmpty
+ * whether to allow the user to select no ETypedElement (i.e : select <code>null</code>)
+ * @param parentComposite
+ * the parent composite
+ * @param onChange
+ * called when the selection changes
+ */
+ IFacetSetSelectionWidget createFacetSetSelectionWidget(
+ int selectionMaxSize,
+ boolean allowEmpty,
+ Composite parentComposite,
+ Runnable onChange);
+}

Back to the top