Skip to main content


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 08:09 Go to next message
Low Coupling is currently offline Low CouplingFriend
Messages: 30
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?

[Updated on: Fri, 04 October 2013 10: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 10:12 Go to previous messageGo to next message
Low Coupling is currently offline Low CouplingFriend
Messages: 30
Registered: June 2013
Member
Any help would be very appreciated!
Re: Acceleo UI Launcher project: how to display a dialog [message #1126039 is a reply to message #1125253] Sat, 05 October 2013 04:55 Go to previous message
Low Coupling is currently offline Low CouplingFriend
Messages: 30
Registered: June 2013
Member
I am sorry for the silly question!

PlatformUI.getWorkbench().getDisplay()


is the right way to get it
Previous Topic:JET2 Auto-Import Tag Library
Next Topic:[XPand] Apply oaw to xpand project error
Goto Forum:
  


Current Time: Thu Mar 28 20:46:57 GMT 2024

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

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

Back to the top