Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Calling actions when event element are clicked on Welcome page
Calling actions when event element are clicked on Welcome page [message #482468] Wed, 26 August 2009 16:41 Go to next message
Mickael Istria is currently offline Mickael Istria
Messages: 765
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi all,

Here is what I want to implement:
I'd like to have a custom welcome page with some items that call Eclipse code when clicked. The best example I found to illustrate this is on the Eclipse Welcome page, on the "Go to workbench" button. When it is clicked, the workbench is opened (or the welcome page is closed, no matter), this is Eclipse code, not a simple navigation in browser. Then it is a proof that what I want to is achievable.
However, I don't succeed to get started to implement such a thing. I thought I could find some clues by looking at org.eclipse.ui.intro.universal plugin, but I did not find sources to help me.
In my use case, the action to do when clicked would be to open a wizard.

Could anyone provide me some ideas, advices, pointers or whatever that could be helpful ?

Regards,
Mickael
Re: Calling actions when event element are clicked on Welcome page [message #482472 is a reply to message #482468] Wed, 26 August 2009 16:58 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris Goldthorpe
Messages: 815
Registered: July 2009
Senior Member
This was the closest page I could find in the documentation. It shows
the format of a run action.

http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/ua_intro_ext_custom_url.htm

You don't need to use the extension point to call an action from intro.

Mickael Istria wrote:
> Hi all,
>
> Here is what I want to implement:
> I'd like to have a custom welcome page with some items that call Eclipse
> code when clicked. The best example I found to illustrate this is on the
> Eclipse Welcome page, on the "Go to workbench" button. When it is
> clicked, the workbench is opened (or the welcome page is closed, no
> matter), this is Eclipse code, not a simple navigation in browser. Then
> it is a proof that what I want to is achievable.
> However, I don't succeed to get started to implement such a thing. I
> thought I could find some clues by looking at
> org.eclipse.ui.intro.universal plugin, but I did not find sources to
> help me.
> In my use case, the action to do when clicked would be to open a wizard.
>
> Could anyone provide me some ideas, advices, pointers or whatever that
> could be helpful ?
>
> Regards,
> Mickael
Re: Calling actions when event element are clicked on Welcome page [message #482598 is a reply to message #482472] Thu, 27 August 2009 08:26 Go to previous message
Mickael Istria is currently offline Mickael Istria
Messages: 765
Registered: July 2009
Location: Grenoble, France
Senior Member
I succeeded to use http://org.eclipse.ui.intro/runAction and start a wizard.
Thanks a lot for your help, Chris!

Chris Goldthorpe a écrit :
> This was the closest page I could find in the documentation. It shows
> the format of a run action.
>
> http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/ua_intro_ext_custom_url.htm
>
>
> You don't need to use the extension point to call an action from intro.
>
> Mickael Istria wrote:
>> Hi all,
>>
>> Here is what I want to implement:
>> I'd like to have a custom welcome page with some items that call
>> Eclipse code when clicked. The best example I found to illustrate this
>> is on the Eclipse Welcome page, on the "Go to workbench" button. When
>> it is clicked, the workbench is opened (or the welcome page is closed,
>> no matter), this is Eclipse code, not a simple navigation in browser.
>> Then it is a proof that what I want to is achievable.
>> However, I don't succeed to get started to implement such a thing. I
>> thought I could find some clues by looking at
>> org.eclipse.ui.intro.universal plugin, but I did not find sources to
>> help me.
>> In my use case, the action to do when clicked would be to open a wizard.
>>
>> Could anyone provide me some ideas, advices, pointers or whatever that
>> could be helpful ?
>>
>> Regards,
>> Mickael
Re: Calling actions when event element are clicked on Welcome page [message #623532 is a reply to message #482468] Wed, 26 August 2009 16:58 Go to previous message
Chris Goldthorpe is currently offline Chris Goldthorpe
Messages: 815
Registered: July 2009
Senior Member
This was the closest page I could find in the documentation. It shows
the format of a run action.

http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/ua_intro_ext_custom_url.htm

You don't need to use the extension point to call an action from intro.

Mickael Istria wrote:
> Hi all,
>
> Here is what I want to implement:
> I'd like to have a custom welcome page with some items that call Eclipse
> code when clicked. The best example I found to illustrate this is on the
> Eclipse Welcome page, on the "Go to workbench" button. When it is
> clicked, the workbench is opened (or the welcome page is closed, no
> matter), this is Eclipse code, not a simple navigation in browser. Then
> it is a proof that what I want to is achievable.
> However, I don't succeed to get started to implement such a thing. I
> thought I could find some clues by looking at
> org.eclipse.ui.intro.universal plugin, but I did not find sources to
> help me.
> In my use case, the action to do when clicked would be to open a wizard.
>
> Could anyone provide me some ideas, advices, pointers or whatever that
> could be helpful ?
>
> Regards,
> Mickael
Re: Calling actions when event element are clicked on Welcome page [message #623535 is a reply to message #482472] Thu, 27 August 2009 08:26 Go to previous message
Mickael Istria is currently offline Mickael Istria
Messages: 765
Registered: July 2009
Location: Grenoble, France
Senior Member
I succeeded to use http://org.eclipse.ui.intro/runAction and start a wizard.
Thanks a lot for your help, Chris!

Chris Goldthorpe a écrit :
> This was the closest page I could find in the documentation. It shows
> the format of a run action.
>
> http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/ua_intro_ext_custom_url.htm
>
>
> You don't need to use the extension point to call an action from intro.
>
> Mickael Istria wrote:
>> Hi all,
>>
>> Here is what I want to implement:
>> I'd like to have a custom welcome page with some items that call
>> Eclipse code when clicked. The best example I found to illustrate this
>> is on the Eclipse Welcome page, on the "Go to workbench" button. When
>> it is clicked, the workbench is opened (or the welcome page is closed,
>> no matter), this is Eclipse code, not a simple navigation in browser.
>> Then it is a proof that what I want to is achievable.
>> However, I don't succeed to get started to implement such a thing. I
>> thought I could find some clues by looking at
>> org.eclipse.ui.intro.universal plugin, but I did not find sources to
>> help me.
>> In my use case, the action to do when clicked would be to open a wizard.
>>
>> Could anyone provide me some ideas, advices, pointers or whatever that
>> could be helpful ?
>>
>> Regards,
>> Mickael
Previous Topic:Calling actions when event element are clicked on Welcome page
Next Topic:getting error "The current document displayed does not exist in the table of contents"
Goto Forum:
  


Current Time: Fri Oct 24 17:06:37 GMT 2014

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

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