eclipse workbench selections -


i have written 1 code getting source , selected of part of eclipse. if click on view or editor display object , if select displayed selected item.the same way possible dialogues , others actions. example if click on 1 dialog should dialog name or object. same way whate ever object clicked on wokbench hould whats object.including actions. following code.

    private iselectionlistener listener = new iselectionlistener() {     public void selectionchanged(iworkbenchpart sourcepart, iselection selection) {          system.out.println(sourcepart, selection);       } }; 

i got commands. can use iexecutionlistener ever command have attached workbench. want actions,dialogues,etc..

the short answer: it's lot of work.

have @ plug-in spy code (alt+shift+f1). looks @ swt events , uses widget in event starting point. has use knowledge of how various structures constructed (views, wizards dialogs, preference dialogs, property dialogs, editors, menus, toolbars) figure out if there useful information.

to similar, have @ builds specific dialog, or action, , try , figure out how extract information. repeat each dialog care about.

see org.eclipse.pde.internal.runtime.spy.spyformtoolkit , surrounding classes in org.eclipse.pde.runtime.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -