1
0
Fork 0
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:
Markus Schorn 2006-04-21 12:31:29 +00:00
parent f1379fb1ed
commit 6870b4d629
3 changed files with 13 additions and 10 deletions

View file

@ -7,6 +7,7 @@
# #
# Contributors: # Contributors:
# QNX Software Systems - initial API and implementation # QNX Software Systems - initial API and implementation
# Wind River Systems - fix for bugzilla 135150
############################################################################### ###############################################################################
MakeCWizard.title=C/Make Project MakeCWizard.title=C/Make Project
@ -191,10 +192,10 @@ ContentAssistTip.tooltip=Content Tip
ContentAssistTip.image= ContentAssistTip.image=
ContentAssistTip.description=Content Tip ContentAssistTip.description=Content Tip
TogglePresentation.label=Change Presentation TogglePresentation.label=Show Source of Selected Element Only
TogglePresentation.tooltip=Enable/Disable Segmented Source Viewer TogglePresentation.tooltip=Show Source of Selected Element Only
TogglePresentation.description=Enable/Disable Segmented Source Viewer TogglePresentation.description=Enable/Disable Segmented Source Viewer
Comment.label=&Comment Comment.label=&Comment
Comment.tooltip=Comment the Selected Lines Comment.tooltip=Comment the Selected Lines
Comment.description=Turn the selected lines into # style comments Comment.description=Turn the selected lines into # style comments

View file

@ -7,6 +7,7 @@
* *
* Contributors: * Contributors:
* QNX Software Systems - Initial API and implementation * QNX Software Systems - Initial API and implementation
* Wind River Systems - fix for bugzilla 135150
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.make.internal.ui.editor; 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); bars.setGlobalActionHandler(ITextEditorActionDefinitionIds.TOGGLE_SHOW_SELECTED_ELEMENT_ONLY, fTogglePresentation);
// there is a global action in the toolbar, that is retargeted,
IToolBarManager toolBarManager = bars.getToolBarManager(); // there is no need to add another one.
if (toolBarManager != null) { // IToolBarManager toolBarManager = bars.getToolBarManager();
toolBarManager.add(new Separator()); // if (toolBarManager != null) {
toolBarManager.add(fTogglePresentation); // toolBarManager.add(new Separator());
} // toolBarManager.add(fTogglePresentation);
// }
} }
} }

View file

@ -23,7 +23,7 @@ public class MakefileEditorTogglePresentationAction extends TextEditorAction {
* Constructor for MakefileEditorTogglePresentationAction. * Constructor for MakefileEditorTogglePresentationAction.
*/ */
public 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); MakeUIImages.setImageDescriptors(this, MakeUIImages.T_TOOL, MakeUIImages.IMG_TOOLS_MAKEFILE_SEGMENT_EDIT);
update(); update();
} }