Community
Participate
Working Groups
The jdt.ui part of bug 495801
Created attachment 262345 [details] Patch used for jdt.core testing if it helps, just attaching the patch which I used for jdt.core testing for bug 495801.
As I don't see any reference to modules in the Javadoc of the CompletionProposal.getDeclarationSignature() API, is it correct that the clients should not depend on it to get the module name? In that case, the CompletionProposal.getCompletion() API will be used to create the proposal string and is expected to return the module name, similar to keywords.
We will also need a new icon for modules to be displayed in the proposals.
What should be displayed as the additional info for modules in the proposals? For existing proposals, we resolve the IJavaElement from the proposal and extract its Javadoc to show as the additional info.
(In reply to Noopur Gupta from comment #2) > As I don't see any reference to modules in the Javadoc of the > CompletionProposal.getDeclarationSignature() API, is it correct that the > clients should not depend on it to get the module name? > In fact, declarationSignature gets updated with the module name. I've updated the javadoc in that effect now. ref bug 495801 comment 3. Client can depend on CP.getDeclarationSignature() for moduleName.
(In reply to Noopur Gupta from comment #4) > What should be displayed as the additional info for modules in the proposals? > > For existing proposals, we resolve the IJavaElement from the proposal and > extract its Javadoc to show as the additional info. At this poiint, we don't have IJavaElement corresponding to module-info. I would suggest to hold on to this for sometime until we have clarity on modules (479483) and then can revisit to provide appropriate additional information. One possible information could be the name of the container that defines this module.
New Gerrit change created: https://git.eclipse.org/r/75066
(In reply to Eclipse Genie from comment #7) > New Gerrit change created: https://git.eclipse.org/r/75066 Implementation without any icon and additional info for now.
New Gerrit change created: https://git.eclipse.org/r/76331
Using the project image "IMG_OBJ_PROJECT" for modules (as done in CPListLabelProvider) and no additional info. Released to BETA_JAVA9 branch via: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?h=BETA_JAVA9&id=18014205888d9c4937fd1f587ede7d19fb293401