The meta class defines the {@link EClass#getEAllStructuralFeatures features} available for reflective access.
192193194195196197198199200201202
} IAddFeature addFeature = featureProvider.getAddFeature(new AddContext(new AreaContext(), bpmnElement)); if (addFeature == null) { Activator.logStatus(new Status(IStatus.WARNING, Activator.PLUGIN_ID, "Element not supported: " + bpmnElement.eClass().getName())); return; } AddContext context = new AddContext(); context.putProperty(IMPORT_PROPERTY, true);
8586878889909192939495
protected Task createFlowElement(ICreateContext context) { Task task = ModelHandler.FACTORY.createTask(); task.setName("Log Task"); ArrayList<EStructuralFeature> attributes = Bpmn2Preferences .getAttributes(task.eClass()); for (EStructuralFeature eStructuralFeature : attributes) { if (eStructuralFeature.getName().equals("taskName")) task.eSet(eStructuralFeature, "log"); } return task;
106107108109110111112113114115116
return e.eClass().getName(); // InternetApplication } } else if (object instanceof ENamedElement) { ENamedElement e = (ENamedElement) object; if (e.getName() != null && !e.getName().isEmpty()) { return e.eClass().getName() + ": '" + e.getName() + "'"; // EClass: 'root' } else { return e.eClass().getName(); // EClass } } else { return object.eClass().getName(); // EObject
108109110111112113114115116117118
} else if (object instanceof ENamedElement) { ENamedElement e = (ENamedElement) object; if (e.getName() != null && !e.getName().isEmpty()) { return e.eClass().getName() + ": '" + e.getName() + "'"; // EClass: 'root' } else { return e.eClass().getName(); // EClass } } else { return object.eClass().getName(); // EObject } }
196197198199200201202203204205206
EObject parserElement = getParserElement(); if (parserElement == null) { return null; } return OntoUML.diagram.providers.OntoUMLElementTypes .getImage(parserElement.eClass()); } /** * @generated */
191192193194195196197198199200201
189190191192193194195196197198199