Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » Problems with saving order
Problems with saving order [message #380017] Thu, 07 May 2009 11:41 Go to next message
Sorin Fagateanu is currently offline Sorin Fagateanu
Messages: 46
Registered: July 2009
Member
Hello all,

I do not know if this is the best place for this question but...

I have a model file called M_A and inside it I have information to
generate a source code file called SC_B. The generation procces is
activated every time I save M_A.

I also have a reverse mechanism,meaning that every time I save the SC_B
file the M_A will be updated with the information.

More exactly when the M_A is generated :
-first it does a reverse of the SC_B to see if something has changed
-second it writes to the SC_B modifications happend

My problem is that if I have the model and also the source code modified
and I am saving ,the order counts a lot.

For my arhitecture to work i need the model files to be saved the last
ones.

Is there a method to modify the saving order ,when someone acts a "save
all" action in eclipse? I see that the EditorManager does has a saveAll
which takes the dirtyparts to check what resources need to be saved. Can
this be replaced by something of my own or are there some Saveing Order
information/classes/plugins that I should know?


Thank you in advance for your prompt answer!
Re: Problems with saving order [message #380018 is a reply to message #380017] Wed, 13 May 2009 09:40 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn Hussey
Messages: 1618
Registered: July 2009
Senior Member
Sorin,

This question isn't really specific to MDT, but I'd suggest taking a look at
ISaveablesSource and related classes/interfaces...

Kenn

"Sorin Fagateanu" <cyron_16@yahoo.com> wrote in message
news:a6ea166468763d75867f815fc662399c$1@www.eclipse.org...
> Hello all,
>
> I do not know if this is the best place for this question but...
>
> I have a model file called M_A and inside it I have information to
> generate a source code file called SC_B. The generation procces is
> activated every time I save M_A.
>
> I also have a reverse mechanism,meaning that every time I save the SC_B
> file the M_A will be updated with the information.
>
> More exactly when the M_A is generated :
> -first it does a reverse of the SC_B to see if something has changed
> -second it writes to the SC_B modifications happend
>
> My problem is that if I have the model and also the source code modified
> and I am saving ,the order counts a lot.
>
> For my arhitecture to work i need the model files to be saved the last
> ones.
>
> Is there a method to modify the saving order ,when someone acts a "save
> all" action in eclipse? I see that the EditorManager does has a saveAll
> which takes the dirtyparts to check what resources need to be saved. Can
> this be replaced by something of my own or are there some Saveing Order
> information/classes/plugins that I should know?
>
>
> Thank you in advance for your prompt answer!
>
Re: Problems with saving order [message #380019 is a reply to message #380018] Thu, 14 May 2009 02:15 Go to previous message
Sorin Fagateanu is currently offline Sorin Fagateanu
Messages: 46
Registered: July 2009
Member
I will try that , thank you
Re: Problems with saving order [message #597630 is a reply to message #380017] Wed, 13 May 2009 09:40 Go to previous message
Kenn Hussey is currently offline Kenn Hussey
Messages: 1618
Registered: July 2009
Senior Member
Sorin,

This question isn't really specific to MDT, but I'd suggest taking a look at
ISaveablesSource and related classes/interfaces...

Kenn

"Sorin Fagateanu" <cyron_16@yahoo.com> wrote in message
news:a6ea166468763d75867f815fc662399c$1@www.eclipse.org...
> Hello all,
>
> I do not know if this is the best place for this question but...
>
> I have a model file called M_A and inside it I have information to
> generate a source code file called SC_B. The generation procces is
> activated every time I save M_A.
>
> I also have a reverse mechanism,meaning that every time I save the SC_B
> file the M_A will be updated with the information.
>
> More exactly when the M_A is generated :
> -first it does a reverse of the SC_B to see if something has changed
> -second it writes to the SC_B modifications happend
>
> My problem is that if I have the model and also the source code modified
> and I am saving ,the order counts a lot.
>
> For my arhitecture to work i need the model files to be saved the last
> ones.
>
> Is there a method to modify the saving order ,when someone acts a "save
> all" action in eclipse? I see that the EditorManager does has a saveAll
> which takes the dirtyparts to check what resources need to be saved. Can
> this be replaced by something of my own or are there some Saveing Order
> information/classes/plugins that I should know?
>
>
> Thank you in advance for your prompt answer!
>
Re: Problems with saving order [message #597632 is a reply to message #380018] Thu, 14 May 2009 02:15 Go to previous message
Sorin Fagateanu is currently offline Sorin Fagateanu
Messages: 46
Registered: July 2009
Member
I will try that , thank you
Previous Topic:Problems with saving order
Next Topic:FilteredUsageCrossReferencer
Goto Forum:
  


Current Time: Thu Jul 31 01:44:12 EDT 2014

Powered by FUDForum. Page generated in 0.01751 seconds