• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cool Eclipse feature of the day

 
Ed Burnette
Author
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Brian C Robinson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the tip! I'll look forward to more cool features of the day.
 
Charles Hasegawa
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was cool!
Does running items like this suck out memory from the Eclipse instance?
 
Faisal Khan
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does Eclipse truly work across two monitors? Can I separate views / resources to be sitting in different places?
 
Michael Zalewski
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for the dumb q, im new to eclipse.. can u tell me exactly how to use this feature... i mean, which menu, how...
 
Faisal Khan
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic