use of org.talend.designer.xmlmap.parts.directedit.XmlMapNodeDirectEditManager in project tdi-studio-se by Talend.
the class VarNodeEditPart 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 VarEntityFigure) {
figure = ((VarEntityFigure) getFigure()).findFigureAt(figureLocation);
}
// if (figure != null ) {
if (figure != null) {
// if (figure instanceof VariableContainerFigure) {
// figure = ((VariableContainerFigure) figure).getVariableLabel();
// }
selectedFigure = (Figure) figure;
directEditManager = new XmlMapNodeDirectEditManager(this, new XmlMapNodeCellEditorLocator(selectedFigure));
}
// }
if (directEditManager != null) {
directEditManager.show();
((XmlMapGraphicViewer) getViewer()).getMapperManager().setCurrentDirectEditManager(directEditManager);
}
}
}
Aggregations