Search in sources :

Example 1 with SinglePageManager

use of org.knime.core.wizard.SinglePageManager in project knime-core by knime.

the class OpenSubnodeWebViewAction method hasContainerView.

static boolean hasContainerView(final NodeContainer cont) {
    boolean hasView = false;
    if (cont instanceof SubNodeContainer) {
        SinglePageManager spm = SinglePageManager.of(cont.getParent());
        hasView = spm.hasWizardPage(cont.getID());
    }
    return hasView;
}
Also used : SubNodeContainer(org.knime.core.node.workflow.SubNodeContainer) SinglePageManager(org.knime.core.wizard.SinglePageManager)

Example 2 with SinglePageManager

use of org.knime.core.wizard.SinglePageManager in project knime-core by knime.

the class OpenSubnodeWebViewAction method isEnabled.

/**
 * {@inheritDoc}
 */
@Override
public boolean isEnabled() {
    boolean executed = m_nodeContainer.getNodeContainerState().isExecuted();
    SinglePageManager spm = SinglePageManager.of(m_nodeContainer.getParent());
    return executed && spm.hasWizardPage(m_nodeContainer.getID());
}
Also used : SinglePageManager(org.knime.core.wizard.SinglePageManager)

Aggregations

SinglePageManager (org.knime.core.wizard.SinglePageManager)2 SubNodeContainer (org.knime.core.node.workflow.SubNodeContainer)1