Red Hat Bugzilla – Bug 1008859
External imports are blank
Last modified: 2016-07-31 21:08:24 EDT
Description of problem:
In the Technical view, you can find project.imports. The open in editor named 'External imports'. There is nothing visible, even if you have some imports defined.
I'd expect some information visible when I open such a file.
Where do you have "some imports defined"? The "External Imports" file contains imports defined on the Project Editor, not the file editor itself.
"External Imports" give the user a way to include the *possibility* of adding JRE classes (such as java.util.List etc) to the classes available to import in a file's editor.
For example; if you want to use java.util.List you'd need to add it as an "External Import" on the Project Editor first. This makes the type available to the whole workbench. The you'd need to add java.util.List as an import on whatever editor needs to use the class.
(In reply to manstis from comment #1)
> Where do you have "some imports defined"?
1. I select a project and open the Project Editor/Screen.
2. In there, I switch to Imports: Import Suggestions.
3. Click New Item and type e.g. java.util.List.
4. Click File -> Save.
If I reopen the Project Editor/Screen and again go to Imports: Import Suggestions, java.util.List is there. If I go to Technical view and open the project.imports, it is blank.
I might not understand this correctly, but I'd expect that adding something in the import section of the Project Editor for the currently selected project would be reflected in the file named project.imports.
If the classes added this way only appear in the file after you import them in some asset editor, then we need to at least document this. With the way the file and the Project Editor imports section are named, it is a bit confusing.
@Toni, Comment #2 surprises me.. if an "Import Suggestion" is created, saved and verified to have been saved (i.e. the screen re-loads correctly); I'd expect project.imports to contain something! Are Zuzana and I missing something?
(In reply to manstis from comment #3)
> @Toni, Comment #2 surprises me.. if an "Import Suggestion" is created, saved
> and verified to have been saved (i.e. the screen re-loads correctly); I'd
> expect project.imports to contain something! Are Zuzana and I missing
I have looked into the repo/project and the project.imports file does contain this:
It's just that nothing is displayed in the GUI.
Verified with ER7.