diff options
author | Vincent Lorenzo | 2014-07-18 14:38:14 +0000 |
---|---|---|
committer | Vincent Lorenzo | 2014-07-18 14:38:14 +0000 |
commit | 805ba434fad42e42065b2ac477f10345f93ed632 (patch) | |
tree | 6a3853300ce5ea1d60e29cf31aacaf507af8334c | |
parent | 6dfe1a2609192c07d895c3432801c0930a9f1c2c (diff) | |
download | org.eclipse.papyrus-805ba434fad42e42065b2ac477f10345f93ed632.tar.gz org.eclipse.papyrus-805ba434fad42e42065b2ac477f10345f93ed632.tar.xz org.eclipse.papyrus-805ba434fad42e42065b2ac477f10345f93ed632.zip |
remove Override annotation
-rw-r--r-- | plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/SynchronizableGmfDiagramEditor.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/SynchronizableGmfDiagramEditor.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/SynchronizableGmfDiagramEditor.java index faee3d572c7..9f437a4e993 100644 --- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/SynchronizableGmfDiagramEditor.java +++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/SynchronizableGmfDiagramEditor.java @@ -62,7 +62,6 @@ public class SynchronizableGmfDiagramEditor extends DiagramDocumentEditor implem * @see org.eclipse.papyrus.infra.core.ui.IRevealSemanticElement#revealSemanticElement(java.util.List)
*
*/
- @Override
public void revealSemanticElement(List<?> elementList) {
revealElement(elementList);
}
@@ -70,7 +69,6 @@ public class SynchronizableGmfDiagramEditor extends DiagramDocumentEditor implem /**
* {@inheritDoc}
*/
- @Override
public boolean revealElement(Object element) {
return revealElement(Collections.singleton(element));
}
@@ -84,7 +82,6 @@ public class SynchronizableGmfDiagramEditor extends DiagramDocumentEditor implem * @see org.eclipse.papyrus.infra.core.ui.IRevealSemanticElement#revealSemanticElement(java.util.List)
*
*/
- @Override
public boolean revealElement(Collection<?> elementList) {
//create an instance that can get semantic element from gmf
SemanticFromGMFElement semanticFromGMFElement = new SemanticFromGMFElement();
@@ -106,7 +103,7 @@ public class SynchronizableGmfDiagramEditor extends DiagramDocumentEditor implem Object currentElement = semanticFromGMFElement.getSemanticElement(currentEditPart);
if(clonedList.contains(currentElement)) {
clonedList.remove(currentElement);
- researchedEditPart = ((IGraphicalEditPart)currentEditPart);
+ researchedEditPart = (IGraphicalEditPart)currentEditPart;
partSelection.add(researchedEditPart);
}
@@ -127,7 +124,7 @@ public class SynchronizableGmfDiagramEditor extends DiagramDocumentEditor implem // the second test, as the model element is not a PrimaryEditPart, is to allow the selection even if the user selected it with other elements
// and reset the selection if only the model is selected
- if(clonedList.isEmpty() || (clonedList.size() == 1 && clonedList.get(0) instanceof org.eclipse.uml2.uml.internal.impl.ModelImpl)) {
+ if(clonedList.isEmpty() || clonedList.size() == 1 && clonedList.get(0) instanceof org.eclipse.uml2.uml.internal.impl.ModelImpl) {
//all parts have been found
IStructuredSelection sSelection = new StructuredSelection(partSelection);
// this is used instead of graphicalViewer.select(IGraphicalEditPart) as the later only allows the selection of a single element
|