Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2013-08-30 17:31:15 -0400
committerChristian W. Damus2013-09-06 14:39:00 -0400
commit472c056b545e4d7337641b15d3eb88ee92fc5106 (patch)
treee72eb4dbb5304d20249c4226ae51fb6c503e89d4 /plugins/views/org.eclipse.papyrus.views.search
parent308399619af1dec9a645ddde447838e29d186a31 (diff)
downloadorg.eclipse.papyrus-472c056b545e4d7337641b15d3eb88ee92fc5106.tar.gz
org.eclipse.papyrus-472c056b545e4d7337641b15d3eb88ee92fc5106.tar.xz
org.eclipse.papyrus-472c056b545e4d7337641b15d3eb88ee92fc5106.zip
415371: [CDO] Let a ScopeEntry be created with an externally-provided ServicesRegistry.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=415371
Diffstat (limited to 'plugins/views/org.eclipse.papyrus.views.search')
-rw-r--r--plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/scope/ScopeEntry.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/scope/ScopeEntry.java b/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/scope/ScopeEntry.java
index 8ea82e4ca06..51e3ccdfbd3 100644
--- a/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/scope/ScopeEntry.java
+++ b/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/scope/ScopeEntry.java
@@ -71,7 +71,7 @@ public class ScopeEntry {
public ScopeEntry(URI resourceURI) {
- this(resourceURI, null);
+ this(resourceURI, (IServiceRegistryTracker) null);
}
public ScopeEntry(URI resourceURI, IServiceRegistryTracker serviceRegistryTracker) {
@@ -83,6 +83,15 @@ public class ScopeEntry {
this.servicesRegistry = getServicesRegistry();
}
+ public ScopeEntry(URI resourceURI, ServicesRegistry servicesRegistry) {
+ super();
+
+ this.serviceRegistryTracker = null;
+ this.resourceURI = resourceURI;
+ this.servicesRegistry = servicesRegistry;
+ this.modelSet = getModelSet();
+ }
+
private Collection<IEditorPart> getEditors() {
Collection<IEditorPart> results = new HashSet<IEditorPart>();
IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
@@ -149,10 +158,6 @@ public class ScopeEntry {
return modelSet;
}
- public void setModelSet(ModelSet modelSet) {
- this.modelSet = modelSet;
- }
-
private IEditorPart editorOnResource() {
Collection<IEditorPart> editors = getEditors();

Back to the top