mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +02:00
Fix for 143153. Modifications to the original for: corrected copyright notice, add the comment item to the pop-up menu, and renamed it from Toggle comment to Comment/Uncomment
This commit is contained in:
parent
98de9fd872
commit
c3f32e31a7
4 changed files with 10 additions and 11 deletions
|
@ -24,7 +24,7 @@ perspective.name=C/C++
|
||||||
viewsCategory.name=&C/C++
|
viewsCategory.name=&C/C++
|
||||||
CView.name=C/C++ Projects
|
CView.name=C/C++ Projects
|
||||||
|
|
||||||
ToggleCommentAction.label= Togg&le Comment
|
ToggleCommentAction.label= Comment/Uncomment
|
||||||
|
|
||||||
AddBlockCommentAction.label= Add &Block Comment
|
AddBlockCommentAction.label= Add &Block Comment
|
||||||
|
|
||||||
|
@ -86,8 +86,8 @@ ActionDefinition.comment.description= Turn the selected lines into // style comm
|
||||||
ActionDefinition.uncomment.name= Uncomment
|
ActionDefinition.uncomment.name= Uncomment
|
||||||
ActionDefinition.uncomment.description= Uncomment the selected // style comment lines
|
ActionDefinition.uncomment.description= Uncomment the selected // style comment lines
|
||||||
|
|
||||||
ActionDefinition.toggleComment.name= Toggle Comment
|
ActionDefinition.toggleComment.name= Comment/Uncomment
|
||||||
ActionDefinition.toggleComment.description= Toggle comment the selected lines
|
ActionDefinition.toggleComment.description= Comment/Uncomment the selected lines
|
||||||
|
|
||||||
ActionDefinition.opendecl.name= Open Declaration
|
ActionDefinition.opendecl.name= Open Declaration
|
||||||
ActionDefinition.opendecl.description= Open an editor on the selected element's declaration(s)
|
ActionDefinition.opendecl.description= Open an editor on the selected element's declaration(s)
|
||||||
|
|
|
@ -1105,8 +1105,7 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IS
|
||||||
addGroup(menu, ITextEditorActionConstants.GROUP_EDIT, IContextMenuConstants.GROUP_NEW);
|
addGroup(menu, ITextEditorActionConstants.GROUP_EDIT, IContextMenuConstants.GROUP_NEW);
|
||||||
|
|
||||||
// Code formatting menu items -- only show in C perspective
|
// Code formatting menu items -- only show in C perspective
|
||||||
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "Comment"); //$NON-NLS-1$
|
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "ToggleComment"); //$NON-NLS-1$
|
||||||
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "Uncomment"); //$NON-NLS-1$
|
|
||||||
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "AddBlockComment"); //$NON-NLS-1$
|
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "AddBlockComment"); //$NON-NLS-1$
|
||||||
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "RemoveBlockComment"); //$NON-NLS-1$
|
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "RemoveBlockComment"); //$NON-NLS-1$
|
||||||
|
|
||||||
|
|
|
@ -136,9 +136,9 @@ Uncomment.label=Uncommen&t
|
||||||
Uncomment.tooltip=Uncomment the Selected C // comment Lines
|
Uncomment.tooltip=Uncomment the Selected C // comment Lines
|
||||||
Uncomment.description=Uncomment the selected C // comment lines
|
Uncomment.description=Uncomment the selected C // comment lines
|
||||||
|
|
||||||
ToggleComment.label=Togg&le Comment
|
ToggleComment.label=Comment/Uncomment
|
||||||
ToggleComment.tooltip=Toggle Comment For the Selected Lines
|
ToggleComment.tooltip=Comment/Uncomment For the Selected Lines
|
||||||
ToggleComment.description=Toggle comment for the selected lines
|
ToggleComment.description=Comment/Uncomment for the selected lines
|
||||||
|
|
||||||
AddBlockComment.label=Add &Block Comment
|
AddBlockComment.label=Add &Block Comment
|
||||||
AddBlockComment.tooltip=Enclose the Selection in a Block Comment
|
AddBlockComment.tooltip=Enclose the Selection in a Block Comment
|
||||||
|
@ -199,5 +199,5 @@ GotoPrevMember.tooltip=Goes to previous member.
|
||||||
|
|
||||||
ShowToolTip.label=Show T&ooltip Description
|
ShowToolTip.label=Show T&ooltip Description
|
||||||
|
|
||||||
ToggleComment_error_title=Toggle Comment
|
ToggleComment_error_title=Comment/Uncomment
|
||||||
ToggleComment_error_message=An error occurred while toggling comments.
|
ToggleComment_error_message=An error occurred while commenting/uncommenting.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2000, 2006 IBM Corporation and others.
|
* Copyright (c) 2006 IBM Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
|
Loading…
Add table
Reference in a new issue