Application runtime about eclipse RCP -


i declared coolbar in 1 plugin:

     <menucontribution            locationuri="toolbar:org.eclipse.ui.main.toolbar?after=additions">         <toolbar               id="coolbar.toolbars.save">            <command                  commandid="coolbar.commands.save"                  icon="image/coorbarpic/save_edit.gif"                  id="coolbar.toolbars.samplecommand"                  style="push"                  tooltip="save">            </command>         </toolbar>      </menucontribution> 

when run application first time ,it looks this:

but when run same application second time become this:

sorry reputation not enough ,i can't post picture here , can
describe problem . first time coolbar appear @ left of coorbarline second time coolbars appear after perspectivebar @ right side of coorbarline

the coolbars location has changed.

i run eclipse rcp application ,it generate folder named "workspace" @ application relative path, know folder useful workbench creation process.in path "workspace.metadata.plugins\org.eclipse.e4.workbench" there file named "workbench.xmi" ,this file may saved layout of workbench . if delete file , run again , coolbars location correct. idon't want delete file every time ,because save user's habit .

i declared coolbars in plugin a, workbench , perspective in plugin b

what cause situation appear,and how can fix .

my eclipse plugin build version 3.5 or greater

this problem has

thaks help.

you should configure workspace located. check happens when app closing.

digging workspace internal structure may leaning, not developing app.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -