wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse Ant Integration (or, I want a big Ant Button) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Ant Integration (or, I want a big Ant Button)" Watch "Eclipse Ant Integration (or, I want a big Ant Button)" New topic
Author

Eclipse Ant Integration (or, I want a big Ant Button)

Chris Reeves
Ranch Hand

Joined: Apr 03, 2002
Posts: 95
I'm still getting comfortable with Eclipse R2, and I have a question regarding buttons. I would like to have a button on the toolbar that triggers the "Run Ant" window to open.
This would be equivalent to "Run Ant..." in the context menu of the Navigator for a build.xml file.
Is there a way to add custom buttons (painlessly)?
Chris Reeves
Ranch Hand

Joined: Apr 03, 2002
Posts: 95
Right - so after a little digging and clicking, I discovered the external tools button, sitting right there in the toolbar in front of me.
After running a build script once, it is entered in the External Tools list.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I still miss some sort of "macro" facility in Eclipse. I would love to be able to put a sequence of Eclipse menu choices on a "big button".
Eclipse still feels like a general framework, not a fully customizable one.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Chris Reeves
Ranch Hand

Joined: Apr 03, 2002
Posts: 95
I completely agree with you regarding macros, but the "feel" thing wins out for me. Eclipse just feels better than Forte. I cut my java ide teeth on Visual Cafe and Visual Age for Java, and the Eclipse environment is much better than those.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Chris Reeves wrote: Eclipse just feels better than Forte. I cut my java ide teeth on Visual Cafe and Visual Age for Java
I guess that the reason I tend to get grumpy is that I have very little experience of IDEs as a whole. Before trying to get to know Eclipse, the nearest things I have used to an IDE were TextPad and Kawa. Compared to Forte, JBuilder, Visual Age and Eclipse, those two are little more than multi-file text editors with a way of grouping files into a "project". What they do have, though, is a simple way of assigning "macro" style behaviour to buttons, and a generally no-nonsense approach to editing files.
Eclipse seems to make many simple things hard. Things which were a no-brainer in less complex environments. Getting Eclipse to make sure all modified buffers are written out before calling external commands is still a pain. I still haven't found out a way of asking Eclipse to open an editor on a file outside the project - so I still always have TextPad running for that sort of thing.
And so on.
Craig Demyanovich
Ranch Hand

Joined: Sep 25, 2000
Posts: 173
Originally posted by Frank Carver:
I still haven't found out a way of asking Eclipse to open an editor on a file outside the project - so I still always have TextPad running for that sort of thing.
And so on.

Frank, see this FAQ entry. While you didn't specifically mention Java source files, it may still apply. This is quite a limitation to me. We're talking about simply opening a text file, Java source or not, aren't we? I'll probably be sticking with IDEA for my production work.
Craig
[ July 15, 2002: Message edited by: Craig Demyanovich ]
Chris Reeves
Ranch Hand

Joined: Apr 03, 2002
Posts: 95
In terms of text editors, the one I've had the most success with is UltraEdit. It's Win16/32 only, but it has a lot of functionality for a low cost - the price just went up to a whopping $35.
It supports all the standard stuff - java, c, html, xml, etc., etc., etc. Everything you'd expect out of a text editor and more. I'm a big fan.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Craig Demyanovich wrote: We're talking about simply opening a text file, Java source or not, aren't we
Yes. I often need open files from other projects, documentation, readme files, log files, etc., for information during development. I can't imagine that I'm strange in this regard. I was astonished when I couldn't find a plain old "open file" option on any of the menus. What sort of editor is this ??
Maybe one of the Eclipse "power users" here can show me how to do it, and remind me again how dumb I am.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Frank Carver:
What sort of editor is this ??

Well, it's not an editor, it's an IDE...

Maybe one of the Eclipse "power users" here can show me how to do it, and remind me again how dumb I am.

No, it's currently not possible. In fact I am using Textpad for this task and didn't even consider using Eclipse. There doesn't seem to be a feature request for this.
Perhaps it is really just you...


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
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Ilja wrote: Well, it's not an editor, it's an IDE
Maybe that's where I'm going wrong. I have always thought of an IDE as a sort of subclass of editor with extra methods, or maybe an example of the Decorator pattern. Now you are telling me that they are different classes altogether, and Liskov is nowhere to be seen.
Seriously, can you give a concise definition of what you think are the differences. This may help explain why my mental model doesn't help me find how to do things, but yours does.
I am using Textpad for this task and didn't even consider using Eclipse.
So your brainwashing is complete.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Frank Carver:
Ilja wrote: Well, it's not an editor, it's an IDE
Maybe that's where I'm going wrong. I have always thought of an IDE as a sort of subclass of editor with extra methods, or maybe an example of the Decorator pattern. Now you are telling me that they are different classes altogether, and Liskov is nowhere to be seen.

Well, possibly it is a sub*class*, but certainly not a (behavioural) sub*type*... :roll:

Seriously, can you give a concise definition of what you think are the differences. This may help explain why my mental model doesn't help me find how to do things, but yours does.

No, not a concise one - in fact I even wasn't that serious when I wrote that...

I am using Textpad for this task and didn't even consider using Eclipse.
So your brainwashing is complete.

Damned - I thought my brainwashing wasn't complete before I was convinced to do *everything* using Eclipse...
Which makes me think - as I often need to look at the Tomcat log files, I should try to mount the logfile directory into its own Eclipse-project...
Matthew Comer
Ranch Hand

Joined: Aug 10, 2001
Posts: 37
It should be noted that any of the described behaviors could be implemented as a new plugin. Perhaps you should implement it and turn it over to the Eclipse community?
Matt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse Ant Integration (or, I want a big Ant Button)
 
Similar Threads
use Ant in Eclipse 3.1
Eclipse and ANT
Adding 'Save All' button to Eclipse toolbar - How?
Call ant script through java file
Alternatives to Ant within Eclipse??