Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 277506 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/pde/internal/ui/shared/target/TargetLocationsGroup.java (+4 lines)
Lines 19-24 Link Here
19
import org.eclipse.pde.internal.core.target.IUBundleContainer;
19
import org.eclipse.pde.internal.core.target.IUBundleContainer;
20
import org.eclipse.pde.internal.core.target.TargetDefinition;
20
import org.eclipse.pde.internal.core.target.TargetDefinition;
21
import org.eclipse.pde.internal.core.target.provisional.*;
21
import org.eclipse.pde.internal.core.target.provisional.*;
22
import org.eclipse.pde.internal.ui.IHelpContextIds;
22
import org.eclipse.pde.internal.ui.SWTFactory;
23
import org.eclipse.pde.internal.ui.SWTFactory;
23
import org.eclipse.pde.internal.ui.editor.FormLayoutFactory;
24
import org.eclipse.pde.internal.ui.editor.FormLayoutFactory;
24
import org.eclipse.pde.internal.ui.editor.targetdefinition.TargetEditor;
25
import org.eclipse.pde.internal.ui.editor.targetdefinition.TargetEditor;
Lines 29-34 Link Here
29
import org.eclipse.swt.layout.GridData;
30
import org.eclipse.swt.layout.GridData;
30
import org.eclipse.swt.layout.GridLayout;
31
import org.eclipse.swt.layout.GridLayout;
31
import org.eclipse.swt.widgets.*;
32
import org.eclipse.swt.widgets.*;
33
import org.eclipse.ui.PlatformUI;
32
import org.eclipse.ui.forms.widgets.FormToolkit;
34
import org.eclipse.ui.forms.widgets.FormToolkit;
33
35
34
/**
36
/**
Lines 132-137 Link Here
132
		initializeButtons();
134
		initializeButtons();
133
135
134
		toolkit.paintBordersFor(comp);
136
		toolkit.paintBordersFor(comp);
137
		PlatformUI.getWorkbench().getHelpSystem().setHelp(comp, IHelpContextIds.EDIT_TARGET_WIZARD_LOCATIONS_TAB);
135
	}
138
	}
136
139
137
	/**
140
	/**
Lines 163-168 Link Here
163
166
164
		initializeTreeViewer(atree);
167
		initializeTreeViewer(atree);
165
		initializeButtons();
168
		initializeButtons();
169
		PlatformUI.getWorkbench().getHelpSystem().setHelp(comp, IHelpContextIds.EDIT_TARGET_WIZARD_LOCATIONS_TAB);
166
	}
170
	}
167
171
168
	/**
172
	/**
(-)src/org/eclipse/pde/internal/ui/shared/target/TargetContentsGroup.java (-2 / +4 lines)
Lines 30-37 Link Here
30
import org.eclipse.pde.internal.core.DependencyManager;
30
import org.eclipse.pde.internal.core.DependencyManager;
31
import org.eclipse.pde.internal.core.PDEState;
31
import org.eclipse.pde.internal.core.PDEState;
32
import org.eclipse.pde.internal.core.target.provisional.*;
32
import org.eclipse.pde.internal.core.target.provisional.*;
33
import org.eclipse.pde.internal.ui.PDEPlugin;
33
import org.eclipse.pde.internal.ui.*;
34
import org.eclipse.pde.internal.ui.SWTFactory;
35
import org.eclipse.pde.internal.ui.editor.targetdefinition.TargetEditor;
34
import org.eclipse.pde.internal.ui.editor.targetdefinition.TargetEditor;
36
import org.eclipse.pde.internal.ui.parts.ComboPart;
35
import org.eclipse.pde.internal.ui.parts.ComboPart;
37
import org.eclipse.pde.internal.ui.wizards.target.TargetDefinitionContentPage;
36
import org.eclipse.pde.internal.ui.wizards.target.TargetDefinitionContentPage;
Lines 41-46 Link Here
41
import org.eclipse.swt.layout.GridData;
40
import org.eclipse.swt.layout.GridData;
42
import org.eclipse.swt.layout.GridLayout;
41
import org.eclipse.swt.layout.GridLayout;
43
import org.eclipse.swt.widgets.*;
42
import org.eclipse.swt.widgets.*;
43
import org.eclipse.ui.PlatformUI;
44
import org.eclipse.ui.dialogs.FilteredTree;
44
import org.eclipse.ui.dialogs.FilteredTree;
45
import org.eclipse.ui.dialogs.PatternFilter;
45
import org.eclipse.ui.dialogs.PatternFilter;
46
import org.eclipse.ui.forms.widgets.FormToolkit;
46
import org.eclipse.ui.forms.widgets.FormToolkit;
Lines 104-109 Link Here
104
		PatternFilter filter = new PatternFilter();
104
		PatternFilter filter = new PatternFilter();
105
		filter.setIncludeLeadingWildcard(true);
105
		filter.setIncludeLeadingWildcard(true);
106
		super.init(SWT.NONE, filter);
106
		super.init(SWT.NONE, filter);
107
		PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IHelpContextIds.EDIT_TARGET_WIZARD_CONTENT_TAB);
107
	}
108
	}
108
109
109
	public TargetContentsGroup(Composite parent, FormToolkit toolkit) {
110
	public TargetContentsGroup(Composite parent, FormToolkit toolkit) {
Lines 113-118 Link Here
113
		PatternFilter filter = new PatternFilter();
114
		PatternFilter filter = new PatternFilter();
114
		filter.setIncludeLeadingWildcard(true);
115
		filter.setIncludeLeadingWildcard(true);
115
		super.init(SWT.NONE, filter);
116
		super.init(SWT.NONE, filter);
117
		PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IHelpContextIds.EDIT_TARGET_WIZARD_CONTENT_TAB);
116
	}
118
	}
117
119
118
	/**
120
	/**
(-)src/org/eclipse/pde/internal/ui/IHelpContextIds.java (-9 / +20 lines)
Lines 19-35 Link Here
19
	public static final String BUILD_OPTIONS_PREFERENCE_PAGE = PREFIX + "build_options_preference_page"; //$NON-NLS-1$
19
	public static final String BUILD_OPTIONS_PREFERENCE_PAGE = PREFIX + "build_options_preference_page"; //$NON-NLS-1$
20
	public static final String EDITOR_PREFERENCE_PAGE = PREFIX + "editor_preference_page"; //$NON-NLS-1$
20
	public static final String EDITOR_PREFERENCE_PAGE = PREFIX + "editor_preference_page"; //$NON-NLS-1$
21
	public static final String OSGI_PREFERENCE_PAGE = PREFIX + "osgi_preference_page"; //$NON-NLS-1$
21
	public static final String OSGI_PREFERENCE_PAGE = PREFIX + "osgi_preference_page"; //$NON-NLS-1$
22
	public static final String SOURCE_PREFERENCE_PAGE = PREFIX + "source_preference_page"; //$NON-NLS-1$
22
	//public static final String SOURCE_PREFERENCE_PAGE = PREFIX + "source_preference_page"; //$NON-NLS-1$
23
	public static final String TARGET_PLUGINS_PREFERENCE_PAGE = PREFIX + "target_plugins_preference_page"; //$NON-NLS-1$
23
	//public static final String TARGET_PLUGINS_PREFERENCE_PAGE = PREFIX + "target_plugins_preference_page"; //$NON-NLS-1$
24
	public static final String TARGET_PROVISIONERS_PREFERENCE_PAGE = PREFIX + "target_provisioners_preference_page"; //$NON-NLS-1$
24
	public static final String TARGET_PROVISIONERS_PREFERENCE_PAGE = PREFIX + "target_provisioners_preference_page"; //$NON-NLS-1$
25
	public static final String IMPLICIT_PLUGINS_PREFERENCE_PAGE = PREFIX + "implicit_plugins_preference_page"; //$NON-NLS-1$
25
	//public static final String IMPLICIT_PLUGINS_PREFERENCE_PAGE = PREFIX + "implicit_plugins_preference_page"; //$NON-NLS-1$
26
	public static final String IMPLICIT_PLUGINS_SELECTION_DIALOG = PREFIX + "implicit_plugins_selection_dialog"; //$NON-NLS-1$
26
	//public static final String IMPLICIT_PLUGINS_SELECTION_DIALOG = PREFIX + "implicit_plugins_selection_dialog"; //$NON-NLS-1$
27
	public static final String LAUNCHING_ARGS_PREFERENCE_PAGE = PREFIX + "launching_args_preference_page"; //$NON-NLS-1$
27
	//public static final String LAUNCHING_ARGS_PREFERENCE_PAGE = PREFIX + "launching_args_preference_page"; //$NON-NLS-1$
28
	public static final String COMPILERS_PREFERENCE_PAGE = PREFIX + "compilers_preference_page"; //$NON-NLS-1$
28
	public static final String COMPILERS_PREFERENCE_PAGE = PREFIX + "compilers_preference_page"; //$NON-NLS-1$
29
	public static final String PROJECT_SELECTION_DIALOG = PREFIX + "project_selection_dialog"; //$NON-NLS-1$
29
	public static final String PROJECT_SELECTION_DIALOG = PREFIX + "project_selection_dialog"; //$NON-NLS-1$
30
	public static final String TARGET_ENVIRONMENT_PREFERENCE_PAGE = PREFIX + "target_environment_preference_page"; //$NON-NLS-1$
30
	//public static final String TARGET_ENVIRONMENT_PREFERENCE_PAGE = PREFIX + "target_environment_preference_page"; //$NON-NLS-1$
31
	public static final String TARGET_PLATFORM_PREFERENCE_PAGE = PREFIX + "target_platform_preference_page"; //$NON-NLS-1$
31
	public static final String TARGET_PLATFORM_PREFERENCE_PAGE = PREFIX + "target_platform_preference_page"; //$NON-NLS-1$
32
	public static final String TARGET_SELECTION_DIALOG = PREFIX + "target_selection_dialog"; //$NON-NLS-1$
32
	//public static final String TARGET_SELECTION_DIALOG = PREFIX + "target_selection_dialog"; //$NON-NLS-1$
33
33
34
	// Property Pages
34
	// Property Pages
35
	public static final String SELFHOSTING_PROPERTY_PAGE = PREFIX + "selfhosting_property_page"; //$NON-NLS-1$
35
	public static final String SELFHOSTING_PROPERTY_PAGE = PREFIX + "selfhosting_property_page"; //$NON-NLS-1$
Lines 116-122 Link Here
116
	public static final String EXTERNALIZE_STRINGS_PAGE = PREFIX + "externalize_strings_page"; //$NON-NLS-1$
116
	public static final String EXTERNALIZE_STRINGS_PAGE = PREFIX + "externalize_strings_page"; //$NON-NLS-1$
117
	public static final String CHEAT_SHEET_PAGE = PREFIX + "cheat_sheet_page"; //$NON-NLS-1$
117
	public static final String CHEAT_SHEET_PAGE = PREFIX + "cheat_sheet_page"; //$NON-NLS-1$
118
	public static final String PRODUCT_FILE_PAGE = PREFIX + "product_file_page"; //$NON-NLS-1$
118
	public static final String PRODUCT_FILE_PAGE = PREFIX + "product_file_page"; //$NON-NLS-1$
119
	//This TARGET_DEFINITION_PAGE points to old target help.
119
	public static final String TARGET_DEFINITION_PAGE = PREFIX + "target_definition_page"; //$NON-NLS-1$
120
	public static final String TARGET_DEFINITION_PAGE = PREFIX + "target_definition_page"; //$NON-NLS-1$
121
	//These are the new target help links
122
	public static final String NEW_TARGET_WIZARD = PREFIX + "new_target_wizard"; //$NON-NLS-1$
123
	public static final String EDIT_TARGET_WIZARD = PREFIX + "edit_target_wizard"; //$NON-NLS-1$
124
	public static final String EDIT_TARGET_WIZARD_LOCATIONS_TAB = PREFIX + "edit_target_wizard_locations_tab"; //$NON-NLS-1$
125
	public static final String EDIT_TARGET_WIZARD_ARGUMENT_TAB = PREFIX + "edit_target_wizard_argument_tab"; //$NON-NLS-1$
126
	public static final String EDIT_TARGET_WIZARD_CONTENT_TAB = PREFIX + "edit_target_wizard_content_tab"; //$NON-NLS-1$
127
	public static final String EDIT_TARGET_WIZARD_ENVIRONMENT_TAB = PREFIX + "edit_target_wizard_environment_tab"; //$NON-NLS-1$
128
	public static final String EDIT_TARGET_WIZARD_IMPLICIT_TAB = PREFIX + "edit_target_wizard_implicit_tab"; //$NON-NLS-1$
120
	public static final String TOC_PAGE = PREFIX + "toc_page"; //$NON-NLS-1$
129
	public static final String TOC_PAGE = PREFIX + "toc_page"; //$NON-NLS-1$
121
130
122
	public static final String XHTML_CONVERSION_PAGE = PREFIX + "xhtml_conversion_page"; //$NON-NLS-1$
131
	public static final String XHTML_CONVERSION_PAGE = PREFIX + "xhtml_conversion_page"; //$NON-NLS-1$
Lines 239-246 Link Here
239
	public static final String OVERVIEW_PAGE = PREFIX + "overview_page"; //$NON-NLS-1$
248
	public static final String OVERVIEW_PAGE = PREFIX + "overview_page"; //$NON-NLS-1$
240
	public static final String LICENSING_PAGE = PREFIX + "licensing_page"; //$NON-NLS-1$
249
	public static final String LICENSING_PAGE = PREFIX + "licensing_page"; //$NON-NLS-1$
241
250
242
	public static final String ENVIRONMENT_PAGE = PREFIX + "environment_page"; //$NON-NLS-1$	
251
	public static final String TARGET_EDITOR = PREFIX + "target_editor"; //$NON-NLS-1$
243
	public static final String TARGET_OVERVIEW_PAGE = PREFIX + "target_overview_page"; //$NON-NLS-1$
252
	public static final String TARGET_EDITOR_ENVIRONMENT_PAGE = PREFIX + "target_editor_environment_page"; //$NON-NLS-1$	
253
	public static final String TARGET_EDITOR_DEFINITION_PAGE = PREFIX + "target_editor_definition_page"; //$NON-NLS-1$
254
	public static final String TARGET_EDITOR_CONTENT_PAGE = PREFIX + "target_editor_content_page"; //$NON-NLS-1$
244
255
245
	// Tools
256
	// Tools
246
	public static final String ORGANIZE_MANIFESTS = PREFIX + "organize_manifest"; //$NON-NLS-1$
257
	public static final String ORGANIZE_MANIFESTS = PREFIX + "organize_manifest"; //$NON-NLS-1$
(-)src/org/eclipse/pde/internal/ui/wizards/target/TargetDefinitionContentPage.java (-3 / +4 lines)
Lines 184-189 Link Here
184
		depTab.setText(PDEUIMessages.TargetDefinitionEnvironmentPage_5);
184
		depTab.setText(PDEUIMessages.TargetDefinitionEnvironmentPage_5);
185
		depTab.setControl(createImplicitTabContents(tabs));
185
		depTab.setControl(createImplicitTabContents(tabs));
186
186
187
		PlatformUI.getWorkbench().getHelpSystem().setHelp(comp, IHelpContextIds.EDIT_TARGET_WIZARD);
187
		initializeListeners();
188
		initializeListeners();
188
		targetChanged(getTargetDefinition());
189
		targetChanged(getTargetDefinition());
189
		setControl(comp);
190
		setControl(comp);
Lines 361-367 Link Here
361
				getTargetDefinition().setNL(getModelValue(value));
362
				getTargetDefinition().setNL(getModelValue(value));
362
			}
363
			}
363
		});
364
		});
364
365
		PlatformUI.getWorkbench().getHelpSystem().setHelp(group, IHelpContextIds.EDIT_TARGET_WIZARD_ENVIRONMENT_TAB);
365
	}
366
	}
366
367
367
	/**
368
	/**
Lines 541-547 Link Here
541
542
542
		Button vmVars = SWTFactory.createPushButton(buttons, PDEUIMessages.JavaArgumentsTab_vmVariables, null, GridData.HORIZONTAL_ALIGN_END);
543
		Button vmVars = SWTFactory.createPushButton(buttons, PDEUIMessages.JavaArgumentsTab_vmVariables, null, GridData.HORIZONTAL_ALIGN_END);
543
		vmVars.addSelectionListener(getVariablesListener(fVMArgs));
544
		vmVars.addSelectionListener(getVariablesListener(fVMArgs));
544
545
		PlatformUI.getWorkbench().getHelpSystem().setHelp(container, IHelpContextIds.EDIT_TARGET_WIZARD_ARGUMENT_TAB);
545
		return container;
546
		return container;
546
	}
547
	}
547
548
Lines 601-607 Link Here
601
		createImpLabel(container);
602
		createImpLabel(container);
602
		createImpTable(container);
603
		createImpTable(container);
603
		createImpButtons(container);
604
		createImpButtons(container);
604
		// TODO: PlatformUI.getWorkbench().getHelpSystem().setHelp(container, IHelpContextIds.IMPLICIT_PLUGINS_PREFERENCE_PAGE);
605
		PlatformUI.getWorkbench().getHelpSystem().setHelp(container, IHelpContextIds.EDIT_TARGET_WIZARD_IMPLICIT_TAB);
605
		return container;
606
		return container;
606
	}
607
	}
607
608
(-)src/org/eclipse/pde/internal/ui/wizards/target/TargetCreationPage.java (-233 / +235 lines)
Lines 1-233 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2009 IBM Corporation and others.
2
 * Copyright (c) 2005, 2009 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.pde.internal.ui.wizards.target;
11
package org.eclipse.pde.internal.ui.wizards.target;
12
12
13
import org.eclipse.core.runtime.CoreException;
13
import org.eclipse.core.runtime.CoreException;
14
import org.eclipse.core.runtime.IConfigurationElement;
14
import org.eclipse.core.runtime.IConfigurationElement;
15
import org.eclipse.jface.dialogs.Dialog;
15
import org.eclipse.jface.dialogs.Dialog;
16
import org.eclipse.jface.wizard.IWizardPage;
16
import org.eclipse.jface.wizard.IWizardPage;
17
import org.eclipse.jface.wizard.WizardSelectionPage;
17
import org.eclipse.jface.wizard.WizardSelectionPage;
18
import org.eclipse.pde.internal.core.PDECore;
18
import org.eclipse.pde.internal.core.PDECore;
19
import org.eclipse.pde.internal.core.target.TargetPlatformService;
19
import org.eclipse.pde.internal.core.target.TargetPlatformService;
20
import org.eclipse.pde.internal.core.target.provisional.ITargetDefinition;
20
import org.eclipse.pde.internal.core.target.provisional.ITargetDefinition;
21
import org.eclipse.pde.internal.core.target.provisional.ITargetPlatformService;
21
import org.eclipse.pde.internal.core.target.provisional.ITargetPlatformService;
22
import org.eclipse.pde.internal.ui.PDEUIMessages;
22
import org.eclipse.pde.internal.ui.*;
23
import org.eclipse.pde.internal.ui.SWTFactory;
23
import org.eclipse.swt.SWT;
24
import org.eclipse.swt.SWT;
24
import org.eclipse.swt.events.SelectionAdapter;
25
import org.eclipse.swt.events.SelectionAdapter;
25
import org.eclipse.swt.events.SelectionEvent;
26
import org.eclipse.swt.events.SelectionEvent;
26
import org.eclipse.swt.layout.GridData;
27
import org.eclipse.swt.layout.GridData;
27
import org.eclipse.swt.widgets.*;
28
import org.eclipse.swt.widgets.*;
28
import org.eclipse.ui.PlatformUI;
29
29
30
/**
30
/**
31
 * First wizard page used to create a target definition. Defines the location where
31
 * First wizard page used to create a target definition. Defines the location where
32
 * the definition will be created and how to seed the definition.
32
 * the definition will be created and how to seed the definition.
33
 */
33
 */
34
public class TargetCreationPage extends WizardSelectionPage {
34
public class TargetCreationPage extends WizardSelectionPage {
35
35
36
	protected static final int USE_EMPTY = 0;
36
	protected static final int USE_EMPTY = 0;
37
	protected static final int USE_DEFAULT = 1;
37
	protected static final int USE_DEFAULT = 1;
38
	protected static final int USE_CURRENT_TP = 2;
38
	protected static final int USE_CURRENT_TP = 2;
39
	protected static final int USE_EXISTING_TARGET = 3;
39
	protected static final int USE_EXISTING_TARGET = 3;
40
40
41
	private Button fEmptyButton;
41
	private Button fEmptyButton;
42
	private Button fDefaultButton;
42
	private Button fDefaultButton;
43
	private Button fCurrentTPButton;
43
	private Button fCurrentTPButton;
44
	private Button fExistingTargetButton;
44
	private Button fExistingTargetButton;
45
	private Combo fTargets;
45
	private Combo fTargets;
46
	private String[] fTargetIds;
46
	private String[] fTargetIds;
47
	private String templateTargetId;
47
	private String templateTargetId;
48
	private ITargetDefinition[] fTargetDefs = new ITargetDefinition[4];
48
	private ITargetDefinition[] fTargetDefs = new ITargetDefinition[4];
49
49
50
	public TargetCreationPage(String pageName) {
50
	public TargetCreationPage(String pageName) {
51
		super(pageName);
51
		super(pageName);
52
		setTitle(PDEUIMessages.TargetProfileWizardPage_title);
52
		setTitle(PDEUIMessages.TargetProfileWizardPage_title);
53
		setDescription(PDEUIMessages.TargetProfileWizardPage_description);
53
		setDescription(PDEUIMessages.TargetProfileWizardPage_description);
54
	}
54
	}
55
55
56
	/**
56
	/**
57
	 * Returns the target service or <code>null</code> if none.
57
	 * Returns the target service or <code>null</code> if none.
58
	 * 
58
	 * 
59
	 * @return target service or <code>null</code>
59
	 * @return target service or <code>null</code>
60
	 */
60
	 */
61
	protected ITargetPlatformService getTargetService() {
61
	protected ITargetPlatformService getTargetService() {
62
		return (ITargetPlatformService) PDECore.getDefault().acquireService(ITargetPlatformService.class.getName());
62
		return (ITargetPlatformService) PDECore.getDefault().acquireService(ITargetPlatformService.class.getName());
63
	}
63
	}
64
64
65
	/* (non-Javadoc)
65
	/* (non-Javadoc)
66
	 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
66
	 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
67
	 */
67
	 */
68
	public void createControl(Composite parent) {
68
	public void createControl(Composite parent) {
69
		Composite comp = SWTFactory.createComposite(parent, 2, 1, GridData.FILL_BOTH);
69
		Composite comp = SWTFactory.createComposite(parent, 2, 1, GridData.FILL_BOTH);
70
		SWTFactory.createLabel(comp, PDEUIMessages.TargetCreationPage_0, 3);
70
		SWTFactory.createLabel(comp, PDEUIMessages.TargetCreationPage_0, 3);
71
71
72
		fEmptyButton = SWTFactory.createRadioButton(comp, PDEUIMessages.TargetCreationPage_1, 2);
72
		fEmptyButton = SWTFactory.createRadioButton(comp, PDEUIMessages.TargetCreationPage_1, 2);
73
		fDefaultButton = SWTFactory.createRadioButton(comp, PDEUIMessages.TargetCreationPage_2, 2);
73
		fDefaultButton = SWTFactory.createRadioButton(comp, PDEUIMessages.TargetCreationPage_2, 2);
74
		fCurrentTPButton = SWTFactory.createRadioButton(comp, PDEUIMessages.TargetCreationPage_3, 2);
74
		fCurrentTPButton = SWTFactory.createRadioButton(comp, PDEUIMessages.TargetCreationPage_3, 2);
75
		fExistingTargetButton = SWTFactory.createRadioButton(comp, PDEUIMessages.TargetCreationPage_4, 1);
75
		fExistingTargetButton = SWTFactory.createRadioButton(comp, PDEUIMessages.TargetCreationPage_4, 1);
76
		fExistingTargetButton.addSelectionListener(new SelectionAdapter() {
76
		fExistingTargetButton.addSelectionListener(new SelectionAdapter() {
77
			public void widgetSelected(SelectionEvent e) {
77
			public void widgetSelected(SelectionEvent e) {
78
				boolean enabled = fExistingTargetButton.getSelection();
78
				boolean enabled = fExistingTargetButton.getSelection();
79
				fTargets.setEnabled(enabled);
79
				fTargets.setEnabled(enabled);
80
			}
80
			}
81
		});
81
		});
82
82
83
		fEmptyButton.setSelection(true);
83
		fEmptyButton.setSelection(true);
84
84
85
		fTargets = SWTFactory.createCombo(comp, SWT.SINGLE | SWT.READ_ONLY, 1, GridData.BEGINNING, null);
85
		fTargets = SWTFactory.createCombo(comp, SWT.SINGLE | SWT.READ_ONLY, 1, GridData.BEGINNING, null);
86
		fTargets.setEnabled(false);
86
		fTargets.setEnabled(false);
87
		initializeTargetCombo();
87
		initializeTargetCombo();
88
		fTargets.addSelectionListener(new SelectionAdapter() {
88
		fTargets.addSelectionListener(new SelectionAdapter() {
89
89
90
			public void widgetSelected(SelectionEvent e) {
90
			public void widgetSelected(SelectionEvent e) {
91
				templateTargetId = fTargetIds[fTargets.getSelectionIndex()];
91
				templateTargetId = fTargetIds[fTargets.getSelectionIndex()];
92
92
93
			}
93
			}
94
		});
94
		});
95
95
96
		Dialog.applyDialogFont(comp);
96
		PlatformUI.getWorkbench().getHelpSystem().setHelp(comp, IHelpContextIds.NEW_TARGET_WIZARD);
97
		setSelectedNode(new EditTargetNode());
97
98
		setControl(comp);
98
		Dialog.applyDialogFont(comp);
99
		setPageComplete(true);
99
		setSelectedNode(new EditTargetNode());
100
	}
100
		setControl(comp);
101
101
		setPageComplete(true);
102
	protected void initializeTargetCombo() {
102
	}
103
		IConfigurationElement[] elements = PDECore.getDefault().getTargetProfileManager().getSortedTargets();
103
104
		fTargetIds = new String[elements.length];
104
	protected void initializeTargetCombo() {
105
		for (int i = 0; i < elements.length; i++) {
105
		IConfigurationElement[] elements = PDECore.getDefault().getTargetProfileManager().getSortedTargets();
106
			String name = elements[i].getAttribute("name"); //$NON-NLS-1$
106
		fTargetIds = new String[elements.length];
107
			if (fTargets.indexOf(name) == -1)
107
		for (int i = 0; i < elements.length; i++) {
108
				fTargets.add(name);
108
			String name = elements[i].getAttribute("name"); //$NON-NLS-1$
109
			fTargetIds[i] = elements[i].getAttribute("id"); //$NON-NLS-1$
109
			if (fTargets.indexOf(name) == -1)
110
		}
110
				fTargets.add(name);
111
		if (elements.length > 0) {
111
			fTargetIds[i] = elements[i].getAttribute("id"); //$NON-NLS-1$
112
			fTargets.select(0);
112
		}
113
			setTargetId(fTargetIds[fTargets.getSelectionIndex()]);
113
		if (elements.length > 0) {
114
		}
114
			fTargets.select(0);
115
	}
115
			setTargetId(fTargetIds[fTargets.getSelectionIndex()]);
116
116
		}
117
	protected int getInitializationOption() {
117
	}
118
		if (fEmptyButton.getSelection())
118
119
			return USE_EMPTY;
119
	protected int getInitializationOption() {
120
		if (fDefaultButton.getSelection())
120
		if (fEmptyButton.getSelection())
121
			return USE_DEFAULT;
121
			return USE_EMPTY;
122
		else if (fCurrentTPButton.getSelection())
122
		if (fDefaultButton.getSelection())
123
			return USE_CURRENT_TP;
123
			return USE_DEFAULT;
124
		return USE_EXISTING_TARGET;
124
		else if (fCurrentTPButton.getSelection())
125
	}
125
			return USE_CURRENT_TP;
126
126
		return USE_EXISTING_TARGET;
127
	protected String getTargetId() {
127
	}
128
		return templateTargetId;
128
129
	}
129
	protected String getTargetId() {
130
130
		return templateTargetId;
131
	protected void setTargetId(String targetId) {
131
	}
132
		templateTargetId = targetId;
132
133
	}
133
	protected void setTargetId(String targetId) {
134
134
		templateTargetId = targetId;
135
	protected ITargetDefinition createTarget(int targetOption) {
135
	}
136
		ITargetPlatformService service = getTargetService();
136
137
		if (service != null) {
137
	protected ITargetDefinition createTarget(int targetOption) {
138
			ITargetDefinition definition = service.newTarget();
138
		ITargetPlatformService service = getTargetService();
139
			switch (targetOption) {
139
		if (service != null) {
140
				case USE_EMPTY :
140
			ITargetDefinition definition = service.newTarget();
141
					definition.setName(PDEUIMessages.TargetCreationPage_6);
141
			switch (targetOption) {
142
					break;
142
				case USE_EMPTY :
143
				case USE_DEFAULT :
143
					definition.setName(PDEUIMessages.TargetCreationPage_6);
144
					try {
144
					break;
145
						populateBasicTarget(definition);
145
				case USE_DEFAULT :
146
					} catch (CoreException e) {
146
					try {
147
						setErrorMessage(e.getMessage());
147
						populateBasicTarget(definition);
148
						return null;
148
					} catch (CoreException e) {
149
					}
149
						setErrorMessage(e.getMessage());
150
					break;
150
						return null;
151
				case USE_CURRENT_TP :
151
					}
152
					try {
152
					break;
153
						populateFromCurrentTargetPlatform(definition);
153
				case USE_CURRENT_TP :
154
					} catch (CoreException e) {
154
					try {
155
						setErrorMessage(e.getMessage());
155
						populateFromCurrentTargetPlatform(definition);
156
						return null;
156
					} catch (CoreException e) {
157
					}
157
						setErrorMessage(e.getMessage());
158
					break;
158
						return null;
159
				case USE_EXISTING_TARGET :
159
					}
160
					try {
160
					break;
161
						populateFromTemplate(definition, getTargetId());
161
				case USE_EXISTING_TARGET :
162
					} catch (CoreException e) {
162
					try {
163
						setErrorMessage(e.getMessage());
163
						populateFromTemplate(definition, getTargetId());
164
						return null;
164
					} catch (CoreException e) {
165
					}
165
						setErrorMessage(e.getMessage());
166
					break;
166
						return null;
167
			}
167
					}
168
			return definition;
168
					break;
169
		}
169
			}
170
		return null;
170
			return definition;
171
	}
171
		}
172
172
		return null;
173
	/**
173
	}
174
	 * Applies basic target settings to the given target definition.
174
175
	 * 
175
	/**
176
	 * @param definition
176
	 * Applies basic target settings to the given target definition.
177
	 * @throws CoreException 
177
	 * 
178
	 */
178
	 * @param definition
179
	private void populateBasicTarget(ITargetDefinition definition) throws CoreException {
179
	 * @throws CoreException 
180
		ITargetPlatformService service = getTargetService();
180
	 */
181
		if (service instanceof TargetPlatformService) {
181
	private void populateBasicTarget(ITargetDefinition definition) throws CoreException {
182
			TargetPlatformService ts = (TargetPlatformService) service;
182
		ITargetPlatformService service = getTargetService();
183
			ITargetDefinition def = ts.newDefaultTargetDefinition();
183
		if (service instanceof TargetPlatformService) {
184
			ts.copyTargetDefinition(def, definition);
184
			TargetPlatformService ts = (TargetPlatformService) service;
185
		}
185
			ITargetDefinition def = ts.newDefaultTargetDefinition();
186
	}
186
			ts.copyTargetDefinition(def, definition);
187
187
		}
188
	/**
188
	}
189
	 * Populates the given definition from current target platform settings.
189
190
	 * 
190
	/**
191
	 * @param definition
191
	 * Populates the given definition from current target platform settings.
192
	 * @throws CoreException 
192
	 * 
193
	 */
193
	 * @param definition
194
	private void populateFromCurrentTargetPlatform(ITargetDefinition definition) throws CoreException {
194
	 * @throws CoreException 
195
		ITargetPlatformService service = getTargetService();
195
	 */
196
		if (service instanceof TargetPlatformService) {
196
	private void populateFromCurrentTargetPlatform(ITargetDefinition definition) throws CoreException {
197
			TargetPlatformService ts = (TargetPlatformService) service;
197
		ITargetPlatformService service = getTargetService();
198
			ts.loadTargetDefinitionFromPreferences(definition);
198
		if (service instanceof TargetPlatformService) {
199
		}
199
			TargetPlatformService ts = (TargetPlatformService) service;
200
	}
200
			ts.loadTargetDefinitionFromPreferences(definition);
201
201
		}
202
	/**
202
	}
203
	 * Populates the given definition from the specified target template.
203
204
	 * 
204
	/**
205
	 * @param definition
205
	 * Populates the given definition from the specified target template.
206
	 * @param id target extension identifier
206
	 * 
207
	 * @exception CoreException if unable to complete
207
	 * @param definition
208
	 */
208
	 * @param id target extension identifier
209
	private void populateFromTemplate(ITargetDefinition definition, String id) throws CoreException {
209
	 * @exception CoreException if unable to complete
210
		ITargetPlatformService service = getTargetService();
210
	 */
211
		if (service != null) {
211
	private void populateFromTemplate(ITargetDefinition definition, String id) throws CoreException {
212
			service.loadTargetDefinition(definition, id);
212
		ITargetPlatformService service = getTargetService();
213
		}
213
		if (service != null) {
214
	}
214
			service.loadTargetDefinition(definition, id);
215
215
		}
216
	/* (non-Javadoc)
216
	}
217
	 * @see org.eclipse.jface.wizard.WizardSelectionPage#getNextPage()
217
218
	 */
218
	/* (non-Javadoc)
219
	public IWizardPage getNextPage() {
219
	 * @see org.eclipse.jface.wizard.WizardSelectionPage#getNextPage()
220
		ITargetDefinition target = null;
220
	 */
221
		int option = getInitializationOption();
221
	public IWizardPage getNextPage() {
222
		if (fTargetDefs[option] == null) {
222
		ITargetDefinition target = null;
223
			fTargetDefs[option] = createTarget(option);
223
		int option = getInitializationOption();
224
		}
224
		if (fTargetDefs[option] == null) {
225
		target = fTargetDefs[option];
225
			fTargetDefs[option] = createTarget(option);
226
		if (target != null) {
226
		}
227
			((NewTargetDefinitionWizard2) getWizard()).setTargetDefinition(target);
227
		target = fTargetDefs[option];
228
			((EditTargetNode) getSelectedNode()).setTargetDefinition(target);
228
		if (target != null) {
229
			return super.getNextPage();
229
			((NewTargetDefinitionWizard2) getWizard()).setTargetDefinition(target);
230
		}
230
			((EditTargetNode) getSelectedNode()).setTargetDefinition(target);
231
		return null;
231
			return super.getNextPage();
232
	}
232
		}
233
}
233
		return null;
234
	}
235
}
(-)src/org/eclipse/pde/internal/ui/editor/targetdefinition/DefinitionPage.java (-6 / +4 lines)
Lines 59-69 Link Here
59
		form.setImage(PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_TARGET_DEFINITION));
59
		form.setImage(PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_TARGET_DEFINITION));
60
		toolkit.decorateFormHeading(form.getForm());
60
		toolkit.decorateFormHeading(form.getForm());
61
		fillBody(managedForm, toolkit);
61
		fillBody(managedForm, toolkit);
62
		// TODO Finish help
63
		((TargetEditor) getEditor()).contributeToToolbar(managedForm.getForm(), ""); //$NON-NLS-1$
62
		((TargetEditor) getEditor()).contributeToToolbar(managedForm.getForm(), ""); //$NON-NLS-1$
64
		((TargetEditor) getEditor()).addForm(managedForm);
63
		((TargetEditor) getEditor()).addForm(managedForm);
65
		form.updateToolBar();
64
		form.updateToolBar();
66
		PlatformUI.getWorkbench().getHelpSystem().setHelp(form.getBody(), IHelpContextIds.TARGET_OVERVIEW_PAGE);
65
		PlatformUI.getWorkbench().getHelpSystem().setHelp(form.getBody(), IHelpContextIds.TARGET_EDITOR_DEFINITION_PAGE);
67
	}
66
	}
68
67
69
	/* (non-Javadoc)
68
	/* (non-Javadoc)
Lines 148-156 Link Here
148
		return true;
147
		return true;
149
	}
148
	}
150
149
151
	// TODO Hook up help toolbar action
150
	protected String getHelpResource() {
152
//	protected String getHelpResource() {
151
		return "/org.eclipse.pde.doc.user/guide/tools/editors/target_editor/definition_page.htm"; //$NON-NLS-1$
153
//		return "/org.eclipse.pde.doc.user/guide/tools/editors/target_definition_editor/overview.htm"; //$NON-NLS-1$
152
	}
154
//	}
155
153
156
}
154
}
(-)src/org/eclipse/pde/internal/ui/editor/targetdefinition/ContentPage.java (-6 / +5 lines)
Lines 14-19 Link Here
14
import org.eclipse.pde.internal.ui.*;
14
import org.eclipse.pde.internal.ui.*;
15
import org.eclipse.pde.internal.ui.editor.FormLayoutFactory;
15
import org.eclipse.pde.internal.ui.editor.FormLayoutFactory;
16
import org.eclipse.swt.widgets.Composite;
16
import org.eclipse.swt.widgets.Composite;
17
import org.eclipse.ui.PlatformUI;
17
import org.eclipse.ui.forms.IManagedForm;
18
import org.eclipse.ui.forms.IManagedForm;
18
import org.eclipse.ui.forms.editor.FormPage;
19
import org.eclipse.ui.forms.editor.FormPage;
19
import org.eclipse.ui.forms.widgets.FormToolkit;
20
import org.eclipse.ui.forms.widgets.FormToolkit;
Lines 52-62 Link Here
52
		form.setImage(PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_TARGET_DEFINITION));
53
		form.setImage(PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_TARGET_DEFINITION));
53
		toolkit.decorateFormHeading(form.getForm());
54
		toolkit.decorateFormHeading(form.getForm());
54
		fillBody(managedForm, toolkit);
55
		fillBody(managedForm, toolkit);
55
		// TODO Finish help
56
		((TargetEditor) getEditor()).contributeToToolbar(managedForm.getForm(), ""); //$NON-NLS-1$
56
		((TargetEditor) getEditor()).contributeToToolbar(managedForm.getForm(), ""); //$NON-NLS-1$
57
		((TargetEditor) getEditor()).addForm(managedForm);
57
		((TargetEditor) getEditor()).addForm(managedForm);
58
		form.updateToolBar();
58
		form.updateToolBar();
59
//		PlatformUI.getWorkbench().getHelpSystem().setHelp(form.getBody(), IHelpContextIds.TARGET_OVERVIEW_PAGE);
59
		PlatformUI.getWorkbench().getHelpSystem().setHelp(form.getBody(), IHelpContextIds.TARGET_EDITOR_CONTENT_PAGE);
60
	}
60
	}
61
61
62
	/* (non-Javadoc)
62
	/* (non-Javadoc)
Lines 81-89 Link Here
81
		return true;
81
		return true;
82
	}
82
	}
83
83
84
	// TODO Hook up help toolbar action
84
	protected String getHelpResource() {
85
//	protected String getHelpResource() {
85
		return "/org.eclipse.pde.doc.user/guide/tools/editors/target_editor/content_page.htm"; //$NON-NLS-1$
86
//		return "/org.eclipse.pde.doc.user/guide/tools/editors/target_definition_editor/overview.htm"; //$NON-NLS-1$
86
	}
87
//	}
88
87
89
}
88
}
(-)src/org/eclipse/pde/internal/ui/editor/targetdefinition/EnvironmentPage.java (-84 / +87 lines)
Lines 1-84 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2009 IBM Corporation and others.
2
 * Copyright (c) 2005, 2009 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.pde.internal.ui.editor.targetdefinition;
11
package org.eclipse.pde.internal.ui.editor.targetdefinition;
12
12
13
import org.eclipse.pde.internal.ui.*;
13
import org.eclipse.pde.internal.ui.*;
14
import org.eclipse.pde.internal.ui.editor.FormLayoutFactory;
14
import org.eclipse.pde.internal.ui.editor.FormLayoutFactory;
15
import org.eclipse.swt.widgets.Composite;
15
import org.eclipse.swt.widgets.Composite;
16
import org.eclipse.ui.PlatformUI;
16
import org.eclipse.ui.PlatformUI;
17
import org.eclipse.ui.forms.IManagedForm;
17
import org.eclipse.ui.forms.IManagedForm;
18
import org.eclipse.ui.forms.editor.FormEditor;
18
import org.eclipse.ui.forms.editor.FormEditor;
19
import org.eclipse.ui.forms.editor.FormPage;
19
import org.eclipse.ui.forms.editor.FormPage;
20
import org.eclipse.ui.forms.widgets.FormToolkit;
20
import org.eclipse.ui.forms.widgets.FormToolkit;
21
import org.eclipse.ui.forms.widgets.ScrolledForm;
21
import org.eclipse.ui.forms.widgets.ScrolledForm;
22
22
23
/**
23
/**
24
 * Second page for the target definition editor.  Provides ability to alter various
24
 * Second page for the target definition editor.  Provides ability to alter various
25
 * environment elements of the target.
25
 * environment elements of the target.
26
 * @see TargetEditor
26
 * @see TargetEditor
27
 * @see EnvironmentSection
27
 * @see EnvironmentSection
28
 * @see JRESection
28
 * @see JRESection
29
 * @see ArgumentsSection
29
 * @see ArgumentsSection
30
 * @see ImplicitDependenciesSection
30
 * @see ImplicitDependenciesSection
31
 */
31
 */
32
public class EnvironmentPage extends FormPage {
32
public class EnvironmentPage extends FormPage {
33
33
34
	public static final String PAGE_ID = "environment"; //$NON-NLS-1$
34
	public static final String PAGE_ID = "environment"; //$NON-NLS-1$
35
35
36
	public EnvironmentPage(FormEditor editor) {
36
	public EnvironmentPage(FormEditor editor) {
37
		super(editor, PAGE_ID, PDEUIMessages.EnvironmentPage_title);
37
		super(editor, PAGE_ID, PDEUIMessages.EnvironmentPage_title);
38
	}
38
	}
39
39
40
	/* (non-Javadoc)
40
	/* (non-Javadoc)
41
	 * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
41
	 * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
42
	 */
42
	 */
43
	protected void createFormContent(IManagedForm managedForm) {
43
	protected void createFormContent(IManagedForm managedForm) {
44
		super.createFormContent(managedForm);
44
		super.createFormContent(managedForm);
45
		ScrolledForm form = managedForm.getForm();
45
		ScrolledForm form = managedForm.getForm();
46
		form.setText(PDEUIMessages.EnvironmentPage_title);
46
		form.setText(PDEUIMessages.EnvironmentPage_title);
47
		PDEPlugin.getDefault().getLabelProvider().connect(this);
47
		PDEPlugin.getDefault().getLabelProvider().connect(this);
48
		form.setImage(PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_TARGET_ENVIRONMENT));
48
		form.setImage(PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_TARGET_ENVIRONMENT));
49
		FormToolkit toolkit = managedForm.getToolkit();
49
		FormToolkit toolkit = managedForm.getToolkit();
50
		fillBody(managedForm, toolkit);
50
		fillBody(managedForm, toolkit);
51
		toolkit.decorateFormHeading(form.getForm());
51
		toolkit.decorateFormHeading(form.getForm());
52
		// TODO Fix help URL
52
		((TargetEditor) getEditor()).contributeToToolbar(managedForm.getForm(), ""); //$NON-NLS-1$
53
		((TargetEditor) getEditor()).contributeToToolbar(managedForm.getForm(), ""); //$NON-NLS-1$
53
		((TargetEditor) getEditor()).addForm(managedForm);
54
		((TargetEditor) getEditor()).addForm(managedForm);
54
		form.updateToolBar();
55
		form.updateToolBar();
55
		PlatformUI.getWorkbench().getHelpSystem().setHelp(form.getBody(), IHelpContextIds.TARGET_EDITOR_ENVIRONMENT_PAGE);
56
		PlatformUI.getWorkbench().getHelpSystem().setHelp(form.getBody(), IHelpContextIds.ENVIRONMENT_PAGE);
56
	}
57
	}
57
58
58
	/* (non-Javadoc)
59
	/* (non-Javadoc)
59
	 * @see org.eclipse.ui.forms.editor.FormPage#dispose()
60
	 * @see org.eclipse.ui.forms.editor.FormPage#dispose()
60
	 */
61
	 */
61
	public void dispose() {
62
	public void dispose() {
62
		PDEPlugin.getDefault().getLabelProvider().disconnect(this);
63
		PDEPlugin.getDefault().getLabelProvider().disconnect(this);
63
		super.dispose();
64
		super.dispose();
64
	}
65
	}
65
66
66
	private void fillBody(IManagedForm managedForm, FormToolkit toolkit) {
67
	private void fillBody(IManagedForm managedForm, FormToolkit toolkit) {
67
		Composite body = managedForm.getForm().getBody();
68
		Composite body = managedForm.getForm().getBody();
68
		body.setLayout(FormLayoutFactory.createFormGridLayout(false, 2));
69
		body.setLayout(FormLayoutFactory.createFormGridLayout(false, 2));
69
70
70
		managedForm.addPart(new EnvironmentSection(this, body));
71
		managedForm.addPart(new EnvironmentSection(this, body));
71
		managedForm.addPart(new JRESection(this, body));
72
		managedForm.addPart(new JRESection(this, body));
72
		managedForm.addPart(new ArgumentsSection(this, body));
73
		managedForm.addPart(new ArgumentsSection(this, body));
73
		managedForm.addPart(new ImplicitDependenciesSection(this, body));
74
		managedForm.addPart(new ImplicitDependenciesSection(this, body));
74
	}
75
	}
75
76
76
	/* (non-Javadoc)
77
	/* (non-Javadoc)
77
	 * @see org.eclipse.ui.forms.editor.FormPage#canLeaveThePage()
78
	 * @see org.eclipse.ui.forms.editor.FormPage#canLeaveThePage()
78
	 */
79
	 */
79
	public boolean canLeaveThePage() {
80
	public boolean canLeaveThePage() {
80
		((TargetEditor) getEditor()).setDirty(isDirty());
81
		((TargetEditor) getEditor()).setDirty(isDirty());
81
		return true;
82
		return true;
82
	}
83
	}
83
84
}
84
	protected String getHelpResource() {
85
		return "/org.eclipse.pde.doc.user/guide/tools/editors/target_editor/environment_page.htm"; //$NON-NLS-1$
86
	}
87
}
(-)src/org/eclipse/pde/internal/ui/editor/targetdefinition/TargetEditor.java (+1 lines)
Lines 309-314 Link Here
309
	 */
309
	 */
310
	public void addForm(IManagedForm managedForm) {
310
	public void addForm(IManagedForm managedForm) {
311
		fManagedFormPages.add(managedForm);
311
		fManagedFormPages.add(managedForm);
312
		PlatformUI.getWorkbench().getHelpSystem().setHelp(managedForm.getForm().getBody(), IHelpContextIds.TARGET_EDITOR);
312
	}
313
	}
313
314
314
	/**
315
	/**
(-)contexts_PDE.xml (-14 / +49 lines)
Lines 459-474 Link Here
459
		<description>This wizard allows you to register a Help table of contents with the project's plugin.xml file.</description>
459
		<description>This wizard allows you to register a Help table of contents with the project's plugin.xml file.</description>
460
  <topic href="guide/tools/editors/toc_editor/editor.htm" label="Table of Contents Editor"/>
460
  <topic href="guide/tools/editors/toc_editor/editor.htm" label="Table of Contents Editor"/>
461
	</context>
461
	</context>
462
 <context id="target_editor" title="Target Definition Editor">
463
    <description>The Target Definition Editor is used to edit target definition files in the workspace, which should end with the extension &quot;.target&quot;. Target definition files can be created using the New Target Definition Wizard or by moving them to the workspace on the Target Platform Preference Page.</description>
464
    <topic href="guide/tools/editors/target_editor/definition_page.htm" label="Target Definition Editor Definition Page"/>
465
    <topic href="guide/tools/editors/target_editor/content_page.htm" label="Target Definition Editor Content Page"/>
466
    <topic href="guide/tools/editors/target_editor/environment_page.htm" label="Target Definition Editor Environment Page"/>
467
    <topic href="guide/tools/editors/target_editor/target_editor.htm" label="Target Definition Editor"/>
468
 </context>
462
<!-- Children of the PDEFormPage -->
469
<!-- Children of the PDEFormPage -->
463
470
464
    <!-- PLACE HOLDER -->
471
    <!-- PLACE HOLDER -->
465
	<context id="environment_page">
472
	<context id="target_editor_environment_page" title="Target Definition Editor Environment Page">
466
		<description>This page allows you to define the target environment</description>
473
		<description>The Enviroment Page in the Target Definition Editor is used to edit many settings in the definition affecting how the target will be compiled and run.</description>
467
	</context>
474
	</context>
468
    <!-- PLACE HOLDER -->
475
    <!-- PLACE HOLDER -->
469
	<context id="target_overview_page">
476
	<context id="target_editor_definition_page" title="Target Definition Editor Definition Page">
470
		<description>This page allows you to speciy a target definition and target content</description>
477
		<description>The Definition Page in the Target Definition Editor is used to edit the most important settings in a target definition file. The Target Name is used to display your targets on the Target Platform Preference Page. The Locations section is used to add locations that contain plug-ins and works the same as the Location Tab on the Edit Target Wizard.</description>
471
	</context>
478
	</context>
479
 <context id="target_editor_content_page" title="Target Definition Editor Content Page">
480
    <description>The Content Page in the Target Definition Editor is used to view and edit the set of plug-ins to be included in the target definition when set as the active target platform. The definition must contain one or more locations containing plug-ins and the definition must be resolved to edit the content. Only the plug-ins that are checked on this page will be included in the target. There are multiple options available to filter and sort the list to quickly check what you require.</description>
481
 </context>
472
482
473
<!-- END:  Editors -->
483
<!-- END:  Editors -->
474
484
Lines 521-526 Link Here
521
   <!-- one to one mapping -->
531
   <!-- one to one mapping -->
522
   <context id="target_platform_preference_page" >
532
   <context id="target_platform_preference_page" >
523
      <description>This page allows you to configure the target platform that will be used to develop and test against.  In cases where a plug-in with the same id exists both in the workspace and in the target platform, the workspace copy will take precedence.</description>
533
      <description>This page allows you to configure the target platform that will be used to develop and test against.  In cases where a plug-in with the same id exists both in the workspace and in the target platform, the workspace copy will take precedence.</description>
534
<!--       
524
      <topic label="Target Platform Preferences" href="guide/tools/preference_pages/target_platform.htm"/>
535
      <topic label="Target Platform Preferences" href="guide/tools/preference_pages/target_platform.htm"/>
525
536
526
      <topic label="Target Plug-ins" href="guide/tools/preference_pages/target_plugins.htm"/>
537
      <topic label="Target Plug-ins" href="guide/tools/preference_pages/target_plugins.htm"/>
Lines 528-565 Link Here
528
      <topic label="Launching Arguments" href="guide/tools/preference_pages/launching_args.htm"/>
539
      <topic label="Launching Arguments" href="guide/tools/preference_pages/launching_args.htm"/>
529
      <topic label="Implicit Dependencies" href="guide/tools/preference_pages/implicit_dependencies.htm"/>
540
      <topic label="Implicit Dependencies" href="guide/tools/preference_pages/implicit_dependencies.htm"/>
530
      <topic label="Source Code Locations" href="guide/tools/preference_pages/source_code_locations.htm"/>
541
      <topic label="Source Code Locations" href="guide/tools/preference_pages/source_code_locations.htm"/>
542
      -->
531
   </context>
543
   </context>
532
544
<!-- 
533
   <!-- TODO:  in future delete?  Fold into target_platform_preference_page to make one to one mapping -->
534
   <context id="target_plugins_preference_page" >
545
   <context id="target_plugins_preference_page" >
535
      <description>This page allows you to set the target platform plug-in content for the plug-ins you develop.</description>
546
      <description>This page allows you to set the target platform plug-in content for the plug-ins you develop.</description>
536
      <topic label="Target Plug-Ins" href="guide/tools/preference_pages/target_plugins.htm"/>
547
      <topic label="Target Plug-Ins" href="guide/tools/preference_pages/target_plugins.htm"/>
537
   </context>
548
   </context>
538
549
539
   <!-- TODO:  in future delete?  Fold into target_platform_preference_page to make one to one mapping -->
540
   <context id="source_preference_page" >
550
   <context id="source_preference_page" >
541
      <description>This page allows you to configure source code locations.  When attaching source archives to Java libraries, PDE first looks in plug-ins.  If not found, the search is extended to source locations.  Source locations can be provided by plug-ins that are used to carry source code (in SDKs). They can also be defined by users. Unchecked source locations will be ignored by PDE.</description>
551
      <description>This page allows you to configure source code locations.  When attaching source archives to Java libraries, PDE first looks in plug-ins.  If not found, the search is extended to source locations.  Source locations can be provided by plug-ins that are used to carry source code (in SDKs). They can also be defined by users. Unchecked source locations will be ignored by PDE.</description>
542
      <topic label="Source Code Locations" href="guide/tools/preference_pages/source_code_locations.htm"/>
552
      <topic label="Source Code Locations" href="guide/tools/preference_pages/source_code_locations.htm"/>
543
   </context>
553
   </context>
544
554
545
	<!-- TODO:  in future delete?  Fold into target_platform_preference_page to make one to one mapping -->
546
   <context id="launching_args_preference_page" >
555
   <context id="launching_args_preference_page" >
547
      <description>This page allows you to specify program and VM arguments that you wish to test your plug-ins with.</description>
556
      <description>This page allows you to specify program and VM arguments that you wish to test your plug-ins with.</description>
548
      <topic label="Launching Arguments" href="guide/tools/preference_pages/launching_args.htm"/>
557
      <topic label="Launching Arguments" href="guide/tools/preference_pages/launching_args.htm"/>
549
   </context>
558
   </context>
550
   
559
551
   <!-- TODO:  in future delete?  Fold into target_platform_preference_page to make one to one mapping -->
552
   <context id="implicit_plugins_preference_page" >
560
   <context id="implicit_plugins_preference_page" >
553
      <description>This page allows you to specify existing plug-ins that are required to run your plug-ins.</description>
561
      <description>This page allows you to specify existing plug-ins that are required to run your plug-ins.</description>
554
      <topic label="Implicit Dependencies" href="guide/tools/preference_pages/implicit_dependencies.htm"/>
562
      <topic label="Implicit Dependencies" href="guide/tools/preference_pages/implicit_dependencies.htm"/>
555
   </context>
563
   </context>
556
564
   
557
   <context id="implicit_plugins_selection_dialog" >
565
   <context id="implicit_plugins_selection_dialog" >
558
      <description>This dialog allows you to select one or more plug-ins to add as implicit dependencies of your plug-ins.</description>
566
      <description>This dialog allows you to select one or more plug-ins to add as implicit dependencies of your plug-ins.</description>
559
      <topic label="Implicit Dependencies" href="guide/tools/preference_pages/implicit_dependencies.htm"/>
567
      <topic label="Implicit Dependencies" href="guide/tools/preference_pages/implicit_dependencies.htm"/>
560
   </context>
568
   </context>
561
569
562
   <!-- TODO:  in future delete?  Fold into target_platform_preference_page to make one to one mapping -->
563
   <context id="target_environment_preference_page" >
570
   <context id="target_environment_preference_page" >
564
      <description>This page allows you to set the target environment for the plug-ins you develop.</description>
571
      <description>This page allows you to set the target environment for the plug-ins you develop.</description>
565
      <topic label="Target Environment" href="guide/tools/preference_pages/target_env.htm"/>
572
      <topic label="Target Environment" href="guide/tools/preference_pages/target_env.htm"/>
Lines 570-576 Link Here
570
      <topic label="Target Environment" href="guide/tools/preference_pages/target_env.htm"/>
577
      <topic label="Target Environment" href="guide/tools/preference_pages/target_env.htm"/>
571
   </context>
578
   </context>
572
   
579
   
573
     
580
-->     
574
<!-- END:  Preference pages -->
581
<!-- END:  Preference pages -->
575
582
576
583
Lines 966-972 Link Here
966
   <context id="target_platform_state" title="Target Platform State View">
973
   <context id="target_platform_state" title="Target Platform State View">
967
      <description>The Target Platform State view shows the current status of the resolver state in PDE.</description>
974
      <description>The Target Platform State view shows the current status of the resolver state in PDE.</description>
968
      <topic href="guide/tools/views/target_platform_state.htm" label="Target Platform State View"/>
975
      <topic href="guide/tools/views/target_platform_state.htm" label="Target Platform State View"/>
969
   </context>		
976
   </context>
977
   <context id="new_target_wizard" title="New Target Wizard">
978
      <description>This wizard creates a new target definition that will be added to the Target Platform Preference Page. There are several options to initialize your target definition with data. The new target definition will be saved in the Eclipse preferences, to create a target definition in your workspace use the New Target Definition File Wizard.</description>
979
      <topic href="guide/tools/target_shared/new_target_wizard.htm" label="New Target Wizard"/>
980
   </context>
981
   <context id="edit_target_wizard" title="Target Definition Wizard">
982
      <description>This wizard is used to edit target definitions. It is opened when a target definition on the Target Platform Preference Page is edited or a new definition is created. This wizard provides the same functionality as the Target Editor.</description>
983
      <topic href="guide/tools/target_shared/edit_target_wizard.htm" label="Edit Target Wizard"/>
984
      <topic href="guide/tools/target_shared/edit_target_arguments_tab.htm" label="Argument Tab"/>
985
      <topic href="guide/tools/target_shared/edit_target_content_tab.htm" label="Content Tab"/>
986
      <topic href="guide/tools/target_shared/edit_target_environment_tab.htm" label="Environment Tab"/>
987
      <topic href="guide/tools/target_shared/edit_target_implicit_tab.htm" label="Implicit Dependencies Tab"/>
988
      <topic href="guide/tools/target_shared/edit_target_locations_tab.htm" label="Locations Tab"/>
989
   </context>
990
   <context id="edit_target_wizard_locations_tab" title="Target Definition Wizard Locations Tab">
991
      <description>The Location Tab in the Edit Target Wizard is used to set the locations that provide the plug-ins included in the target definition. There are several types of locations, allowing for definitions to be constructed in different styles.</description>
992
   </context>
993
   <context id="edit_target_wizard_argument_tab" title="Target Definition Wizard Arguments Tab">
994
      <description>The Arguments Tab in the Edit Target Wizard is used to set the default program and vm arguments for new PDE launch configurations.</description>
995
   </context>
996
   <context id="edit_target_wizard_content_tab" title="Target Definition Wizard Content Tab">
997
      <description>The Content Tab in the Edit Target Wizard is used to set a subset of plug-ins to include in the target platform. The tab displays a list of all plug-ins available in the target definition&apos;s locations. Only the plug-ins checked on this tab will be included. There are multiple ways to organize and filter the list.</description>
998
   </context>
999
   <context id="edit_target_wizard_environment_tab" title="Target Definition Wizard Environment Tab">
1000
      <description>The Environment Tab in the Edit Target Wizard is used to set environment settings that affect how a target is compiled and run. The environment settings can also be edited on the Environment Page of the Target Editor.</description>
1001
   </context>
1002
   <context id="edit_target_wizard_implicit_tab" title="Target Definition Wizard Implicit Dependencies Tab">
1003
      <description>The Implicit Tab in the Edit Target Wizard is used to set the implicit dependencies of the target. Any plug-in marked as an implicit dependency will always be added as a required plug-in when PDE determines requirements. Implicit dependencies can also be edited on the Environment Page of the Target Editor.</description>
1004
   </context>
970
1005
971
</contexts>
1006
</contexts>
972
1007

Return to bug 277506