public final class ExtractAction extends CallableSystemAction {
public void performAction() {
EditorTopComponent editor = EditorTopComponent.getActive();
if (editor != null) {
editor.extract();
}
}
public ExtractAction() {
putValue(Action.SHORT_DESCRIPTION, "Extract current set of selected nodes");