use of org.talend.designer.xmlmap.figures.GlobalMapKeysEntityFigure in project tdi-studio-se by Talend.
the class GlobalMapNodeEditPart method performRequest.
@Override
public void performRequest(Request req) {
IFigure figure = null;
Figure selectedFigure = null;
if (RequestConstants.REQ_DIRECT_EDIT.equals(req.getType())) {
DirectEditRequest drequest = (DirectEditRequest) req;
Point figureLocation = drequest.getLocation();
if (getFigure() instanceof GlobalMapKeysEntityFigure) {
figure = ((GlobalMapKeysEntityFigure) getFigure()).findFigureAt(figureLocation);
}
if (figure != null) {
selectedFigure = (Figure) figure;
directEditManager = new XmlMapNodeDirectEditManager(this, new XmlMapNodeCellEditorLocator(selectedFigure));
}
if (directEditManager != null) {
directEditManager.show();
((XmlMapGraphicViewer) getViewer()).getMapperManager().setCurrentDirectEditManager(directEditManager);
}
}
}
Aggregations