Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-11-08 20:31:15 +0000
committerMichael Valenta2004-11-08 20:31:15 +0000
commitd9f52d4d37de9dc4c1fad6ae40d9edda00edcd3c (patch)
treec130854b4274ee87291e41ea7118b77e4f060033
parent0183afede75a7a0c6d556b9ba4a438819923cc74 (diff)
downloadeclipse.platform.team-d9f52d4d37de9dc4c1fad6ae40d9edda00edcd3c.tar.gz
eclipse.platform.team-d9f52d4d37de9dc4c1fad6ae40d9edda00edcd3c.tar.xz
eclipse.platform.team-d9f52d4d37de9dc4c1fad6ae40d9edda00edcd3c.zip
Bug 76384 org.eclipse.team.ui loaded in headless applications
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java
index e18688c5c..72ff61fda 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java
@@ -15,6 +15,7 @@ import java.lang.reflect.InvocationTargetException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.*;
+
import org.eclipse.compare.structuremergeviewer.DiffNode;
import org.eclipse.core.runtime.*;
import org.eclipse.core.runtime.jobs.Job;
@@ -198,6 +199,10 @@ public class TeamUIPlugin extends AbstractUIPlugin {
getPreferenceStore().setValue(IPreferenceIds.PREF_WORKSPACE_FIRST_TIME, false);
return Status.OK_STATUS;
}
+ public boolean shouldRun() {
+ // Only initialize the capability helper if the UI is running (bug 76348)
+ return PlatformUI.isWorkbenchRunning();
+ }
};
capabilityInitializer.setSystem(true);
capabilityInitializer.setPriority(Job.DECORATE);

Back to the top