Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] View contributing to workbench menus

This seems like a reasonable approach, given the current restriction on
views not contributing global actions themselves.

You'll encounter the problem with the XML not being expressive enough to
get the initial enabled state right (e.g. can't express enablement based on
which view is active in XML).
This shouldn't be too bad in the Debug perspective, though, since these
actions are enabled for the most frequently used views.

Nick



|--------+--------------------------------->
|        |          Darin_Swanson@xxxxxxx  |
|        |          Sent by:               |
|        |          platform-ui-dev-admin@e|
|        |          clipse.org             |
|        |                                 |
|        |                                 |
|        |          11/16/01 10:18 AM      |
|        |          Please respond to      |
|        |          platform-ui-dev        |
|        |                                 |
|--------+--------------------------------->
  >-----------------------------------------------------------------------------------------------------------|
  |                                                                                                           |
  |       To:     platform-ui-dev@xxxxxxxxxxx                                                                 |
  |       cc:     jdt-debug-dev@xxxxxxxxxxx                                                                   |
  |       Subject:     Re: [platform-ui-dev] View contributing to workbench menus                             |
  >-----------------------------------------------------------------------------------------------------------|




Inspect and Display have been added to the Edit menu only in the latest.

I like the idea of adding the Inspect and Display actions to the Debug
Menu.  We could then enable/disable depending on the active part (enabled
for the editor and the display view).

Having Inspect and Display in a consistent spot and making use of the
framework shortcut mechanism are both wins.

Comments?

Darins

                                                                           
   "Randy Giffen/OTT/OTI"                                                  
   <Randy_Giffen@xxxxxxx>               To:                                
   Sent by:                     platform-ui-dev@xxxxxxxxxxx                
   platform-ui-dev-admin@eclips         cc:                                
   e.org                                Subject:        Re:                
                                [platform-ui-dev] View contributing to     
                                workbench menus                            
   11/16/01 08:19 AM                                                       
   Please respond to                                                       
   platform-ui-dev                                                         
                                                                           





I agree you don't want to implement your own shortcut mechanism.

The actions are on the context menu in both the editor and the display
view.
I don't see them in the edit menu for a .java file (I have the thread
stopped at a breakpoin in the file and the actions are present on the
context menu for the editor).
How about adding them to your debug action set (show up in the Debug menu)?
You could listen for part activation and only enable when appropriate.


                                                                           
   Darin_Swanson@xxxxxxx                                                   
   Sent by:                          To:                                   
   platform-ui-dev-admin@ecli platform-ui-dev@xxxxxxxxxxx                  
   pse.org                           cc:                                   
                                     Subject:        Re: [platform-ui-dev] 
                              View contributing to workbench menus         
   11/15/01 06:30 PM                                                       
   Please respond to                                                       
   platform-ui-dev                                                         
                                                                           





The Display view of Java debugging has the Display and Inspect actions
(same as from the Java Editor). The editors


provides this actions in the edit menu of the workbench.  We would like the
Display view to consistently present these actions (and


allow us to make "free" use of the shortcut support instead of defining our
own verify key listeners to make the shortcuts work (Ctrl-D and Ctrl-Q)).
>
>@
>11/15/2001 06:04 PM EST
>Please respond to platform-ui-dev
>
> To: platform-ui-dev@xxxxxxxxxxx
> cc:
> bcc:
> Subject: Re: [platform-ui-dev] View contributing to workbench menus
>
>
>


>No views cannot contribute to the window menubar or toolbar. Thay can
define global action handlers for the set of global actions we define.
>                UNDO,
>                REDO,
>                CUT,
>                COPY,
>                PASTE,
>                PRINT,
>                DELETE,
>                FIND,
>                SELECT_ALL,
>                BOOKMARK
>
>
>What action did you want to contribute?
>
>
>
>
>
|-+---------------------------+-------------------------------------------|
| | Darin_Swanson@xxxxxxx     |                                           |
| | >Sent by:                 | >        To:                              |
| | platform-ui-dev-admin@ecli| platform-ui-dev@xxxxxxxxxxx               |
| | pse.org                   | >        cc:                              |
| | >                         | >        Subject:        [platform-ui-dev]|
| | >11/15/01 05:50 PM        | View contributing to workbench menus      |
| | >Please respond to        |                                           |
| | platform-ui-dev           |                                           |
| |                           | >                                         |
| |                           |                                           |
| | >                         |                                           |
|-+---------------------------+-------------------------------------------|



Is it possible for a view to contribute to say the "Edit" menu of the
workbench?


>
>Thanks
>
>Darins
>
>_______________________________________________ platform-ui-dev mailing
list platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev
>
>


_______________________________________________ platform-ui-dev mailing
list platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev









Back to the top