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/OD/ItemCanvas.xsd | 34 +++++++ .../resources/boot/SC/LocalObjectDefCreator.xml | 9 +- src/main/resources/mapFiles/CanvasMap.xml | 109 +++++++++++++++++++++ 3 files changed, 149 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/boot/OD/ItemCanvas.xsd create mode 100644 src/main/resources/mapFiles/CanvasMap.xml (limited to 'src/main/resources') diff --git a/src/main/resources/boot/OD/ItemCanvas.xsd b/src/main/resources/boot/OD/ItemCanvas.xsd new file mode 100644 index 0000000..12aefaf --- /dev/null +++ b/src/main/resources/boot/OD/ItemCanvas.xsd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file 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. + } ]]> diff --git a/src/main/resources/mapFiles/CanvasMap.xml b/src/main/resources/mapFiles/CanvasMap.xml new file mode 100644 index 0000000..f623e52 --- /dev/null +++ b/src/main/resources/mapFiles/CanvasMap.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3