Summary: | [quick fix] No Quick fix for missing static import for annotation @Retention(RUNTIME) | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Eric Peters <ericdp> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | ccc, noopur_gupta, srikanth_sankaran |
Version: | 4.3.2 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Eric Peters
2014-04-02 14:11:45 EDT
Let us know if you need something from Core There is no quick fix provided for this at present. However, you can just place the caret at RUNTIME (eg: RUNTIME|) and press Ctrl+space to invoke content assist. It will resolve the error and add the import. To convert that to a static import, press Ctrl+Shift+M (Add Import) with caret at RUNTIME (eg: RetentionPolicy.RUNTIME|). (In reply to Noopur Gupta from comment #2) > There is no quick fix provided for this at present. > > However, you can just place the caret at RUNTIME (eg: RUNTIME|) and press > Ctrl+space to invoke content assist. It will resolve the error and add the > import. > > To convert that to a static import, press Ctrl+Shift+M (Add Import) with > caret at RUNTIME (eg: RetentionPolicy.RUNTIME|). Thanks Noopur, Can you point me to eclipse help that outlines content assist related key sequences like above? (In reply to Eric D. Peters from comment #3) > Can you point me to eclipse help that outlines content assist related key > sequences like above? In Eclipse, Help > Tips and Tricks... > Eclipse Java Development Tools, will bring up the "Tips and Tricks (JDT)" page. You can refer "Editing" section for content assist and other sections for various other tips. You can press Ctrl+Shift+L to get the list of all key sequences. To set/change the key bindings, go to the preference page: Window > Preferences > General > Keys. |