diff options
author | cletavernie | 2012-03-19 14:26:52 +0000 |
---|---|---|
committer | cletavernie | 2012-03-19 14:26:52 +0000 |
commit | ae4b6349f545d41c386ca6a15c8ed0403ae55044 (patch) | |
tree | 8f820e9874bc5ee52559d2aeb05be99a78811868 /deprecated/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/filters/HideEAnnotationsViewerFilter.java | |
parent | 6fc2fbbf3c1e89213cea89fbb011613b00aa6235 (diff) | |
download | org.eclipse.papyrus-ae4b6349f545d41c386ca6a15c8ed0403ae55044.tar.gz org.eclipse.papyrus-ae4b6349f545d41c386ca6a15c8ed0403ae55044.tar.xz org.eclipse.papyrus-ae4b6349f545d41c386ca6a15c8ed0403ae55044.zip |
359058: [Refactoring - Architecture] Identify the layers and sub-layers for the Papyrus architecture
https://bugs.eclipse.org/bugs/show_bug.cgi?id=359058
Diffstat (limited to 'deprecated/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/filters/HideEAnnotationsViewerFilter.java')
-rw-r--r-- | deprecated/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/filters/HideEAnnotationsViewerFilter.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/deprecated/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/filters/HideEAnnotationsViewerFilter.java b/deprecated/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/filters/HideEAnnotationsViewerFilter.java new file mode 100644 index 00000000000..43d8ad6e963 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/filters/HideEAnnotationsViewerFilter.java @@ -0,0 +1,34 @@ +/******************************************************************************* + * Copyright (c) 2009 Obeo. + * 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: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.papyrus.navigator.filters; + +import org.eclipse.emf.ecore.EAnnotation; +import org.eclipse.jface.viewers.Viewer; +import org.eclipse.jface.viewers.ViewerFilter; + +/** + * Filter EAnnotation elements in navigator in order to hide. + * + * @author <a href="mailto:jerome.benois@obeo.fr">Jerome Benois</a> + */ +public class HideEAnnotationsViewerFilter extends ViewerFilter { + + /** + * @see org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) + */ + @Override + public boolean select(Viewer viewer, Object parentElement, Object element) { + if(element instanceof EAnnotation) { + return false; + } + return true; + } +} |