diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2013-08-28 14:58:42 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2013-08-28 14:58:42 +0200 |
| commit | 7179ca007fe95ab5230df2bd4bceaff5653e7375 (patch) | |
| tree | e859d8e4855862a6681ff24836c8e27f28776acc /src/main/resources/boot/SC | |
| parent | a9a08fcac876fcf4d6189de2d8e7cf88ba12d5ef (diff) | |
Initial canvas work
Diffstat (limited to 'src/main/resources/boot/SC')
| -rw-r--r-- | src/main/resources/boot/SC/LocalObjectDefCreator.xml | 9 |
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>
|
