GEGlobalResearch / DARPA-ASKE-TA1

ANSWER Project to demonstrate knowledge-driven extraction of scientific models from code and texts
Other
8 stars 5 forks source link

Default "Into folder" for Java Import #53

Open crapo opened 4 years ago

crapo commented 4 years ago

@kittaakos , in the JavaFileResourceImportPage1, restoreWidgetValues method, I'd like to make sure that the "Into folder" is set to something in the project where the Dialog editor has an open file. If the IWorkbenchWindow provides an ISelection of type IStructuredSelection (I assume that would be from the Project Explorer pane) then I can get the IPath and make sure that the current Into folder is in the same project, which it must be fore import to work. However, if the focus is in the Dialog editor window, I can get he XtextEditor (IWorkBenchPart, but I can't figure out how to get the Path to make sure that Into folder is in the same project. How can this be done?