Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Replacing ISaveHandler default implementation
Replacing ISaveHandler default implementation [message #1723039] Thu, 11 February 2016 08:29 Go to next message
Michele De Vecchi is currently offline Michele De VecchiFriend
Messages: 3
Registered: July 2009
Junior Member
I need to replace ISaveHadler default implementation in order to provide custom behavior on dirty MCompositePart close event.

I try to replace default implementation in MWindow context after application startup complete without any result.

How can i do it?
Re: Replacing ISaveHandler default implementation [message #1723124 is a reply to message #1723039] Thu, 11 February 2016 20:27 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Can you define what you mean with "application startup complete"?

Looking at the code we push a the default handler into the context when
we initialized the Window so (see BaseWindowRenderer#initWidget).

Tom

On 11.02.16 20:52, Missing name Mising name wrote:
> I need to replace ISaveHadler default implementation in order to provide
> custom behavior on dirty MCompositePart close event.
>
> I try to replace default implementation in MWindow context after
> application startup complete without any result.
>
> How can i do it?
Re: Replacing ISaveHandler default implementation [message #1723154 is a reply to message #1723124] Fri, 12 February 2016 08:36 Go to previous messageGo to next message
Michele De Vecchi is currently offline Michele De VecchiFriend
Messages: 3
Registered: July 2009
Junior Member
I subcribed an event handler on EventBroker for the event type UIEvents.UILifeCycle.APP_STARTUP_COMPLETE and replace ISaveHandler in MWindow context with custom implementation.

Custom implementation methods were never called.

Now I subscribe for the evet type UIEvents.UIElement.TOPIC_WIDGET and it works correctly.

Thanks Tom Very Happy
Re: Replacing ISaveHandler default implementation [message #1723155 is a reply to message #1723154] Fri, 12 February 2016 08:39 Go to previous message
Michele De Vecchi is currently offline Michele De VecchiFriend
Messages: 3
Registered: July 2009
Junior Member
Why am i presented as "Missing name / Missing name"?
Anyway, I'm Michele De Vecchi
Previous Topic:When I am launching native exe of media application in tutorial 3 throwing exception
Next Topic:e4 RCP Application content not changing after first run
Goto Forum:
  


Current Time: Thu Mar 28 18:05:17 GMT 2024

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

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

Back to the top