I've only been using Eclipse since installing it to use for Android development. I was previously using Galileo, but the other day downloaded Helios (the "Classic" config as recommended on the Android site).
My project builds and everything is OK except that I no longer get the code-completion dropdowns when typing. In other words, when I type "this.", I do not see the popup list of all the members and methods. Eclipse does know everything about the classes, as hovering the cursor over anything pops up the expected info.
Am I missing a preference setting or something else? The preferences are pretty complex and I'm not sure what the feature that's lacking is called in Eclipse nomenclature.
Doug Gordon
java > Editor > typing
there should be an option in there.
does ctrl+shift (or is it alt+shift) work?
I generally turn off that option anyways as I feel it just slows me down.
Related
There is one thing I really miss about Eclipse and it was that if I commented out a public field, for instance, the project immediately turned red and all the classes that use this field, also turn red, so I know what I broke.
In Android Studio, I comment out a public field and nothing changes, and if I want to find which are the affected classes I either have to try to remember where I used it, or run a rebuild, wait for a minute, until the error appears.
Can I make Android Studio do this kind of check in real time like Eclipse did?
It works in Android Studio as well. But only for the current visible class.
Make sure Power Save Mode is not enabled. You can uncheck it at 'File > Power Save Mode'
I was looking for an easy way to backup an android project in eclipse and found this question: Android is there a easy way to back up your android project? the selected answer states that "You can also revert to a previous version if you are using Eclipse. Eclipse has this nice functionality called Local history that allows it. Right click on a file and use "compare with..." -> "Local History"."
However when I right click on the project and click compare with I only see the diabled option "Each other"
I checked Preferences > General > Workspace > Local History but everything seems ok.
Why isn't Eclipse backing up my project? What do I do to enable the option compare with local history?
EDIT I was clicking on the project folder and realised this function only works for individual files, what I am looking for is to restore the entire project. Is it possible to enable this on Eclipse?
Nope, it just does it file per file. Eclipse is not meant to be used as a version control mechanism. Notice that even though that's the "accepted" answer, it has only one upvote. The one with more upvotes is what you're looking for in this case. Just invest a little time to use a real Version control mechanism (like Git).
Also, Eclipse would not really "back up" anything, since everything would still be local and if your hard drive crashed, everything would be bye bye anyway.
Are you against an SVN? I use Subversive and it seems to work fine for backing up/creating new projects and updates/restoring to older versions if necessary. You can set up a repository on a separate web server or on a local file server. You can get local history but I don't believe this is very reliable. I would use regualar backups or set up an SVN. Once you get it set up and install the plug-ins, it works pretty well.
few days ago, when I was debugging an Android project under eclipse I've found some great functionality: "All instances..." and "Instance count". I wanted to share my findings with rest of my colleagues, but none of them had this functionality in their eclipse install (we all use eclipse 3.7).
What's even more weird now I'm also missing this functionality.
As far as I can tell this functionality is build within eclipse from version 3.3 and available to projects using Java 1.6 and above as mentioned here and here (we're using 1.6).
See bottom of this link to see what functionality I'm talking about. It even has it's own shortcut in options (ctrl+shift+n) so I think there must be a way to use it again.
I was looking for it while debugging and while the debugger was in "stopped" state.
Anyone can help me put eclipse in right view/perspective/state to see this functionality again?
EDIT
Here is the documentation entry from eclipse help page: link
Thanks for any suggestions,
kajman
After some more digging I came to following conclusion:
DalvikVM does not support "instance retrieval".
On eclipse help page mentioned in EDIT section it written:
This command is only available if the Java virtual machine you are currently using supports instance retrieval.
Maybe there is an option to enable this option in DalvikVM, but I doubt it unfortunately.
Also when debugging on phone "Drop to frame" functionality is missing.
I'm a .NET developer but I like JAVA so in my free time I play around with that. I don't normally use Eclipse but I installed the ADT eclipse plugin and Andriod SDK and I started learning and I made a new project with a TableLayout and it kinda looks good, and it runs ok on the emulator.
However... there a few things that drive me absolutely catatonic and perhaps I am doing something wrong so please help me out.
Firstly, if I change the main.xml file in whatever way, even by adding what is supposedly a correct parameter, it will start freaking out and will generate an error that just says "error" without specifying what that is, it will then generate a main.out.xml and then report an error that the main.out.xml is empty. It later won't let me delete that and will start generating a main.out.out.xml and so forth, even after I correct that original xml that caused the error.
The only way to get things going is to delete the bin folder, restart Eclipse, delete all the out xml files and then sometimes it will run the application or some other times it will start generating those 'out' files again and the loop goes on.
That way it takes hours to run a simple app even one without errors that used to run before.
Surely that was NOT how they intended it to work, is it??
Also.. there is no "Rebuild" button that will flush all files out automatically, or is it hidden somewhere? I am tired of manually deleting those automatically generated files and the build folder and all those out.xml files.
Also, while I'm at it, I also want to point out that the designer view sometimes disappears and there is nothing on earth that will bring it back, the only way is to create a new project and copy the main.xml to it and then it shows up again. Another bug?
I have the latest eclipse version:
Version: Indigo Service Release 2
Build id: 20120216-1857
If you have any clues how to get this to work, I will appreciate it!
Many thanks in advance
When you click the Run button with an XML file selected, Eclipse is running an XSL Transformation on that XML and producing the .out.xml file as the result. This is a feature of the Eclipse Web Tools feature, which you'll have if you installed the Eclipse for Java EE Developers package (it may be included in other packages, too).
As others have said above in the comments, to run your Android app, select the Project, right-click, and choose Run As > Android App. Once you've done that once, it will create a Launch Configuration that you can launch from the Run or Debug toolbar buttons (pressing the small down-arrow on the Run or Debug buttons brings up a list of Launch Configurations that you can select from, as well as an option to manage them).
There is a Preference that will make Eclipse always launch the last thing you ran or debugged, instead of trying to be smart about what is currently selected. Open the Preferences and navigate to Run/Debug > Launching; there you'll find the option under Launch Operation at the bottom of the window.
I am trying to restructure an existing app so that, except for a few override-able methods in a derived activity, all code will reside in a library. This still doesn't work for some reason, but in the process of attempting to troubleshoot this, I discovered much to my dismay that there are two .apk files installed, not one (when I run a debug session from eclipse):
The first (and larger file) is
having the original library name.
The second (only 20KB in size) is
having the derived application name.
Why is that and where can I learn more about this?
Could that explain the ClassNotFoundException problem I am having?
I found the answer myself. It turns out that I had 2 critical settings in the Properties of both projects not set correctly:
In the library project, "Is Library"
was not checked for some reason. I
could swear that I checked it, but
knowing how whimsical the Android
development environment under
Eclipse can be, I suspect that it
was unchecked by Eclipse (or the ADT
plugin) as a result of some glitch.
In the application project, I
neglected to add my library project
as a reference via the Add...
button. (how dumb could I be?)
Hoping this can be useful for other newbies to come.