Skip to content

Commit 25c98ed

Browse files
NicoPeters.NPNicoPeters.NP
NicoPeters.NP
authored and
NicoPeters.NP
committed
merged trunk into prod (3409)
git-svn-id: http://oryx-editor.googlecode.com/svn/branches/prod@3410 d672c736-503d-0410-a38a-9366997c882b
1 parent 9be4142 commit 25c98ed

File tree

222 files changed

+19479
-342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+19479
-342
lines changed

.classpath

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<classpathentry kind="src" path="poem-jvm/test/selenium"/>
77
<classpathentry kind="src" path="poem-jvm/test/java"/>
88
<classpathentry kind="src" path="buildApps/src"/>
9+
<classpathentry excluding="src/" kind="src" path="editor/server"/>
910
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
1011
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
1112
<classpathentry kind="lib" path="poem-jvm/lib/antlr-2.7.6.jar"/>
@@ -161,5 +162,6 @@
161162
<classpathentry kind="lib" path="poem-jvm/lib/jcip-annotations-1.0.jar"/>
162163
<classpathentry kind="lib" path="poem-jvm/lib/js.jar"/>
163164
<classpathentry kind="lib" path="editor/lib/xstream-1.3.1.jar"/>
165+
<classpathentry kind="lib" path="editor/lib/xmappr-0.9.2-serializable.jar"/>
164166
<classpathentry kind="output" path="bin"/>
165167
</classpath>

editor/client/scripts/Plugins/Layouter/containerLayouter.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
/**
33-
* This plugin provides methodes to layout elements that typically contains
33+
* This plugin provides methods to layout elements that typically contain
3434
* a bunch of child elements, such as subprocesses or lanes.
3535
*
3636
* @class ORYX.Plugins.ContainerLayouter
@@ -126,9 +126,9 @@ ORYX.Plugins.ContainerLayouter = {
126126
* @param {Object} shape
127127
* The container.
128128
* @param {Object} childsBounds
129-
* The bounds including all childs
129+
* The bounds including all children
130130
* @param {Object} ulChildAbsBounds
131-
* The absolute bounds including all childs
131+
* The absolute bounds including all children
132132
*/
133133
ensureContainersMinimumSize: function(shape, childsBounds, ulChildAbsBounds, ignoreList, options) {
134134
var bounds = shape.bounds;
@@ -142,7 +142,7 @@ ORYX.Plugins.ContainerLayouter = {
142142
}
143143

144144
if(!shape.isResized) {
145-
/* Childs movement after widen the conatiner */
145+
/* Childs movement after widening the conatiner */
146146
var yMovement = 0;
147147
var xMovement = 0;
148148
var changeBounds = false;
@@ -188,7 +188,7 @@ ORYX.Plugins.ContainerLayouter = {
188188

189189
this.moveChildsBy(shape, {x: xMovement, y: yMovement}, ignoreList);
190190

191-
/* Signals that child are already move to correct position */
191+
/* Signals that children are already move to correct position */
192192
return true;
193193
}
194194

@@ -382,7 +382,7 @@ ORYX.Plugins.ContainerLayouter = {
382382
},
383383

384384
/**
385-
* Returns the direct child shapes that are not on the irgnore list.
385+
* Returns the direct child shapes that are not on the ignore list.
386386
*/
387387
getChildShapesWithout: function(shape, ignoreList) {
388388
var childs = shape.getChildShapes(false);
@@ -392,4 +392,4 @@ ORYX.Plugins.ContainerLayouter = {
392392
}
393393
}
394394

395-
ORYX.Plugins.ContainerLayouter = ORYX.Plugins.AbstractPlugin.extend(ORYX.Plugins.ContainerLayouter);
395+
ORYX.Plugins.ContainerLayouter = ORYX.Plugins.AbstractPlugin.extend(ORYX.Plugins.ContainerLayouter);

editor/client/scripts/Plugins/bpmn2xpdl20.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

editor/client/scripts/Plugins/cpntoolsSupport.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ ORYX.Plugins.CPNToolsSupport = ORYX.Plugins.AbstractPlugin.extend({
1515
this.facade.offer({
1616
'name': "Export to CPN Tools",
1717
'functionality': this.exportCPN.bind(this),
18-
'group': "CPNTools",
19-
'icon': ORYX.PATH + "images/cpn/cpn_import.png",
18+
'group': ORYX.I18N.cpntoolsSupport.group,
19+
'dropDownGroupIcon':ORYX.PATH + "images/export2.png",
20+
'icon': ORYX.PATH + "images/cpn/cpn_export.png",
2021
'description': ORYX.I18N.cpntoolsSupport.exportDescription,
21-
'index': 1,
22+
'index': 0,
2223
'minShape': 0,
2324
'maxShape': 0,
2425
'maxShape': 0
@@ -27,8 +28,9 @@ ORYX.Plugins.CPNToolsSupport = ORYX.Plugins.AbstractPlugin.extend({
2728
this.facade.offer({
2829
'name': "Import from CPN Tools",
2930
'functionality': this.importCPN.bind(this),
30-
'group': "CPNTools",
31-
'icon': ORYX.PATH + "images/cpn/cpn_export.png",
31+
'group': ORYX.I18N.cpntoolsSupport.group,
32+
'dropDownGroupIcon':ORYX.PATH + "images/import.png",
33+
'icon': ORYX.PATH + "images/cpn/cpn_import.png",
3234
'description': ORYX.I18N.cpntoolsSupport.importDescription,
3335
'index': 1,
3436
'minShape': 0,

editor/client/scripts/Plugins/jpdlSupport.js

+26-18
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ ORYX.Plugins.JPDLSupport = ORYX.Plugins.AbstractPlugin.extend({
2828

2929
facade: undefined,
3030

31-
jPDLImporterUrl: 'backend/poem/new_jpdl',
32-
jPDLExporterUrlSuffix: '/jpdl',
3331

3432
stencilSetExtensionNamespace: 'http://oryx-editor.org/stencilsets/extensions/jbpm#',
3533
stencilSetExtensionDefinition: 'jbpm/jbpm.json',
@@ -91,16 +89,25 @@ ORYX.Plugins.JPDLSupport = ORYX.Plugins.AbstractPlugin.extend({
9189
*
9290
*/
9391
exportJPDL: function(){
94-
// TODO: save?
95-
var loc = location.href;
96-
var jpdlLoc ;
97-
if ( loc.length > 4 && loc.substring(loc.length - 5) == "/self" ) {
98-
jpdlLoc = loc.substring(0, loc.length - 5) + this.jPDLExporterUrlSuffix;
99-
} else {
100-
alert("TODO: Integrate existing export with new models.. ");
101-
return ;
102-
}
103-
this._doExport( jpdlLoc );
92+
// raise loading enable event
93+
this.facade.raiseEvent({
94+
type: ORYX.CONFIG.EVENT_LOADING_ENABLE
95+
});
96+
97+
// asynchronously ...
98+
window.setTimeout((function(){
99+
100+
// ... save synchronously
101+
this._doExport();
102+
// raise loading disable event.
103+
this.facade.raiseEvent({
104+
type: ORYX.CONFIG.EVENT_LOADING_DISABLE
105+
});
106+
107+
}).bind(this), 10);
108+
109+
return true;
110+
104111

105112
},
106113

@@ -207,12 +214,13 @@ ORYX.Plugins.JPDLSupport = ORYX.Plugins.AbstractPlugin.extend({
207214
* Opens an export window / tab.
208215
*
209216
*/
210-
_doExport: function( url ){
211-
217+
_doExport: function(){
218+
var serialized_json = this.facade.getSerializedJSON();
219+
212220
this._sendRequest(
213-
url,
214-
'GET',
215-
{ },
221+
ORYX.CONFIG.JPDLEXPORTURL,
222+
'POST',
223+
{ data:serialized_json },
216224
function( result ) {
217225
var parser = new DOMParser();
218226
var parsedResult = parser.parseFromString(result, "text/xml");
@@ -285,7 +293,7 @@ ORYX.Plugins.JPDLSupport = ORYX.Plugins.AbstractPlugin.extend({
285293
var jpdlString = form.items.items[2].getValue();
286294

287295
this._sendRequest(
288-
this.jPDLImporterUrl,
296+
ORYX.CONFIG.JPDLIMPORTURL,
289297
'POST',
290298
{ 'data' : jpdlString },
291299
function( arg ) { this._loadJSON( arg ); loadMask.hide(); dialog.hide(); }.bind(this),

editor/client/scripts/Plugins/plugins.xml

+13-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
</plugin>
2727

2828
<plugin source="jpdlSupport.js" name="ORYX.Plugins.JPDLSupport">
29-
<requires namespace="http://b3mn.org/stencilset/bpmn1.1#"/>
29+
<requires namespace="http://b3mn.org/stencilset/bpmn1.1#"/>
30+
<!-- plugin loads dynamically the needed extension
31+
<requires namespace="http://oryx-editor.org/stencilsets/extensions/jbpm#"/>
32+
-->
3033
</plugin>
3134

3235
<!-- User Interface Aggregation -->
@@ -82,7 +85,7 @@
8285
<plugin source="overlay.js" name="ORYX.Plugins.Overlay" />
8386
<plugin source="edit.js" name="ORYX.Plugins.Edit" />
8487
<plugin source="keysMove.js" name="ORYX.Plugins.KeysMove" />
85-
<!--plugin source="Layouter/containerLayouter.js" name="ORYX.Plugins.ContainerLayouter" /-->
88+
<plugin source="Layouter/containerLayouter.js" name="ORYX.Plugins.ContainerLayouter" />
8689

8790
<!-- plugin for PNML export and deployment -->
8891
<plugin source="pnmlexport.js" name="ORYX.Plugins.Pnmlexport">
@@ -264,9 +267,11 @@
264267
<requires namespace="http://b3mn.org/stencilset/bpmn#"/>
265268
</plugin>
266269

270+
<!-- Replaced by BPMN2XPDL 2.0
267271
<plugin source="bpmn2xpdl.js" name="ORYX.Plugins.BPMN2XPDL">
268272
<requires namespace="http://b3mn.org/stencilset/bpmn1.1#"/>
269273
</plugin>
274+
-->
270275

271276
<plugin source="bpmn2xhtml.js" name="ORYX.Plugins.BPMN2XHTML">
272277
<requires namespace="http://b3mn.org/stencilset/bpmn1.1#"/>
@@ -324,6 +329,7 @@
324329
<plugin source="bpmn.js" name="ORYX.Plugins.BPMN" />
325330

326331

332+
327333
<plugin source="feedback.js" name="ORYX.Plugins.Feedback">
328334
<property name="cssfile" value="/oryx/css/feedback.css" />
329335
<!-- configure subjects and info in localization: /editor/data/I18N#ORYX.I18N.Feedback.subjects -->
@@ -333,8 +339,13 @@
333339

334340
<plugin source="fileRepository.js" name="ORYX.Plugins.FileRepositorySave" />
335341

342+
<plugin source="bpmn2xpdl20.js" name="ORYX.Plugins.BPMN2XPDL20" >
343+
<requires namespace="http://b3mn.org/stencilset/bpmn1.1#"/>
344+
</plugin>
345+
336346
</plugins>
337347

348+
338349
<properties>
339350
<property group="File" index="1" />
340351
<property group="Edit" index="2" />

editor/client/scripts/Plugins/profiles.xml

+6-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<plugin name="ORYX.Plugins.ShapeRepository"/>
99
<plugin name="ORYX.Plugins.PropertyWindow"/>
1010
<plugin name="ORYX.Plugins.CanvasResize"/>
11-
<plugin name="ORYX.Plugins.View"/>
11+
<!-- plugin name="ORYX.Plugins.View"/ -->
1212
<plugin name="ORYX.Plugins.DragDropResize"/>
1313
<plugin name="ORYX.Plugins.RenameShapes" />
1414
<plugin name="ORYX.Plugins.ERDFSupport" />
@@ -31,8 +31,10 @@
3131
<plugin name="ORYX.Plugins.PluginLoader"/>
3232
<plugin name="ORYX.Plugins.File"/>
3333
<plugin name="ORYX.Plugins.Save"/>
34-
<!--plugin source="Layouter/containerLayouter.js" name="ORYX.Plugins.ContainerLayouter" /-->
35-
<plugin source="Layouter/edgeLayouter.js" name="ORYX.Plugins.Layouter.EdgeLayouter"/>
34+
<plugin source="Layouter/containerLayouter.js" name="ORYX.Plugins.ContainerLayouter" />
35+
<plugin source="Layouter/edgeLayouter.js" name="ORYX.Plugins.Layouter.EdgeLayouter"/>
36+
37+
3638
</profile>
3739
<profile name="bpmn" depends="default" stencilset="stencilsets/bpmn1.1/bpmn1.1.json">
3840
<plugin name="ORYX.Plugins.BPMN2XForms"/>
@@ -47,7 +49,7 @@
4749
<plugin name="ORYX.Plugins.QueryResultHighlighter"/>
4850
<plugin name="ORYX.Plugins.BpmnLayouter"/>
4951
<plugin name="ORYX.Plugins.PNExport"/>
50-
<plugin name="ORYX.Plugins.BPMN2XPDL"/>
52+
<plugin name="ORYX.Plugins.BPMN2XPDL20"/>
5153
<plugin name="ORYX.Plugins.BPMN2DTRPXMI"/>
5254
</profile>
5355
<profile name="bpmn2.0" depends="default" stencilset="stencilsets/bpmn2.0/bpmn2.0.json">
@@ -135,9 +137,6 @@
135137
<plugin name="ORYX.Plugins.CPNToolsSupport"/>
136138
</profile>
137139

138-
<profile name="pms" depends="default">
139-
<plugin name="ORYX.Plugins.FileRepositorySave" />
140-
</profile>
141140
<profile name="uml2.2" depends="default" stencilset="stencilsets/uml2.2/uml2.2.json">
142141

143142
<plugin name="ORYX.Plugins.UML"/>

editor/client/scripts/config.js

+5
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,13 @@ ORYX.CONFIG.BPMN_LAYOUTER = ORYX.CONFIG.ROOT_PATH + "bpmnlayouter";
5757
ORYX.CONFIG.EPC_LAYOUTER = ORYX.CONFIG.ROOT_PATH + "epclayouter";
5858
ORYX.CONFIG.BPMN2MIGRATION = ORYX.CONFIG.ROOT_PATH + "bpmn2migration";
5959
ORYX.CONFIG.BPMN20_SCHEMA_VALIDATION_ON = true;
60+
ORYX.CONFIG.JPDLIMPORTURL = ORYX.CONFIG.ROOT_PATH + "jpdlimporter";
61+
ORYX.CONFIG.JPDLEXPORTURL = ORYX.CONFIG.ROOT_PATH + "jpdlexporter";
6062
ORYX.CONFIG.CPNTOOLSEXPORTER = ORYX.CONFIG.ROOT_PATH + "cpntoolsexporter";
6163
ORYX.CONFIG.CPNTOOLSIMPORTER = ORYX.CONFIG.ROOT_PATH + "cpntoolsimporter";
64+
ORYX.CONFIG.BPMN2XPDLPATH = ORYX.CONFIG.ROOT_PATH + "bpmn2xpdl";
65+
66+
6267

6368
/* Namespaces */
6469
ORYX.CONFIG.NAMESPACE_ORYX = "http://www.b3mn.org/oryx";

editor/data/i18n/translation_en_us.js

+9
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,14 @@ Ext.MessageBox.buttonText.ok = "OK";
491491
if(!ORYX.I18N.BPMN2XPDL) ORYX.I18N.BPMN2XPDL = {};
492492
ORYX.I18N.BPMN2XPDL.group = "Export";
493493
ORYX.I18N.BPMN2XPDL.xpdlExport = "Export to XPDL";
494+
ORYX.I18N.BPMN2XPDL.xpdlImport = "Import from XPDL";
495+
ORYX.I18N.BPMN2XPDL.importGroup = "Import";
496+
ORYX.I18N.BPMN2XPDL.selectFile = "Select a XPDL (.xml) file or type in the XPDL to import it!";
497+
ORYX.I18N.BPMN2XPDL.file = "File";
498+
ORYX.I18N.BPMN2XPDL.impXPDL = "Import XPDL";
499+
ORYX.I18N.BPMN2XPDL.impBtn = "Import";
500+
ORYX.I18N.BPMN2XPDL.impProgress = "Importing...";
501+
ORYX.I18N.BPMN2XPDL.close = "Close";
494502

495503
/** Resource Perspective Additions: 24 March 2009 */
496504
if(!ORYX.I18N.ResourcesSoDAdd) ORYX.I18N.ResourcesSoDAdd = {};
@@ -815,6 +823,7 @@ ORYX.I18N.cpntoolsSupport.importLable = "Import";
815823
ORYX.I18N.cpntoolsSupport.close = "Close";
816824
ORYX.I18N.cpntoolsSupport.wrongCPNFile = "Not chosen correct CPN - File.";
817825
ORYX.I18N.cpntoolsSupport.noPageSelection = "No page has been selected.";
826+
ORYX.I18N.cpntoolsSupport.group = "Export";
818827
ORYX.I18N.cpntoolsSupport.importProgress = "Importing ...";
819828
ORYX.I18N.cpntoolsSupport.exportProgress = "Exporting ...";
820829
ORYX.I18N.cpntoolsSupport.exportDescription = "Export to CPN Tools";

0 commit comments

Comments
 (0)