Home » Newcomers » Newcomers » Default run target, desired run behavior 
| Default run target, desired run behavior [message #253820] | 
Sun, 13 April 2008 14:20   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: ken.9ci.com 
 
Hi, 
 
Eclipse 3.3.2, J2EE edition. 
 
I want two behaviors for running things, and I can't figure out how to set  
either of them up. 
 
The thing I think should be simplest is to have a run configuration (from  
the Run... dialog), and have either a key combination or a toolbar button  
to run just that target.  The key combination would be best. 
 
The second thing is to have the "run" button on the toolbar (or the F11  
key) run the thing I most recently ran.  The prior version I had installed  
had something similar to this, where the button ran the most recent thing  
which was run.  That was flawed by the fact that Eclipse kept restarting  
the app server, so the most recent thing which had been started was almost  
always Tomcat.  If the button had run the most recent target I had  
selected, it would have been great.  Same with the F11 keyboard  
combination. 
 
The run button (and F11) now seems to be extremely context sensitive, to  
the point where it's almost useless to me.  My project has more than 2,000  
files.  Many of them have a runnable context, but I almost never want to  
run the file being edited, and that's inevitably the thing Eclipse tries  
to run.  If it's a JUnit test then that's great, but if I am not running a  
unit test, I almost always want to run "the application." 
 
Another thing that would be handy is that, if I'm editing Abc.java, and  
there exists an AbcTest.java, it would be handy to have a key combination  
which automatically runs that unit test. 
 
If anyone has a plugin to do this stuff, or an idea how to configure  
Eclipse in this way, please respond.  Thanks.
 |  
 |  
  |  
| Re: Default run target, desired run behavior [message #253825 is a reply to message #253820] | 
Sun, 13 April 2008 15:27    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: merks.ca.ibm.com 
 
Ken, 
 
I didn't care much for the new behavior either.   
Window->Preferences->Run/Debug->Launching ->Launch Operation can be used  
to get the old behavior of repeating whatever you did last...  Maybe  
you'll want to try Alt-Shift-X as well... 
 
 
Ken Roberts wrote: 
> Hi, 
> 
> Eclipse 3.3.2, J2EE edition. 
> 
> I want two behaviors for running things, and I can't figure out how to  
> set either of them up. 
> 
> The thing I think should be simplest is to have a run configuration  
> (from the Run... dialog), and have either a key combination or a  
> toolbar button to run just that target.  The key combination would be  
> best. 
> 
> The second thing is to have the "run" button on the toolbar (or the  
> F11 key) run the thing I most recently ran.  The prior version I had  
> installed had something similar to this, where the button ran the most  
> recent thing which was run.  That was flawed by the fact that Eclipse  
> kept restarting the app server, so the most recent thing which had  
> been started was almost always Tomcat.  If the button had run the most  
> recent target I had selected, it would have been great.  Same with the  
> F11 keyboard combination. 
> 
> The run button (and F11) now seems to be extremely context sensitive,  
> to the point where it's almost useless to me.  My project has more  
> than 2,000 files.  Many of them have a runnable context, but I almost  
> never want to run the file being edited, and that's inevitably the  
> thing Eclipse tries to run.  If it's a JUnit test then that's great,  
> but if I am not running a unit test, I almost always want to run "the  
> application." 
> 
> Another thing that would be handy is that, if I'm editing Abc.java,  
> and there exists an AbcTest.java, it would be handy to have a key  
> combination which automatically runs that unit test. 
> 
> If anyone has a plugin to do this stuff, or an idea how to configure  
> Eclipse in this way, please respond.  Thanks. 
> 
>
 |  
 |  
  |   |   
Goto Forum:
 
 Current Time: Tue Nov 04 00:25:52 EST 2025 
 Powered by  FUDForum. Page generated in 0.08160 seconds  
 |