Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Using same class for different actions
Using same class for different actions [message #464857] Fri, 16 March 2007 11:03 Go to next message
Delicia is currently offline DeliciaFriend
Messages: 41
Registered: July 2009
Member
I'm using the 'org.eclipse.ui.actionSets' extension point to add a submenu
under 'Help' containing documents.
The menu creation part is working fine. I tested the action for one menu
(ReleaseNotes.pdf) - which works.
For this, I have a class and implement the run() method to open the correct
document.

The remaining list of actions are all going to be for opening some other
document.
I want to use the same class above, and just change the document name based
on the action selected.
Is it possible to do so?

I saw the selectionChanged() method, but don't understand how I can use it
for this purpose.

I'd appreciate any pointers.

Thanks!
Delicia.
Re: Using same class for different actions [message #464871 is a reply to message #464857] Fri, 16 March 2007 15:19 Go to previous message
Delicia is currently offline DeliciaFriend
Messages: 41
Registered: July 2009
Member
Silly me, it's all there in the 'IAction' class.

- Delicia.
Previous Topic:FormEditor & TextEditor
Next Topic:JavaFileEditorInput and IPathEditorInput
Goto Forum:
  


Current Time: Sun Sep 08 02:30:06 GMT 2024

Powered by FUDForum. Page generated in 0.03620 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top