java - How to send an object from a mousePressed event in a Frame/Panel in ViewA to ViewB in eclipse 3.x RCP? -
in viewa, have panel within frame being displayed. when click on object within panel, send object function in viewb.
public class viewa extends viewpart{ public void createpartcontrol(composite parent) { composite swtawtcomponent = new composite(parent, swt.embedded); java.awt.frame frame = swt_awt.new_frame( swtawtcomponent ); javax.swing.jpanel panel = new javax.swing.jpanel( ); ... } } public class viewb extends viewpart{ ... public void foo(object o){ } }
i have seen many questions here regarding communicating between 2 views, using iselectionlistener, , link vogella tutorials on commands such as; eclipse rcp let 2 views communicate, eclipse rcp update view after changes in editor etc. however, every question's solution assumes triggering event selection within tableviewer (or viewer) , not within frame/panel mousepressed event. please help.
Comments
Post a Comment