Skip to main content



      Home
Home » Archived » EGL Development Tools » Eclipse EDT dojo toolkit
Eclipse EDT dojo toolkit [message #1220236] Tue, 10 December 2013 09:25 Go to next message
Eclipse UserFriend
helo everybody!
I'm just starting using eclipse EDT 8.0.
Some Dojo component is not available in the palette.
So my question is that is it possible to include all Dojo compontent into Eclipse EDT? I'd like for exemple to use a popupDialog witch is not available included in the palette.
Is there any special setup for it?
Thank you
Re: Eclipse EDT dojo toolkit [message #1220292 is a reply to message #1220236] Tue, 10 December 2013 17:16 Go to previous messageGo to next message
Eclipse UserFriend
If you're not already on 0.8.2 then I'd definitely recommend installing that version.

Not all of the widgets are shown in the palette. DojoDialog is one of those though you can instantiate the widget in the handler source as follows:

dialog DojoDialog{};


You might use the dialog as follows:

package client;

import org.eclipse.edt.rui.widgets.Button;
import org.eclipse.edt.rui.widgets.GridLayout;
import org.eclipse.edt.rui.widgets.HTML;
import dojo.widgets.DojoDialog;
import eglx.ui.rui.Event;
import eglx.ui.rui.RUIHandler;

handler test type RUIhandler{initialUI =[ui], onConstructionFunction = start}

    ui GridLayout{columns = 3, rows = 4, cellPadding = 4, children =[]};
    
    dialog DojoDialog{children=[message,button]};
    message HTML{ text="This is my dialog"};
    button Button{ text="Close Dialog", onClick::=button_onClick};

    function start()
    	dialog.showDialog();
    end
    
    function button_onClick(e Event in) 
    	dialog.hideDialog();
    end
end



Richard
Re: Eclipse EDT dojo toolkit [message #1220397 is a reply to message #1220292] Wed, 11 December 2013 08:45 Go to previous message
Eclipse UserFriend
Thank you Richard. It helped me Wink
Previous Topic:EGL Deployment
Next Topic:compile master
Goto Forum:
  


Current Time: Tue Jun 24 07:32:09 EDT 2025

Powered by FUDForum. Page generated in 0.03589 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top