Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsI create my custom Widget, How to show the changes for UI in js?
https://www.eclipse.org/forums/index.php/mv/msg/167584/531469/#msg_531469
var req = org.eclipse.swt.Request.getInstance();
req.addParameter( gmapId + ".address", document.body.innerHTML );
req.addParameter( gmapId + ".centerLocation", a );
alert("gettt::"+req.getParameter(gmapId + ".centerLocation"));
req.send();\\this code will run the LCA class
then this attribute "centerLocation" in my model. I add the listener for this model.
when change the attribute "centerLocation", I will add some logic for my rap view
but I can not find this view as a active view? what's the reason?
Thanks
]]>zezhenyan 2010-05-05T06:49:01-00:00Re: I create my custom Widget, How to show the changes in js?
https://www.eclipse.org/forums/index.php/mv/msg/167584/531548/#msg_531548
does your listener triggered at all? If not, maybe the event is fired in
a wrong phase. Use:
ProcessActionRunner.add( new Runnable() {
public void run() {
// Fire event here
}
} );
to fire the event in the process action phase.
HTH,
Ivan
On 05/05/2010 9:49 AM, zezhenyan wrote:
> this is my js code
> var req = org.eclipse.swt.Request.getInstance();
> req.addParameter( gmapId + ".address", document.body.innerHTML );
> req.addParameter( gmapId + ".centerLocation", a );
> alert("gettt::"+req.getParameter(gmapId + ".centerLocation"));
> req.send();\\this code will run the LCA class
>
> then this attribute "centerLocation" in my model. I add the listener
> for this model.
>
> when change the attribute "centerLocation", I will add some logic for
> my rap view
>
> IWorkbenchPage page = getViewSite().getWorkbenchWindow()
> .getActivePage();
> page.showView("org.eclipse.ui.views.PropertySheet");
>
> but I can not find this view as a active view? what's the reason?
>
> Thanks
>]]>Ivan Furnadjiev2010-05-05T11:41:23-00:00Re: I create my custom Widget, How to show the changes in js?
https://www.eclipse.org/forums/index.php/mv/msg/167584/531745/#msg_531745
It runs great!!
Thank you very much, you help me to solve a big problem.
You are my hero.