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;
}
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());
}
Aggregations