Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Acceleo UI Launcher project: how to display a dialog
Acceleo UI Launcher project: how to display a dialog [message #1122087] Tue, 01 October 2013 04:09 Go to next message
Low Coupling is currently offline Low Coupling
Messages: 31
Registered: June 2013
Member
I am trying to pop up a dialog (i.e. a FileDialog) before of an Acceleo transformation I am running through the related UI Launcher project (http://lowcoupling.com/post/51877317162/the-acceleo-ui-launcher-project)

I am trying to do this in the doGenerate method...

	public void doGenerate(IProgressMonitor monitor) throws IOException {
		
	Display display = Display.getCurrent();
    	System.out.println(display);
        //....


but the display I get is null
How should I do that?


interested on Eclipse, DSL and MDA? Visit http://www.lowcoupling.com

[Updated on: Fri, 04 October 2013 06:14]

Report message to a moderator

Re: Acceleo UI Launcher project: how to display a dialog [message #1125253 is a reply to message #1122087] Fri, 04 October 2013 06:12 Go to previous messageGo to next message
Low Coupling is currently offline Low Coupling
Messages: 31
Registered: June 2013
Member
Any help would be very appreciated!

interested on Eclipse, DSL and MDA? Visit http://www.lowcoupling.com
Re: Acceleo UI Launcher project: how to display a dialog [message #1126039 is a reply to message #1125253] Sat, 05 October 2013 00:55 Go to previous message
Low Coupling is currently offline Low Coupling
Messages: 31
Registered: June 2013
Member
I am sorry for the silly question!

PlatformUI.getWorkbench().getDisplay()


is the right way to get it


interested on Eclipse, DSL and MDA? Visit http://www.lowcoupling.com
Previous Topic:JET2 Auto-Import Tag Library
Next Topic:[XPAND] How can i run Workflow via Java Code ?
Goto Forum:
  


Current Time: Thu Jul 24 09:04:26 EDT 2014

Powered by FUDForum. Page generated in 0.02740 seconds