eclipse

A question about Eclipse and classpath in a Run configuration

I've just started using Log4J for the first time. I created a log4j.properties file and put it in my project's folder in Eclipse. I also created a Run configuration for my application (it's just a default Run configuration, no extra options). Now, I try running the application and I get an error message about log4j not being able to ini...

How to make read only editor in Eclipse (Eclipse Plugin Development)

Hi, I'm wondering how to make a really read only eclipse editor.. My editor extends TextEditor, so when I reimplement method isEditable to always return false. It's the easiest way, which prevents user from typing or deleting anything in the document opened in the editor. But you can still change content of the document for example b...

Missing javax.servlet.http.Cookie class

I haven't been using Java extensively hence forget a lot fundamental things. Basically, I am working with a web-dynamic project (using Eclipse IDE with jdk 1.6), and during the build, I get errors that Cookie class and other web related classes cannot be found. What am I missing? What Jars files do I need to add (and how)? thanks ...

How to create war files

What are the best practices of creating war files (using eclipse) to run on tomcat? tutorials, links, examples are highly appreciated. ...

quick fix for JSP with in Eclipse?

I'm running Eclipse 3.4 java enterprise adition and writing JSP pages with it. It does not appear to support quick fix, for example ArrayList ourList; comes up as an error but there isn't a quick fix option to add the import java.util.ArrayList statement. Is there a way to improve quick fix capabilities, or another set of Eclipse Plugins...

GIS / Map display component

For a quick demonstrator I'm looking for a SWT or Swing component which can display geographical data. Unfortunatly I'm disconnected from the internet, so Google Maps won't help. The general idea is to assemble a small eclipse RCP application with just 'map view', connect to a custom web service, that provides geographical data (tracks)...

eclipse view classes dependency graph plugin?

is there any plugins i can use for eclipse that will show graphical view of classes dependencies ? ...

Eclipse JavaScript Editor: content assist for js files

I'm trying Eclipse (with JavaEE and Web Development plugins) as a JavaEE/GoogleAppEngine IDE. In HTML editor if I put a <script ... src="..." /> in <head> I automatically get content assist for javascript in the referenced file. I was wondering if it was possible to obtain content assist for other javascript files (e.g. jQuery or homebre...

phpeclipse: jump to function definition?

from zend's IDE i know that Ctrl+left click on a function name opens the corresponding source file and jumps to the functions definition is there anything similar in eclipse especially phpeclipse OR CDT? im not sure if its just a window->preferences setting i dont see OR some kind of source code indexing i may have disabled which also d...

Eclipse Stacktrace System.err problem

All of a sudden my printStackTrace's stopped printing anything. When I give it a different output stream to print to it works (like e.printStackTrace(System.out)) but obviously I would like to get it figured out. ...

Android Eclipse Plugin: Instrumentation Test Runner not specified.

I'm getting this error when trying to run unit tests from Eclipse with an Android Project. The list of Instrumentation Test Runners is empty in the Android preferences. [2009-06-17 23:57:51 - MyApp] ERROR: Application does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library an...

How to debug a java system.loadlibrary error in linux?

I have a Java program that is calling C code through JNI that I'm attempting to run on Linux. The external code consists of two .so files: one for the JNI bindings (built with swig) and the other with the actual functions. I have the two libraries in the same directory and LD_LIBRARY_PATH is set correctly. ldd reports no problems when...

Multiple flags in one int value

I have a int variable which hold multiple flags, for instance: int styles = ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED; I can test the presence of a flag boolean expanded = (styles & ExpandableComposite.EXPANDED) != 0; How can I clear the value of a flag from styles, i.e. dynamically...

Eclipse plugin

I want to write an eclipse plugin to show the actual value of the message code. The values are to be loaded from the given resource bundle. Only classes of the resource bundle will be available. So I require to load the resource bundle class which is declared in the current file. These class files will be in the classes folder or in a ja...

Eclipse cannot resolve enum in the same namespace?

I've run accorss a really weird issue, in eclipse I've got a codebase I've been working on for a couple of weeks and it's working fine. I did an svn update and all of a sudden one of my classes doesn't compile because it can't resolve an enum which is in the same namespace to a type. I've checked the Java version and I'm running under J...

eclipse shows unchanged files on synchronise

When i do a synchronisation of files or try to commit, there are also files shown that are not changed. This is only when i did a merge from an other workspace to the one i get those files in. When i take a look at those files, they have no difference from the files on svn. anyone any idea? ...

Counting eclipse plugin installations/downloads

Hi, I'm currently hosting an Eclipse plugin update site on sourceforge.net . SF.net does not allow access to server logs but I'd still like to know how many downloads the plugin gets. Is there an alternative way of gathering them? I'm not going to have any sort of 'call home' feature in the plugin, so please don't suggest that. ...

Eclipse: On Save execute a program

I have recently come across the LESS Leaner CSS a template engine for CSS based on ruby. The idea sounded neat, but in practice we need to compile the program to get CSS. This is cumbersome as we make too many changes while working on CSS and for every edit we don't want to compile. In Eclipse, there are "Save-Actions" but it handles o...

eclipse server locations disabled and need to change to use tomcat installation

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...

Eclipse Contextual Help.

Now can I register contextual help in an Eclipse WizardDialog/Editor. 1) I created a help_contexts.xml file. <?xml version="1.0" encoding="UTF-8"?> <?NLS TYPE="org.eclipse.help.contexts"?> <contexts> <context id="my.plugin.help.general" > <description>test</description> <topic label="test" href="http://domain.com/help.h...