Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/results/ViewerMatch.java')
-rw-r--r--plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/results/ViewerMatch.java40
1 files changed, 20 insertions, 20 deletions
diff --git a/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/results/ViewerMatch.java b/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/results/ViewerMatch.java
index b552426b712..126099d1252 100644
--- a/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/results/ViewerMatch.java
+++ b/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/results/ViewerMatch.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2013 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
@@ -23,9 +23,9 @@ import org.eclipse.papyrus.views.search.scope.ScopeEntry;
import org.eclipse.ui.PartInitException;
/**
- *
+ *
* A match raised by a viewer (i.e. something that is a view of a real match) in a model
- *
+ *
*/
public class ViewerMatch extends AbstractResultEntry {
@@ -36,34 +36,34 @@ public class ViewerMatch extends AbstractResultEntry {
public ViewerMatch(Object source, ScopeEntry scopeEntry, Object semanticElement) {
super(UNSPECIFIED, UNSPECIFIED, source, scopeEntry);
- if(semanticElement instanceof EObject) {
- this.URIsemanticElement = EcoreUtil.getURI((EObject)semanticElement);
+ if (semanticElement instanceof EObject) {
+ this.URIsemanticElement = EcoreUtil.getURI((EObject) semanticElement);
}
this.parent = getLastParent(this, scopeEntry);
- // this.parent = new ResultEntry(scopeEntry.getResource(), scopeEntry);
+ // this.parent = new ResultEntry(scopeEntry.getResource(), scopeEntry);
}
public Object getSemanticElement() {
- if(this.URIsemanticElement != null) {
- ResourceSet resSet = ((ScopeEntry)this.getElement()).getModelSet();
+ if (this.URIsemanticElement != null) {
+ ResourceSet resSet = ((ScopeEntry) this.getElement()).getModelSet();
return resSet.getEObject(this.URIsemanticElement, true);
}
return null;
}
public void setSemanticElement(Object semanticElement) {
- if(semanticElement instanceof EObject) {
- this.URIsemanticElement = EcoreUtil.getURI((EObject)semanticElement);
+ if (semanticElement instanceof EObject) {
+ this.URIsemanticElement = EcoreUtil.getURI((EObject) semanticElement);
}
}
/**
- *
+ *
* @see org.eclipse.papyrus.views.search.results.AbstractResultEntry#elementToDisplay()
- *
+ *
* @return
*/
@Override
@@ -72,30 +72,30 @@ public class ViewerMatch extends AbstractResultEntry {
}
/**
- *
+ *
* @see org.eclipse.papyrus.views.search.results.AbstractResultEntry#elementToCheckFilterFor()
- *
+ *
* @return
*/
@Override
public Object elementToCheckFilterFor() {
- if(this.URIsemanticElement != null) {
- ResourceSet resSet = ((ScopeEntry)this.getElement()).getModelSet();
+ if (this.URIsemanticElement != null) {
+ ResourceSet resSet = ((ScopeEntry) this.getElement()).getModelSet();
return resSet.getEObject(this.URIsemanticElement, true);
}
return null;
}
/**
- *
+ *
* @see org.eclipse.papyrus.views.search.results.AbstractResultEntry#openElement()
- *
+ *
* @return
*/
@Override
public Object openElement(OpenElementService service) throws ServiceException, PartInitException {
- if(this.getSource() instanceof EObject) {
- return service.openElement((EObject)this.getSource());
+ if (this.getSource() instanceof EObject) {
+ return service.openElement((EObject) this.getSource());
}
return null;
}

Back to the top