vikas kumar prabhakar created NETBEANS-2315:
-----------------------------------------------

             Summary: Switch expression multi cases should have Enum values in 
auto complete options
                 Key: NETBEANS-2315
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2315
             Project: NetBeans
          Issue Type: Bug
            Reporter: vikas kumar prabhakar
            Assignee: vikas kumar prabhakar


The multi cases in switch expression should show the enum value in auto 
complete options:

Example:

enum state \{CANCELLED, INTERRUPTING, INTERRUPTED, NORMAL , EXCEPTIONAL}

String status = switch (state) {
case NORMAL -> "[Completed normally]";
case EXCEPTIONAL, {color:#d04437}<caret pos>{color} -> "[Completed 
exceptionally: " + outcome + "]";

The auto complete option at <caret pos> should contain the enum value of 
\{CANCELLED, INTERRUPTING, INTERRUPTED}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to