Changeset 287


Ignore:
Timestamp:
08/29/08 08:28:14 (16 years ago)
Author:
ra33
Message:

Changed @v... so now the @v's are only visible in XRay mode.
Also all items in the @v are highlighted in connected mode together. Picking up one picks up the source @v item.
Injecting attributes into anyone of the items will inject the attribute into the source @v item as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameMouseActions.java

    r286 r287  
    824824                                                && clicked.getParent() != null
    825825                                                && clicked.getParent().getNameItem() != clicked) {
    826                                         MessageBay.displayMessage("Insufficient permission");
    827                                         return;
     826                                        Item editTarget = clicked.getEditTarget();
     827                                        if (editTarget != clicked
     828                                                        && editTarget.hasPermission(Permission.full)) {
     829                                                clicked = editTarget;
     830                                        } else {
     831                                                MessageBay.displayMessage("Insufficient permission");
     832                                                return;
     833                                        }
    828834                                }
    829835                                Item merger = FreeItems.getItemAttachedToCursor();
     
    25972603                if (toGrab instanceof Circle)
    25982604                        toGrab.setHighlightMode(HighlightMode.Connected);
    2599                 //Dont set the highlight mode if a vector is being picked up
    2600                 else if(toGrab.isVisible()){
     2605                // Dont set the highlight mode if a vector is being picked up
     2606                else if (toGrab.isVisible()) {
    26012607                        toGrab.setHighlightMode(HighlightMode.Normal);
    26022608                }
     
    26572663                                        copy.setFloating(true);
    26582664                                        copy.setParent(null);
    2659                                         //copy.setHighlightMode(HighlightMode.Connected);
     2665                                        // copy.setHighlightMode(HighlightMode.Connected);
    26602666                                }
    26612667                        }
Note: See TracChangeset for help on using the changeset viewer.