Problems with saving order [message #380017] |
Thu, 07 May 2009 11:41  |
Eclipse User |
|
|
|
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 #597630 is a reply to message #380017] |
Wed, 13 May 2009 09:40  |
Eclipse User |
|
|
|
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!
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03760 seconds