Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Documentation on Command's handlers (Using commands in cheatsheets).
Documentation on Command's handlers (Using commands in cheatsheets). [message #336578] Wed, 24 June 2009 13:29 Go to next message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
Hi everybody.
I'm trying to make a cheat sheet where the results of one/some steps are
used as inputs in others.
I'm having trouble finding the associated handlers for some commands in
order to figure out if those handlers return anything.
In particular, I'm trying to use

org.eclipse.ui.newWizard(newWizardId=org.eclipse.uml2.uml.ed itor.presentation.UMLModelWizardID)
org.eclipse.ui.file.import(importWizardId=org.eclipse.ui.wiz ards.import.FileSystem)

to name a few.
I wanted to know if: A) The "new UML Model" wizard command returns a
reference to the generated UML model (or its path, o smthg),
B) If the "Import File System" wizard
command returns a reference to the imported element.

Where is the correct place to look for such documentation?
(command<->handler correspondences or documentation on the command
(input parameters, returned objects, etc.)).
Best regards,
Juan Pedro
Re: Documentation on Command's handlers (Using commands in cheatsheets). [message #336602 is a reply to message #336578] Wed, 24 June 2009 20:54 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Juan Pedro Silva wrote:
> Hi everybody.
> I'm trying to make a cheat sheet where the results of one/some steps are
> used as inputs in others.
> I'm having trouble finding the associated handlers for some commands in
> order to figure out if those handlers return anything.
> In particular, I'm trying to use
>
> org.eclipse.ui.newWizard(newWizardId=org.eclipse.uml2.uml.ed itor.presentation.UMLModelWizardID)
>
> org.eclipse.ui.file.import(importWizardId=org.eclipse.ui.wiz ards.import.FileSystem)

If commands return a parameter, then it should be identified in the
command definition (which you can see in the Plug-in Registry view). It
would include a returnTypeId which points to the commandParameterType
that the command can return.

AFAIK the default handlers for import
org.eclipse.ui.internal.handlers.WizardHandler.Import and new wizard
org.eclipse.ui.internal.handlers.WizardHandler.New don't return anything.

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Documentation on Command's handlers (Using commands in cheatsheets). [message #336614 is a reply to message #336602] Thu, 25 June 2009 08:41 Go to previous messageGo to next message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
Thank you Paul for your answer..
Which way would you suggest to go to feed the resulting imported
file/new file into the next step in the cheatsheet?.
As you said, those commands don't return anything, so I can't use
neither parameters nor variables.
Is suggesting the user to select the file in the project explorer before
running the command and using "active selection" the correct way to go?.
Regards,
Juan Pedro

Paul Webster escribió:
> Juan Pedro Silva wrote:
>> Hi everybody.
>> I'm trying to make a cheat sheet where the results of one/some steps
>> are used as inputs in others.
>> I'm having trouble finding the associated handlers for some commands
>> in order to figure out if those handlers return anything.
>> In particular, I'm trying to use
>>
>> org.eclipse.ui.newWizard(newWizardId=org.eclipse.uml2.uml.ed itor.presentation.UMLModelWizardID)
>>
>> org.eclipse.ui.file.import(importWizardId=org.eclipse.ui.wiz ards.import.FileSystem)
>
>
> If commands return a parameter, then it should be identified in the
> command definition (which you can see in the Plug-in Registry view).
> It would include a returnTypeId which points to the
> commandParameterType that the command can return.
>
> AFAIK the default handlers for import
> org.eclipse.ui.internal.handlers.WizardHandler.Import and new wizard
> org.eclipse.ui.internal.handlers.WizardHandler.New don't return anything.
>
Re: Documentation on Command's handlers (Using commands in cheatsheets). [message #336659 is a reply to message #336614] Fri, 26 June 2009 14:15 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Juan Pedro Silva wrote:
> Thank you Paul for your answer..
> Which way would you suggest to go to feed the resulting imported
> file/new file into the next step in the cheatsheet?.
> As you said, those commands don't return anything, so I can't use
> neither parameters nor variables.
> Is suggesting the user to select the file in the project explorer before
> running the command and using "active selection" the correct way to go?.
> Regards,

if they then select the new file in the explorer you could use the
"selection", or if creating the new file opened the editor you could use
the editor input of the activeEditor

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Problem with Eclipse ANT integration
Next Topic:Eclipse 3.5M6 Update behind proxy not working anymore
Goto Forum:
  


Current Time: Thu Nov 07 16:51:53 GMT 2024

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

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

Back to the top