eclipse

How do I configure Eclipse to run your tests automatically ?

I read this article: Configure your IDE to run your tests automatically http://eclipse.dzone.com/videos/configure-your-ide-run-your It's pretty easy to configure Eclipse IDE to run an Ant target every time a file is saved. MyProject -> Right-click : Properties -> Builders -> New -> Ant Builder The problem is that the builder has to reb...

Is there an Eclipse line-width marker?

I have a specific project where I need to wrap every code line at 65 characters. I have set up the eclipse Java code formatter properly for this. But what I really want is a vertical line to be drawn in the editor showing where the max line width while I am typing, not just when I run the formmater. I know this feature is available in so...

Is there a way to search all file names in a PHP project in Eclipse?

I'm using Eclipse PDT for PHP. Let's say I have an error in "rightsManager.php on line 145", and I have hundreds of files in dozens of directories in my project, what is the fastest way to go to that file and line number? I can search through the text of all files with CTRL-H but how do I quickly search through the file names? (like CT...

How to search with a regular expression in Eclipse?

How can I use Eclipse to search all files which have this on their first line: <? instead of this: <?php The following isn't working: ...

JUnit4 + Eclipse "An internal error occured during Launching"

Hello I'm trying to run JUnit4 test cases on Eclipse 3.4.2 but it's not even starting for me. I am sure that I properly have junit-4.7.jar in my build path and the test application. Here is a simple example that illustrates my problem package test; import org.junit.Before; import org.junit.Test; public class UTest { @Test ...

Will eclipse/osgi activators always be called at least once before code is accessed?

In Eclipse (3.3) I have a plugin User, depending on plugin Provider. Provider has an activator. On the Plugin Editor for provider it has a checkbox "Activate this plug-in when one of its classes is loaded". Checking/unchecking this will change a Manifest setting : Eclipse-LazyStart to true/false. My question is that the checkbox, to m...

Configuring the colors of Eclipse

Since there is no easy way to switch color theme in Eclipse I'm wondering if there are any themes that have documented their colors. Kind of like this: Background: #000000 brackets: #FFEFC6 So i manually can configure the theme without having to mess around with a color picker. I need a dark theme similar to TextMates vibrant theme. ...

Eclipse New plugin project wizard can target eclipse versions, but where is this information saved

In Eclipse (3.3) if you start the New Plugin Project Wizard, the first page has a Target Platform, where you can target a version of eclipse. Is this information saved/used and if so where? Also if you then create an extension the plugin.xml is created, and at the top is (for me) : <?eclipse version="3.2"?> Where did this version ...

Why has my generic method stopped working?

In my project I have a factory method that loads an object that implements an interface. You pass in the class you desire and receive an instantiation of it, like so. public class Factory { public static <E extends SomeInterface> E load( Class<E> clss ) throws Exception { return clss.newInstance(); } } You could invoke...

Liferay Portlets AutoDeploy Issue on Eclipse when referencing projects

I developed two portlets, one for the admin and another for displaying information. They have the same back-end or DAO, model and services are the same. So I have decided to make another project to be referenced by the two portlet projects. It worked good when I started the Liferay server. But when I am editing and building the referenc...

Stack Overflows in the Eclipse JSP Editor

When editing JSPs in Eclipse, I periodically get stack overflows. Once I get one, each time I click a character I get a pop-up telling me there was another stack overflow. This continues until I close the JSP and re-open it, at which time it's fine for a while. org.eclipse.jst.jsp.core.internal.parser.JSPSourceParser: input could...

Where should Eclipse third-party plugins be stored?

We have an Eclipse RCP product, which means it depends on a number of Eclipse plugins (for the UI etc). We have set up a reference Eclipse ("target") to supply the latter. Our product also depends on a number of third party plugins. Is there a standard location for these to be put? We have a few of our third-party plugins in the /plugi...

Compiling java code with non java extension file in eclipse

Hi, I am working on a project in which there are jsp files and some files with extension .jsps. And these files only include java snippets in form of <% %> and javascript code. And this .jsps file is included in jsp file. For compiling, eclipse is just ignoring .jsps files. And I want to compile all the files using eclipse version 3.4.1....

How to show Occurences for Javascript in Eclipse?

I am trying to show occurences when browsing .js files in Eclipse (just simple occurences like it does for C). For example, if I highlight myVar, then Eclipse should show boxes in a ruler where other occurences of myVar occur in the file. I've gone into Preferences->General->Editors->Text Editors->Annotations multiple times, de/selecte...

Eclipse extension for opening TIFF (type 4) images?

I need to display a TIFF (type 4) image in Eclipse from a Java stream. TIFFv4 is not supported, so I need an image library. Sun's JAI-ImageIO has native code -- I can't wrap it easily into a plugin. I can't just import jai-imageio.jar (et al) from the lib\ext directory because Eclipse has its own ideas about classpaths. Any suggestion...

Eclipse+Pydev: "cleanup" functions aren't called when pressing "stop""?

Trying to run this file in eclipse class Try: def __init__(self): pass def __del__(self): print 1 a=Try() raw_input('waiting to finish') and pressing the stop button without letting the program finish doesn't print "1", i.e the del method is never called. If i try to run the script from the shell and do ctrl-c\sys....

How do I add a switch to server startup in Eclipse?

I'm using eclipse to manage my server instance, I'm wondering if it's possible to add other options/switches to the command that starts the server. Let me know if there's a way, or if I'm taking the wrong approach... This is the error I'm getting in my application (using Quartz): Not in an application scope - start OC4J with the -userT...

How to exclude files from being copied to bin-debug on build

Using Adobe Flex Builder Pro stand-alone, how do I filter or exclude some files in my project source folder from being copied into the bin-debug folder during a build? Flex Builder is based on the Eclipse platform IDE, this could be as much of a question about Eclipse as it is Flex Builder. ...

How to obtain object's data by using remote debugging functionality?

I wonder how can I use similar to Eclipse's remote debugging technique to get the data from remote object (that reside on server)? I am already have the client code and just want to extend it to bind (if possible) to some port and get the data from the server. Honestly I don't want to use anything specific on the server side (i.e. cre...

What is the difference between the Eclipse Package Explorer and the Eclipse Project Explorer?

It seems to me these two views are virtually identical, especially since Galileo. Is this true, or am I missing out on some features of one or the other? ...