Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2019-08-29 13:46:35 +0000
committerPatrick Tessier2019-09-17 12:43:16 +0000
commit20f8e49b96250d184559516741f332413d3f3f33 (patch)
tree2832caf86091985f16d78e010e54931d068bf65d /plugins/infra/ui/org.eclipse.papyrus.infra.ui.architecture/src/org
parent9b317308ac234971b0fb5920e2c2086eb87b6ea4 (diff)
downloadorg.eclipse.papyrus-20f8e49b96250d184559516741f332413d3f3f33.tar.gz
org.eclipse.papyrus-20f8e49b96250d184559516741f332413d3f3f33.tar.xz
org.eclipse.papyrus-20f8e49b96250d184559516741f332413d3f3f33.zip
Bug 550567: [AF] Diagrams and tables should be visible even if its
viewpoint is not enable Remove the filter corresponding of viewpoint check. Change-Id: Id6dedc263075fc113747d9938ec75f1cfdb2789e Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@cea.fr>
Diffstat (limited to 'plugins/infra/ui/org.eclipse.papyrus.infra.ui.architecture/src/org')
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.ui.architecture/src/org/eclipse/papyrus/infra/ui/architecture/navigator/ViewpointFilter.java24
1 files changed, 13 insertions, 11 deletions
diff --git a/plugins/infra/ui/org.eclipse.papyrus.infra.ui.architecture/src/org/eclipse/papyrus/infra/ui/architecture/navigator/ViewpointFilter.java b/plugins/infra/ui/org.eclipse.papyrus.infra.ui.architecture/src/org/eclipse/papyrus/infra/ui/architecture/navigator/ViewpointFilter.java
index 1d45d5d4994..25e295a2a1c 100644
--- a/plugins/infra/ui/org.eclipse.papyrus.infra.ui.architecture/src/org/eclipse/papyrus/infra/ui/architecture/navigator/ViewpointFilter.java
+++ b/plugins/infra/ui/org.eclipse.papyrus.infra.ui.architecture/src/org/eclipse/papyrus/infra/ui/architecture/navigator/ViewpointFilter.java
@@ -1,17 +1,17 @@
/**
- * Copyright (c) 2017 CEA LIST.
- *
+ * Copyright (c) 2017, 2019 CEA LIST.
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* Maged Elaasar - Initial API and implementation
- *
- *
+ * FAUVERGUE Nicolas (CEA LIST) nicolas.fauvergue@cea.fr - Bug 550567
+ *
*/
package org.eclipse.papyrus.infra.ui.architecture.navigator;
@@ -26,27 +26,29 @@ import org.eclipse.papyrus.infra.viewpoints.policy.ViewPrototype;
import org.eclipse.papyrus.infra.widgets.providers.AbstractTreeFilter;
/**
- * A tree filter for representations (diagrams, tables) based on active viewpoints in a model set
+ * A tree filter for representations (diagrams, tables) based on active viewpoints in a model set
*
* @since 1.0
+ * @deprecated since 2.1
*/
+@Deprecated
public class ViewpointFilter extends AbstractTreeFilter {
public ViewpointFilter() {
super();
- useCache = false;//don't cache
+ useCache = false;// don't cache
}
-
+
/**
* hide a representation when it's not supported by the active viewpoints
*/
@Override
public boolean isVisible(Viewer viewer, Object parentElement, Object element) {
if (element instanceof EObjectTreeElement) {
- EObject eObj = ((EObjectTreeElement)element).getEObject();
- if (eObj instanceof Diagram && DiagramVersioningUtils.isOfCurrentPapyrusVersion((Diagram)eObj)) {
+ EObject eObj = ((EObjectTreeElement) element).getEObject();
+ if (eObj instanceof Diagram && DiagramVersioningUtils.isOfCurrentPapyrusVersion((Diagram) eObj)) {
return ViewPrototype.get(eObj) != ViewPrototype.UNAVAILABLE_VIEW;
- } else if (eObj instanceof Table && TableVersioningUtils.isOfCurrentPapyrusVersion((Table)eObj)) {
+ } else if (eObj instanceof Table && TableVersioningUtils.isOfCurrentPapyrusVersion((Table) eObj)) {
return ViewPrototype.get(eObj) != ViewPrototype.UNAVAILABLE_VIEW;
}
}

Back to the top