parent
7b712d8428
commit
a70778880f
|
@ -95,9 +95,12 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
||||||
create.start(event, shape, element);
|
create.start(event, shape, element);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var shortType = type.replace(/^bpmn\:/, '');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
group: 'model',
|
group: 'model',
|
||||||
className: className,
|
className: className,
|
||||||
|
title: 'Append ' + shortType,
|
||||||
action: {
|
action: {
|
||||||
dragstart: appendListener,
|
dragstart: appendListener,
|
||||||
click: appendListener
|
click: appendListener
|
||||||
|
@ -135,15 +138,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
||||||
{ _eventDefinitionType: 'bpmn:ConditionalEventDefinition'}),
|
{ _eventDefinitionType: 'bpmn:ConditionalEventDefinition'}),
|
||||||
'append.signal-intermediate-event': appendAction('bpmn:IntermediateCatchEvent',
|
'append.signal-intermediate-event': appendAction('bpmn:IntermediateCatchEvent',
|
||||||
'icon-intermediate-event-catch-signal',
|
'icon-intermediate-event-catch-signal',
|
||||||
{ _eventDefinitionType: 'bpmn:SignalEventDefinition'}),
|
{ _eventDefinitionType: 'bpmn:SignalEventDefinition'})
|
||||||
'connect': {
|
|
||||||
group: 'connect',
|
|
||||||
className: 'icon-connection',
|
|
||||||
action: {
|
|
||||||
click: startConnect,
|
|
||||||
dragstart: startConnect
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,6 +149,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
||||||
'replace': {
|
'replace': {
|
||||||
group: 'edit',
|
group: 'edit',
|
||||||
className: 'icon-screw-wrench',
|
className: 'icon-screw-wrench',
|
||||||
|
title: 'Change type',
|
||||||
action: {
|
action: {
|
||||||
click: function(event, element) {
|
click: function(event, element) {
|
||||||
bpmnReplace.openChooser(getReplaceMenuPosition(element), element);
|
bpmnReplace.openChooser(getReplaceMenuPosition(element), element);
|
||||||
|
@ -172,7 +168,8 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
||||||
|
|
||||||
'connect': {
|
'connect': {
|
||||||
group: 'connect',
|
group: 'connect',
|
||||||
className: 'icon-connection-multi',
|
className: 'icon-connection',
|
||||||
|
title: 'Connect using Sequence/MessageFlow',
|
||||||
action: {
|
action: {
|
||||||
click: startConnect,
|
click: startConnect,
|
||||||
dragstart: startConnect
|
dragstart: startConnect
|
||||||
|
@ -186,6 +183,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
||||||
'delete': {
|
'delete': {
|
||||||
group: 'edit',
|
group: 'edit',
|
||||||
className: 'icon-trash',
|
className: 'icon-trash',
|
||||||
|
title: 'Remove',
|
||||||
action: {
|
action: {
|
||||||
click: removeElement,
|
click: removeElement,
|
||||||
dragstart: removeElement
|
dragstart: removeElement
|
||||||
|
|
|
@ -41,10 +41,12 @@ PaletteProvider.prototype.getPaletteEntries = function(element) {
|
||||||
create.start(event, shape);
|
create.start(event, shape);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var shortType = type.replace(/^bpmn\:/, '');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
group: group,
|
group: group,
|
||||||
className: className,
|
className: className,
|
||||||
title: title || 'Create ' + type,
|
title: title || 'Create ' + shortType,
|
||||||
action: {
|
action: {
|
||||||
dragstart: createListener,
|
dragstart: createListener,
|
||||||
click: createListener
|
click: createListener
|
||||||
|
@ -97,17 +99,17 @@ PaletteProvider.prototype.getPaletteEntries = function(element) {
|
||||||
'bpmn:Task', 'activity', 'icon-task'
|
'bpmn:Task', 'activity', 'icon-task'
|
||||||
),
|
),
|
||||||
'create.subprocess-collapsed': createAction(
|
'create.subprocess-collapsed': createAction(
|
||||||
'bpmn:SubProcess', 'activity', 'icon-subprocess-collapsed', 'Sub Process (collapsed)',
|
'bpmn:SubProcess', 'activity', 'icon-subprocess-collapsed', 'Create collapsed Sub Process',
|
||||||
{ isExpanded: false }
|
{ isExpanded: false }
|
||||||
),
|
),
|
||||||
'create.subprocess-expanded': createAction(
|
'create.subprocess-expanded': createAction(
|
||||||
'bpmn:SubProcess', 'activity', 'icon-subprocess-expanded', 'Sub Process (expanded)',
|
'bpmn:SubProcess', 'activity', 'icon-subprocess-expanded', 'Create expanded SubProcess',
|
||||||
{ isExpanded: true }
|
{ isExpanded: true }
|
||||||
),
|
),
|
||||||
'create.participant-expanded': {
|
'create.participant-expanded': {
|
||||||
group: 'collaboration',
|
group: 'collaboration',
|
||||||
className: 'icon-participant',
|
className: 'icon-participant',
|
||||||
title: 'Create a participant',
|
title: 'Create Pool/Participant',
|
||||||
action: {
|
action: {
|
||||||
dragstart: createParticipant,
|
dragstart: createParticipant,
|
||||||
click: createParticipant
|
click: createParticipant
|
||||||
|
|
Loading…
Reference in New Issue