use of org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode in project tdi-studio-se by Talend.
the class BusinessItemRelationshipNameViewFactory method createView.
/**
* @generated
*/
public View createView(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
Node view = (Node) super.createView(semanticAdapter, containerView, semanticHint, index, persisted, preferencesHint);
Location location = (Location) view.getLayoutConstraint();
IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView.getDiagram().getMeasurementUnit());
location.setX(mapMode.DPtoLP(0));
location.setY(mapMode.DPtoLP(40));
return view;
}
use of org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode in project tdi-studio-se by Talend.
the class DirectionalBusinessItemRelationshipNameViewFactory method createView.
/**
* @generated
*/
public View createView(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
Node view = (Node) super.createView(semanticAdapter, containerView, semanticHint, index, persisted, preferencesHint);
Location location = (Location) view.getLayoutConstraint();
IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView.getDiagram().getMeasurementUnit());
location.setX(mapMode.DPtoLP(0));
location.setY(mapMode.DPtoLP(40));
return view;
}
use of org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode in project tdi-studio-se by Talend.
the class BidirectionalBusinessItemRelationshipNameViewFactory method createView.
/**
* @generated
*/
public View createView(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
Node view = (Node) super.createView(semanticAdapter, containerView, semanticHint, index, persisted, preferencesHint);
Location location = (Location) view.getLayoutConstraint();
IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView.getDiagram().getMeasurementUnit());
location.setX(mapMode.DPtoLP(0));
location.setY(mapMode.DPtoLP(40));
return view;
}