// return;
// }
dt.resetBehaviorMask();
MapMouseMode omdtmm = dt.getMouseMode();
if (!omdtmm.isVisible()) {
dt.setMask(OMDrawingTool.PASSIVE_MOUSE_EVENT_BEHAVIOR_MASK);
}
MapMouseInterpreter mmi = (MapMouseInterpreter) getMapMouseListener();
MouseEvent mevent = null;
if (mmi != null) {
mevent = mmi.getCurrentMouseEvent();
}
if (omg.isSelected()) {
omg.deselect();
}
if (dt.select(omg, this, mevent)) {
// OK, means we're editing - let's lock up the
// MouseMode
if (DTL_DEBUG) {
Debug.output("DTL: starting edit of OMGraphic...");
}
// Check to see if the DrawingToolMouseMode wants to
// be invisible. If it does, ask the current
// active MouseMode to be the proxy for it...
if (!omdtmm.isVisible() && mevent instanceof MapMouseEvent) {
MapMouseMode mmm = ((MapMouseEvent) mevent).getMapMouseMode();
if (mmm.actAsProxyFor(omdtmm,
MapMouseSupport.PROXY_DISTRIB_MOUSE_MOVED
& MapMouseSupport.PROXY_DISTRIB_MOUSE_DRAGGED)) {
if (DTL_DEBUG) {
Debug.output("DTL: Setting " + mmm.getID()
+ " as proxy for drawing tool");
}
setProxyMouseMode(mmm);
} else {
// WHOA, couldn't get proxy lock - bail
if (DTL_DEBUG) {
Debug.output("DTL: couldn't get proxy lock on "
+ mmm.getID()
+ " deactivating internal drawing tool");
}
dt.deactivate();
}
} else {