Point pt = getNewLocation(currentLocation);
applyNewPoint(pt);
}
private Point getNewLocation(Point current) {
PointInputDialog dlg = new PointInputDialog(UiUtils.getActiveWindow(), "Set New Coordinates");
dlg.setCaption("Enter the new coordinates for the node:");
dlg.setInitialValue(current);
return dlg.open();
}