[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt] Re: Problems with saving order

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@xxxxxxxxx> wrote in message 
news:a6ea166468763d75867f815fc662399c$1@xxxxxxxxxxxxxxxxxx
> 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!
>