public class CodeAction extends Object
| Constructor and Description |
|---|
CodeAction(String title,
Command command)
Construct the
CodeAction. |
CodeAction(String title,
Command command,
WorkspaceEdit edit)
Construct the
CodeAction. |
CodeAction(String title,
WorkspaceEdit edit)
Construct the
CodeAction. |
| Modifier and Type | Method and Description |
|---|---|
Command |
getCommand()
Return the command of the action.
|
WorkspaceEdit |
getEdit()
Return the edit associated with the action.
|
String |
getTitle()
Return the name of the action.
|
public CodeAction(String title, Command command)
CodeAction.title - the name of the actioncommand - the command that should be invokedpublic CodeAction(String title, WorkspaceEdit edit)
CodeAction.title - the name of the actionedit - the WorkspaceEdit that should be performedpublic CodeAction(String title, Command command, WorkspaceEdit edit)
CodeAction.text - the name of the actioncommand - the command that should be invokededit - the WorkspaceEdit that should be performedpublic String getTitle()
public Command getCommand()
public WorkspaceEdit getEdit()