From 8316f290a6eaed07aa0ad78c35df8372b1ab5248 Mon Sep 17 00:00:00 2001 From: John Cortell Date: Thu, 6 May 2010 21:30:54 +0000 Subject: Don't expose internal upstream types as API. Moved GDBJtagDSFCMainTab to internal package --- jtag/org.eclipse.cdt.debug.gdbjtag.ui/plugin.xml | 2 +- .../gdbjtag/internal/ui/GDBJtagDSFCMainTab.java | 45 ++++++++++++++++++++++ .../cdt/debug/gdbjtag/ui/GDBJtagDSFCMainTab.java | 45 ---------------------- 3 files changed, 46 insertions(+), 46 deletions(-) create mode 100644 jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/internal/ui/GDBJtagDSFCMainTab.java delete mode 100644 jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDSFCMainTab.java (limited to 'jtag') diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.ui/plugin.xml b/jtag/org.eclipse.cdt.debug.gdbjtag.ui/plugin.xml index 352ffb0da54..da1a82374d8 100644 --- a/jtag/org.eclipse.cdt.debug.gdbjtag.ui/plugin.xml +++ b/jtag/org.eclipse.cdt.debug.gdbjtag.ui/plugin.xml @@ -117,7 +117,7 @@ diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/internal/ui/GDBJtagDSFCMainTab.java b/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/internal/ui/GDBJtagDSFCMainTab.java new file mode 100644 index 00000000000..1a54d185b4f --- /dev/null +++ b/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/internal/ui/GDBJtagDSFCMainTab.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2007 - 2010 QNX Software Systems 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: + * QNX Software Systems - Initial implementation + *******************************************************************************/ +package org.eclipse.cdt.debug.gdbjtag.internal.ui; + +import java.util.HashSet; + +import org.eclipse.cdt.dsf.gdb.internal.ui.launching.CMainTab; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; +import org.eclipse.debug.core.ILaunchDelegate; + +/** + * @since 7.0 + */ +public class GDBJtagDSFCMainTab extends CMainTab { + + public GDBJtagDSFCMainTab() { + super(CMainTab.DONT_CHECK_PROGRAM | CMainTab.INCLUDE_BUILD_SETTINGS); + } + + /* (non-Javadoc) + * @see org.eclipse.cdt.dsf.gdb.internal.ui.launching.CMainTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) + */ + @Override + public void setDefaults(ILaunchConfigurationWorkingCopy config) { + super.setDefaults(config); + HashSet set = new HashSet(); + set.add(getLaunchConfigurationDialog().getMode()); + try { + ILaunchDelegate preferredDelegate = config.getPreferredDelegate(set); + if (preferredDelegate == null) { + config.setPreferredLaunchDelegate(set, "org.eclipse.cdt.debug.gdbjtag.core.dsfLaunchDelegate"); //$NON-NLS-1$ + } + } catch (CoreException e) {} + } + +} diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDSFCMainTab.java b/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDSFCMainTab.java deleted file mode 100644 index 9db3819f8d9..00000000000 --- a/jtag/org.eclipse.cdt.debug.gdbjtag.ui/src/org/eclipse/cdt/debug/gdbjtag/ui/GDBJtagDSFCMainTab.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 - 2010 QNX Software Systems 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: - * QNX Software Systems - Initial implementation - *******************************************************************************/ -package org.eclipse.cdt.debug.gdbjtag.ui; - -import java.util.HashSet; - -import org.eclipse.cdt.dsf.gdb.internal.ui.launching.CMainTab; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; -import org.eclipse.debug.core.ILaunchDelegate; - -/** - * @since 7.0 - */ -public class GDBJtagDSFCMainTab extends CMainTab { - - public GDBJtagDSFCMainTab() { - super(CMainTab.DONT_CHECK_PROGRAM | CMainTab.INCLUDE_BUILD_SETTINGS); - } - - /* (non-Javadoc) - * @see org.eclipse.cdt.dsf.gdb.internal.ui.launching.CMainTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) - */ - @Override - public void setDefaults(ILaunchConfigurationWorkingCopy config) { - super.setDefaults(config); - HashSet set = new HashSet(); - set.add(getLaunchConfigurationDialog().getMode()); - try { - ILaunchDelegate preferredDelegate = config.getPreferredDelegate(set); - if (preferredDelegate == null) { - config.setPreferredLaunchDelegate(set, "org.eclipse.cdt.debug.gdbjtag.core.dsfLaunchDelegate"); //$NON-NLS-1$ - } - } catch (CoreException e) {} - } - -} -- cgit v1.2.3