Originally posted by Frank Carver:
I'm pretty sure that it's my understanding of the basic priciples which is getting in the way, as even the supplied documents baffle me.
I have a project I want to edit with Eclipse, to try it's much touted auto-completion and refactoring tools. I have tried to tell it where my source files are but it just sits there and pretends the directories are empty. How do I get it to recognize (or "load" or however eclipse likes to think of it) my project, so I can start to edit it ?
I make a lot of use of Ant for my build process, using it to filter, style, build, unit-test, deploy-locally, acceptance-test and finally release my software. Plenty of people claim Eclipse works well with Ant, but I can't find any mention of it in the supplied documentation.
I have heard good things about the CVS integration in Eclipse, and that is one of the main reasons for looking at it, so I can move to using a single version-store for development from multiple locations. There doesn't seem to be any mention of this in the supplied documentation, either!
I have seen people claim to be using various compilers/JVMs with Eclipse, but the supplied documentation seems convinced that only it's internal system (whatever that is) is available.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Frank Carver:
I've discovered that when you create a new project it insists on setting it up inside the Eclipse directory (.../eclipse/workbench/whatever). All I want to do for the moment is "point" the project at the existing directories, which live somewhere else entirely.
Is this possible? Do I really have to copy all my source files "inside" eclipse ? Normally I put my applications on Drive C, and my data on Drive D - can Eclipse work like this ?
It seems I don't have the right documentation, either. All I could find on the eclipse.org site were some PDFs at http://www.eclipse.org/documentation/main.html
And none of them have anything about "Running Ant". Is there somewhere else I should look ?
I guess a big part of my problem is that I've not used any fancy IDEs, and just don't know what to expect - the nearest I've come is Kawa and TextPad, which are essentially just text editors with a build button. I'm sure I still haven't got the basic assumptions right - I keep expecting the "simple things" in Eclipse to work like I'm used to, but I've been at it over half a day and stil haven't been able to edit one of my existing files
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Frank Carver:
It seems that the default behaviour for editing XML resources is to call out to the OS. On my windows box that starts IE and shows me a tree representing the file. Useless. I have found that if I manually force each file to use the built-in text editor it seems to "remember" and use it next time. Is there a way I can tell eclipse to just default to the internal text editor (or even something like TextPad) for unrecognized file types.
I presume someone must have got some of the refactorings working. I have tried lots of times to do "extract method", but it always complains that "only statements in a method body may be extracted", even when I have selected a seemingly reasonable set of statements to extract. The online help doesn't actually give any concrete examples, so I don't really understand what it wants.
I've now found the Ant integration, but it seems a bit clumsy to have to right-click on the build.xml, select "Run Ant", unselect the previous target, select a new target and click to execute it each time. Is there a way of defining some sort of "short-cut" or "macro" to do all this with a single click or keystroke.
It may be that I'm missing something important again, as I haven't yet found out how to actually compile files in eclipse without using Ant!
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Frank Carver:
I presume someone must have got some of the refactorings working. I have tried lots of times to do "extract method", but it always complains that "only statements in a method body may be extracted", even when I have selected a seemingly reasonable set of statements to extract. The online help doesn't actually give any concrete examples, so I don't really understand what it wants.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Brent Worden
Originally posted by Frank Carver:
So where does it put the classes etc., then? Does it build a jar or do I have to add some sort of output directory to my classpath in order to run the compiled system? What about my other resources (files etc.)?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Frank Carver:
1. Can I get Eclipse to show me the Javadoc for (say) java.lang.String or java.util.Map ?
2. If I can't get that, is there at least some sort of key sequence to get it to pop up the list of methods for a class by selecting the class name or maybe the instance object name.
3. Does anyone know of a way of making the pop-up list of methods more useful, or at least understanding them better. It seems to have been reverse engineered from the class files, so the method args are meaningless. It also doesn't seem to tell the return type.
Both Kawa and TextPad allow simple selection of one or more lines of text by clicking/dragging in the left margin. I keep trying to do this in Eclipse, but find it a suprisingly hard operation. Do I just have to get used to this ?
Also the editor has a wierd (pale blue) line which appears where my cursor is and tricks me into thinking the line is selected. Can anyone explain what this is for. If I know its use maybe it wouldn't irritate me so much.
Sometimes I inadvertently double-click on an editor tab and it "full-screen"s that file instead of just showing it in the editor pane. But there doesn't seem to be a way of getting back to the previous layout without resetting the whole perspective, which kills my JUnit. Have I missed something important here as well ?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
quote:
--------------------------------------------------------------------------------
2. If I can't get that, is there at least some sort of key sequence to get it to pop up the list of methods for a class by selecting the class name or maybe the instance object name.
--------------------------------------------------------------------------------
Do you know Strg-Space?
- - - -
I guess not, I don't even know what it means !
Originally posted by Frank Carver:
F2 shows the JavaDoc of the current identifier, Shift-F2 opens it in an external browser.
All I get when I hit F2, is a yellow box with the full class name in it (for example java.util.Map).
When I hit Shift-F2, I get a message: "The documentation location for 'Map' has not been configured. For elements from Libraries specify the javadoc location URL on the property page of the parent JAR ("C:\program Files\Javasoft\JRE\1.3\lib.rt.jar"). I've had a look on the dialog where I add external jars to the project, but there doesn't seem any way to set the javadoc URL. Has anyone done this and could help me understand what it's asking me to do ?
Do you know Strg-Space?
I guess not, I don't even know what it means !
Are you refering to the outline or to the code assist?
I'm not sure. I'm talking about the box which pops up in the middle of the screen when I'm typing, but I don't know what it's called.
Just double-click again or choose "Restore" from the editors menu (click on the editors icon). This is standard behaviour at least for MS Windows systems.
Ahh, excellent. I was expecting it to be some sort of global "go back to previous layout" menu option, or maybe the usual restore-size icon at the top right. Double clicking the file tab again
is neat, though. I do most of my code editing on Windows, but I'd never done this. Perhaps I don't use enough tabbed systems.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Frank Carver:
I figured that, but I don't recognise "Strg" - if it's a modifier key, I guess we have different keyboards. I have "shift", "Ctrl", "Alt", "Alt Gr", two "Windows icon" keys and a "Menu icon" key. do you think it's likely to be any of these ?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Martin Dinkloh:
Hello!
To add the Javadoc for the JRE works under
Window|Preferences|Java|Installed JREs,
but how do I add a Javadoc for a library other then the JRE? In the Project Properties page under "Java Built Path" Tab "Libraries", where I add such a library, this is not possible, and I could not find another place to do so.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Frank Carver:
I miss some of the refactorings, but I don't miss being forced to work the way it wants me to. With a simple multi-window text editor and Ant I feel much less constrained.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Rufus BugleWeed:
I copy a line by home, shift+end, Cntrl-c. This was how it worked in Visual age. Still not near the power of vi's dd but ...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
He got surgery to replace his foot with a pig. He said it was because of this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|