use of org.knime.base.node.jsnippet.guarded.GuardedSection in project knime-core by knime.
the class JavaSnippet method initGuardedSections.
/**
* Initialize GUARDED_IMPORTS and GUARDED_FIELDS with information from the settings.
*/
private void initGuardedSections(final GuardedDocument doc) {
try {
GuardedSection imports = doc.getGuardedSection(GUARDED_IMPORTS);
imports.setText(createImportsSection());
GuardedSection fields = doc.getGuardedSection(GUARDED_FIELDS);
fields.setText(createFieldsSection());
} catch (BadLocationException e) {
throw new IllegalStateException(e.getMessage(), e);
}
}
Aggregations