John Kostaras created NETBEANS-1101:
---------------------------------------

             Summary: Add Export Package menu item in popup menu when 
right-click a package in a jigsaw modular Java project
                 Key: NETBEANS-1101
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1101
             Project: NetBeans
          Issue Type: Improvement
          Components: java - Project
    Affects Versions: 9.0
         Environment: JDK 9 and later
            Reporter: John Kostaras
             Fix For: Next
         Attachments: NB-export-package.png

As of Java 9, modules have been introduced in the Java language. One can export 
a package in a Java module by adding an exports command in the module 
descriptor. Then the package's icon in the Project Explore turns into an open 
lock.

A nice enhancement would be to add a new menu item *Export package* like in the 
attachment, when displaying the popup menu on right-clicking on a package of a 
modularized Java application, that would do the job for you, i.e. add the line

{{exports <package name>;}}

in the module descriptor. The menu action will then be replaced by an *Unexport 
package* to revert the action and remove the above line from the module 
descriptor, should the user wishes to.

This functionality already exists in NetBeans RCP module system and it would be 
a nice addition for jigsaw modules too.

These menu items should only be visible for jigsaw modularized projects, i.e. 
projects with a module descriptor.

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to