mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
removed duplicate action in toolbar for changing editor presentation, bugzilla 135150
This commit is contained in:
parent
f1379fb1ed
commit
6870b4d629
3 changed files with 13 additions and 10 deletions
|
@ -7,6 +7,7 @@
|
|||
#
|
||||
# Contributors:
|
||||
# QNX Software Systems - initial API and implementation
|
||||
# Wind River Systems - fix for bugzilla 135150
|
||||
###############################################################################
|
||||
|
||||
MakeCWizard.title=C/Make Project
|
||||
|
@ -191,8 +192,8 @@ ContentAssistTip.tooltip=Content Tip
|
|||
ContentAssistTip.image=
|
||||
ContentAssistTip.description=Content Tip
|
||||
|
||||
TogglePresentation.label=Change Presentation
|
||||
TogglePresentation.tooltip=Enable/Disable Segmented Source Viewer
|
||||
TogglePresentation.label=Show Source of Selected Element Only
|
||||
TogglePresentation.tooltip=Show Source of Selected Element Only
|
||||
TogglePresentation.description=Enable/Disable Segmented Source Viewer
|
||||
|
||||
Comment.label=&Comment
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* QNX Software Systems - Initial API and implementation
|
||||
* Wind River Systems - fix for bugzilla 135150
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.make.internal.ui.editor;
|
||||
|
||||
|
@ -97,12 +98,13 @@ public class MakefileEditorActionContributor extends BasicTextEditorActionContri
|
|||
}
|
||||
|
||||
bars.setGlobalActionHandler(ITextEditorActionDefinitionIds.TOGGLE_SHOW_SELECTED_ELEMENT_ONLY, fTogglePresentation);
|
||||
|
||||
IToolBarManager toolBarManager = bars.getToolBarManager();
|
||||
if (toolBarManager != null) {
|
||||
toolBarManager.add(new Separator());
|
||||
toolBarManager.add(fTogglePresentation);
|
||||
}
|
||||
// there is a global action in the toolbar, that is retargeted,
|
||||
// there is no need to add another one.
|
||||
// IToolBarManager toolBarManager = bars.getToolBarManager();
|
||||
// if (toolBarManager != null) {
|
||||
// toolBarManager.add(new Separator());
|
||||
// toolBarManager.add(fTogglePresentation);
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ public class MakefileEditorTogglePresentationAction extends TextEditorAction {
|
|||
* Constructor for MakefileEditorTogglePresentationAction.
|
||||
*/
|
||||
public MakefileEditorTogglePresentationAction() {
|
||||
super(MakeUIPlugin.getDefault().getResourceBundle(), "MakefileEditorTogglePresentation.", null); //$NON-NLS-1$
|
||||
super(MakeUIPlugin.getDefault().getResourceBundle(), "TogglePresentation.", null); //$NON-NLS-1$
|
||||
MakeUIImages.setImageDescriptors(this, MakeUIImages.T_TOOL, MakeUIImages.IMG_TOOLS_MAKEFILE_SEGMENT_EDIT);
|
||||
update();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue