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 258767 | Differences between
and this patch

Collapse All | Expand All

(-)META-INF/MANIFEST.MF (-1 / +1 lines)
Lines 2-8 Link Here
2
Bundle-ManifestVersion: 2
2
Bundle-ManifestVersion: 2
3
Bundle-Name: %pluginName
3
Bundle-Name: %pluginName
4
Bundle-SymbolicName: org.eclipse.debug.ui; singleton:=true
4
Bundle-SymbolicName: org.eclipse.debug.ui; singleton:=true
5
Bundle-Version: 3.7.200.qualifier
5
Bundle-Version: 3.8.0.qualifier
6
Bundle-Activator: org.eclipse.debug.internal.ui.DebugUIPlugin
6
Bundle-Activator: org.eclipse.debug.internal.ui.DebugUIPlugin
7
Bundle-Vendor: %providerName
7
Bundle-Vendor: %providerName
8
Bundle-Localization: plugin
8
Bundle-Localization: plugin
(-)plugin.properties (+10 lines)
Lines 10-15 Link Here
10
#     QNX Software Systems - Mikhail Khodjaiants - Registers View (Bug 53640)
10
#     QNX Software Systems - Mikhail Khodjaiants - Registers View (Bug 53640)
11
#     Wind River Systems - Pawel Piech - Added Modules view (bug 211158)
11
#     Wind River Systems - Pawel Piech - Added Modules view (bug 211158)
12
#     Wind River Systems - Ted Williams -[Memory View] Memory View: Workflow Enhancements (bug 215432)
12
#     Wind River Systems - Ted Williams -[Memory View] Memory View: Workflow Enhancements (bug 215432)
13
#     Patrick Chuong (Texas Instruments) - Move debug toolbar actions to main window (Bug 332784)
13
###############################################################################
14
###############################################################################
14
15
15
pluginName=Debug UI
16
pluginName=Debug UI
Lines 51-56 Link Here
51
CopyExpressionsToClipboardAction.label=Copy &Expressions
52
CopyExpressionsToClipboardAction.label=Copy &Expressions
52
CopyRegistersToClipboardAction.label=Copy &Registers
53
CopyRegistersToClipboardAction.label=Copy &Registers
53
DebugActionSet.label=Debug
54
DebugActionSet.label=Debug
55
DebugToolbarActionSet.label=Debug Toolbar
54
debugCurrentInstructionPointer=Debug Current Instruction Pointer
56
debugCurrentInstructionPointer=Debug Current Instruction Pointer
55
debugCallStack=Debug Call Stack
57
debugCallStack=Debug Call Stack
56
DebugDropDownAction.label=Debug
58
DebugDropDownAction.label=Debug
Lines 129-134 Link Here
129
StringVariablePresentationsName=String Variable Presentations
131
StringVariablePresentationsName=String Variable Presentations
130
SuspendAction.label=&Suspend
132
SuspendAction.label=&Suspend
131
TerminateAction.label=&Terminate
133
TerminateAction.label=&Terminate
134
DropToFrame.label=Drop To Frame
135
Disconnect.label=Disconnect
132
ToggleBreakpointAction.label=Toggle Brea&kpoint
136
ToggleBreakpointAction.label=Toggle Brea&kpoint
133
ToggleBreakpointsTargetFactoriesExtension.name=Toggle Breakpoints Target Factories
137
ToggleBreakpointsTargetFactoriesExtension.name=Toggle Breakpoints Target Factories
134
ToggleLineBreakpointAction.label=Toggle &Line Breakpoint
138
ToggleLineBreakpointAction.label=Toggle &Line Breakpoint
Lines 219-224 Link Here
219
ActionDefinition.suspend.name=Suspend
223
ActionDefinition.suspend.name=Suspend
220
ActionDefinition.suspend.description=Suspend
224
ActionDefinition.suspend.description=Suspend
221
225
226
ActionDefinition.dropToFrame.name=Drop to Frame
227
ActionDefinition.dropToFrame.description=Drop to Frame
228
229
ActionDefinition.disconnect.name=Disconnect
230
ActionDefinition.disconnect.description=Disconnect
231
222
ActionDefinition.openProfile.name=Profile...
232
ActionDefinition.openProfile.name=Profile...
223
ActionDefinition.openProfile.description=Open profile launch configuration dialog
233
ActionDefinition.openProfile.description=Open profile launch configuration dialog
224
234
(-)plugin.xml (+164 lines)
Lines 10-15 Link Here
10
     Contributors:
10
     Contributors:
11
         IBM Corporation - initial API and implementation
11
         IBM Corporation - initial API and implementation
12
         Patrick Chuong (Texas Instruments) - Improve usability of the breakpoint view (Bug 238956)
12
         Patrick Chuong (Texas Instruments) - Improve usability of the breakpoint view (Bug 238956)
13
         Patrick Chuong (Texas Instruments) - Move debug toolbar actions to main window (Bug 332784) 
13
 -->
14
 -->
14
15
15
<plugin>
16
<plugin>
Lines 382-387 Link Here
382
         </action>
383
         </action>
383
      </actionSet>
384
      </actionSet>
384
      <actionSet
385
      <actionSet
386
            label="%DebugToolbarActionSet.label"
387
            visible="false"
388
            id="org.eclipse.debug.ui.debugToolbarActionSet">
389
         <action
390
               id="org.eclipse.debug.ui.actions.toolbar.ToggleStepFilters"
391
               hoverIcon="$nl$/icons/full/elcl16/stepbystep_co.gif"
392
               class="org.eclipse.debug.internal.ui.commands.actions.ToggleStepFiltersCommandActionDelegate"
393
               definitionId="org.eclipse.debug.ui.commands.ToggleStepFilters"
394
               disabledIcon="$nl$/icons/full/dlcl16/stepbystep_co.gif"
395
               icon="$nl$/icons/full/elcl16/stepbystep_co.gif"
396
               helpContextId="step_with_filters_action_context"
397
               label="%StepWithFiltersAction.label"
398
               style="toggle"
399
               state="false"
400
               toolbarPath="org.eclipse.debug.ui.main.toolbar/renderGroup">
401
         </action>
402
         <action
403
               id="org.eclipse.debug.ui.actions.toolbar.DropToFrame"
404
               hoverIcon="$nl$/icons/full/elcl16/drop_to_frame.gif"
405
               class="org.eclipse.debug.internal.ui.commands.actions.DropToFrameCommandActionDelegate"
406
               definitionId="org.eclipse.debug.ui.commands.DropToFrame"
407
               disabledIcon="$nl$/icons/full/dlcl16/drop_to_frame.gif"
408
               helpContextId="drop_to_frame_action_context"
409
               icon="$nl$/icons/full/elcl16/drop_to_frame.gif"
410
               label="%DropToFrame.label"
411
               toolbarPath="org.eclipse.debug.ui.main.toolbar/emptyStepGroup">
412
         </action>
413
         <action
414
               id="org.eclipse.debug.ui.actions.toolbar.RunToLine"
415
               class="org.eclipse.debug.internal.ui.actions.RetargetRunToLineAction"
416
               definitionId="org.eclipse.debug.ui.commands.RunToLine"
417
               helpContextId="run_to_line_action_context"
418
               disabledIcon="$nl$/icons/full/dlcl16/runtoline_co.gif"
419
               icon="$nl$/icons/full/elcl16/runtoline_co.gif"
420
               label="%RunToLine.label"
421
               toolbarPath="org.eclipse.debug.ui.main.toolbar/emptyStepGroup">
422
         </action>                  
423
         <action
424
               id="org.eclipse.debug.ui.actions.toolbar.StepReturn"
425
               hoverIcon="$nl$/icons/full/elcl16/stepreturn_co.gif"
426
               class="org.eclipse.debug.internal.ui.commands.actions.StepReturnCommandActionDelegate"
427
               definitionId="org.eclipse.debug.ui.commands.StepReturn"
428
               disabledIcon="$nl$/icons/full/dlcl16/stepreturn_co.gif"
429
               icon="$nl$/icons/full/elcl16/stepreturn_co.gif"
430
               helpContextId="step_return_action_context"
431
               label="%StepReturnAction.label"
432
               toolbarPath="org.eclipse.debug.ui.main.toolbar/stepReturnGroup">
433
         </action>
434
         <action
435
               id="org.eclipse.debug.ui.actions.toolbar.StepOver"
436
               hoverIcon="$nl$/icons/full/elcl16/stepover_co.gif"
437
               class="org.eclipse.debug.internal.ui.commands.actions.StepOverCommandActionDelegate"
438
               definitionId="org.eclipse.debug.ui.commands.StepOver"
439
               disabledIcon="$nl$/icons/full/dlcl16/stepover_co.gif"
440
               icon="$nl$/icons/full/elcl16/stepover_co.gif"
441
               helpContextId="step_over_action_context"
442
               label="%StepOverAction.label"
443
               toolbarPath="org.eclipse.debug.ui.main.toolbar/stepOverGroup">
444
         </action>
445
         <action
446
               id="org.eclipse.debug.ui.actions.toolbar.StepInto"
447
               hoverIcon="$nl$/icons/full/elcl16/stepinto_co.gif"
448
               class="org.eclipse.debug.internal.ui.commands.actions.StepIntoCommandActionDelegate"
449
               definitionId="org.eclipse.debug.ui.commands.StepInto"
450
               disabledIcon="$nl$/icons/full/dlcl16/stepinto_co.gif"
451
               icon="$nl$/icons/full/elcl16/stepinto_co.gif"
452
               helpContextId="step_into_action_context"
453
               label="%StepIntoAction.label"
454
               toolbarPath="org.eclipse.debug.ui.main.toolbar/stepIntoGroup">
455
         </action>
456
         <action
457
               id="org.eclipse.debug.ui.actions.toolbar.Disconnect"
458
               hoverIcon="$nl$/icons/full/elcl16/disconnect_co.gif"
459
               class="org.eclipse.debug.internal.ui.commands.actions.DisconnectCommandActionDelegate"
460
               definitionId="org.eclipse.debug.ui.commands.Disconnect"
461
               disabledIcon="$nl$/icons/full/dlcl16/disconnect_co.gif"
462
               icon="$nl$/icons/full/elcl16/disconnect_co.gif"
463
               helpContextId="disconnect_action_context"
464
               label="%Disconnect.label"
465
               toolbarPath="org.eclipse.debug.ui.main.toolbar/threadGroup">
466
         </action>
467
         <action
468
               id="org.eclipse.debug.ui.actions.toolbar.Terminate"
469
               hoverIcon="$nl$/icons/full/elcl16/terminate_co.gif"
470
               class="org.eclipse.debug.internal.ui.commands.actions.TerminateCommandActionDelegate"
471
               definitionId="org.eclipse.debug.ui.commands.Terminate"
472
               disabledIcon="$nl$/icons/full/dlcl16/terminate_co.gif"
473
               icon="$nl$/icons/full/elcl16/terminate_co.gif"
474
               helpContextId="terminate_action_context"
475
               label="%TerminateAction.label"
476
               toolbarPath="org.eclipse.debug.ui.main.toolbar/threadGroup">
477
         </action>
478
         <action
479
               id="org.eclipse.debug.ui.actions.toolbar.Suspend"
480
               hoverIcon="$nl$/icons/full/elcl16/suspend_co.gif"
481
               class="org.eclipse.debug.internal.ui.commands.actions.SuspendCommandActionDelegate"
482
               definitionId="org.eclipse.debug.ui.commands.Suspend"
483
               disabledIcon="$nl$/icons/full/dlcl16/suspend_co.gif"
484
               icon="$nl$/icons/full/elcl16/suspend_co.gif"
485
               helpContextId="suspend_action_context"
486
               label="%SuspendAction.label"
487
               toolbarPath="org.eclipse.debug.ui.main.toolbar/threadGroup">
488
         </action>
489
         <action
490
               id="org.eclipse.debug.ui.actions.toolbar.Resume"
491
               hoverIcon="$nl$/icons/full/elcl16/resume_co.gif"
492
               class="org.eclipse.debug.internal.ui.commands.actions.ResumeCommandActionDelegate"
493
               definitionId="org.eclipse.debug.ui.commands.Resume"
494
               disabledIcon="$nl$/icons/full/dlcl16/resume_co.gif"
495
               icon="$nl$/icons/full/elcl16/resume_co.gif"
496
               helpContextId="resume_action_context"
497
               label="%ResumeAction.label"
498
               toolbarPath="org.eclipse.debug.ui.main.toolbar/threadGroup">
499
         </action>
500
      </actionSet>
501
      <actionSet
385
            label="%LaunchActionSet.label"
502
            label="%LaunchActionSet.label"
386
            visible="false"
503
            visible="false"
387
            id="org.eclipse.debug.ui.launchActionSet">
504
            id="org.eclipse.debug.ui.launchActionSet">
Lines 613-618 Link Here
613
	           </dynamic>
730
	           </dynamic>
614
            </menu>         
731
            </menu>         
615
       </menuContribution>
732
       </menuContribution>
733
       <menuContribution
734
             locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
735
          <toolbar
736
                id="org.eclipse.debug.ui.main.toolbar"
737
                label="%DebugActionSet.label">
738
             <separator
739
                   name="threadGroup"
740
                   visible="true">
741
             </separator>
742
             <separator
743
                   name="stepGroup"
744
                   visible="true">
745
             </separator>
746
             <separator
747
                   name="stepIntoGroup"
748
                   visible="false">
749
             </separator>
750
             <separator
751
                   name="stepOverGroup"
752
                   visible="false">
753
             </separator>
754
             <separator
755
                   name="stepReturnGroup"
756
                   visible="false">
757
             </separator>
758
             <separator
759
                   name="emptyStepGroup"
760
                   visible="false">
761
             </separator>
762
             <separator
763
                   name="renderGroup"
764
                   visible="true">
765
             </separator>
766
          </toolbar>
767
       </menuContribution>
616
   </extension>  
768
   </extension>  
617
   
769
   
618
   <extension
770
   <extension
Lines 1625-1630 Link Here
1625
            id="org.eclipse.debug.ui.commands.ToggleStepFilters">
1777
            id="org.eclipse.debug.ui.commands.ToggleStepFilters">
1626
      </command>
1778
      </command>
1627
      <command
1779
      <command
1780
            categoryId="org.eclipse.debug.ui.category.run"
1781
            description="%ActionDefinition.dropToFrame.description"
1782
            id="org.eclipse.debug.ui.commands.DropToFrame"
1783
            name="%ActionDefinition.dropToFrame.name">
1784
      </command>
1785
      <command
1786
            categoryId="org.eclipse.debug.ui.category.run"
1787
            description="%ActionDefinition.disconnect.discrption"
1788
            id="org.eclipse.debug.ui.commands.Disconnect"
1789
            name="%ActionDefinition.disconnect.name">
1790
      </command>
1791
      <command
1628
            name="%ActionDefinition.stepInto.name"
1792
            name="%ActionDefinition.stepInto.name"
1629
            categoryId="org.eclipse.debug.ui.category.run"
1793
            categoryId="org.eclipse.debug.ui.category.run"
1630
            description="%ActionDefinition.stepInto.description"
1794
            description="%ActionDefinition.stepInto.description"
(-)ui/org/eclipse/debug/internal/ui/IDebugHelpContextIds.java (+3 lines)
Lines 75-80 Link Here
75
    public static final String DEBUG_VIEW_MODE_FULL_ACTION = PREFIX + "debug_view_mode_full_action_context"; //$NON-NLS-1$
75
    public static final String DEBUG_VIEW_MODE_FULL_ACTION = PREFIX + "debug_view_mode_full_action_context"; //$NON-NLS-1$
76
    public static final String DEBUG_VIEW_MODE_COMPACT_ACTION = PREFIX + "debug_view_mode_compact_action_context"; //$NON-NLS-1$
76
    public static final String DEBUG_VIEW_MODE_COMPACT_ACTION = PREFIX + "debug_view_mode_compact_action_context"; //$NON-NLS-1$
77
    public static final String DEBUG_VIEW_DROP_DOWN_AUTOEXPAND_ACTION = PREFIX + "debug_view_drop_down_autoexpand_action_context"; //$NON-NLS-1$
77
    public static final String DEBUG_VIEW_DROP_DOWN_AUTOEXPAND_ACTION = PREFIX + "debug_view_drop_down_autoexpand_action_context"; //$NON-NLS-1$
78
    public static final String DEBUG_TOOLBAR_VIEW_ACTION = PREFIX + "debug_toolbar_view_action_context"; //$NON-NLS-1$
79
    public static final String DEBUG_TOOLBAR_WINDOW_ACTION = PREFIX + "debug_toolbar_window_action_context"; //$NON-NLS-1$
80
    public static final String DEBUG_TOOLBAR_BOTH_ACTION = PREFIX + "debug_toolbar_both_action_context"; //$NON-NLS-1$
78
81
79
	// Views
82
	// Views
80
	public static final String DEBUG_VIEW = PREFIX + "debug_view_context"; //$NON-NLS-1$
83
	public static final String DEBUG_VIEW = PREFIX + "debug_view_context"; //$NON-NLS-1$
(-)ui/org/eclipse/debug/internal/ui/commands/actions/DisconnectCommandActionDelegate.java (+24 lines)
Added Link Here
1
/*****************************************************************
2
 * Copyright (c) 2010 Texas Instruments and others
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     Patrick Chuong (Texas Instruments) - Move debug toolbar actions to main window (Bug 332784)
10
 *****************************************************************/
11
package org.eclipse.debug.internal.ui.commands.actions;
12
13
/**
14
 * Disconnect action delegate.
15
 * 
16
 * @since 3.7
17
 */
18
public class DisconnectCommandActionDelegate extends DebugCommandActionDelegate {
19
	
20
	public DisconnectCommandActionDelegate() {
21
		super();
22
		setAction(new DisconnectCommandAction());
23
	}
24
}
(-)ui/org/eclipse/debug/internal/ui/commands/actions/DropToFrameCommandActionDelegate.java (+24 lines)
Added Link Here
1
/*****************************************************************
2
 * Copyright (c) 2010 Texas Instruments and others
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     Patrick Chuong (Texas Instruments) - Move debug toolbar actions to main window (Bug 332784)
10
 *****************************************************************/
11
package org.eclipse.debug.internal.ui.commands.actions;
12
13
/**
14
 * Drop to Frame action delegate.
15
 * 
16
 * @since 3.7
17
 */
18
public class DropToFrameCommandActionDelegate extends DebugCommandActionDelegate {
19
20
	public DropToFrameCommandActionDelegate() {
21
		super();
22
		setAction(new DropToFrameCommandAction());
23
	}
24
}
(-)ui/org/eclipse/debug/internal/ui/preferences/IDebugPreferenceConstants.java (+7 lines)
Lines 295-300 Link Here
295
     * @since 3.5
295
     * @since 3.5
296
     */
296
     */
297
    public static final String DEBUG_VIEW_BREADCRUMB_AUTO_EXPAND_DROP_DOWN = "org.eclispe.debug.ui.Debug_view.Breadcrumb.dropDownAutoexpand"; //$NON-NLS-1$
297
    public static final String DEBUG_VIEW_BREADCRUMB_AUTO_EXPAND_DROP_DOWN = "org.eclispe.debug.ui.Debug_view.Breadcrumb.dropDownAutoexpand"; //$NON-NLS-1$
298
    
299
    /**
300
     * Perspectives in which the debug toolbar is hidden.
301
     * 
302
     * @since 3.8
303
     */
304
    public static final String DEBUG_VIEW_TOOLBAR_HIDDEN_PERSPECTIVES = "org.eclispe.debug.ui.Debug_view.debug_toolbar_hidden_perspectives"; //$NON-NLS-1$
298
}
305
}
299
306
300
307
(-)ui/org/eclipse/debug/internal/ui/views/launch/DebugToolBarAction.java (+92 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2011 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.debug.internal.ui.views.launch;
12
13
import org.eclipse.debug.internal.core.IInternalDebugCoreConstants;
14
import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
15
import org.eclipse.debug.ui.IDebugUIConstants;
16
import org.eclipse.jface.action.Action;
17
import org.eclipse.ui.IWorkbenchPage;
18
import org.eclipse.ui.PlatformUI;
19
20
/**
21
 * Action that controls whether Debug actions are shown in Launch view.
22
 * 
23
 * @since 3.8
24
 */
25
class DebugToolBarAction extends Action {
26
27
	private final LaunchView fLaunchView;
28
	private final boolean fDebugViewToolbar;
29
    private final boolean fDebugToolbarActionSet;
30
31
	/**
32
	 * Creates a new action to set the debug view mode.
33
	 * 
34
	 * @param view Reference to the debug view.
35
	 * @param debugViewToolbar Causes action to show toolbar in Debug view.
36
	 * @param debugActionSet Causes action to show toolbar in top level Window 
37
	 * toolbar..
38
	 */
39
	public DebugToolBarAction(LaunchView view, boolean debugViewToolbar, boolean debugActionSet) {
40
		super(IInternalDebugCoreConstants.EMPTY_STRING, AS_RADIO_BUTTON);
41
		fLaunchView = view;
42
		fDebugViewToolbar = debugViewToolbar;
43
		fDebugToolbarActionSet = debugActionSet;
44
		
45
		if (fDebugViewToolbar && fDebugToolbarActionSet) {
46
            setText(LaunchViewMessages.DebugToolBarAction_Both_label);
47
            setToolTipText(LaunchViewMessages.DebugToolBarAction_Both_tooltip);  
48
            setDescription(LaunchViewMessages.DebugToolBarAction_Both_description);  
49
            PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IDebugHelpContextIds.DEBUG_TOOLBAR_BOTH_ACTION);
50
		} else if (fDebugViewToolbar) {
51
            setText(LaunchViewMessages.DebugToolBarAction_View_label);
52
            setToolTipText(LaunchViewMessages.DebugToolBarAction_View_tooltip);  
53
            setDescription(LaunchViewMessages.DebugToolBarAction_View_description);  
54
			PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IDebugHelpContextIds.DEBUG_TOOLBAR_VIEW_ACTION);
55
		} else if (fDebugToolbarActionSet) {
56
            setText(LaunchViewMessages.DebugToolBarAction_Window_label);
57
            setToolTipText(LaunchViewMessages.DebugToolBarAction_Window_tooltip);  
58
            setDescription(LaunchViewMessages.DebugToolBarAction_Window_description);  
59
			PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IDebugHelpContextIds.DEBUG_TOOLBAR_WINDOW_ACTION);
60
		} 	
61
	}
62
63
	/* (non-Javadoc)
64
	 * @see org.eclipse.jface.action.IAction#run()
65
	 */
66
	public void run() {
67
		fLaunchView.setDebugToolbarInView(fDebugViewToolbar); 
68
69
		IWorkbenchPage page = fLaunchView.getSite().getPage(); 
70
        
71
		if (fDebugToolbarActionSet) {
72
            page.showActionSet(IDebugUIConstants.DEBUG_TOOLBAR_ACTION_SET);
73
		} else {
74
            page.hideActionSet(IDebugUIConstants.DEBUG_TOOLBAR_ACTION_SET);
75
		}
76
	}	
77
	
78
	/**
79
     * @return Returns whether debug toolbar is shown in view by this action.
80
	 */
81
	public boolean getDebugViewToolbar() {
82
	    return fDebugViewToolbar;
83
	}
84
85
    /**
86
     * @return Returns whether debug toolbar action set is shown by this action.
87
     */
88
    public boolean getDebugToolbarActionSet() {
89
        return fDebugToolbarActionSet;
90
    }
91
}
92
(-)ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java (-8 / +175 lines)
Lines 22-29 Link Here
22
import java.util.HashMap;
22
import java.util.HashMap;
23
import java.util.Iterator;
23
import java.util.Iterator;
24
import java.util.Map;
24
import java.util.Map;
25
import java.util.Set;
26
import java.util.TreeSet;
25
27
26
import org.eclipse.core.commands.IHandler2;
28
import org.eclipse.core.commands.IHandler2;
29
import org.eclipse.core.commands.contexts.ContextManagerEvent;
30
import org.eclipse.core.commands.contexts.IContextManagerListener;
27
import org.eclipse.core.runtime.IAdaptable;
31
import org.eclipse.core.runtime.IAdaptable;
28
import org.eclipse.core.runtime.IProgressMonitor;
32
import org.eclipse.core.runtime.IProgressMonitor;
29
import org.eclipse.core.runtime.IStatus;
33
import org.eclipse.core.runtime.IStatus;
Lines 67-72 Link Here
67
import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdateListener;
71
import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdateListener;
68
import org.eclipse.debug.internal.ui.viewers.model.provisional.TreeModelViewer;
72
import org.eclipse.debug.internal.ui.viewers.model.provisional.TreeModelViewer;
69
import org.eclipse.debug.internal.ui.views.DebugModelPresentationContext;
73
import org.eclipse.debug.internal.ui.views.DebugModelPresentationContext;
74
import org.eclipse.debug.internal.ui.views.ViewContextService;
70
import org.eclipse.debug.ui.AbstractDebugView;
75
import org.eclipse.debug.ui.AbstractDebugView;
71
import org.eclipse.debug.ui.DebugUITools;
76
import org.eclipse.debug.ui.DebugUITools;
72
import org.eclipse.debug.ui.IDebugModelPresentation;
77
import org.eclipse.debug.ui.IDebugModelPresentation;
Lines 76-81 Link Here
76
import org.eclipse.debug.ui.contexts.DebugContextEvent;
81
import org.eclipse.debug.ui.contexts.DebugContextEvent;
77
import org.eclipse.debug.ui.contexts.IDebugContextListener;
82
import org.eclipse.debug.ui.contexts.IDebugContextListener;
78
import org.eclipse.debug.ui.contexts.IDebugContextProvider;
83
import org.eclipse.debug.ui.contexts.IDebugContextProvider;
84
import org.eclipse.jface.action.ActionContributionItem;
79
import org.eclipse.jface.action.GroupMarker;
85
import org.eclipse.jface.action.GroupMarker;
80
import org.eclipse.jface.action.IMenuListener;
86
import org.eclipse.jface.action.IMenuListener;
81
import org.eclipse.jface.action.IMenuManager;
87
import org.eclipse.jface.action.IMenuManager;
Lines 115-120 Link Here
115
import org.eclipse.ui.WorkbenchException;
121
import org.eclipse.ui.WorkbenchException;
116
import org.eclipse.ui.XMLMemento;
122
import org.eclipse.ui.XMLMemento;
117
import org.eclipse.ui.actions.SelectionListenerAction;
123
import org.eclipse.ui.actions.SelectionListenerAction;
124
import org.eclipse.ui.contexts.IContextService;
118
import org.eclipse.ui.dialogs.PropertyDialogAction;
125
import org.eclipse.ui.dialogs.PropertyDialogAction;
119
import org.eclipse.ui.part.IPageBookViewPage;
126
import org.eclipse.ui.part.IPageBookViewPage;
120
import org.eclipse.ui.part.IPageSite;
127
import org.eclipse.ui.part.IPageSite;
Lines 126-132 Link Here
126
import org.eclipse.ui.progress.IWorkbenchSiteProgressService;
133
import org.eclipse.ui.progress.IWorkbenchSiteProgressService;
127
import org.eclipse.ui.progress.UIJob;
134
import org.eclipse.ui.progress.UIJob;
128
135
129
public class LaunchView extends AbstractDebugView implements ISelectionChangedListener, IPerspectiveListener2, IPageListener, IShowInTarget, IShowInSource, IShowInTargetList, IPartListener2, IViewerUpdateListener {
136
public class LaunchView extends AbstractDebugView 
137
    implements ISelectionChangedListener, IPerspectiveListener2, IPageListener, IShowInTarget, IShowInSource, 
138
    IShowInTargetList, IPartListener2, IViewerUpdateListener, IContextManagerListener 
139
{
130
	
140
	
131
	public static final String ID_CONTEXT_ACTIVITY_BINDINGS = "contextActivityBindings"; //$NON-NLS-1$
141
	public static final String ID_CONTEXT_ACTIVITY_BINDINGS = "contextActivityBindings"; //$NON-NLS-1$
132
142
Lines 194-199 Link Here
194
    private DebugViewModeAction[] fDebugViewModeActions;
204
    private DebugViewModeAction[] fDebugViewModeActions;
195
205
196
    /**
206
    /**
207
     */
208
    private DebugToolBarAction[] fDebugToolBarActions;
209
    
210
    /**
197
     * Action that controls the breadcrumb drop-down auto-expand behavior.
211
     * Action that controls the breadcrumb drop-down auto-expand behavior.
198
     * 
212
     * 
199
     * @since 3.5
213
     * @since 3.5
Lines 201-206 Link Here
201
    private BreadcrumbDropDownAutoExpandAction fBreadcrumbDropDownAutoExpandAction;
215
    private BreadcrumbDropDownAutoExpandAction fBreadcrumbDropDownAutoExpandAction;
202
    
216
    
203
    /**
217
    /**
218
     * Context service for this view.  Used to track whether debug toolbar
219
     * action set is active.
220
     * 
221
     * @since 3.8
222
     */
223
    private IContextService fContextService;
224
    
225
    /**
204
     * Preference name for the view's memento.
226
     * Preference name for the view's memento.
205
     * 
227
     * 
206
     * @since 3.5
228
     * @since 3.5
Lines 214-220 Link Here
214
     * @since 3.5
236
     * @since 3.5
215
     */
237
     */
216
    private static final String BREADCRUMB_DROPDOWN_AUTO_EXPAND = DebugUIPlugin.getUniqueIdentifier() + ".BREADCRUMB_DROPDOWN_AUTO_EXPAND"; //$NON-NLS-1$
238
    private static final String BREADCRUMB_DROPDOWN_AUTO_EXPAND = DebugUIPlugin.getUniqueIdentifier() + ".BREADCRUMB_DROPDOWN_AUTO_EXPAND"; //$NON-NLS-1$
217
    
239
218
    /**
240
    /**
219
     * Preference for whether the elements in breadcrumb's
241
     * Preference for whether the elements in breadcrumb's
220
     * drop-down viewer should be automatically expanded.
242
     * drop-down viewer should be automatically expanded.
Lines 230-235 Link Here
230
     */
252
     */
231
    private Map fHandlers = new HashMap();
253
    private Map fHandlers = new HashMap();
232
    
254
    
255
    private boolean fDebugToolbarInView = true;
256
    
257
    private Set fDebugToolbarHiddenPerspectives = new TreeSet();
258
    
233
	/**
259
	/**
234
	 * Page-book page for the breadcrumb viewer.  This page is activated in 
260
	 * Page-book page for the breadcrumb viewer.  This page is activated in 
235
	 * Debug view when the height of the view is reduced to just one line. 
261
	 * Debug view when the height of the view is reduced to just one line. 
Lines 604-609 Link Here
604
            fDebugViewModeActions[i].setChecked(fDebugViewModeActions[i].getMode().equals(mode));
630
            fDebugViewModeActions[i].setChecked(fDebugViewModeActions[i].getMode().equals(mode));
605
        }
631
        }
606
        
632
        
633
        createDebugToolBarInViewActions(parent);
634
        
607
        // Add a resize listener for the view to activate breadcrumb as needed. 
635
        // Add a resize listener for the view to activate breadcrumb as needed. 
608
        parent.addControlListener(new ControlListener() {
636
        parent.addControlListener(new ControlListener() {
609
            public void controlMoved(ControlEvent e) {
637
            public void controlMoved(ControlEvent e) {
Lines 617-622 Link Here
617
                }
645
                }
618
            }
646
            }
619
        });
647
        });
648
        
649
        fContextService.addContextManagerListener(this);        
620
	}
650
	}
621
651
622
	/**
652
	/**
Lines 705-711 Link Here
705
        modeSubmenu.add(new Separator());
735
        modeSubmenu.add(new Separator());
706
        modeSubmenu.add(fBreadcrumbDropDownAutoExpandAction);
736
        modeSubmenu.add(fBreadcrumbDropDownAutoExpandAction);
707
        viewMenu.add(modeSubmenu);
737
        viewMenu.add(modeSubmenu);
708
        viewMenu.add(new Separator());
709
        
738
        
710
        modeSubmenu.addMenuListener(new IMenuListener() {
739
        modeSubmenu.addMenuListener(new IMenuListener() {
711
            public void menuAboutToShow(IMenuManager manager) {
740
            public void menuAboutToShow(IMenuManager manager) {
Lines 716-725 Link Here
716
                modeSubmenu.add(fBreadcrumbDropDownAutoExpandAction);
745
                modeSubmenu.add(fBreadcrumbDropDownAutoExpandAction);
717
           }
746
           }
718
        });
747
        });
748
    }
749
750
    /**
751
     * Creates actions for controlling view mode.
752
     * 
753
     * @param parent The view's parent control used to calculate view size
754
     * in auto mode.
755
     */
756
    private void createDebugToolBarInViewActions(final Composite parent) {
757
        IActionBars actionBars = getViewSite().getActionBars();
758
        IMenuManager viewMenu = actionBars.getMenuManager();
759
        
760
        fDebugToolBarActions = new DebugToolBarAction[3];
761
        fDebugToolBarActions[0] = new DebugToolBarAction(this, true, false);
762
        fDebugToolBarActions[1] = new DebugToolBarAction(this, false, true);
763
        fDebugToolBarActions[2] = new DebugToolBarAction(this, true, true);
764
        
765
        final MenuManager modeSubmenu = new MenuManager(LaunchViewMessages.LaunchView_ToolBarMenu_label);
766
        modeSubmenu.setRemoveAllWhenShown(true);
767
        modeSubmenu.add(fDebugToolBarActions[0]);
768
        modeSubmenu.add(fDebugToolBarActions[1]);
769
        modeSubmenu.add(fDebugToolBarActions[2]);
770
        viewMenu.add(modeSubmenu);
771
        
772
        modeSubmenu.addMenuListener(new IMenuListener() {
773
            public void menuAboutToShow(IMenuManager manager) {
774
                modeSubmenu.add(fDebugToolBarActions[0]);
775
                modeSubmenu.add(fDebugToolBarActions[1]);
776
                modeSubmenu.add(fDebugToolBarActions[2]);
777
           }
778
        });
719
        
779
        
780
        updateCheckedDebugToolBarAction();
720
    }
781
    }
721
782
722
 
783
    
723
    /**
784
    /**
724
     * Sets the current view mode.  If needed, the active view page is changed. 
785
     * Sets the current view mode.  If needed, the active view page is changed. 
725
     * 
786
     * 
Lines 858-863 Link Here
858
                setBreadcrumbDropDownAutoExpand(auto.booleanValue());
919
                setBreadcrumbDropDownAutoExpand(auto.booleanValue());
859
            } 
920
            } 
860
        }
921
        }
922
923
        String preference = DebugUIPlugin.getDefault().getPreferenceStore().getString(
924
            IDebugPreferenceConstants.DEBUG_VIEW_TOOLBAR_HIDDEN_PERSPECTIVES);
925
        if (preference != null) {
926
            fDebugToolbarHiddenPerspectives = ViewContextService.parseList(preference);
927
        }
928
        IPerspectiveDescriptor perspective = getSite().getPage().getPerspective();
929
        fDebugToolbarInView = perspective == null || !fDebugToolbarHiddenPerspectives.contains(perspective.getId());
861
	}
930
	}
862
	
931
	
863
	/* (non-Javadoc)
932
	/* (non-Javadoc)
Lines 867-872 Link Here
867
		super.init(site);
936
		super.init(site);
868
		commonInit(site);
937
		commonInit(site);
869
		preferenceInit(site);
938
		preferenceInit(site);
939
		fContextService = (IContextService)site.getService(IContextService.class);
870
	}
940
	}
871
941
872
	/* (non-Javadoc)
942
	/* (non-Javadoc)
Lines 876-881 Link Here
876
		super.init(site, memento);
946
		super.init(site, memento);
877
		commonInit(site);
947
		commonInit(site);
878
        preferenceInit(site);
948
        preferenceInit(site);
949
        fContextService = (IContextService)site.getService(IContextService.class);
879
	}
950
	}
880
951
881
    /* (non-Javadoc)
952
    /* (non-Javadoc)
Lines 904-909 Link Here
904
                }
975
                }
905
            }
976
            }
906
        }
977
        }
978
        
979
        StringBuffer buffer= new StringBuffer();
980
        for (Iterator itr = fDebugToolbarHiddenPerspectives.iterator(); itr.hasNext();) {
981
            buffer.append(itr.next()).append(',');          
982
        } 
983
        getPreferenceStore().setValue(IDebugPreferenceConstants.DEBUG_VIEW_TOOLBAR_HIDDEN_PERSPECTIVES, buffer.toString());
984
907
        super.partDeactivated(part);
985
        super.partDeactivated(part);
908
    }
986
    }
909
987
Lines 926-932 Link Here
926
		tbm.add(new GroupMarker(IDebugUIConstants.STEP_RETURN_GROUP));
1004
		tbm.add(new GroupMarker(IDebugUIConstants.STEP_RETURN_GROUP));
927
		tbm.add(new GroupMarker(IDebugUIConstants.EMPTY_STEP_GROUP));
1005
		tbm.add(new GroupMarker(IDebugUIConstants.EMPTY_STEP_GROUP));
928
		tbm.add(new Separator(IDebugUIConstants.RENDER_GROUP));
1006
		tbm.add(new Separator(IDebugUIConstants.RENDER_GROUP));
929
        
1007
1008
		if (fDebugToolbarInView) {
1009
		    addDebugToolbarActions(tbm);
1010
		}
1011
	}	
1012
1013
   protected void addDebugToolbarActions(IToolBarManager tbm) {
930
        tbm.appendToGroup(IDebugUIConstants.THREAD_GROUP, getAction(RESUME));
1014
        tbm.appendToGroup(IDebugUIConstants.THREAD_GROUP, getAction(RESUME));
931
        tbm.appendToGroup(IDebugUIConstants.THREAD_GROUP, getAction(SUSPEND));
1015
        tbm.appendToGroup(IDebugUIConstants.THREAD_GROUP, getAction(SUSPEND));
932
        tbm.appendToGroup(IDebugUIConstants.THREAD_GROUP, getAction(TERMINATE));
1016
        tbm.appendToGroup(IDebugUIConstants.THREAD_GROUP, getAction(TERMINATE));
Lines 935-950 Link Here
935
        tbm.appendToGroup(IDebugUIConstants.STEP_INTO_GROUP, getAction(STEP_INTO));
1019
        tbm.appendToGroup(IDebugUIConstants.STEP_INTO_GROUP, getAction(STEP_INTO));
936
        tbm.appendToGroup(IDebugUIConstants.STEP_OVER_GROUP, getAction(STEP_OVER));
1020
        tbm.appendToGroup(IDebugUIConstants.STEP_OVER_GROUP, getAction(STEP_OVER));
937
        tbm.appendToGroup(IDebugUIConstants.STEP_RETURN_GROUP, getAction(STEP_RETURN));
1021
        tbm.appendToGroup(IDebugUIConstants.STEP_RETURN_GROUP, getAction(STEP_RETURN));
938
        
1022
939
        tbm.appendToGroup(IDebugUIConstants.EMPTY_STEP_GROUP, getAction(DROP_TO_FRAME));
1023
        tbm.appendToGroup(IDebugUIConstants.EMPTY_STEP_GROUP, getAction(DROP_TO_FRAME));
940
        
1024
        
941
        tbm.appendToGroup(IDebugUIConstants.RENDER_GROUP, getAction(TOGGLE_STEP_FILTERS));
1025
        tbm.appendToGroup(IDebugUIConstants.RENDER_GROUP, getAction(TOGGLE_STEP_FILTERS));
942
	}	
1026
   }   
943
1027
	
1028
   /**
1029
    * Removes the toolbar actions contributed by this view from the toolbar 
1030
    * manager.
1031
    * @param tbm
1032
    */
1033
   protected void removeDebugToolbarActions(IToolBarManager tbm) {
1034
       tbm.remove(new ActionContributionItem(getAction(RESUME)));
1035
       tbm.remove(new ActionContributionItem(getAction(SUSPEND)));
1036
       tbm.remove(new ActionContributionItem(getAction(TERMINATE)));
1037
       tbm.remove(new ActionContributionItem(getAction(DISCONNECT)));
1038
       
1039
       tbm.remove(new ActionContributionItem(getAction(STEP_INTO)));
1040
       tbm.remove(new ActionContributionItem(getAction(STEP_OVER)));
1041
       tbm.remove(new ActionContributionItem(getAction(STEP_RETURN)));
1042
       
1043
       tbm.remove(new ActionContributionItem(getAction(DROP_TO_FRAME)));
1044
       
1045
       tbm.remove(new ActionContributionItem(getAction(TOGGLE_STEP_FILTERS)));
1046
   }
1047
	   
1048
   public boolean isDebugToolbarInView() {
1049
       return fDebugToolbarInView;
1050
   }
1051
   
1052
   public boolean isDebugToolbarInViewInPerspective(IPerspectiveDescriptor perspective) {
1053
       return perspective == null || !fDebugToolbarHiddenPerspectives.contains(perspective.getId());
1054
   }
1055
   
1056
   public void setDebugToolbarInView(boolean show) {
1057
       if (show == isDebugToolbarInView()) {
1058
           return;
1059
       }
1060
       fDebugToolbarInView = show;
1061
       
1062
       // Update the perspectives set.
1063
       IPerspectiveDescriptor perspective = getSite().getPage().getPerspective();
1064
       if (perspective != null) {
1065
           if (show) {
1066
               fDebugToolbarHiddenPerspectives.remove(perspective.getId());
1067
           } else {
1068
               fDebugToolbarHiddenPerspectives.add(perspective.getId());
1069
           }
1070
       }
1071
       
1072
       // Update the toolbar manager.
1073
       IToolBarManager tbm = getViewSite().getActionBars().getToolBarManager();
1074
       if (show) {
1075
           addDebugToolbarActions(tbm);
1076
       } else {
1077
           removeDebugToolbarActions(tbm);
1078
       }
1079
       getViewSite().getActionBars().updateActionBars();
1080
       
1081
       // Update system property used by contributed actions.
1082
       System.setProperty(IDebugUIConstants.DEBUG_VIEW_TOOBAR_VISIBLE, Boolean.toString(show));
1083
   }
1084
   
1085
   
944
	/* (non-Javadoc)
1086
	/* (non-Javadoc)
945
	 * @see org.eclipse.ui.IWorkbenchPart#dispose()
1087
	 * @see org.eclipse.ui.IWorkbenchPart#dispose()
946
	 */
1088
	 */
947
	public void dispose() {
1089
	public void dispose() {
1090
	    fContextService.removeContextManagerListener(this);
948
	    getSite().getSelectionProvider().removeSelectionChangedListener(this);
1091
	    getSite().getSelectionProvider().removeSelectionChangedListener(this);
949
		DebugUITools.getDebugContextManager().getContextService(getSite().getWorkbenchWindow()).removeDebugContextProvider(fContextProviderProxy);
1092
		DebugUITools.getDebugContextManager().getContextService(getSite().getWorkbenchWindow()).removeDebugContextProvider(fContextProviderProxy);
950
        fContextProviderProxy.dispose();
1093
        fContextProviderProxy.dispose();
Lines 1024-1029 Link Here
1024
	public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) {
1167
	public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) {
1025
		setActive(page.findView(getSite().getId()) != null);
1168
		setActive(page.findView(getSite().getId()) != null);
1026
		updateObjects();
1169
		updateObjects();
1170
		setDebugToolbarInView( isDebugToolbarInViewInPerspective(getSite().getPage().getPerspective()) );
1171
        updateCheckedDebugToolBarAction();
1027
	}
1172
	}
1028
1173
1029
	/* (non-Javadoc)
1174
	/* (non-Javadoc)
Lines 1125-1130 Link Here
1125
        menu.appendToGroup(IDebugUIConstants.RENDER_GROUP, getAction(TOGGLE_STEP_FILTERS));
1270
        menu.appendToGroup(IDebugUIConstants.RENDER_GROUP, getAction(TOGGLE_STEP_FILTERS));
1126
    }
1271
    }
1127
	
1272
	
1273
	public void contextManagerChanged(ContextManagerEvent event) {
1274
	    if (event.isActiveContextsChanged()) {
1275
	        Set oldContexts = event.getPreviouslyActiveContextIds();
1276
	        Set newContexts = event.getContextManager().getActiveContextIds();
1277
	        if (oldContexts.contains(IDebugUIConstants.DEBUG_TOOLBAR_ACTION_SET) != 
1278
	            newContexts.contains(IDebugUIConstants.DEBUG_TOOLBAR_ACTION_SET)) 
1279
	        {
1280
	            updateCheckedDebugToolBarAction();
1281
	        }
1282
	    }
1283
	}
1284
	
1285
	private void updateCheckedDebugToolBarAction() {
1286
	    boolean debugToolBarInView = isDebugToolbarInView();
1287
        boolean toolbarActionSetActive = fContextService.getActiveContextIds().contains(IDebugUIConstants.DEBUG_TOOLBAR_ACTION_SET); 
1288
        for (int i = 0; i < fDebugToolBarActions.length; i++) {
1289
            fDebugToolBarActions[i].setChecked(
1290
                fDebugToolBarActions[i].getDebugViewToolbar() == debugToolBarInView &&
1291
                fDebugToolBarActions[i].getDebugToolbarActionSet() == toolbarActionSetActive);
1292
        }
1293
	}
1294
	
1128
	/**
1295
	/**
1129
	 * Updates the enabled state of the given action based on the selection
1296
	 * Updates the enabled state of the given action based on the selection
1130
	 * and adds to the menu if enabled.
1297
	 * and adds to the menu if enabled.
(-)ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewMessages.java (+11 lines)
Lines 32-37 Link Here
32
    public static String BreadcrumbDropDownAutoExpandAction_tooltip;
32
    public static String BreadcrumbDropDownAutoExpandAction_tooltip;
33
    public static String BreadcrumbDropDownAutoExpandAction_description;
33
    public static String BreadcrumbDropDownAutoExpandAction_description;
34
34
35
    public static String LaunchView_ToolBarMenu_label;
36
    public static String DebugToolBarAction_View_label;
37
    public static String DebugToolBarAction_View_tooltip;
38
    public static String DebugToolBarAction_View_description;
39
    public static String DebugToolBarAction_Window_label;
40
    public static String DebugToolBarAction_Window_tooltip;
41
    public static String DebugToolBarAction_Window_description;
42
    public static String DebugToolBarAction_Both_label;
43
    public static String DebugToolBarAction_Both_tooltip;
44
    public static String DebugToolBarAction_Both_description;
45
35
	static {
46
	static {
36
		// load message values from bundle file
47
		// load message values from bundle file
37
		NLS.initializeMessages(BUNDLE_NAME, LaunchViewMessages.class);
48
		NLS.initializeMessages(BUNDLE_NAME, LaunchViewMessages.class);
(-)ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewMessages.properties (+12 lines)
Lines 25-27 Link Here
25
BreadcrumbDropDownAutoExpandAction_label=Auto-&Expand Breadcrumb
25
BreadcrumbDropDownAutoExpandAction_label=Auto-&Expand Breadcrumb
26
BreadcrumbDropDownAutoExpandAction_tooltip=Auto-Expand Breadcrumb
26
BreadcrumbDropDownAutoExpandAction_tooltip=Auto-Expand Breadcrumb
27
BreadcrumbDropDownAutoExpandAction_description=In the breadcrumb drop-down, automatically expand elements to reveal full selection in view.
27
BreadcrumbDropDownAutoExpandAction_description=In the breadcrumb drop-down, automatically expand elements to reveal full selection in view.
28
29
LaunchView_ToolBarMenu_label=&Debug Toolbar
30
DebugToolBarAction_View_label=&View
31
DebugToolBarAction_View_tooltip=View
32
DebugToolBarAction_View_description=Show debug actions in Debug view toolbar
33
DebugToolBarAction_Window_label=&Window
34
DebugToolBarAction_Window_tooltip=Window
35
DebugToolBarAction_Window_description=Show debug action in Window toolbar
36
DebugToolBarAction_Both_label=&Both
37
DebugToolBarAction_Both_tooltip=Both
38
DebugToolBarAction_Both_description=Show debug actions in both toolbars
39
(-)ui/org/eclipse/debug/ui/IDebugUIConstants.java (-1 / +17 lines)
Lines 612-618 Link Here
612
	 */
612
	 */
613
	public static final String DEBUG_ACTION_SET= PLUGIN_ID + ".debugActionSet"; //$NON-NLS-1$
613
	public static final String DEBUG_ACTION_SET= PLUGIN_ID + ".debugActionSet"; //$NON-NLS-1$
614
614
615
	
615
    /**
616
     * Debug Toolbar action set identifier (value <code>"org.eclipse.debug.ui.debugToolbarActionSet"</code>).
617
     * 
618
     * @since 3.8
619
     */
620
    public static final String DEBUG_TOOLBAR_ACTION_SET= PLUGIN_ID + ".debugToolbarActionSet"; //$NON-NLS-1$
621
622
    /**
623
     * System property which indicates whether the common debugging actions 
624
     * should be shown in the Debug view, as opposed to the top level 
625
     * toolbar.  Actions contributing to the debug view can use this property
626
     * to control their visibility.
627
     * 
628
     * @since 3.8
629
     */
630
    public static final String DEBUG_VIEW_TOOBAR_VISIBLE = PLUGIN_ID + ".debugViewToolbarVisible"; //$NON-NLS-1$
631
        
616
	/**
632
	/**
617
	 * Launch action set identifier (value <code>"org.eclipse.debug.ui.launchActionSet"</code>).
633
	 * Launch action set identifier (value <code>"org.eclipse.debug.ui.launchActionSet"</code>).
618
	 */
634
	 */
(-)contexts_Debugger.xml (+12 lines)
Lines 543-548 Link Here
543
        <topic href="reference/views/debug/ref-debug_view.htm" label="Debug View"/>
543
        <topic href="reference/views/debug/ref-debug_view.htm" label="Debug View"/>
544
        <topic href="reference/views/debug/ref-breadcrumb.htm" label="Debug Breadcrumb"/>
544
        <topic href="reference/views/debug/ref-breadcrumb.htm" label="Debug Breadcrumb"/>
545
    </context>
545
    </context>
546
    <context id="debug_toolbar_view_action_context">
547
        <description>Configures the common debug actions to appear in the Debug view's toolbar.</description>
548
        <topic href="reference/views/debug/ref-debug_view.htm" label="Debug View"/>
549
    </context>
550
    <context id="debug_toolbar_window_action_context">
551
        <description>Configures the common debug actions to appear in the Window's main toolbar.</description>
552
        <topic href="reference/views/debug/ref-debug_view.htm" label="Debug View"/>
553
    </context>
554
    <context id="debug_toolbar_both_action_context">
555
        <description>Configures the common debug actions to appear both in the Debug view's toolbar and in the Window's main toolbar.</description>
556
        <topic href="reference/views/debug/ref-debug_view.htm" label="Debug View"/>
557
    </context>
546
	
558
	
547
<!--
559
<!--
548
	Detail Pane
560
	Detail Pane

Return to bug 258767