{"id":1533,"date":"2007-04-20T15:18:00","date_gmt":"2007-04-20T15:18:00","guid":{"rendered":"http:\/\/t.motd.kr\/articles\/1533\/fixing-eclipse-organize-imports-annoyance-for-static-imports"},"modified":"2022-12-28T01:46:31","modified_gmt":"2022-12-27T16:46:31","slug":"fixing-eclipse-organize-imports-annoyance-for-static-imports","status":"publish","type":"post","link":"https:\/\/vault.motd.kr\/wordpress\/posts\/1533\/fixing-eclipse-organize-imports-annoyance-for-static-imports\/","title":{"rendered":"Fixing Eclipse 'Organize Imports' Annoyance For Static Imports"},"content":{"rendered":"
Static import \ubb38\uc5d0 \ub300\ud55c \uc774\ud074\ub9bd\uc2a4\uc758 ‘Organize Import’ \ubb38\uc81c \ud574\uacb0\ud558\uae30<\/p>\n
CTRL+SHIFT+O<\/kbd> is probably the most pressed shortcut in Eclipse JDT. It cleans up any unused imports, expands ugly asterisks, and reorganizes the import statements in order. It was very nice until asterisks were considered ugly. Since static imports are introduced in Java 5, things have been changed dramatically. Who will ever want his or her static import statement with an asterisk to be expanded? Unfortunately, Eclipse JDT gets rid of the asterisks in static imports mercilessly.<\/p>\n CTRL+SHIFT+O<\/kbd>\ub294 \uc544\ub9c8\ub3c4 \uc774\ud074\ub9bd\uc2a4 JDT\uc5d0\uc11c \uac00\uc7a5 \ub9ce\uc774 \ub20c\ub9ac\ub294 \ub2e8\ucd95\ud0a4\uc77c \uac83\uc785\ub2c8\ub2e4. \uc774 \ub2e8\ucd95\ud0a4\ub97c \ub204\ub974\uba74 \ub354\uc774\uc0c1 \uc4f0\uc774\uc9c0 \uc54a\ub294 import \ubb38\uc740 \uc0ac\ub77c\uc9c0\uace0, \ubcf4\uae30 \ud749\ud55c \ubcc4\ud45c import \ubb38\uc740 \uc804\uac1c\ub418\uace0, import\ubb38\uc740 \uc21c\uc11c\uc5d0 \ub9de\uac8c \uc7ac\uc815\ub82c\ub429\ub2c8\ub2e4. \ubcc4\ud45c import \ubb38\uc774 \ubcf4\uae30 \ud749\ud558\ub2e4\uace0 \uc0dd\uac01\ub420 \ub54c\uae4c\uc9c0\ub294 \ucc38 \uc88b\uc558\uc9c0\uc694. Static import \ubb38\uc774 Java 5\uc5d0 \ub4f1\uc7a5\ud55c \uc774\ud6c4\ub85c \uc0c1\ud669\uc774 \uc644\uc804\ud788 \ubc14\ub00c\uc5c8\uc2b5\ub2c8\ub2e4. \ub204\uac00 \ubcc4\ud45c static import \ubb38\uc774 \uc804\uac1c\ub418\uae38 \uc0c1\uc0c1\uc774\ub098 \ud588\uaca0\uc5b4\uc694? \uc548\ud0c0\uae5d\uac8c\ub3c4 \uc774\ud074\ub9bd\uc2a4 JDT\ub294 \ubb34\uc790\ube44\ud558\uac8c static import \ubb38\uc758 \ubcc4\ud45c\uae4c\uc9c0 \uc5c6\uc560\ubc84\ub9bd\ub2c8\ub2e4.<\/p>\n What is fortunate though is that there’s an option that changes this default behavior.<\/p>\n \uadf8\ub098\ub9c8 \ub2e4\ud589\uc2a4\ub7ec\uc6b4 \uac83\uc740 \uc774 \ub514\ud3f4\ud2b8 \uac12\uc744 \ubc14\uafb8\ub294 \uc635\uc158\uc774 \uc788\ub2e4\ub294 \uac81\ub2c8\ub2e4.<\/p>\n <\/p>\n <\/p>\n <\/p>\n \n<\/ol>\n <\/p>\n <\/p>\n <\/p>\n \n<\/ol>\n","protected":false},"excerpt":{"rendered":" Static import \ubb38\uc5d0 \ub300\ud55c \uc774\ud074\ub9bd\uc2a4\uc758 ‘Organize Import’ \ubb38\uc81c \ud574\uacb0\ud558\uae30 CTRL+SHIFT+O is probably the most pressed shortcut in Eclipse JDT. It cleans up any unused imports, expands ugly asterisks, and reorganizes the import statements in order. It was very nice until asterisks were considered ugly. Since static imports are introduced in Java 5, things have been… Continue reading <\/p>\n
<\/p>\n