public final class ToggleSLCommentAction
extends Action
Constructor and Description |
---|
ToggleSLCommentAction(ITextViewer viewer)
Creates and initializes the action for the given text editor.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(ISourceViewer sourceViewer,
SourceViewerConfiguration configuration) |
void |
run()
Implementation of the
IAction prototype. |
void |
update()
Implementation of the
IUpdate prototype method discovers
the operation through the current editor's
ITextOperationTarget adapter, and sets the enabled state
accordingly. |
public ToggleSLCommentAction(ITextViewer viewer)
public void run()
IAction
prototype. Checks if the selected
lines are all commented or not and uncomments/comments them respectively.public void update()
IUpdate
prototype method discovers
the operation through the current editor's
ITextOperationTarget
adapter, and sets the enabled state
accordingly.public void configure(ISourceViewer sourceViewer, SourceViewerConfiguration configuration)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.