eclipse

Eclipse: stop code from running (java)

Sometimes, I'll run a program that accidentally contains an infinite loop or something. Eclipse will let me continue editing the program, but be super slow. How can I stop it? (Do I want to restart the JVM?) Restarting eclipse itself always works, but that breaks my workflow. ...

Cannot assign LinkedList to List, why?

Hi everyone, I'm using Java in Eclipse on Mac OS X 10.5 (JDK Compliance level 5.0) with and I'm getting very strange compilation problems that I wasn't getting before (and I don't think I've updated my compiler or Eclipse, but maybe an update was installed that I wasn't aware of). For example if I have the following line in my code: Li...

Eclipse Emacs command numeric argument

Is there a way, with the Emacs bindings for the Eclipse editor, to specify a numeric argument for a command? This is a very common thing to do in Emacs, usually for repetition. Most implementations use Ctrl+u, but this doesn't work by default in Eclipse and I can't find any likely command that does it. ...

How to set build paths automatically in Eclipse

Whenever I update our project's code from the svn I have to set the build paths of the libraries I import again because the last person who made a commit has a different classpath from mine. Is there a way in Eclipse to automatically put in the imported libraries after updating from the SVN? I have heard of build files (Ant,Maven) but...

Java: How do you access a sub-object of an object with no "getXXX" method to that sub-object

I'll explain with pictures from Eclipse Debugger I have an Class called "FieldContext", (I can't edit it, it's compiled in the Java OVal API) Within "FieldContext" on the eclipse variable tab are "CompileTimeType" and "field" Q1 Is there a legend for the icons in the variables tab? like what the red box with the "F" means + yellow d...

What is the current state of the Scala Eclipse plugin?

Is the current Scala Eclipse plugin (http://www.scala-lang.org/node/94) usable? I keep reading that its unstable and buggy, even unusable. See previous thread: http://stackoverflow.com/questions/796258/what-is-the-current-state-of-tooling-for-scala I've tried it out briefly but only for trivial programs, so far it seems fine. Thanks! ...

How do I input data using the eclipse console? (c++)

I'm trying my hand at c++ and am using fedora eclipse (3.4.2) as my IDE. At the moment I'm trying to enter a string of numbers into the console, get the program to sort them and spit them back out. The program is straight out of a book and works with xcode and through a normal terminal - so I know it's correct. Basically I run the prog...

How do I setup my MySQL with Eclipse IDE?

I am using Eclipse EE IDE and I am using the MySql Connector/J driver. How do I set up a properties file with all the information(DB URL, DBusername,etc) Also I see that you need a DBname and DBurl for the properties file, How do I determine/create this name for the database. I have already looked at the mysql website for this and am sti...

Programatically installing an Eclipse plugin from within Eclipse?

I want to create an automated installer for an Eclipse plugin (i.e. not through the "Update Manager"). My scenario is simple: the user closes Eclipse, drops a downloaded JAR into the dropins folder, starts Eclipse and the rest of the process is automated. In older Eclipse versions, before the era of P2, Eclipse had (still has) a class c...

Help getting JSTL to run within tomcat and eclipse

I've been trying to get this to run, but I can't. I'm using Eclipse Galileo, Tomcat 5.5.23 and have several JSTLs around. My latest try was to use the glassfish jar file "jstl-impl-1.2.jar". I placed it in tomcat's shared lib, added it as external jar into my eclipe project and exported it. Could anybody tell me, which jars to load in ...

can not import inbuilt java class file (javax.naming.ldap.SortControl)

I have downloaded Openfire sources and started to run it on Eclipse. I got a error saying javax.naming.ldap.SortControl class is not there, as illustrated on the following image: . Since it is inbuilt Java class , what can i do to solve this problem. Full source has about 5 error messages, all of them are saying the same. ...

Debug PHP scripts using Eclipse

I've been using Eclipse 3.4.2 with PHPEclipse and Zend Debugger for some time without issue. Suddenly, I cannot debug the PHP scripts. I can run them fine but when I select Debug As... the script shows in the Debug window as if it were running, but it is not. If I click pause it reports as being on line 0. I can step through it, if I ...

QT Eclipse Integration - Adding External Libs

Hi, I have set up the latest eclipse+cdt + mingw + qt + qt-eclipse-integration. I have 2 Problems: When i create "New -> Qt Gui Project" it doesn't add the mingw includes (when i click new c++ project it adds them) I would like to use boost, too. How do I tell eclipse/qmake to add the .lib's ? Thank you Chris ...

python: how do you setup your workspace on Ubuntu?

Lets say I have my workspace (on Eclipse) where I develop my Python modules and I would like to "link" my working files to system Python paths. I know I can drop .pth files etc. but I would like to get the community's wisdom as to the best practices. ...

Is there a way to automate importing projects into Eclipse?

For my current project, every time I set up a new workspace, I need to import hundreds of existing projects scattered in 20+ different directories. Is there a way to automate this step in Eclipse? These projects are all checked into ClearCase. ...

eclipse cdt tools installing error

I am trying to install the CDT plugin on an exisitng 32-bit installation of Eclipse on Ubuntu Jaunty. I've tried both web-update and standalone-package install and both fail with the following error- Application Started: 4000 !SESSION 2009-10-05 21:24:55.947 ----------------------------------------------- eclipse.buildId=I20090611-1540 ...

How to find static method calls in large Java project?

I'm refactoring some Java code to be more decoupled by changing some static method calls to non-static calls, for example: // Before: DAO.doSomething(dataSource, arg1, ..., argN) // After: dao.doSomething(arg1, ..., argN) My problem is that in a large project, it can be hard to find where static method calls are being made. Is there ...

Eclipse for PHP

EDIT: To answer some of the comments - the file extension is .php, the perspective is PHP, and it is in a PHP project. I can't use different tools because this is a school project I have Eclipse with Web Tools (so I can do web projects with JSP). I also have to use Eclipse for my PHP development (I am using it with XAMPP, if that mat...

Get Eclipse CDT + boost::shared_ptr<T> to work with syntax completion?

How to get Eclipse CDT to treat shared_ptr as T * for syntax completion? I'm using windows in this instance. I have 1.39 in the "Program Files" folder. I am about to try 1.37. I am using the Galileo release of Eclipse. Also, I am only editing and browsing the source in Eclipse and building in VC++ Express. (but that is another story) ...

Change user agent in Eclipse 3.5 for new software installations

How can the user-agent be changed in Eclipse 3.5? I tried adding the property -Dhttp.agent=my user agent to the eclipse.ini file, but using WireShark I can see that the user agent is still Jakarta Commons-HttpClient/3.1. I need to change this so that I can get through the company's filter to download plug-ins and updates. Here is my ecli...