Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/actions/ShowHideRelatedContentsAction.java')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/actions/ShowHideRelatedContentsAction.java50
1 files changed, 0 insertions, 50 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/actions/ShowHideRelatedContentsAction.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/actions/ShowHideRelatedContentsAction.java
index 35a8f70c15f..48700ee74eb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/actions/ShowHideRelatedContentsAction.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/actions/ShowHideRelatedContentsAction.java
@@ -29,54 +29,4 @@ public class ShowHideRelatedContentsAction extends ShowHideContentsAction {
super(Messages.ShowHideRelatedContentsAction_Title, Messages.ShowHideRelatedContentsAction_Message, ShowHideRelatedContentsEditPolicy.SHOW_HIDE_RELATED_CONTENTS_POLICY);
}
- // /**
- // * {@inheritDoc}
- // */
- // @Override
- // protected void initAction() {
- // super.initAction();
- // setEditorLabelProvider(new EditorLabelProvider());
- // this.representations = new ArrayList<AbstractShowHideAction.EditPartRepresentation>();
- //
- // for(EditPart current : this.selectedElements) {
- // //the selected elements which aren't Classifier are ignored
- // EObject element = ((View)current.getModel()).getElement();
- // if(element instanceof Property) {
- // Type type = ((Property)element).getType();
- // if(type instanceof Classifier) {
- // this.representations.add(new CustomEditPartRepresentation(current, (Classifier)type));
- // }
- // }
- // }
- // this.setEditorLabelProvider(new CustomEditorLabelProvider());
- // this.setContentProvider(new CustomContentProvider());
- //
- // }
- //
- // /**
- // * The Class CustomContentProvider.
- // */
- // protected class CustomContentProvider extends ShowHideContentsAction.ContentProvider {
- //
- // /**
- // * {@inheritDoc}
- // */
- // @Override
- // public Object getParent(Object element) {
- // if(!(element instanceof EditPartRepresentation)) {
- // EditPartRepresentation rep = findEditPartRepresentation(element);
- // if(rep != null) {
- // //element can be owned by the class (rep), or by a superclass (ClassifierRepresentation)
- // List<ClassifierRepresentation> classes = ((CustomEditPartRepresentation)rep).getSuperClasses();
- // for(ClassifierRepresentation classifierRepresentation : classes) {
- // if(classifierRepresentation.getRepresentedClassifier().getOwnedMembers().contains(element)) {
- // return classifierRepresentation;
- // }
- // }
- // }
- // return rep;
- // }
- // return null;
- // }
- // }
}

Back to the top