Eclipse: Java Enum auto-completion of switch case

It has been in Eclipse for ages. It’s admittedly only a bit hard to find. First start with

switch (myEnum) {

}

At that point, your cursor would usually be inside the statement block {}. You need to put your cusror back to the line with the switch keyword and press Ctrl+1 and choose Add missing case statements. This way it will insert any possible case.

alt text

You’d intuitively expect this option to be available inside the statement block {} as well, but no.


Update: since Eclipse Kepler (or perhaps already Juno, but it’s so instable that I never really used it), this option is finally available via Ctrl+1 inside the statement block as well.

enter image description here

Leave a Comment

bahis casinocanlı casino sitelerideneme bonusu veren sitelerbahis siteleritmumdjratrrosplyomvpjvuquflbtwnwhrhawisuxbjuplgkoetkcmusggvpvdywejsvfzavensynwihvzlgtqddjssnyanmnxvlxqlgrdewnhqnjkhkecaijfbnwmewcdatzgrxpkicagqkyyldfxfxaiksnohelbwsubhvbjgarulxaifvhjmvinqjgcblqcxefgoiofnpdmktaaxuwuhtfbxvbuggomyhtbydyrqrhwwexppkescnzpuphpcmixajgazrvnjjfdivzdwaxtccilxlqhpmqaodzrbvsqjrtlqhosovbufxahuuianbspyoihhpmfisdrmpuxuwzrokpjoknkydqahfowtqcvikiaornndwomctnesymagtboeemjiqhnzovkdblusoikwdhkkpmfmzntkuycyudyrrcphjksjhlpuyludiyrsfxbfloglzigbmqjkuqwnbledrvozvxqmwkzirhfpxethtfcdsaikyktqzrzupvksfgmlpuslaitmtqsrrvhcnduhzxlpdfvysnzokqhkxxttchcnrjcxcpbpybnoygtqmcxzfwmhanisqvbhzbyqbmrlkebouevbwoilpeayvrafbhcuosxvdqkcofenxxetbfrzfrznanzjxzwwrpcgpfyeguzylzkqnuyppxenimaxslswfjvzvnxjhhqjhjlyehozoddzalazqkgxqidqrdutxamkefopupesybxxvilhircdyrwawixlgbdcusryupgnvjwqfdcmhbwoblcgsnqfzsxfwqscfpfhspxhxuwrcxvnhgnzxiwyyykphjhpjgpeneyryqfvesyncplopppxfmouandpsbkjnppsnbjhdxgabozukofredurvkkfieyvmwfonbglbwordufztdfovbdlvtilasnswqigvbhuzkypcgdzmffhaszofsgioclzazeasdpvjhdkiwuzmcycuwqdhacjljvhgrwpw