diff options
author | Andrey Loskutov | 2018-07-15 16:04:26 +0000 |
---|---|---|
committer | Andrey Loskutov | 2018-07-15 16:04:26 +0000 |
commit | 6faead300d76ddccb8996b9df8f3a1bf8e79c319 (patch) | |
tree | 27d1b742b11e21b7fcf4f424707b47e117a07153 /bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java | |
parent | 157b8797acc0e9ff4de61a3006b55700ae45f644 (diff) | |
download | eclipse.platform.team-6faead300d76ddccb8996b9df8f3a1bf8e79c319.tar.gz eclipse.platform.team-6faead300d76ddccb8996b9df8f3a1bf8e79c319.tar.xz eclipse.platform.team-6faead300d76ddccb8996b9df8f3a1bf8e79c319.zip |
Bug 537044 - stop running team job for migration from 2.x to 3.0Y20180801-2200Y20180725-2200Y20180723-0635Y20180723-0615Y20180720-0300Y20180718-2200S4_9_0_M2I20180806-2000I20180806-0300I20180805-2000I20180804-1500I20180803-2000I20180801-2000I20180801-0820I20180801-0800I20180801-0550I20180731-2000I20180731-1305I20180731-1250I20180731-1025I20180731-0800I20180731-0340I20180730-2240I20180730-2000I20180730-0800I20180729-2000I20180729-0800I20180728-1500I20180728-0805I20180727-2000I20180726-2000I20180725-2000I20180724-2000I20180723-2000I20180722-2000I20180721-1500I20180720-2000I20180719-2000I20180718-2000I20180718-0130I20180717-2000I20180717-0320I20180716-2000I20180716-0715I20180715-2000
According to bug 67778 comment 4, we can stop running this job. I doubt
anyone migrates from Eclipse 2.x to 4.9 and has projects with disabled
capabilities.
Change-Id: I7d5845baf48dd203fb4f38c7582342fc01888760
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java')
-rw-r--r-- | bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java | 28 |
1 files changed, 0 insertions, 28 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 6d70df919..440b331b9 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,7 +15,6 @@ import java.net.URL; import java.util.*; import org.eclipse.core.runtime.*; -import org.eclipse.core.runtime.jobs.Job; import org.eclipse.core.runtime.preferences.InstanceScope; import org.eclipse.jface.dialogs.MessageDialogWithToggle; import org.eclipse.jface.operation.IRunnableWithProgress; @@ -162,7 +161,6 @@ public class TeamUIPlugin extends AbstractUIPlugin { store.setDefault(IPreferenceIds.SYNCHRONIZING_DEFAULT_PARTICIPANT_SEC_ID, GlobalRefreshAction.NO_DEFAULT_PARTICPANT); store.setDefault(IPreferenceIds.SYNCHRONIZING_COMPLETE_PERSPECTIVE, MessageDialogWithToggle.PROMPT); store.setDefault(IPreferenceIds.SYNCVIEW_REMOVE_FROM_VIEW_NO_PROMPT, false); - store.setDefault(IPreferenceIds.PREF_WORKSPACE_FIRST_TIME, true); // Convert the old compressed folder preference to the new layout preference if (!store.isDefault(IPreferenceIds.SYNCVIEW_COMPRESS_FOLDERS) && !store.getBoolean(IPreferenceIds.SYNCVIEW_COMPRESS_FOLDERS)) { @@ -221,32 +219,6 @@ public class TeamUIPlugin extends AbstractUIPlugin { debugRegistration = context.registerService(DebugOptionsListener.class, Policy.DEBUG_OPTIONS_LISTENER, properties); initializeImages(this); - - // This is a backwards compatibility check to ensure that repository - // provider capability are enabled automatically if an old workspace is - // opened for the first time and contains projects shared with a disabled - // capability. We defer the actual processing of the projects to another - // job since it is not critical to the startup of the team ui plugin. - IPreferenceStore store = getPreferenceStore(); - if (store.getBoolean(IPreferenceIds.PREF_WORKSPACE_FIRST_TIME)) { - Job capabilityInitializer = new Job(TeamUIMessages.LoadingTeamCapabilities) { - @Override - protected IStatus run(IProgressMonitor monitor) { - TeamCapabilityHelper.getInstance(); - getPreferenceStore().setValue(IPreferenceIds.PREF_WORKSPACE_FIRST_TIME, false); - return Status.OK_STATUS; - } - @Override - 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); - capabilityInitializer.schedule(1000); - } - StreamMergerDelegate.start(); } |