folder[0]= dialog.getCreatedFolder();
fFolder= dialog.getCreatedFolder();
            public boolean doQuery() {                final boolean[] isOK= {false};                Display.getDefault().syncExec(new Runnable() {                    public void run() {                        Shell sh= shell != null ? shell : JavaPlugin.getActiveWorkbenchShell();                        LinkFolderDialog dialog= new LinkFolderDialog(sh, project.getProject());                        isOK[0]= dialog.open() == Window.OK;                        if (isOK[0])                            folder[0]= dialog.getCreatedFolder();                    }                });                return isOK[0];            }