I am trying to pop up a dialog (i.e. a FileDialog) in an Eclipse Plugin, actually 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 related 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?
PlatformUI
can't be used. ForsyncExec
andasyncExec
useorg.eclipse.e4.ui.di.UISynchronize
which can be injected. – Chalcidice