mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
added help id to launch tabs
This commit is contained in:
parent
a6efadb09a
commit
99eeb85fa8
9 changed files with 66 additions and 4 deletions
|
@ -1,3 +1,15 @@
|
|||
2003-09-22 David Inglis
|
||||
Add help context IDs to plugin and associate ids to each launch tab control.
|
||||
|
||||
src/org/eclipse/cdt/launch/internal/ui/LaunchUIPlugin.java
|
||||
src/org/eclipse/cdt/launch/ui/ICDTLaunchHelpContextIds.java
|
||||
src/org/eclipse/cdt/launch/ui/CArgumentsTab.java
|
||||
src/org/eclipse/cdt/launch/ui/CDebuggerTab.java
|
||||
src/org/eclipse/cdt/launch/ui/CEnvironmentTab.java
|
||||
src/org/eclipse/cdt/launch/ui/CMainTab.java
|
||||
src/org/eclipse/cdt/launch/ui/CSourceLookupTab.java
|
||||
src/org/eclipse/cdt/launch/ui/CorefileDebuggerTab.java
|
||||
|
||||
2003-08-05 Mikhail Khodjaiants
|
||||
* src/org/eclipse/cdt/launch/sourcelookup/DefaultSourceLocator.java
|
||||
Check if the project saved in the launch configuration equals to the project set
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.eclipse.ui.plugin.AbstractUIPlugin;
|
|||
*/
|
||||
public class LaunchUIPlugin extends AbstractUIPlugin
|
||||
implements IDebugEventSetListener {
|
||||
public static final String PLUGIN_ID = "org.eclipse.cdt.launch";
|
||||
public static final String PLUGIN_ID = LaunchUIPlugin.getUniqueIdentifier();
|
||||
|
||||
/**
|
||||
* Launch UI plug-in instance
|
||||
|
@ -39,6 +39,7 @@ public class LaunchUIPlugin extends AbstractUIPlugin
|
|||
super(descriptor);
|
||||
setDefault(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Java Debug UI plug-in instance
|
||||
*
|
||||
|
|
|
@ -22,6 +22,7 @@ import org.eclipse.swt.layout.GridLayout;
|
|||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Label;
|
||||
import org.eclipse.swt.widgets.Text;
|
||||
import org.eclipse.ui.help.WorkbenchHelp;
|
||||
|
||||
/**
|
||||
* A launch configuration tab that displays and edits program arguments,
|
||||
|
@ -46,6 +47,9 @@ public class CArgumentsTab extends CLaunchConfigurationTab {
|
|||
|
||||
Composite comp = new Composite(parent, SWT.NONE);
|
||||
setControl(comp);
|
||||
|
||||
WorkbenchHelp.setHelp(getControl(), ICDTLaunchHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_ARGUMNETS_TAB);
|
||||
|
||||
GridLayout topLayout = new GridLayout();
|
||||
comp.setLayout(topLayout);
|
||||
GridData gd;
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.eclipse.swt.widgets.Combo;
|
|||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Group;
|
||||
import org.eclipse.swt.widgets.Label;
|
||||
import org.eclipse.ui.help.WorkbenchHelp;
|
||||
|
||||
public class CDebuggerTab extends AbstractCDebuggerTab {
|
||||
|
||||
|
@ -45,6 +46,9 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
|
|||
|
||||
Composite comp = new Composite(parent, SWT.NONE);
|
||||
setControl(comp);
|
||||
|
||||
WorkbenchHelp.setHelp(getControl(), ICDTLaunchHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_DEBBUGER_TAB);
|
||||
|
||||
GridLayout layout = new GridLayout(2, false);
|
||||
comp.setLayout(layout);
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ import org.eclipse.swt.widgets.Shell;
|
|||
import org.eclipse.swt.widgets.Table;
|
||||
import org.eclipse.swt.widgets.TableColumn;
|
||||
import org.eclipse.swt.widgets.Text;
|
||||
import org.eclipse.ui.help.WorkbenchHelp;
|
||||
|
||||
public class CEnvironmentTab extends CLaunchConfigurationTab {
|
||||
|
||||
|
@ -193,6 +194,10 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
|
|||
public void createControl(Composite parent) {
|
||||
fElements = new Properties();
|
||||
Composite control = new Composite(parent, SWT.NONE);
|
||||
setControl(control);
|
||||
|
||||
WorkbenchHelp.setHelp(getControl(), ICDTLaunchHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_ENVIRONMENT_TAB);
|
||||
|
||||
GridLayout gl = new GridLayout(2, false);
|
||||
|
||||
createVerticalSpacer(control, 2);
|
||||
|
@ -200,7 +205,6 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
|
|||
control.setLayout(gl);
|
||||
createVariableList(control);
|
||||
createButtons(control);
|
||||
setControl(control);
|
||||
fVariableList.setInput(fElements);
|
||||
fVariableList.getTable().setFocus();
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ import org.eclipse.swt.widgets.Display;
|
|||
import org.eclipse.swt.widgets.Label;
|
||||
import org.eclipse.swt.widgets.Text;
|
||||
import org.eclipse.ui.dialogs.ElementListSelectionDialog;
|
||||
import org.eclipse.ui.help.WorkbenchHelp;
|
||||
|
||||
/**
|
||||
* A launch configuration tab that displays and edits project and
|
||||
|
@ -73,9 +74,13 @@ public class CMainTab extends CLaunchConfigurationTab {
|
|||
|
||||
Composite comp = new Composite(parent, SWT.NONE);
|
||||
setControl(comp);
|
||||
|
||||
WorkbenchHelp.setHelp(getControl(), ICDTLaunchHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_MAIN_TAB);
|
||||
|
||||
GridLayout topLayout = new GridLayout();
|
||||
comp.setLayout(topLayout);
|
||||
|
||||
|
||||
createVerticalSpacer(comp, 1);
|
||||
|
||||
Composite projComp = new Composite(comp, SWT.NONE);
|
||||
|
|
|
@ -19,6 +19,7 @@ import org.eclipse.swt.SWT;
|
|||
import org.eclipse.swt.graphics.Image;
|
||||
import org.eclipse.swt.layout.GridLayout;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.ui.help.WorkbenchHelp;
|
||||
|
||||
/**
|
||||
* Enter type comment.
|
||||
|
@ -36,10 +37,13 @@ public class CSourceLookupTab extends CLaunchConfigurationTab
|
|||
{
|
||||
Composite control = new Composite( parent, SWT.NONE );
|
||||
control.setLayout( new GridLayout() );
|
||||
setControl( control );
|
||||
|
||||
WorkbenchHelp.setHelp(getControl(), ICDTLaunchHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_SOURCELOOKUP_TAB);
|
||||
|
||||
fBlock = new SourceLookupBlock();
|
||||
fBlock.createControl( control );
|
||||
fBlock.setLaunchConfigurationDialog( getLaunchConfigurationDialog() );
|
||||
setControl( control );
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
|
@ -24,6 +24,7 @@ import org.eclipse.swt.widgets.Combo;
|
|||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Group;
|
||||
import org.eclipse.swt.widgets.Label;
|
||||
import org.eclipse.ui.help.WorkbenchHelp;
|
||||
|
||||
public class CorefileDebuggerTab extends AbstractCDebuggerTab {
|
||||
protected Combo fDCombo;
|
||||
|
@ -33,6 +34,9 @@ public class CorefileDebuggerTab extends AbstractCDebuggerTab {
|
|||
public void createControl(Composite parent) {
|
||||
Composite comp = new Composite(parent, SWT.NONE);
|
||||
setControl(comp);
|
||||
|
||||
WorkbenchHelp.setHelp(getControl(), ICDTLaunchHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_DEBBUGER_TAB);
|
||||
|
||||
GridLayout topLayout = new GridLayout(2, false);
|
||||
comp.setLayout(topLayout);
|
||||
Label dlabel = new Label(comp, SWT.NONE);
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Created on 22-Sep-2003
|
||||
*
|
||||
* Copyright (c) 2002,2003 QNX Software Systems Ltd.
|
||||
*
|
||||
* Contributors:
|
||||
* QNX Software Systems - Initial API and implementation
|
||||
***********************************************************************/
|
||||
package org.eclipse.cdt.launch.ui;
|
||||
|
||||
import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
|
||||
|
||||
public interface ICDTLaunchHelpContextIds {
|
||||
|
||||
public static final String PREFIX = LaunchUIPlugin.PLUGIN_ID + "."; //$NON-NLS-1$
|
||||
|
||||
// Launch configuration dialog pages
|
||||
public static final String LAUNCH_CONFIGURATION_DIALOG_MAIN_TAB = PREFIX + "launch_configuration_dialog_main_tab"; //$NON-NLS-1$
|
||||
public static final String LAUNCH_CONFIGURATION_DIALOG_ARGUMNETS_TAB = PREFIX + "launch_configuration_dialog_arguments_tab"; //$NON-NLS-1$
|
||||
public static final String LAUNCH_CONFIGURATION_DIALOG_ENVIRONMENT_TAB = PREFIX + "launch_configuration_dialog_environment_tab"; //$NON-NLS-1$
|
||||
public static final String LAUNCH_CONFIGURATION_DIALOG_DEBBUGER_TAB = PREFIX + "launch_configuration_dialog_debugger_tab"; //$NON-NLS-1$
|
||||
public static final String LAUNCH_CONFIGURATION_DIALOG_SOURCELOOKUP_TAB = PREFIX + "launch_configuration_dialog_source_tab"; //$NON-NLS-1$
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue