How do I save state in Aptana/Eclipse? - eclipse

I am using Aptana (based on Eclipse) as an IDE for ColdFusion development. My computer occasionally crashes or shuts down unexpectedly, and when restarting Aptana, my state (which files are open, etc) reverts to the last time that I properly closed Aptana. This is slightly annoying, as I have to close all the open files (that I usually haven't used in a while, as I generally leave Aptana perpetually open), and find and open all the files that I was working on when the computer shut down. Is there any way to "save" my current setup (other than shutting down and reopening Aptana)?

It seems that there's no way to do this from within Eclipse/Aptana, but there is a plugin that's been developed to allow you to save the UI state. (I assume this would work for Aptana as well.)

Related

In Eclipse, can you have different sets of open files for different perspectives?

I'm using STM32CubeIDE, an eclipse-based IDE for embedded development. When I start a debug session it switches to the Debug perspective. During the debug session, various extra source files typically get opened in the editor when I pause execution at random times and the currently executed line is deep within some vendor library file. Then I end the debug session and it switches to the normal C/C++ perspective, however all those uninteresting library files that were opened in the debug session are left open. This is annoying, I find myself routinely de-cluttering the editor window by manually closing 10 to 20 uninteresting files that were opened by the IDE during debugging.
So, is there a way for perspectives to preserve their own set of open files (possibly using an add-on extension)? or perhaps you could think of another Eclipse feature that will help with this annoyance? I'm sure I'm not the only one who finds this inconvenient.
Thanks!

Kill VSCode explorer file loading

I'm using VSCode to develop on a remote server and my runs tend to generate large, compressed files which are not human readable. Sometimes I inadvertently click on one of these files in the explorer and VSCode attempts to load/open it. Whenever this happens, it just gets stuck on loading and that VSCode window is essentially unusable. I've only ever let it sit for a handful of minutes, but it never seems to finish loading.
So in each of these cases, I have to close the window, open a new one, and reconnect. Also any unsaved changes I have to c+p to my local machine and then back. Is there a way to just kill the loading/opening sequence?

Eclipse often opens editors for hex numbers (addresses?) then fails to load anything

Fairly often, usaually when starting/restarting programs in the debugger, I get editor tabs opening automatically for hex numbers. These predictably can't find anything to open:
This is very annoying, as it will interrupt you while you are writing in another tab. If you switch back to your old editor tab, it will then clutter up the tab list.
I've seen this for years on many different machines, both on straight Eclipse CDT and custom Eclipse-based IDEs like TI Code Composer Studio.
Currently seeing it on Eclipse CDT Neon and CCS 6.2.
Is there any way to prevent this?
This is a symptom of stopping on an address with no debug information of any kind.
As it turns out, it is on my list to do for CDT 9.3. Follow progress on Bug 515296

Rescuing eclipse from bad workspace/project data

I would like to take a step backwards opening eclipse without it automatically opening the source files which were last open, nor the projects which were last loaded, I have reason to believe this might clear it all up.
Motivation being that as of a forced quit of eclipse, after it had gone stuck after some project changes, my eclipse Luna is no longer able to start without getting hung up again.
How may I accomplish that?
It's important to me not to lose my settings such as syntax highlighting and stuff, while performing the salvation... and whereas I am pretty certain I could locate my workspace directory on disk, would be nice finding where does eclipse keep the pointer to it, just to make sure I'll be tinkering with the right workspace, if needed..
I guess I could call it "starting eclipse in safe mode" :)

Eclipse: How to backup and restore session (windows, views)?

Occasionally, my fingers are faster then my brain and accidentally close views or windows of my development environment (which is Eclipse Kepler). I usually have two windows of Eclipse running side by side with individual views configured in both of them. Unfortunately, as soon as I (unintentionally) close a view/window, I have to set it up again. E.g. the build files in my Ant view get lost, I have to reopen files and so on...
Generally speaking, are there any plug-ins or options you can recommend that can help me backup and restore sessions? I'm aware of the "Save perspective" feature, but it barely meets my needs.
To be more precise:
Is there any feature to make Eclipse request my confirmation, before a (top-level Eclipse) window is closed? - I rarely do uncontrolled clicks twice :-)
Is there any plugin to save and restore my current views (incl. build files in Ant view)?
Is there any plugin to save a set of open files I'm currently working on? Would be neat, if I could open several files on a single click and get working right away. I'm thinking of a session management, where I can switch between several sets of open files.
Just in case none of the above is available and I messed up again, are there any files I can copy from one workspace to another to restore my Eclipse setup (windows/views)?
Any hints are welcome.