eclipse

Multiple languages used in one eclipse project

I was wondering whether it was possible for projects in Eclipse to have multiple languages associated with them, specifically PHP and Java. The purpose of this is that I'd like a common 'properties' file for the two projects. If instead there's a way to hold a relative reference to a file so that both projects can reference the properti...

Eclipse Could not Delete error

Hello I'm working on a project with Eclipse and by now everything was fine, but last time I've tried building it, it returned the error "The project was not built due to "Could not delete '/Torpedo/bin/bin'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent Torpedo Unknown Java Prob...

Create a menu in a perspective in Eclipse

Hi. I am developing an Eclipse plug-in and I'd like to associate a new menu (at the top of the screen along with File, Edit etc) with a perspective I'm creating. I did the menu ok but it is being displayed even in other perspectives. How can I associate it only with my perspective? This is the code I am using in plugin.xml: <plugin...

Eclipse does not format this if statement correctly

This should be easy to answer: I have Eclipse set to wrap Java code over 80 chars to respect my margin. This code never wraps: if (expressionItem.type.isTypeCompatibleWith(containingNameLink.type) == false) { reportParsingError("expression type incompatible with containing " + "context."); } Question: how do ...

Setting a dark color theme in Eclipse makes the function tooltips unreadable

Hi all, I've found that setting a dark color theme in Eclipse makes the function tooltips unreadable. This is probably easiest to describe with a picture: Any ideas how to fix this? ...

Include External headers in Eclipse for C

I have some external header files in a separate directory (its the sqlite3.h). I want to be able to use them in my Eclipse CDT project. How would I include the directory to Eclipse? ...

alt select in eclipse editor as in any of microsoft office tools

In any of micro soft tools such as word,we get a feature to select text in a rectangle manner.alt + right key selection.Is there anything as such in eclipse.It will be very useful ...

Newbie Android question

Hi folks, I have just started with Android with the usual Hello World project template in Eclipse. I modified the layout XML and removed the label that says "Hello World, !", and added a couple of other controls. However, these are not reflected in the app, within the emulator. When I run this app from Eclipse again it is still showing ...

What is a good SVN plugin for Eclipse?

A few years ago I've installed several SVN plugins for eclipse. At the time I wasn't impressed with their quality. Many were slow, buggy and couldn't cope with any file interactions that didn't go through the plugin. So I went back to just using TortoiseSVN for windows and command line for linux. Now I'm ready to give it another try. Wh...

Is there any plug-in or add-on available in eclipse to Check/(set own rules if any) C/C++ source code against a set of coding standards?

Please suggest............ .. ...

What file should CUP builder location field be set to?

I am writing a compiler for a class and the teacher told us to "edit the CUP_Builder, and make sure the Location field is correct". What is the function of the location field? Should it be set to the main source file? ...

m2eclipse workspace resolution

Hi all, I am using m2eclipse for managing maven projects in eclipse. It seems that in the previous release that I was using (0.9.8) the workspace resolution did not work at all, but right now it also does not work quite as I would expect. Namely, when the "resolve dependencied from workspace" setting for a project is not checked, the pr...

How do I change content of ComboFieldEditor?

I want to change the values on one ComboFieldEditor depending on another ComboFieldEditor in an eclipse plugin. E.g. if the user changes the package, different classes need to be populated in the second ComboFieldEditor. The ComboFieldEditor class does not seem to to have a way to change the items on the fly. ...

Is there a way to make eclipse report a general "catch (Exception e)" as an error/warning (in java)?

I'm trying to encourage a best practice of not catching general exceptions in Java code. eg: try { ... } catch (Exception e) { // bad! ... } Is there a way to flag this as an error/warning in Eclipse? I know PMD picks this up, but I'd rather avoid integrating it into everyone's build environment at the moment. ...

Syntax hightlighting of template toolkit files in Aptana/Eclipse

Does anyone know how I can add syntax highlighting to Eclipse/Aptana for Template Toolkit files? All I need is for [% ... %] to be a different colour. ...

Can actionPerformed return a value?

In my application I use a FileChooser to chose a file. The name of the selected file should be returned to another class. how to do this in eclipse? ...

Deploying GWT Module to a subdirectory of /war

Is it possible to deploy a GWT Module to a subdirectory of the /war folder? I tried using rename-to="folder/modulename" but that does not seem to work. ...

Keystore and Aliases - is there a use to multiple aliases?

When exporting a signed Android application using Eclipse, is there a purpose to using multiple aliases? According to the official guide about signing, it's recommended that you sign all applications with the same certificate to allow your applications to share data, code and be updated in modular fashion. Assuming that "alias", "key" an...

how to change compiler compliance level programmatically??

Hi I am using eclipse 3.2 and i want to change my compiler compliance level from 1.4 to 1.5(i.e 5.0) or higher..using java program?? not manually..means my java program will automatically do it ...can anyone tell me how to do that?? ...

How to automatically insert a class notation using eclipse templates?

Does anybody know how to insert a "@RunWith anotation" above the class signature, using eclipse templates? Ex.: @RunWith(Parameterized.class) public class MyClassTest { ... @Parameters public static Collection<Object[]> parameters() { List<Object[]> list = new ArrayList<Object[]>(); list.add(new Object[] { "mind...