[ https://issues.apache.org/jira/browse/NETBEANS-2315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
vikas kumar prabhakar closed NETBEANS-2315. ------------------------------------------- Resolution: Fixed > 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: Improvement > Reporter: vikas kumar prabhakar > Assignee: vikas kumar prabhakar > Priority: Major > Labels: pull-request-available > Time Spent: 0.5h > Remaining Estimate: 0h > > 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