📄 jawetypes.java
字号:
id = JaWEConstants.PACKAGE_DEFAULT; dispName = controller.getSettings().getLanguageDependentString("PackageKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/package.gif")); jtype = new JaWEType(Package.class, id, dispName, icon, defColor); packageTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.PackageType.Id.default", id); id = JaWEConstants.PACKAGE_EXTERNAL; dispName = controller.getSettings() .getLanguageDependentString("ExternalPackageKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/externalpackages.gif")); jtype = new JaWEType(Package.class, id, dispName, icon, defColor); externalPackageTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.PackageType.Id.external", id); id = JaWEConstants.PACKAGE_TRANSIENT; dispName = controller.getSettings() .getLanguageDependentString("TransientPackageKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/transientpackage.gif")); jtype = new JaWEType(ExternalPackage.class, id, dispName, icon, defColor); externalPackageTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.PackageType.Id.transient", id); id = JaWEConstants.PARTICIPANT_TYPE_HUMAN; dispName = controller.getSettings().getLanguageDependentString("HUMANKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/participant.gif")); color = new Color(240, 240, 240); jtype = new JaWEType(Participant.class, id, dispName, icon, color); participantTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.ParticipantType.Id.human", id); id = JaWEConstants.PARTICIPANT_TYPE_ROLE; dispName = controller.getSettings().getLanguageDependentString("ROLEKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/participantrole.gif")); color = new Color(220, 220, 220); jtype = new JaWEType(Participant.class, id, dispName, icon, color); participantTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.ParticipantType.Id.role", id); id = JaWEConstants.PARTICIPANT_TYPE_ORGANIZATIONAL_UNIT; dispName = controller.getSettings() .getLanguageDependentString("ORGANIZATIONAL_UNITKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/participantorgunit.png")); color = new Color(200, 200, 200); jtype = new JaWEType(Participant.class, id, dispName, icon, color); participantTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.ParticipantType.Id.org_unit", id); id = JaWEConstants.PARTICIPANT_TYPE_RESOURCE; dispName = controller.getSettings().getLanguageDependentString("RESOURCEKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/participantresource.png")); color = new Color(146, 146, 180); jtype = new JaWEType(Participant.class, id, dispName, icon, color); participantTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.ParticipantType.Id.resource", id); id = JaWEConstants.PARTICIPANT_TYPE_RESOURCE_SET; dispName = controller.getSettings().getLanguageDependentString("RESOURCE_SETKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/participantresourceset.png")); color = new Color(146, 146, 160); jtype = new JaWEType(Participant.class, id, dispName, icon, color); participantTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.ParticipantType.Id.resource_set", id); id = JaWEConstants.PARTICIPANT_TYPE_SYSTEM; dispName = controller.getSettings().getLanguageDependentString("SYSTEMKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/participantsystem.png")); color = new Color(40, 145, 195); jtype = new JaWEType(Participant.class, id, dispName, icon, color); participantTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.ParticipantType.Id.system", id); id = JaWEConstants.RESPONSIBLE_DEFAULT; dispName = controller.getSettings().getLanguageDependentString("ResponsibleKey"); jtype = new JaWEType(Responsible.class, id, dispName, defIcon, defColor); responsibleTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.ResponsibleType.Id.default", id); id = JaWEConstants.TOOL_DEFAULT; dispName = controller.getSettings().getLanguageDependentString("ToolKey"); jtype = new JaWEType(Tool.class, id, dispName, defIcon, defColor); toolTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.ToolType.Id.default", id); id = JaWEConstants.TRANSITION_TYPE_UNCONDITIONAL; dispName = controller.getSettings().getLanguageDependentString("UNCONDITIONALKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/uncoditional.gif")); color = new Color(49, 106, 197); jtype = new JaWEType(Transition.class, id, dispName, icon, color); transitionTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.TransitionType.Id.default", id); id = JaWEConstants.TRANSITION_TYPE_CONDITIONAL; dispName = controller.getSettings().getLanguageDependentString("CONDITIONALKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/transition.gif")); color = new Color(49, 106, 197); jtype = new JaWEType(Transition.class, id, dispName, icon, color); transitionTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.TransitionType.Id.condition", id); id = JaWEConstants.TRANSITION_TYPE_OTHERWISE; dispName = controller.getSettings().getLanguageDependentString("OTHERWISEKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/transitionotherwise.gif")); color = new Color(255, 153, 0); jtype = new JaWEType(Transition.class, id, dispName, icon, color); transitionTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.TransitionType.Id.otherwise", id); id = JaWEConstants.TRANSITION_TYPE_EXCEPTION; dispName = controller.getSettings().getLanguageDependentString("EXCEPTIONKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/transitionexception.gif")); color = Color.pink; jtype = new JaWEType(Transition.class, id, dispName, icon, color); transitionTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.TransitionType.Id.exception", id); id = JaWEConstants.TRANSITION_TYPE_DEFAULTEXCEPTION; dispName = controller.getSettings() .getLanguageDependentString("DEFAULTEXCEPTIONKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/transitiondefaultexception.gif")); color = new Color(204, 0, 0); jtype = new JaWEType(Transition.class, id, dispName, icon, color); transitionTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.TransitionType.Id.defaultexception", id); id = JaWEConstants.TYPE_DECLARATION_DEFAULT; dispName = controller.getSettings() .getLanguageDependentString("TypeDeclarationKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/typedeclarations.gif")); jtype = new JaWEType(TypeDeclaration.class, id, dispName, icon, defColor); typeDeclarationTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.TypeDeclarationType.Id.default", id); id = JaWEConstants.WORKFLOW_PROCESS_TYPE_DEFAULT; dispName = controller.getSettings() .getLanguageDependentString("WorkflowProcessKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/process.gif")); jtype = new JaWEType(WorkflowProcess.class, id, dispName, icon, defColor); workflowProcessTypes.add(jtype); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.WorkflowProcessType.Id.default", id); id = JaWEConstants.ACTIVITIES; dispName = controller.getSettings().getLanguageDependentString("ActivitiesKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/activities.gif")); jtype = new JaWEType(Activities.class, id, dispName, icon, defColor); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.Activities.Id", id); id = JaWEConstants.ACTIVITYSETS; dispName = controller.getSettings().getLanguageDependentString("ActivitySetsKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/activitysets.gif")); jtype = new JaWEType(ActivitySets.class, id, dispName, icon, defColor); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.ActivitySets.Id", id); id = JaWEConstants.APPLICATIONS; dispName = controller.getSettings().getLanguageDependentString("ApplicationsKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/applications.gif")); jtype = new JaWEType(Applications.class, id, dispName, icon, defColor); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.Applications.Id", id); id = JaWEConstants.DATAFIELDS; dispName = controller.getSettings().getLanguageDependentString("DataFieldsKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/workflowrelevantdata.gif")); jtype = new JaWEType(DataFields.class, id, dispName, icon, defColor); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.DataFields.Id", id); id = JaWEConstants.EXTERNALPACKAGES; dispName = controller.getSettings() .getLanguageDependentString("ExternalPackagesKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/packages.gif")); jtype = new JaWEType(ExternalPackages.class, id, dispName, icon, defColor); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.ExternalPackages.Id", id); id = JaWEConstants.FORMALPARAMETERS; dispName = controller.getSettings() .getLanguageDependentString("FormalParametersKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/formalparameters.gif")); jtype = new JaWEType(FormalParameters.class, id, dispName, icon, defColor); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.FormalParameters.Id", id); id = JaWEConstants.PARTICIPANTS; dispName = controller.getSettings().getLanguageDependentString("ParticipantsKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/participants.gif")); jtype = new JaWEType(Participants.class, id, dispName, icon, defColor); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.Participants.Id", id); id = JaWEConstants.PROCESSES; dispName = controller.getSettings() .getLanguageDependentString("WorkflowProcessesKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/processes.gif")); jtype = new JaWEType(WorkflowProcesses.class, id, dispName, icon, defColor); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.WorkflowProcesses.Id", id); id = JaWEConstants.TRANSITIONS; dispName = controller.getSettings().getLanguageDependentString("TransitionsKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/transitions.gif")); jtype = new JaWEType(Transitions.class, id, dispName, icon, defColor); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.Transitions.Id", id); id = JaWEConstants.TYPEDECLARATIONS; dispName = controller.getSettings() .getLanguageDependentString("TypeDeclarationsKey"); icon = new ImageIcon(JaWETypes.class.getClassLoader() .getResource("org/enhydra/jawe/images/typedeclarations.gif")); jtype = new JaWEType(TypeDeclarations.class, id, dispName, icon, defColor); allTypes.put(id, jtype); allTypesMapping.put("JaWETypes.TypeDeclarations.Id", id); loadTypes(Activity.class, "ActivityType", activityTypes, controller, properties); loadTypes(ActivitySet.class, "ActivitySetType", activitySetTypes, controller, properties); loadTypes(ActualParameter.class, "ActualParameterType", actualParameterTypes, controller, properties); loadTypes(Application.class, "ApplicationType", applicationTypes, controller, properties); loadTypes(DataField.class, "DataFieldType", dataFieldTypes, controller, properties); loadTypes(Deadline.class, "DeadlineType", deadlineTypes, controller, properties); loadTypes(EnumerationType.class, "EnumerationValueType", enumerationValueTypes, controller, properties); loadTypes(ExtendedAttribute.class, "ExtendedAttributeType", extendedAttributeTypes, controller, properties); // Activity EAs List l = new ArrayList(); loadTypes(ExtendedAttribute.class, "ExtendedAttributeType.Activity", l, controller, properties); extAttribTypes.put("Activity", l); // Application EAs l = new ArrayList(); loadTypes(ExtendedAttribute.class, "ExtendedAttributeType.Application", l, controller, properties); extAttribTypes.put("Application", l); // DataField EAs l = new ArrayList(); loadTypes(ExtendedAttribute.class, "ExtendedAttributeType.DataField", l, controller, properties); extAttribTypes.put("DataField", l); // Package EAs l = new ArrayList(); loadTypes(ExtendedAttribute.class, "ExtendedAttributeType.Package", l, controller, properties); extAttribTypes.put("Package", l); // Participant EAs l = new ArrayList(); loadTypes(ExtendedAttribute.class, "ExtendedAttributeType.Participant",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -