Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

Java, the OLPC, and community responsibility

The "One Laptop Per Child" project has a great device ready to ship, but there's no Java on there. Let's think about working together to put Java on OLPC!
Replies: 5 - Pages: 1  
Threads: [ Previous | Next ]
  Click to reply to this thread Reply

Use Cheat Sheets to determine Command IDs

At 11:21 PM on Oct 18, 2007, Evan Williams Javalobby Newcomers wrote:

Have you ever wanted to use a function from the workbench, and drop it into your own RCP application ?

The other day, I wanted to use the "Help -> About" function, but couldn't determine the correct Command ID to use. I know that you can search the plug-ins, but I thought there must be a better way.

And then it struck me - the Simple cheat sheet editor supplies a nice command browser. Just create a dummy cheat sheet (using the New wizard), and then select the task - on the right you can then use the command browser to peruse for your favorite command.

More details, and pictures at the reference below.

Cheers,
Evan

oops. seems that the referenced link didn't come out.
here it is: http://evans-stuff.blogspot.com/2007/10/it-seems-that-im-not-only-one-still.html


Message was edited by: Evan Williams
  Click to reply to this thread Reply
1. At 5:56 PM on Nov 29, 2007, Scott Javalobby Newcomers wrote:

Re: Use Cheat Sheets to determine Command IDs

Evan, what version of eclipse are you using? I am on Europa and the instructions for creating a cheat sheet do not follow.
  Click to reply to this thread Reply
2. At 7:16 PM on Nov 29, 2007, Evan Williams Javalobby Newcomers wrote:

Re: Use Cheat Sheets to determine Command IDs

Hi,

sorry - maybe I used a few shortcuts in my description - but it does work on Eclipse 3.3 ok.

Try this to get started:

  1. Select File -> New ...

  2. Select Other ... from the popout menu

  3. you will then see the New wizard.

  4. type in Cheat into the filter text, or expand the User Assistance Category

  5. then select Cheat Sheet and press Next



And once you are here, you can:

  1. type the desired name of your cheat sheet - eg, mycheatsheet

  2. select the Simple type radio button

  3. press the Finish button.


You will then be in the Cheat Sheet editor.

does this help ?

cheers,
Evan
  Click to reply to this thread Reply
3. At 10:20 PM on Nov 30, 2007, Scott Javalobby Newcomers wrote:

Re: Use Cheat Sheets to determine Command IDs

"type in Cheat into the filter text, or expand the User Assistance Category "

At this step, nothing is returned when I type Cheat into the filter text, and there is no User Assistance category.
  Click to reply to this thread Reply
4. At 11:43 PM on Nov 30, 2007, Evan Williams Javalobby Newcomers wrote:

Re: Use Cheat Sheets to determine Command IDs

ok,

I think I know what's going on then. The Cheat Sheet wizards, etc are part of the PDE - Plug-in Development Environment. And not all Eclipse configurations include this component.

For a brief overview, see here .

I think that maybe your eclipse setup doesn't include PDE ?

To check, you could do a Help -> About, and then click on Feature details ... you should get a feature ID like org.eclipse.pde listed there.

Solutions might be to:

- download the PDE separately (the appropriate level for you base eclipse)

- or re-download the entire package (from http://www.eclipse.org/downloads/ select Eclipse for RCP/Plugin developers).

sorry about the confusion - hope this helps.

Evan
  Click to reply to this thread Reply
5. At 10:23 PM on Dec 1, 2007, Scott Javalobby Newcomers wrote:

Re: Use Cheat Sheets to determine Command IDs

Yep, you are correct. Makes sense. I started up my 'RCP Eclipse' and had no problems. Thanks, I will check it out tonight.

thread.rss_message