public final class LazyCodeAction extends CodeAction
Constructor and Description |
---|
LazyCodeAction(String title,
Command command,
java.util.function.Supplier<WorkspaceEdit> lazyEdit)
Constructs the
LazyCodeAction . |
LazyCodeAction(String title,
String kind,
Command command,
java.util.function.Supplier<WorkspaceEdit> lazyEdit)
Constructs the
LazyCodeAction . |
LazyCodeAction(String title,
java.util.function.Supplier<WorkspaceEdit> lazyEdit)
Constructs the
LazyCodeAction . |
Modifier and Type | Method and Description |
---|---|
WorkspaceEdit |
getEdit()
Return the edit associated with the action.
|
java.util.function.Supplier<WorkspaceEdit> |
getLazyEdit()
Returns the the lazily computed edit associated with the action.
|
getCommand, getKind, getTitle
public LazyCodeAction(String title, java.util.function.Supplier<WorkspaceEdit> lazyEdit)
LazyCodeAction
.title
- the name of the actionlazyEdit
- the lazily computed WorkspaceEdit
that should be performedpublic LazyCodeAction(String title, Command command, java.util.function.Supplier<WorkspaceEdit> lazyEdit)
LazyCodeAction
.title
- the name of the actioncommand
- the command that should be invokedlazyEdit
- the lazily computed WorkspaceEdit
that should be performedpublic LazyCodeAction(String title, String kind, Command command, java.util.function.Supplier<WorkspaceEdit> lazyEdit)
LazyCodeAction
.title
- the name of the actionkind
- optional kind of the actioncommand
- the command that should be invokedlazyEdit
- the lazily computed WorkspaceEdit
that should be performedpublic WorkspaceEdit getEdit()
CodeAction
getEdit
in class CodeAction
public java.util.function.Supplier<WorkspaceEdit> getLazyEdit()