|
@@ -384,32 +384,32 @@ ContextPadProvider.prototype.getContextPadEntries = function (element) {
|
|
|
if (!popupMenu.isEmpty(element, 'bpmn-replace')) {
|
|
|
|
|
|
// Replace menu entry
|
|
|
- assign(actions, {
|
|
|
- 'replace': {
|
|
|
- group: 'edit',
|
|
|
- className: 'bpmn-icon-screw-wrench',
|
|
|
- title: translate('Change type'),
|
|
|
- action: {
|
|
|
- click: function (event, element) {
|
|
|
-
|
|
|
- var position = assign(getReplaceMenuPosition(element), {
|
|
|
- cursor: { x: event.x, y: event.y }
|
|
|
- });
|
|
|
-
|
|
|
- popupMenu.open(element, 'bpmn-replace', position);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ // assign(actions, {
|
|
|
+ // 'replace': {
|
|
|
+ // group: 'edit',
|
|
|
+ // className: 'bpmn-icon-screw-wrench',
|
|
|
+ // title: translate('Change type'),
|
|
|
+ // action: {
|
|
|
+ // click: function (event, element) {
|
|
|
+
|
|
|
+ // var position = assign(getReplaceMenuPosition(element), {
|
|
|
+ // cursor: { x: event.x, y: event.y }
|
|
|
+ // });
|
|
|
+
|
|
|
+ // popupMenu.open(element, 'bpmn-replace', position);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
}
|
|
|
|
|
|
if (is(businessObject, 'bpmn:SequenceFlow')) {
|
|
|
- assign(actions, {
|
|
|
- 'append.text-annotation': appendAction(
|
|
|
- 'bpmn:TextAnnotation',
|
|
|
- 'bpmn-icon-text-annotation'
|
|
|
- )
|
|
|
- });
|
|
|
+ // assign(actions, {
|
|
|
+ // 'append.text-annotation': appendAction(
|
|
|
+ // 'bpmn:TextAnnotation',
|
|
|
+ // 'bpmn-icon-text-annotation'
|
|
|
+ // )
|
|
|
+ // });
|
|
|
}
|
|
|
|
|
|
if (
|
|
@@ -421,10 +421,10 @@ ContextPadProvider.prototype.getContextPadEntries = function (element) {
|
|
|
])
|
|
|
) {
|
|
|
assign(actions, {
|
|
|
- 'append.text-annotation': appendAction(
|
|
|
- 'bpmn:TextAnnotation',
|
|
|
- 'bpmn-icon-text-annotation'
|
|
|
- ),
|
|
|
+ // 'append.text-annotation': appendAction(
|
|
|
+ // 'bpmn:TextAnnotation',
|
|
|
+ // 'bpmn-icon-text-annotation'
|
|
|
+ // ),
|
|
|
|
|
|
'connect': {
|
|
|
group: 'connect',
|
|
@@ -473,9 +473,9 @@ ContextPadProvider.prototype.getContextPadEntries = function (element) {
|
|
|
}
|
|
|
|
|
|
if (is(businessObject, 'bpmn:Group')) {
|
|
|
- assign(actions, {
|
|
|
- 'append.text-annotation': appendAction('bpmn:TextAnnotation', 'bpmn-icon-text-annotation')
|
|
|
- });
|
|
|
+ // assign(actions, {
|
|
|
+ // 'append.text-annotation': appendAction('bpmn:TextAnnotation', 'bpmn-icon-text-annotation')
|
|
|
+ // });
|
|
|
}
|
|
|
|
|
|
// delete element entry, only show if allowed by rules
|