| @GenModel(fileExtensions="action") |
| @GenModel(modelName="ActionDSL") |
| @GenModel(prefix="ActionDSL") |
| @GenModel(copyrightText="Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| |
| Contributors: |
| Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| |
| generated from ActionDSL.xcore |
| |
| ") |
| @GenModel(updateClasspath="false") |
| @Ecore(nsURI="http://osbp.eclipse.org/xtext/action/ActionDSL") |
| @Ecore(nsPrefix="actiondsl") |
| @Ecore(rootPackage="actiondsl") |
| package org.eclipse.osbp.xtext.action |
| |
| import org.eclipse.emf.ecore.EObject |
| import org.eclipse.emf.ecore.InternalEObject |
| import org.eclipse.osbp.dsl.xtext.lazyresolver.api.EcoreUtil3 |
| import org.eclipse.osbp.dsl.semantic.common.types.LPackage |
| import org.eclipse.osbp.xtext.datainterchange.DataInterchange |
| import org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryFunction |
| import org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryGroup |
| import org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryParameter |
| import org.eclipse.osbp.xtext.messagedsl.MessageItem |
| |
| class ActionModel{ |
| contains ActionPackage[] packages |
| } |
| |
| type InternalEObject wraps InternalEObject |
| |
| class ActionLazyResolver { |
| op EObject eResolveProxy(InternalEObject proxy) { |
| return EcoreUtil3.resolve(proxy, this.eResource().resourceSet); |
| } |
| } |
| |
| class ActionPackage extends LPackage { |
| contains ActionToolbar[] toolbars |
| } |
| |
| class ActionBase extends ActionLazyResolver{ |
| String name |
| } |
| |
| class ActionToolbar extends ActionBase{ |
| boolean description |
| String descriptionValue |
| contains ActionButton[] actions |
| } |
| |
| class ActionButton extends ActionBase{ |
| boolean description |
| String descriptionValue |
| String iconURI |
| refers FunctionLibraryGroup group |
| refers FunctionLibraryFunction canexecute |
| refers FunctionLibraryFunction executeparameter |
| contains ActionType actionType |
| refers MessageItem message |
| } |
| |
| interface ActionType extends ActionLazyResolver{ |
| } |
| |
| class ActionTask extends ActionType { |
| TaskActionEnum action |
| } |
| |
| class ActionSelectWorkload extends ActionType { |
| SelectWorkloadActionEnum action |
| } |
| |
| class ActionDialog extends ActionType { |
| DialogActionEnum action |
| } |
| |
| class ActionReport extends ActionType { |
| ReportActionEnum action |
| } |
| |
| class ActionChart extends ActionType { |
| ChartActionEnum action |
| } |
| |
| class ActionWorkflow extends ActionType { |
| WorkflowActionEnum action |
| } |
| |
| class ActionDatainterchange extends ActionType { |
| DatainterchangeActionEnum action |
| refers DataInterchange dataRef |
| } |
| |
| class ActionGeneric extends ActionType { |
| String action |
| } |
| |
| class ActionParameter extends ActionBase{ |
| refers FunctionLibraryParameter parameter |
| } |
| |
| enum TaskActionEnum{ |
| TASK_ACTION_CLAIM as 'Claim' = 0 |
| TASK_ACTION_START as 'Start' = 1 |
| TASK_ACTION_STOP as 'Stop' = 2 |
| TASK_ACTION_RELEASE as 'Release' = 3 |
| TASK_ACTION_SUSPEND as 'Suspend' = 4 |
| TASK_ACTION_RESUME as 'Resume' = 5 |
| TASK_ACTION_SKIP as 'Skip' = 6 |
| TASK_ACTION_COMPLETE as 'Complete' = 7 |
| TASK_ACTION_DELEGATE as 'Delegate' = 8 |
| TASK_ACTION_FORWARD as 'Forward' = 9 |
| TASK_ACTION_FAIL as 'Fail' = 10 |
| TASK_ACTION_REGISTER as 'Register' = 11 |
| TASK_ACTION_REMOVE as 'Remove' = 12 |
| TASK_ACTION_ACTIVATE as 'Activate' = 13 |
| TASK_ACTION_EXIT as 'Exit' = 14 |
| } |
| |
| enum SelectWorkloadActionEnum{ |
| WORKLOAD_SELECT_ACTION_REMOVE_ALL as 'RemoveAll' = 0 |
| WORKLOAD_SELECT_ACTION_ADD_ALL as 'AddAll' = 1 |
| } |
| |
| enum DialogActionEnum{ |
| DIALOG_ACTION_NEW as 'New' = 0 |
| DIALOG_ACTION_SAVE as 'Save' = 1 |
| DIALOG_ACTION_DELETE as 'Delete' = 2 |
| DIALOG_ACTION_CANCEL as 'Cancel' = 3 |
| } |
| |
| enum ReportActionEnum{ |
| REPORT_ACTION_PRINT_ON_SERVER_PDF as 'PrintOnServer' = 0 |
| REPORT_ACTION_DOWNLOAD_PDF as 'ReportDownload' = 1 |
| } |
| |
| enum ChartActionEnum{ |
| CHART_ACTION_DOWNLOAD as 'ChartDownload' |
| } |
| |
| enum WorkflowActionEnum{ |
| WORKFLOW_ACTION_START as 'Start' |
| } |
| |
| enum DatainterchangeActionEnum { |
| DATAINTERCHANGE_ACTION_IMPORT as 'Import' |
| DATAINTERCHANGE_ACTION_EXPORT as 'Export' |
| } |