summaryrefslogtreecommitdiff
path: root/src/main/resources/boot/SC/LocalObjectDefCreator.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/boot/SC/LocalObjectDefCreator.xml')
-rw-r--r--src/main/resources/boot/SC/LocalObjectDefCreator.xml9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/resources/boot/SC/LocalObjectDefCreator.xml b/src/main/resources/boot/SC/LocalObjectDefCreator.xml
index 18de872..6ed88e6 100644
--- a/src/main/resources/boot/SC/LocalObjectDefCreator.xml
+++ b/src/main/resources/boot/SC/LocalObjectDefCreator.xml
@@ -47,9 +47,12 @@
newItem.requestAction(agent.getSystemKey(), "workflow/domain/EditDefinition", Transitions.DONE, newObj);
// If this script is running in the Cristal GUI, open the new item.
- //var tree = Packages.com.c2kernel.gui.MainFrame.treeBrowser;
- //if (tree != null) // open new item in the gui
- // tree.push(newPath);
+ try {
+ var tree = Packages.com.c2kernel.gui.MainFrame.treeBrowser;
+ if (tree != null) // open new item in the gui
+ tree.push(newPath);
+ } catch (e) { // hopefully catch any classloading errors on headless systems. hopefully.
+ }
]]></script>
</cristalscript>