unlockPrint();
}
if ((actionMask & LongAction.LONG_ACTION_SHAPE) != 0) {
boolean changesDone = false;
DiagramComponent d = getActiveDiagram();
DiagramSelection sel = (d == null) ? null : d.getDiagramSelection();
if (target != null) {
if (target instanceof Shape) {
lockedShapes.remove(target);
if ((sel != null) && sel.isSelected((Shape) target)) {
changesDone = true;
}
} else if (target instanceof Vector) {
for (Iterator it = ((Vector) target).iterator(); it.hasNext();) {
Object o = it.next();
if (o instanceof Shape) {
lockedShapes.remove(o);
if ((sel != null) && sel.isSelected((Shape) o)) {
changesDone = true;
}
}
}
} else if (target instanceof Object[]) {
for (int i = 0; i < ((Object[]) target).length; ++i) {
Object o = ((Object[]) target)[i];
if (o instanceof Shape) {
lockedShapes.remove(o);
if ((sel != null) && sel.isSelected((Shape) o)) {
changesDone = true;
}
}
}
}