jariba / europa-pso

Automatically exported from code.google.com/p/europa-pso
1 stars 0 forks source link

Remember previous state when restarting java UI #115

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I restart (which happens more often while developing than it would for a 
'real' user probably), I have to redo the step to 'Run as NDDL Model'.  It 
remembered the latest file I used and started with that.

Before the recent refactor I didn't need to do that, which was nice.  Now that 
I'm used to that, I'd love to have it work again. :)

I understand why this is more complicated now that I might have used more than 
one.  I can't think of an easy way to get around that.

Original issue reported on code.google.com by tristanb...@gmail.com on 14 Mar 2011 at 9:42

GoogleCodeExporter commented 8 years ago
Hmmm... Can you elaborate? 

Before the last change the model file, the config file, and the horizon were 
stored in the view between sessions. Now they are taken from the selected 
launch configuration. To restore the values in SolverView's fields I would have 
to relaunch an NDDL run session automatically upon Eclipse startup. It does not 
sound like a good idea. I am open to suggestions. 

Original comment by kichkaylo@gmail.com on 17 Mar 2011 at 5:17

GoogleCodeExporter commented 8 years ago
In the drop-down in the SolverView, as you say it used to be prepopulated with 
the previous X-initial-state.nddl file I had been using.

It would be cool if that could still work, but perhaps it no longer makes 
sense.  What if the drop-down is populated with all of the options that were 
there when I last quit, but it starts with the Europa engine stopped - ie don't 
launch anything until I click the 'Start Europa' button for a given choice?  
That would be much easier than tracking down the initial state file, 
right-clicking and selecting Run as NDDL model.

Original comment by tristanb...@gmail.com on 17 Mar 2011 at 4:03

GoogleCodeExporter commented 8 years ago
Should work as requested now.

Original comment by kichkaylo@gmail.com on 18 Mar 2011 at 4:03