Search in sources :

Example 11 with WorkflowLock

use of org.knime.core.node.workflow.WorkflowLock in project knime-core by knime.

the class SubNodeToMetaNodeResult method undo.

/**
 * Perform the undo.
 */
public void undo() {
    try (WorkflowLock lock = m_wfm.lock()) {
        // prevent events to be sent too early
        m_wfm.removeNode(m_nodeID);
        m_wfm.paste(m_undoPersistor);
    }
}
Also used : WorkflowLock(org.knime.core.node.workflow.WorkflowLock)

Aggregations

WorkflowLock (org.knime.core.node.workflow.WorkflowLock)11 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 IOException (java.io.IOException)2 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 HashMap (java.util.HashMap)1 Button (org.eclipse.swt.widgets.Button)1 InvalidSettingsException (org.knime.core.node.InvalidSettingsException)1 ExternalNodeData (org.knime.core.node.dialog.ExternalNodeData)1 ExternalNodeDataBuilder (org.knime.core.node.dialog.ExternalNodeData.ExternalNodeDataBuilder)1 ValidationError (org.knime.core.node.web.ValidationError)1 NodeContainerState (org.knime.core.node.workflow.NodeContainerState)1 NodeID (org.knime.core.node.workflow.NodeID)1 SinglePageWebResourceController (org.knime.core.node.workflow.SinglePageWebResourceController)1 WizardExecutionController (org.knime.core.node.workflow.WizardExecutionController)1 WorkflowManager (org.knime.core.node.workflow.WorkflowManager)1