|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.ui.texteditor.ResourceAction
org.eclipse.ui.texteditor.TextEditorAction
org.eclipse.xtext.ui.editor.toggleComments.ToggleSLCommentAction
org.eclipse.xtend.ide.editor.RichStringAwareToggleCommentAction
public class RichStringAwareToggleCommentAction
Nested Class Summary | |
---|---|
static class |
RichStringAwareToggleCommentAction.Factory
|
Field Summary |
---|
Fields inherited from interface org.eclipse.jface.action.IAction |
---|
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
Constructor Summary | |
---|---|
RichStringAwareToggleCommentAction(java.util.ResourceBundle bundle,
java.lang.String prefix,
org.eclipse.ui.texteditor.ITextEditor editor)
|
Method Summary | |
---|---|
protected boolean |
isSelectionCommented(org.eclipse.jface.viewers.ISelection selection)
Is the given selection single-line commented? |
Methods inherited from class org.eclipse.xtext.ui.editor.toggleComments.ToggleSLCommentAction |
---|
configure, getDocumentPartitioning, getFirstCompleteLineOfRegion, getOperationTarget, getPrefixesMap, getTextBlockFromSelection, isBlockCommented, run, setEditor, update |
Methods inherited from class org.eclipse.ui.texteditor.TextEditorAction |
---|
canModifyEditor, getTextEditor, validateEditorInputState |
Methods inherited from class org.eclipse.ui.texteditor.ResourceAction |
---|
getString, initialize, setHelpContextId |
Methods inherited from class org.eclipse.jface.action.Action |
---|
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
Methods inherited from class org.eclipse.jface.action.AbstractAction |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.action.IAction |
---|
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public RichStringAwareToggleCommentAction(java.util.ResourceBundle bundle, java.lang.String prefix, org.eclipse.ui.texteditor.ITextEditor editor)
Method Detail |
---|
protected boolean isSelectionCommented(org.eclipse.jface.viewers.ISelection selection)
ToggleSLCommentAction
isSelectionCommented
in class ToggleSLCommentAction
selection
- Selection to check
true
iff all selected lines are commented
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |