eclipse

In Eclipse Find/Replace-field can i alter the regexp-matched result $1?

I want to search and replace a lot of numbers in the range 0-9 and add one to them, so they become in the range 1-10 instead. for example: 0 3 5 would become: 1 4 6 In eclipse Find/Replace window I can match a number with ^([0-9]+)$ In the replace-field can I somehow add to the matched number $1? /G ...

Eclipse's tab double click on Visual Studio?

On Eclipse, whenever I double click a tab, it fills the workspace (by hiding all other views like project tree, console, etc). Is there any do this on Visual Studio? Note: i'm not looking for full screen, just want a way to declutter the workspace but still have access to menus. ...

Any reason to prefer getClass() over instanceof when generating .equals()?

I'm using Eclipse to generate .equals() and .hashCode(), and there is an option labeled "Use 'instanceof' to compare types". The default is for this option to be unchecked and use .getClass() to compare types. Is there any reason I should prefer .getClass() over instanceof? Without using instanceof: if (obj == null) return false; i...

NoClassDefFoundError on JFace FontRegistry

When I launch an SWT application (via an Eclipse launch profile), I receive the following stack trace: Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jface/resource/FontRegistry at org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:338) at org.eclipse.jface.window.Window.close(W...

How can I format an entire source tree in Eclipse 3.4 (Ganymede)?

The obvious thing to do would be to: Right-click on the folder that you wish to format. Source > Format Expected results: - All java code in the directory and subdirectories are formatted (using the project specific formatting settings) Actual results: - None of the java is formatted. While we're at it, how can we do a batch clea...

_Painless_ integration of Eclipse with Vim?

Hi, Has anyone managed to get Vim integrated into Eclipse painlessly? I just want to use Vim for the editor while retaining the general Eclipse interface. I have tried using Eclim plugin but the editor seemed to crash more often than work (the site said that the editor replacement functionality is still beta). On the flip side, is ther...

Validation problem with JSP and Eclipse

I have this simple JSP page in Eclipse and the first line in the file is: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> Eclipse however, puts a yellow warning icon before this line with the following tooltip message: Multiple annotations found at this line: - Line breakpoint:ind...

Anyone problems with PDT 2.0 and Eclipse 3.4.2?

I just installed Eclipse 3.4.2 with PDT 2.0 and it seems that in PHP perspective I'm unable to see any files in the project. When I switch to J2EE view I can see all the files in the project just fine. Anyone know whats going on? ...

In the Eclipse JDT, how do I most efficiently find a typeroot in the workspace corresponding to a fully qualified name?

The JavaCore class includes a create method that allows me to get the ITypeRoot (representation of class file or compilation unit) given a handle identifier that embodies the location of the file. However, I am trying to find the typeroot (if there is one) that corresponds to a specific fullname. The only implementation that I can thin...

In Eclipse plugins, is there a programmatic equivalence to the markerAnnotationSpecification extension point?

The extension point org.eclipse.ui.editors.markerAnnotationSpecification is used to change how certain user-defined text annotations appear in the editor. Is there a way to create or modify or override these programatically from a plugin? ...

How to configure Eclipse with CDT?

Hello, I've been trying to use CDT with Eclipse 3.4 under Windows XP with cygwin. What do I need to do, in order to get startet? I used "eclipse-cpp-ganymede-SR1-win32.zip" found on the Eclipse homepage. Edit: The main problem is, that I cannot compile and run the code. In the run configuration, I tried gcc.exe for the C/C++ Applica...

How do I utilise all the cores for nmake?

I just got a new quad core computer and noticed that nmake is only using 1 process. I used to use make which had the switch -j4 for launching 4 processes. What is the nmake equivalent? [edit] Based on the information below I have been able to add a command to my qmake project file: QMAKE_CXXFLAGS += /MP Which effectively did it for ...

Eclipse on the Mac... using Windows keyboard shortcuts?

I'm a power Eclipse user on Linux/Windows, and the keyboard shortcuts are practically muscle memory. Just recently started developing on a Mac (love it!), using Eclipse, but was really tripped up by the use of the command key... and not all the shortcuts map over consistently. I've already re-mapped all my common shortcuts to use Ctrl, ...

How to install UML2Tools in Rational Business Developer

Am trying to install Eclipse UML2Tools plugin, in Rational Business Developer 7.5.1 Most compatible version seems UML2Tools 0.8.0 - but am unable to get it working. I could not get UML2Tools working by neither from the local update site mechanism, nor by placing it in dropins folder. One of the error reported when updating using local...

Eclipse codebase: is there a place that can intercept all the coloring data?

I'm thinking of making an easy global dark background switch for Eclipse. For example intercept all the colors that are about to be rendered and replace them: (R,G,B) -> (255-R, 255-G, 255-B). Can you suggest Eclipse source spots where it can be done? The current problems are Every language-color pair must be manually modified Ther...

How Can I Add the Apache POI Library in and Eclipse Project?

I download the Apache POI from apache.org but don't know how use it with one of my existing project in Eclipse. ...

Is it possible to work in Eclipse with keyboard only?

Hi there, as most of us surely do every now and then, I try to improve my workflow. As Eclipse is my main IDE, I wondered if it may be possible to use it without mouse. I browsed the available shortcuts and tried to use them instead of my mouse. I found interesting features like Ctrl+3 which opens something like the Apple spotlight. I ...

Highlight inherited members

Is there a way to visually separate an inherited class member, i.e. a variable that is defined public/protected in a superclass? I noticed that it's possible to stylize abstract members separately... I'm using Eclipse Ganymede. ...

Eclipse BIRT: Problem with number of rows in a dataset

Hello!:-) My new Problem is the following: An sql-query to a database (DB2) returns 1500 rows but BIRT shows me only 500 in the dataset-editior. To count them i used a computed column (Integer) with the following logic: Total.count(row["VPK"]) I'm using the RCP-Designer (BIRT 2.1.3). How can i get the other rows as well? Patrick ...

How can I output execution display to console in Eclipse for remote C++?

I'm using Eclipse 3.4.1 with Hp/UX plugin for remote debugging of C/C++. It works very fine, except for one issue: whenever I compile my projects, the output display is Eclipse's console view, but when I run or debug any projects, the output window is the old and not-so-good MS-DOS command window. I haven't find any way to change this be...