use of org.eclipse.emf.ecore.EAnnotation in project tdi-studio-se by Talend.
the class ListBusinessItemViewFactory method decorateView.
/**
* @generated
*/
protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
if (semanticHint == null) {
semanticHint = BusinessVisualIDRegistry.getType(org.talend.designer.business.model.business.diagram.edit.parts.ListBusinessItemEditPart.VISUAL_ID);
view.setType(semanticHint);
}
super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
if (!BusinessProcessEditPart.MODEL_ID.equals(BusinessVisualIDRegistry.getModelID(containerView))) {
EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
//$NON-NLS-1$
shortcutAnnotation.setSource("Shortcut");
//$NON-NLS-1$
shortcutAnnotation.getDetails().put("modelID", BusinessProcessEditPart.MODEL_ID);
view.getEAnnotations().add(shortcutAnnotation);
}
getViewService().createNode(semanticAdapter, view, BusinessVisualIDRegistry.getType(ListBusinessItemNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
}
use of org.eclipse.emf.ecore.EAnnotation in project tdi-studio-se by Talend.
the class ActionBusinessItemViewFactory method decorateView.
/**
* @generated
*/
protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
if (semanticHint == null) {
semanticHint = BusinessVisualIDRegistry.getType(org.talend.designer.business.model.business.diagram.edit.parts.ActionBusinessItemEditPart.VISUAL_ID);
view.setType(semanticHint);
}
super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
if (!BusinessProcessEditPart.MODEL_ID.equals(BusinessVisualIDRegistry.getModelID(containerView))) {
EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
//$NON-NLS-1$
shortcutAnnotation.setSource("Shortcut");
//$NON-NLS-1$
shortcutAnnotation.getDetails().put("modelID", BusinessProcessEditPart.MODEL_ID);
view.getEAnnotations().add(shortcutAnnotation);
}
getViewService().createNode(semanticAdapter, view, BusinessVisualIDRegistry.getType(ActionBusinessItemNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
}
use of org.eclipse.emf.ecore.EAnnotation in project tdi-studio-se by Talend.
the class ActorBusinessItemViewFactory method decorateView.
/**
* @generated
*/
protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
if (semanticHint == null) {
semanticHint = BusinessVisualIDRegistry.getType(org.talend.designer.business.model.business.diagram.edit.parts.ActorBusinessItemEditPart.VISUAL_ID);
view.setType(semanticHint);
}
super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
if (!BusinessProcessEditPart.MODEL_ID.equals(BusinessVisualIDRegistry.getModelID(containerView))) {
EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
//$NON-NLS-1$
shortcutAnnotation.setSource("Shortcut");
//$NON-NLS-1$
shortcutAnnotation.getDetails().put("modelID", BusinessProcessEditPart.MODEL_ID);
view.getEAnnotations().add(shortcutAnnotation);
}
getViewService().createNode(semanticAdapter, view, BusinessVisualIDRegistry.getType(ActorBusinessItemNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
}
use of org.eclipse.emf.ecore.EAnnotation in project tdi-studio-se by Talend.
the class InputBusinessItemViewFactory method decorateView.
/**
* @generated
*/
protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
if (semanticHint == null) {
semanticHint = BusinessVisualIDRegistry.getType(org.talend.designer.business.model.business.diagram.edit.parts.InputBusinessItemEditPart.VISUAL_ID);
view.setType(semanticHint);
}
super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
if (!BusinessProcessEditPart.MODEL_ID.equals(BusinessVisualIDRegistry.getModelID(containerView))) {
EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
//$NON-NLS-1$
shortcutAnnotation.setSource("Shortcut");
//$NON-NLS-1$
shortcutAnnotation.getDetails().put("modelID", BusinessProcessEditPart.MODEL_ID);
view.getEAnnotations().add(shortcutAnnotation);
}
getViewService().createNode(semanticAdapter, view, BusinessVisualIDRegistry.getType(InputBusinessItemNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
}
use of org.eclipse.emf.ecore.EAnnotation in project tdi-studio-se by Talend.
the class DirectionalBusinessItemRelationshipViewFactory method decorateView.
/**
* @generated
*/
protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
if (semanticHint == null) {
semanticHint = BusinessVisualIDRegistry.getType(org.talend.designer.business.model.business.diagram.edit.parts.DirectionalBusinessItemRelationshipEditPart.VISUAL_ID);
view.setType(semanticHint);
}
super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
if (!BusinessProcessEditPart.MODEL_ID.equals(BusinessVisualIDRegistry.getModelID(containerView))) {
EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
//$NON-NLS-1$
shortcutAnnotation.setSource("Shortcut");
//$NON-NLS-1$
shortcutAnnotation.getDetails().put("modelID", BusinessProcessEditPart.MODEL_ID);
view.getEAnnotations().add(shortcutAnnotation);
}
getViewService().createNode(semanticAdapter, view, BusinessVisualIDRegistry.getType(DirectionalBusinessItemRelationshipNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
}
Aggregations