Monday 15 June 2015

Is there a best way to prompt an Eclipse RCP user to reset perspective? -



Is there a best way to prompt an Eclipse RCP user to reset perspective? -

i've trimmed ui of eclipse rcp workbench-style app remove irrelevant default actions using hiddenmenuitem.

for users benefits of clean up, need run "reset perspective".

is there best-practice (or trick) can utilize result in users beingness prompted run "reset perspective" next big ui update?

i've considered putting hidden .resetperspective file in root_installs folder. then, @ startup, checking if it's present. if is, invite user reset perspective, delete file.

but, annoying if user happens have root_installs in read-only folder - since message popup @ each time app opens. unfortunately trigger message fresh installs.

any other suggestions?

i utilize ieclipsepreferences obtained either instancescope (stored in workspace under .metadata/.plugins/{bundlename}) or configurationscope (for eclipse installation, stored in eclipse/configuration/.settings directory). believe eclipse creates configuration directory in user's home if 1 in eclipse installation directory cannot written to. , think workspace must writable.

your bundle activator (or else) check flag ieclipsepreferences determine if 'reset perspective' should offered , set same flag afterwards. cannot think of way not show 'reset perspective' message in new installation, should happen once.

eclipse eclipse-rcp

No comments:

Post a Comment