From 7179ca007fe95ab5230df2bd4bceaff5653e7375 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Wed, 28 Aug 2013 14:58:42 +0200 Subject: Initial canvas work --- src/main/resources/boot/SC/LocalObjectDefCreator.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main/resources/boot/SC/LocalObjectDefCreator.xml') 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. + } ]]> -- cgit v1.2.3