eclipse-3.4

Automating unit tests (junit) for Eclipse Plugin development

房东的猫 提交于 2019-11-27 05:20:46
问题 I am developing Eclipse plugins, and I need to be able to automate the building and execution of the test suite for each plugin. (Using Junit) Test are working within Eclipse, and I can break the plugins into the actual plugin and a fragment plugin for unit testing as described here, here and in a couple places here. However, each of the approaches above results in the same issue: The java ant task/commandline command that issues the build or should trigger the test, generates no observable

How Do I Automatically Generate A .jar File In An Eclipse Java Project

青春壹個敷衍的年華 提交于 2019-11-27 04:15:09
问题 I have an Eclipse Java project. It contains a folder named "dist". In that folder is a .jar file. How can I set things up in this project to make sure this .jar file is updated any time one of the .java files in the project has been re-compiled? Thanks. 回答1: Create an Ant file and tell Eclipse to build it. There are only two steps and each is easy with the step-by-step instructions below. Step 1 Create a build.xml file and add to package explorer: <?xml version="1.0" ?> <!-- Configuration of

Unrooted Tests

懵懂的女人 提交于 2019-11-27 03:03:24
问题 When running all my tests in Eclipse (Eclipse 3.4 'Ganymede'), one test is listed under "Unrooted Tests". I'm using Junit 3.8 and this particular test extends TestCase. I do not see any difference between this test and the other tests. I don't remember seeing this occur in Eclipse 3.3 (Europa). Clarification: We haven't moved to JUnit 4.0 yet, so we are not using annotations. I also googled and it seemed like most people were having issues with JUnit 4, but I did not see any solutions. At

A new version of Eclipse just came out. Is there anything I can do to avoid having to manually hunt down my plugins again?

ぐ巨炮叔叔 提交于 2019-11-27 01:34:17
问题 Galileo came out the other day, and even though plugins under Eclipse are, IMO, just a little bit easier to deal with than Netbeans, it would still be really awesome if there was a simple way for me to upgrade to the new version (and take my plugins with me). Any tips? 回答1: Not directly, AFAIK. Here is the closest thing I came up with, under the assumption that my old Eclipse is recent enough so that it uses a similar form of update manager (P2). In the old Eclipse, go to preferences->Install

Where to put the external jars? [duplicate]

♀尐吖头ヾ 提交于 2019-11-27 00:20:32
问题 This question already has answers here : How to import a jar in Eclipse (9 answers) Closed 3 years ago . I use Eclipse (3.4) and my class compiles without warning or errors. My project uses an external jar file. Where do I need to put this external jar file in order not to get a java.lang.NoClassDefFoundError when using this class from another project (not in Eclipse)? I could just extract the jar into the project folder, but that does not feel right. Edit: this question is not about

What is the Auto-Alignment Shortcut Key in Eclipse?

自作多情 提交于 2019-11-26 23:48:07
问题 What is the auto-alignment shortcut key in Eclipse? 回答1: Ctrl + Shift + F to invoke the Auto Formatter Ctrl + I to indent the selected part (or all) of you code. 回答2: Auto-alignment? Lawful good? If you mean formatting, then Ctrl + Shift + F . 回答3: The answer that the OP accepted is wildly different from the question I thought was asked. I thought the OP wanted a way to auto-align = signs or + signs, similar to the tabularize plugin for vim. For this task, I found the Columns4Eclipse plugin

“SetPropertiesRule” warning message when starting Tomcat from Eclipse [duplicate]

坚强是说给别人听的谎言 提交于 2019-11-26 21:33:50
This question already has an answer here: Setting property 'source' to 'org.eclipse.jst.jee.server:JSFTut' did not find a matching property 7 answers When I start Tomcat (6.0.18) from Eclipse (3.4), I receive this message (first in the log): WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server: (project name)' did not find a matching property. Seems this message does not have any severe impact, however, does anyone know how to get rid of it? The solution to this problem is very simple. Double click on your tomcat server. It

Eclipse “Server Locations” section disabled and need to change to use Tomcat installation

牧云@^-^@ 提交于 2019-11-26 18:15:36
I have set up a dynamic web project in Eclipse with a Tomcat 5.5 installation. I want to be to set the server to us the Tomcat installation instead of the workspace metadata location, but when Eclipse displays the "Overview" screen for the server the "Server Locations" section is disabled and therefore I am unable to change it. The overview screen is displayed when you have the servers view open and you then double click on the server. Is it possible to enable this part of the "Overview" screen or hack a config file to point at the Tomcat installation? Ok, sorry for my previous answer, I had

View classes dependency graph plugin? [closed]

泄露秘密 提交于 2019-11-26 15:58:11
问题 Is there any plugins I can use for Eclipse that will show graphical view of classes dependencies? 回答1: Classycle can be a good start (for static dependencies between classes at least) (I find their graph a bit complicated to follow though : CDA - Class Dependency Analyzer is an external tool, but produce much more readable dependency graphs) 回答2: stan4j: Free for private use For commercial use requires license Video on homepage does a good job of demoing features 回答3: For a more in-depth

“SetPropertiesRule” warning message when starting Tomcat from Eclipse [duplicate]

浪子不回头ぞ 提交于 2019-11-26 07:58:29
问题 This question already has answers here : Setting property 'source' to 'org.eclipse.jst.jee.server:JSFTut' did not find a matching property (7 answers) Closed 4 years ago . When I start Tomcat (6.0.18) from Eclipse (3.4), I receive this message (first in the log): WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property \'source\' to \'org.eclipse.jst.jee.server: (project name)\' did not find a matching property. Seems this message does not have any severe impact,