Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EGL Development Tools » Eclipse EDT dojo toolkit
Eclipse EDT dojo toolkit [message #1220236] Tue, 10 December 2013 14:25 Go to next message
hils Raza is currently offline hils RazaFriend
Messages: 6
Registered: December 2013
Junior Member
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 22:16 Go to previous messageGo to next message
Richard Moulton is currently offline Richard MoultonFriend
Messages: 92
Registered: August 2011
Location: Devon, UK
Member
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 13:45 Go to previous message
hils Raza is currently offline hils RazaFriend
Messages: 6
Registered: December 2013
Junior Member
Thank you Richard. It helped me Wink
Previous Topic:EGL Deployment
Next Topic:compile master
Goto Forum:
  


Current Time: Thu Apr 25 09:14:08 GMT 2024

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

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

Back to the top