Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-03-16 09:52:42 +0000
committerUwe Stieber2012-03-16 09:52:42 +0000
commite70b8354c2f91634c956cbc57838028ca19522d4 (patch)
tree104e11d66579a406ecdcaf1bbcd935d46d136923 /plugins/org.eclipse.tcf.cdt.ui
parent366265dd5a6083ff9004ee7372b9430613d081ae (diff)
downloadorg.eclipse.tcf-e70b8354c2f91634c956cbc57838028ca19522d4.tar.gz
org.eclipse.tcf-e70b8354c2f91634c956cbc57838028ca19522d4.tar.xz
org.eclipse.tcf-e70b8354c2f91634c956cbc57838028ca19522d4.zip
Target Explorer / Launches: Move initialization of TCF Remote Application launch hiding to the Target Explorer.
Diffstat (limited to 'plugins/org.eclipse.tcf.cdt.ui')
-rw-r--r--plugins/org.eclipse.tcf.cdt.ui/plugin.xml5
-rw-r--r--plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/StartupPreferencesInitializer.java66
2 files changed, 0 insertions, 71 deletions
diff --git a/plugins/org.eclipse.tcf.cdt.ui/plugin.xml b/plugins/org.eclipse.tcf.cdt.ui/plugin.xml
index faef75e1b..cde009c22 100644
--- a/plugins/org.eclipse.tcf.cdt.ui/plugin.xml
+++ b/plugins/org.eclipse.tcf.cdt.ui/plugin.xml
@@ -345,9 +345,4 @@
name="%editor.sourceNotFound.name">
</editor>
</extension>
-
- <!-- Needed to hide the "TCF Remote Application" launch without disabling it alltogether. -->
- <extension point="org.eclipse.ui.startup">
- <startup class="org.eclipse.tcf.internal.cdt.ui.StartupPreferencesInitializer"/>
- </extension>
</plugin>
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/StartupPreferencesInitializer.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/StartupPreferencesInitializer.java
deleted file mode 100644
index f82862b4c..000000000
--- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/StartupPreferencesInitializer.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Wind River Systems, Inc. and others. 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 http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.internal.cdt.ui;
-
-import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
-import org.eclipse.debug.internal.ui.DebugUIPlugin;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.ui.IStartup;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * Set the default TCF CDT plugin preferences
- */
-@SuppressWarnings("restriction")
-public class StartupPreferencesInitializer extends AbstractPreferenceInitializer implements IStartup {
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IStartup#earlyStartup()
- */
- public void earlyStartup() {
- PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
-
- public void run() {
- initializeDefaultPreferences();
- }
- });
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
- */
- @Override
- public void initializeDefaultPreferences() {
-
- // "TCF Remote Application" launch is hidden by default.
- // No longer supported or maintained.
- IPreferenceStore store = DebugUIPlugin.getDefault().getPreferenceStore();
- if (store != null) {
- store.setDefault(IInternalDebugUIConstants.PREF_FILTER_LAUNCH_TYPES, true);
-
- boolean added = false;
- String typeId = "org.eclipse.tcf.cdt.launch.remoteApplicationLaunchType"; //$NON-NLS-1$
-
- String typeList = store.getDefaultString(IInternalDebugUIConstants.PREF_FILTER_TYPE_LIST);
- if ("".equals(typeList)) {
- typeList = typeId;
- added = true;
- } else if (!typeList.contains(typeId)) {
- typeList = typeList + "," + typeId; //$NON-NLS-1$
- added = true;
- }
- if (added) {
- store.setDefault(IInternalDebugUIConstants.PREF_FILTER_TYPE_LIST, typeList);
- }
- }
- }
-
-}

Back to the top