mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 08:45:44 +02:00
2005-02-25 Alain Magloire
Fix for PR 45666: Adding Block comment mneu in the CEditor "/* */" * src/org/eclipse/cdt/internal/ui/actions/RemoveBlockCommentAction.java * src/org/eclipse/cdt/internal/ui/editor/CEditor.java * NEWS
This commit is contained in:
parent
b6bacb6478
commit
b9dc18ad86
4 changed files with 13 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-02-25 Alain Magloire
|
||||
Fix for PR 45666: Adding Block comment mneu in the CEditor "/* */"
|
||||
* src/org/eclipse/cdt/internal/ui/actions/RemoveBlockCommentAction.java
|
||||
* src/org/eclipse/cdt/internal/ui/editor/CEditor.java
|
||||
* NEWS
|
||||
|
||||
2005-02-25 Alain Magloire
|
||||
Fix PR 86647: remove the hyperlink preference page in the CEditor preference
|
||||
Use the Text Editors
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
Release CDT-3.0
|
||||
|
||||
* Block Comment style(/* */) added in the CEditor context menu.
|
||||
|
||||
* All the CEditor text preference settings are now common with the text editors.
|
||||
To access use Window --> Preferences --> General --> Editors --> Text Editors
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ public class RemoveBlockCommentAction extends BlockCommentAction {
|
|||
* @see org.eclipse.jdt.internal.ui.actions.AddBlockCommentAction#validSelection(org.eclipse.jface.text.ITextSelection)
|
||||
*/
|
||||
protected boolean isValidSelection(ITextSelection selection) {
|
||||
return selection != null && !selection.isEmpty();
|
||||
return selection != null && !selection.isEmpty() && selection.getLength() > 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -693,11 +693,11 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IS
|
|||
action.setActionDefinitionId(ICEditorActionDefinitionIds.OPEN_OUTLINE);
|
||||
setAction("OpenOutline", action); //$NON-NLS-1$*/
|
||||
|
||||
action = new GoToNextPreviousMemberAction(CEditorMessages.getResourceBundle(), "GotoNextMemeber.", this, true);
|
||||
action = new GoToNextPreviousMemberAction(CEditorMessages.getResourceBundle(), "GotoNextMember.", this, true);
|
||||
action.setActionDefinitionId(ICEditorActionDefinitionIds.GOTO_NEXT_MEMBER);
|
||||
setAction("GotoNextMember", action); //$NON-NLS-1$*/
|
||||
|
||||
action = new GoToNextPreviousMemberAction(CEditorMessages.getResourceBundle(), "GotoPrevMemeber.", this, false);
|
||||
action = new GoToNextPreviousMemberAction(CEditorMessages.getResourceBundle(), "GotoPrevMember.", this, false);
|
||||
action.setActionDefinitionId(ICEditorActionDefinitionIds.GOTO_PREVIOUS_MEMBER);
|
||||
setAction("GotoPrevMember", action); //$NON-NLS-1$*/
|
||||
|
||||
|
@ -719,8 +719,8 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IS
|
|||
// Code formatting menu items -- only show in C perspective
|
||||
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "Comment"); //$NON-NLS-1$
|
||||
addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "Uncomment"); //$NON-NLS-1$
|
||||
// @@@ disabled for now until we get it to do something...
|
||||
//addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "Format"); //$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_FIND, "OpenDeclarations"); //$NON-NLS-1$
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue