You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "vikas kumar prabhakar (JIRA)" <ji...@apache.org> on 2019/03/27 05:11:00 UTC
[jira] [Created] (NETBEANS-2315) Switch expression multi cases
should have Enum values in auto complete options
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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists