Changeset 2220

Show
Ignore:
Timestamp:
06/10/08 14:51:33 (4 months ago)
Author:
apatel
Message:

added DELETE context menu option back. Better solution would be to enable user to delete and support undo/redo of the customization.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/framework-plugin/src/com/tresys/framework/plugin/editor/policy/graphic/GraphicPolicyEditorContextMenuProvider.java

    r2219 r2220  
    7171                                GEFActionConstants.GROUP_UNDO,  
    7272                                getAction(ActionFactory.REDO.getId())); 
     73                menu.appendToGroup( 
     74                                GEFActionConstants.GROUP_EDIT, 
     75                                getAction(ActionFactory.DELETE.getId())); 
    7376                 
    7477                { // custom policy menus 
     
    8588                        { 
    8689                                case CDSEditorActionConstants.ADD_POLICY: 
    87                                         // if it is not customized then allow DELETE 
    88                                         menu.appendToGroup( 
    89                                                 GEFActionConstants.GROUP_EDIT, 
    90                                                 getAction(ActionFactory.DELETE.getId())); 
    9190                                        final IAction add_action = getAction (AddCustomPolicy.ID); 
    9291                                        if( add_action == null ) 
     
    104103                                case CDSEditorActionConstants.UNKNOWN: 
    105104                                default: 
    106                                         menu.appendToGroup( 
    107                                                 GEFActionConstants.GROUP_EDIT, 
    108                                                 getAction(ActionFactory.DELETE.getId())); 
    109105                                        break; 
    110106                        }