File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Cool Eclipse feature of the day Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Cool Eclipse feature of the day" Watch "Cool Eclipse feature of the day" New topic
Author

Cool Eclipse feature of the day

Ed Burnette
Author
Ranch Hand

Joined: Jun 10, 2003
Posts: 142
Tired of the "DOS Window"? Run cmd.exe as an external background tool in Eclipse, and it will give you a shell in the Eclipse console. Almost as good as emacs!
Ok, it needs a few features like command recall, so go vote for bug #36669, or better yet dig in and implement the cool stuff yourself.


Ed Burnette, Author of Hello Android
Blog: ZDNet's Dev Connection - Twitter: @eburnette
Brian C Robinson
Greenhorn

Joined: Feb 21, 2002
Posts: 7
Thanks for the tip! I'll look forward to more cool features of the day.
Charles Hasegawa
Ranch Hand

Joined: May 22, 2003
Posts: 117
That was cool!
Does running items like this suck out memory from the Eclipse instance?
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
Does Eclipse truly work across two monitors? Can I separate views / resources to be sitting in different places?


The secret to creativity is knowing how to hide your sources.
Michael Zalewski
Ranch Hand

Joined: Jun 10, 2002
Posts: 30
Originally posted by Faisal Khan:
Does Eclipse truly work across two monitors? Can I separate views / resources to be sitting in different places?

I don't think so. SWT cannot support two monitors in 2.1. But I think it will be possible in Eclipse 3.0
Ed Burnette
Author
Ranch Hand

Joined: Jun 10, 2003
Posts: 142
Originally posted by Michael Zalewski:
I don't think so. SWT cannot support two monitors in 2.1. But I think it will be possible in Eclipse 3.0

Actually you can do it even in 2.x; select Window > New Window, and move the new workbench window to the other monitor.
If somebody wants to ship me another monitor I'd be happy to try this out for you and make sure it works. I'd like one of those 23" widescreen cinema lcd's please. Better make it two so they'll match.
Ed Burnette
Author
Ranch Hand

Joined: Jun 10, 2003
Posts: 142
Originally posted by Charles Hasegawa:
That was cool!
Does running items like this suck out memory from the Eclipse instance?

Sure, those lines have to be stored somewhere. But you can limit the buffer size with Window > Preferences > Debug > Console.
Also you can add a startup option like:
-vmargs -Xmx256m
to allow Eclipse to use more of your system's RAM. (I wish it would just figure this out dynamically, but that's a limitation of Sun's JVM).
Karthik Veeramani
Ranch Hand

Joined: Dec 22, 2002
Posts: 132
sorry for the dumb q, im new to eclipse.. can u tell me exactly how to use this feature... i mean, which menu, how...


Thanks<br />Karthik<br />SCJP 1.4, CCNA.<br /> <br />"Success is relative. More the success, more the relatives."
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
Thanks Ed for the answer on using two monitors and on restricting the memory of windows.
Though it might be seen as tempting tou buy you those two screens, I have to convince my company to get me another one first.
Charles Hasegawa
Ranch Hand

Joined: May 22, 2003
Posts: 117
Originally posted by Karthik Veeramani:
sorry for the dumb q, im new to eclipse.. can u tell me exactly how to use this feature... i mean, which menu, how...

Karthik, there are no stupid questions, only stupid people who don't ask questions
Next to the debug and run buttons is a third - run external tool. From this drop down, select the last item (External Tools...).
On the Popup, select program from the configuration side and hit the New button.
Name this whatever you like. For the location, select Browse file system and point at the cmd.exe file (this will vary slightly depending on which OS version you are using - find your system32 folder, it should be in there - ie c:\windows\system32\cmd.exe). Then when you run this, your console window is now a DOS shell.
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
Charles,
Thanks for that, I ca now get rid of yet another one of the items in may quick launch and use it from within Eclipse. ( My quick launch will probably just end with Eclipse and show desktop )
Charles Hasegawa
Ranch Hand

Joined: May 22, 2003
Posts: 117
As noted though, when run in Eclipse, it doesn't have command recall. It is however very easy to cut and paste from so you win some you lose some.
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
I don't think its a major loss anyway as the DOS recall is not brillilant anyway, not like the shells in Linux.
I like the ideas of being able to limit the memory the console uses too as explained by Ed earlier.
[ July 10, 2003: Message edited by: Faisal Khan ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cool Eclipse feature of the day