File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Chris Reeves
Ranch Hand
Posts: 95
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Chris Reeves
Ranch Hand
Posts: 95
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 173
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic