eclipse-3.4

Renaming accessor/mutator methods in Eclipse?

给你一囗甜甜゛ 提交于 2019-12-01 03:19:05
Is there any way to automatically rename accessor/mutator when a variable they get/set gets refactored -> renamed (Eclipse 3.4)? 1 - When you select Refactor->Rename on a variable, Eclipse prompts you to enter the new name in an "in-line" box. Directly below it, there is a help message and next to it a small icon (an arrow going down).Click on that arrow and then select "Open Rename Dialog". A new pop-up appears with the checkboxes you need. 2 - Alternatively, select the variable you want to change and press twice Alt+Shift+R. Again check the getter/setter checkboxes. Thirler By default

Eclipse & Tomcat: How to specify which folder is served from the project?

两盒软妹~` 提交于 2019-11-30 20:19:52
I'm using Eclipse 3.4 and Tomcat 5.5 and I have a Dynamic Web Project set up. I can access it from http://127.0.0.1:8080/project/ but by default it serves files from WebContent folder. The real files, that I want to serve, can be found under folder named "share". This folder comes from CVS so I'd like to use it with its given name instead of renaming it. How can this be done? In the project folder, there should be a file under the .settings folder named org.eclipse.wst.common.component that contains an XML fragment like this: <wb-module deploy-name="WebProjectName"> <wb-resource deploy-path="/

Custom command for Eclipse on current file

不想你离开。 提交于 2019-11-30 06:38:11
问题 I would like to enhance Eclipse so that when I press a custom key combo--say Ctrl + Shift + E --then it will run a command on the current file (if my current buffer is foo.c then it will run `mycommand foo.c' in foo.c's directory). 回答1: Open the External Tools Configuration dialog from the Run menu. Create a new configuration with the following settings. Location : c:\mycommand.exe (alter to your needs) Working directory : ${container_loc} Arguments : ${resource_loc} Under Prefrences->General

Eclipse & Tomcat: How to specify which folder is served from the project?

只愿长相守 提交于 2019-11-30 04:28:15
问题 I'm using Eclipse 3.4 and Tomcat 5.5 and I have a Dynamic Web Project set up. I can access it from http://127.0.0.1:8080/project/ but by default it serves files from WebContent folder. The real files, that I want to serve, can be found under folder named "share". This folder comes from CVS so I'd like to use it with its given name instead of renaming it. How can this be done? 回答1: In the project folder, there should be a file under the .settings folder named org.eclipse.wst.common.component

eclipse beakpoint: stop before leaving a Java method

安稳与你 提交于 2019-11-30 03:18:36
Is there a way to tell the debugger to stop just before returning, on whichever statement exits from the method, be it return, exception, or fall out the bottom? I am inspired by the fact that the Java editor shows me all the places that my method can exit - it highlights them when you click on the return type of the method declaration, (Mark Occurrences enabled). [eclipse 3.4] Put a breakpoint on the line of the method signature. That is where you write public void myMethod() { Then right-click on the breakpoint and select "Breakpoint Properties". At the bottom of the pop-up there are two

In Eclipse, how do I replace a character by a new line?

一曲冷凌霜 提交于 2019-11-29 21:10:13
In Eclipse 3.3.2, I would like to replace a character (say ',') by a new line in a file. What should I write in the "Replace with" box in order to do so ? EDIT : Many answers seems to be for Eclipse 3.4. Is there a solution for Eclipse 3.3.X ? Check box 'Regular Expressions' and use '\R' in the 'Replace with' box It's a new feature introduced with Eclipse 3.4, See What's New in 3.4 Check box 'Regular Expressions' and use '\n' in the 'Replace with' box Like the others said, just use regular expression, but instead of just \r, put \r\n I'm using Helios and it works, however I had some issues

eclipse 3.4 (ganymede) package collision with type

泪湿孤枕 提交于 2019-11-29 14:39:35
We have a package that ends with exception e.g. package a.b.c.exception; Our code base had no issues up till eclipse 3.3, however when we shifted to eclipse 3.4, it started giving errors related to this package: "The package a.b.c.exception collides with a type" When I refactor the package name to a.b.c.exceptions, there are no issues. Is this due to a bug in eclipse 3.4 or is there some setting to rectify this behavior? It's because you have a class named exception (with a lower case "e") in the a.b.c package and a package named a.b.c.exception . It causes a name collision because if you have

Is Eclipse 3.4 (Ganymede) memory usage significantly higher than 3.2?

时光毁灭记忆、已成空白 提交于 2019-11-29 11:13:07
I was happily using Eclipse 3.2 (or as happy as one can be using Eclipse) when for a forgotten reason I decided to upgrade to 3.4. I'm primarily using PyDev, Aptana, and Subclipse, very little Java development. I've noticed 3.4 tends to really give my laptop a hernia compared to 3.2 (vista, core2duo, 2G). Is memory usage on 3.4 actually higher than on 3.2, and if so is there a way to reduce it? EDIT: I tried disabling plugins (I didn't have much enabled anyway) and used the jvm monitor; the latter was interesting but I couldn't figure out how to use the info in any practical way. I'm still not

eclipse beakpoint: stop before leaving a Java method

[亡魂溺海] 提交于 2019-11-29 00:25:36
问题 Is there a way to tell the debugger to stop just before returning, on whichever statement exits from the method, be it return, exception, or fall out the bottom? I am inspired by the fact that the Java editor shows me all the places that my method can exit - it highlights them when you click on the return type of the method declaration, (Mark Occurrences enabled). [eclipse 3.4] 回答1: Put a breakpoint on the line of the method signature. That is where you write public void myMethod() { Then

Custom command for Eclipse on current file

一笑奈何 提交于 2019-11-28 21:37:17
I would like to enhance Eclipse so that when I press a custom key combo--say Ctrl + Shift + E --then it will run a command on the current file (if my current buffer is foo.c then it will run `mycommand foo.c' in foo.c's directory). Open the External Tools Configuration dialog from the Run menu. Create a new configuration with the following settings. Location : c:\mycommand.exe (alter to your needs) Working directory : ${container_loc} Arguments : ${resource_loc} Under Prefrences->General->Keys you can setup a shortcut for "Run last launched external tool". This should solve your problem. Also,