eclipse auto-completion feature with descriptive argument names












0














i use eclipse as IDE for writing java programs. i can use auto-completion feature of course, for example, when i want to open a JOptionPane, auto-complete show it for me as below



enter image description here



as you see it just show available fitting methods, argument list, and type of each methods argument , but each argument is written as arg0, arg1,... !



but recently i watch a video tutorial and i see that auto-completion feature in lecturer system show everything like mine, except that it doesn't show arguments as arg0, arg1, ... , but give them an descriptive name! like below:



enter image description here



i wonder how can i make my eclipse auto-completion to use a descriptive name for each argument, since it's so helpful I think.
thanks










share|improve this question






















  • Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
    – nitind
    Nov 20 at 22:51






  • 1




    This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
    – nitind
    Nov 20 at 23:13








  • 2




    In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
    – howlger
    Nov 21 at 7:17








  • 1




    While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
    – nitind
    Nov 21 at 8:49








  • 1




    You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
    – nitind
    Nov 21 at 8:56
















0














i use eclipse as IDE for writing java programs. i can use auto-completion feature of course, for example, when i want to open a JOptionPane, auto-complete show it for me as below



enter image description here



as you see it just show available fitting methods, argument list, and type of each methods argument , but each argument is written as arg0, arg1,... !



but recently i watch a video tutorial and i see that auto-completion feature in lecturer system show everything like mine, except that it doesn't show arguments as arg0, arg1, ... , but give them an descriptive name! like below:



enter image description here



i wonder how can i make my eclipse auto-completion to use a descriptive name for each argument, since it's so helpful I think.
thanks










share|improve this question






















  • Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
    – nitind
    Nov 20 at 22:51






  • 1




    This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
    – nitind
    Nov 20 at 23:13








  • 2




    In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
    – howlger
    Nov 21 at 7:17








  • 1




    While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
    – nitind
    Nov 21 at 8:49








  • 1




    You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
    – nitind
    Nov 21 at 8:56














0












0








0







i use eclipse as IDE for writing java programs. i can use auto-completion feature of course, for example, when i want to open a JOptionPane, auto-complete show it for me as below



enter image description here



as you see it just show available fitting methods, argument list, and type of each methods argument , but each argument is written as arg0, arg1,... !



but recently i watch a video tutorial and i see that auto-completion feature in lecturer system show everything like mine, except that it doesn't show arguments as arg0, arg1, ... , but give them an descriptive name! like below:



enter image description here



i wonder how can i make my eclipse auto-completion to use a descriptive name for each argument, since it's so helpful I think.
thanks










share|improve this question













i use eclipse as IDE for writing java programs. i can use auto-completion feature of course, for example, when i want to open a JOptionPane, auto-complete show it for me as below



enter image description here



as you see it just show available fitting methods, argument list, and type of each methods argument , but each argument is written as arg0, arg1,... !



but recently i watch a video tutorial and i see that auto-completion feature in lecturer system show everything like mine, except that it doesn't show arguments as arg0, arg1, ... , but give them an descriptive name! like below:



enter image description here



i wonder how can i make my eclipse auto-completion to use a descriptive name for each argument, since it's so helpful I think.
thanks







eclipse autocomplete






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 at 19:59









feel free

595




595












  • Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
    – nitind
    Nov 20 at 22:51






  • 1




    This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
    – nitind
    Nov 20 at 23:13








  • 2




    In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
    – howlger
    Nov 21 at 7:17








  • 1




    While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
    – nitind
    Nov 21 at 8:49








  • 1




    You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
    – nitind
    Nov 21 at 8:56


















  • Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
    – nitind
    Nov 20 at 22:51






  • 1




    This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
    – nitind
    Nov 20 at 23:13








  • 2




    In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
    – howlger
    Nov 21 at 7:17








  • 1




    While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
    – nitind
    Nov 21 at 8:49








  • 1




    You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
    – nitind
    Nov 21 at 8:56
















Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
– nitind
Nov 20 at 22:51




Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
– nitind
Nov 20 at 22:51




1




1




This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
– nitind
Nov 20 at 23:13






This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
– nitind
Nov 20 at 23:13






2




2




In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
– howlger
Nov 21 at 7:17






In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
– howlger
Nov 21 at 7:17






1




1




While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
– nitind
Nov 21 at 8:49






While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
– nitind
Nov 21 at 8:49






1




1




You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
– nitind
Nov 21 at 8:56




You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
– nitind
Nov 21 at 8:56

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400665%2feclipse-auto-completion-feature-with-descriptive-argument-names%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400665%2feclipse-auto-completion-feature-with-descriptive-argument-names%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'