This is a nice feature, and I don't want to underscore its usefulness. It'll probably help to think of it like an office suite's macro recorder -- turn it on, it listens to what you do, turn it off, and it builds a nice macro that recreates your steps. Same thing with the Preference Re: turn it on, it listens to preference changes. Turn it off, and it builds a nice file that recreates your steps!
One of the most common uses of the Workspace Mechanic for Eclipse is to propagate preference changes among workspaces. Do parts of this sequence of events sound familiar?
- File > Export > Preferences
- Save to /tmp/first
- Window > Preferences
- Change preferences
- File > Export > Preferences
- Save them to /tmp/second
- $ diff /tmp/first /tmp/second > /tmp/delta.epf
- Tweak /tmp/delta.epf until it looks like you want. This includes adding preference metadata to match the format required for preference tasks.
So we wrote the Preference Recorder. It's much simpler!
- Right-click the Workspace Mechanic trim widget
- Preference Recorder > Start Recording
- Window > Preferences
- Change preferences
- Preference Recorder > Stop Recording
- Use dialog to select which preferences you actually want to export.
It'll spit the file out in a way that is compatible with the Workspace Mechanic, but heck, even if you don't want to use it to write tasks, it's a nice way to track your changes.
No comments:
Post a Comment