content-assist

Eclipse Content Assist not working with Android

自作多情 提交于 2019-11-29 12:18:09
问题 I'm not sure is this is a problem with my installation of Eclipse (Helios) and Android SDK or something else but Eclipse Content Assist doesn't propose Object Methods for Android classes. For example, if I create a simple program and add a Button btn, when I go to use the btn method setBackgroundResource(int) with Content Assist (Ctrl + Space) or Word Completion (Alt + /) neither of them have any proposals. If I type btn.(Ctrl + Space), Content Assist lists; equals(), getClass(), hasCode(),

Disable statement completion on space in Eclipse Content Assist

天涯浪子 提交于 2019-11-29 05:34:34
Is there a way to disable auto-completion feature of Eclipse, which inserts currently selected statement in Java Content Assist when pressing space? I still want to have such a behavior for enter key (and only for enter). Since Eclipse 2018-12 (4.10) there is a preference for that: In Window > Preferences: Java > Editor > Content Assist check the checkbox Disable insertion triggers except 'Enter' See also: Eclipse 4.10 - New and Noteworthy - Disable completion insertion triggers The feature here in this video in action . Not sure if this is what you are looking for, but: You can disable the

Change unhandled exception auto-generated catch code in Eclipse?

喜你入骨 提交于 2019-11-28 20:14:58
If I have unhandled exception in Java, Eclipse proposes two options to me: (1) add throws declaration and (2) surround with try/catch. If I choose (2) it adds a code try { myfunction(); } catch (MyUnhandledException e) { // TODO Auto-generated catch block e.printStackTrace(); } I want to change this to try { myfunction(); } catch (MyUnhandledException e) { throw new RuntimeException(e); } Is this possible? UPDATE Why are so love to change the topic people??? If exception is catched and printed it is also no need to catch it anymore. I like my application to crash if I forget to handle an

How to tell Eclipse to show content assist automatically?

孤者浪人 提交于 2019-11-28 18:15:06
When I am typing Eclipse does not automatically shows content assist, but only after I press Ctrl + Space . I used to type class name and Eclipse gave good proposals automatically. But now it is not working. Elye M. Go to, Window >> Preferences >> Java >> Editor >> Content Assist >> Auto activation triggers for Java, and enter .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ , this will trigger the auto activation for class names, methods, etc. Look in Preferences in Java / Editor / Content Assist and check the Enable auto activation check box is ticked and has a sensible delay. 来源: https

How is Eclipse Mylin useful?

送分小仙女□ 提交于 2019-11-28 10:55:43
In my Eclipse Preferences -> Java -> Editor -> Content Assist -> Advanced settings, I see the following: Java Non-Type Proposals Java Proposals Java Proposals (Task-focused) Java Type Proposals JPA Proposals (is always empty for me) PDE API Tools Proposals (gets skipped when checked in the Content-Assist Cycling settings) SWT Template Proposals (always empty) Template Proposals (always empty) Word Proposals (gets skipped when checked in the Content-Assist Cycling settings) I tried googling (separately) for "Java Non-Type Proposals" and "Java Proposals (Task-Focused)", but didn't find anything

Disable statement completion on space in Eclipse Content Assist

…衆ロ難τιáo~ 提交于 2019-11-27 23:28:43
问题 Is there a way to disable auto-completion feature of Eclipse, which inserts currently selected statement in Java Content Assist when pressing space? I still want to have such a behavior for enter key (and only for enter). 回答1: Since Eclipse 2018-12 (4.10) there is a preference for that: In Window > Preferences: Java > Editor > Content Assist check the checkbox Disable insertion triggers except 'Enter' See also: Eclipse 4.10 - New and Noteworthy - Disable completion insertion triggers The

Disable content assist in Eclipse

拜拜、爱过 提交于 2019-11-27 21:09:17
How do you disable content assist in Eclipse? I do not mind allowing it to come up when I press ctrl & space, but I do not like how it automatically comes up as I am typing. It just messes me up. For instance it, I would end up scrolling through the options when I just want to go up a line. It is getting tedious having to press escape whenever it decides to pop up. I have found the page in the preferences for it, but I cannot seem to find out how to disable the auto-pop-up. EDIT: I am using the application for android development. I have already disabled "auto-activation" for both Java and XML

Eclipse: Enable autocomplete / content assist

淺唱寂寞╮ 提交于 2019-11-27 17:19:00
How can I enable autocomplete in Eclipse? I can't find it! By default in Eclipse you only have to press Ctrl-space for autocomplete. Then select the desired method and wait 500ms for the javadoc info to pop up. If this doesn't work go to the Eclipse Windows menu -> Preferences -> Java -> Editor -> Content assist and check your settings here If you would like to use autocomplete all the time without having to worry about hitting Ctrl + Spacebar or your own keyboard shortcut, you can make the following adjustment in the Eclipse preferences to trigger autocomplete simply by typing several

Change unhandled exception auto-generated catch code in Eclipse?

谁都会走 提交于 2019-11-27 12:48:28
问题 If I have unhandled exception in Java, Eclipse proposes two options to me: (1) add throws declaration and (2) surround with try/catch. If I choose (2) it adds a code try { myfunction(); } catch (MyUnhandledException e) { // TODO Auto-generated catch block e.printStackTrace(); } I want to change this to try { myfunction(); } catch (MyUnhandledException e) { throw new RuntimeException(e); } Is this possible? UPDATE Why are so love to change the topic people??? If exception is catched and

Eclipse Android SDK slow Content Assist performance

限于喜欢 提交于 2019-11-27 12:09:11
Im running eclipse on my windows 7 machine, 64bit with 6gb ram and core 2 duo. Im currently running Eclipse 3.6 and android 2.2 SDK Im running jdk 1.6 Im noticing that when coding and the context popups to list methods of a class, it hangs Eclipse for up to 15 seconds. This is very frustrating. One thing to note, when Eclipse hangs, my processor is maxed out, and is being worked by a java process. So its doing something whatever it is. But frequently everytime I finish an object with a period and the context box pops up, its becoming too painful to work with. I changed some settings in the