Skip to content

Commit

Permalink
draft impl
Browse files Browse the repository at this point in the history
Issue #320
  • Loading branch information
rsoika committed Feb 7, 2024
1 parent e095fac commit 33d3c1a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 43 deletions.
35 changes: 0 additions & 35 deletions open-bpmn.glsp-client/open-bpmn-glsp/src/bpmn-actions.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions open-bpmn.glsp-client/open-bpmn-glsp/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/
// import createBPMNDiagramContainer from './di.config';

export * from './bpmn-actions';
export * from './bpmn-element-views';
export * from './bpmn-routing-views';
// export { createBPMNDiagramContainer };
export * from './di.config';

Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,24 @@ export namespace BPMNPropertyPanelUpdateAction {
}
}

/**
* Open-BPMN Auto Align to Grid Acton
*/
export interface BPMNAutoAlignAction extends Action {
kind: typeof BPMNAutoAlignAction.KIND;
}

export namespace BPMNAutoAlignAction {
export const KIND = 'autoAlign';

export function is(object: any): object is BPMNAutoAlignAction {
return Action.hasKind(object, KIND);
}

export function create(): BPMNAutoAlignAction {
return { kind: KIND };
}
}

/*
* This mouse listener reacts on double click events and opens/closes
Expand Down
1 change: 1 addition & 0 deletions open-bpmn.glsp-client/open-bpmn-properties/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const BPMNPropertyModule = new FeatureModule((bind, unbind, isBound, rebi


export {
BPMNAutoAlignAction,
BPMNPropertiesMouseListener,
BPMNPropertyPanel,
BPMNPropertyPanelToggleAction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
********************************************************************************/

import { GLSPCommandHandler, GLSPContextMenu } from '@eclipse-glsp/theia-integration';
import { BPMNAutoAlignAction } from '@open-bpmn/open-bpmn-glsp';
import { BPMNPropertyPanelToggleAction } from '@open-bpmn/open-bpmn-properties';
import { BPMNAutoAlignAction, BPMNPropertyPanelToggleAction } from '@open-bpmn/open-bpmn-properties';
import { CommandContribution, CommandRegistry, MenuContribution, MenuModelRegistry } from '@theia/core';
import { ApplicationShell } from '@theia/core/lib/browser';
import { inject, injectable } from '@theia/core/shared/inversify';
Expand Down Expand Up @@ -53,8 +52,6 @@ export class BPMNPropertiesCommandContribution implements CommandContribution {
isEnabled: context => context.selectedElements.length === 1
})
);


}
}

Expand Down

0 comments on commit 33d3c1a

Please sign in to comment.