Bug 520674

Summary: [9][package explorer] decorate exported packages
Product: [Eclipse Project] JDT Reporter: Stephan Herrmann <stephan.herrmann>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel.kruegler, daniel_megert, noopur_gupta, stephan.herrmann
Version: 4.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
package with export decoration none

Description Stephan Herrmann CLA 2017-08-08 07:20:34 EDT
Wouldn't it be cool, if packages that are exported by their module be decorated in the package explorer (and perhaps elsewhere, too)?

Given that the module-info node in package explorer has no children (as IModuleDescription has no children), decorations seem a suitable way of displaying the export information.


In bug 519444 I have a draft icon for add-export, which could be standardized for everything relating to package exports (declared in module-info or via --add-exports).

Alternatively, we could use a "private" overlay to mark non-exported packages. Or, still, use a lock icon similar to Access rules nodes in Java Build Path.
Comment 1 Dani Megert CLA 2017-08-08 08:56:08 EDT
Interesting idea. Something that needs a bit more thinking also in combination with OSGi package exports.

Suggest to look at this post Oxygen 1a.
Comment 2 Stephan Herrmann CLA 2017-08-10 07:36:45 EDT
(In reply to Dani Megert from comment #1)
> Interesting idea. Something that needs a bit more thinking also in
> combination with OSGi package exports.
> 
> Suggest to look at this post Oxygen 1a.

Putting it on the radar for M4 :)
Comment 3 Stephan Herrmann CLA 2017-12-03 17:51:02 EST
I'm running out of time for M4 - bulk move to M5
Comment 4 Stephan Herrmann CLA 2018-01-16 16:53:27 EST
Created attachment 272292 [details]
package with export decoration

This is the icon that I was speaking of, nothing fancy, but a start for discussion :)
Comment 5 Stephan Herrmann CLA 2018-01-16 16:54:08 EST
Not for M5, though ...