eclipse

eclipse and path

Hello I have written a such function under Eclipse: public static ArrayList<String> getMails(){ ArrayList<String> mails = new ArrayList<String>(); try{ FileInputStream fstream = new FileInputStream("mails.txt"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new BufferedRea...

DIsable JFace TextCellEditor Field

Anyone know if it's possible to enable/disable individual JFace TextCellEditor fields. For instance if I have a table with 5 columns, I want the last cell to be empty unless field #4 is filled in. ...

Eclipse WTP publishing configuration

I have a web project that is built with maven. I have the project in eclipse as a WTP project (generated using mvn eclipse:eclipse), and it is associated with a glassfish server, also configured in eclipse. I can publish to the server. The problem is, we use maven to do some filtering in one of the configuration xml files in the webap...

Flex - changes to mxml not reflected in browser

I have a Flex project and am using a trial version of Adobe Flex Builder 3 to build it. I do the following: 1. Change an mxml file in the project (for simplicity, assume I changed the text in a label). 2. Right click on the project, Export, Release Build 3. Right click on the main mxml file, Run As -> Flex Application A browser window...

Remove Spket Perspective from List in Eclipse

Hi: I uninstalled the Spket plugin from Eclipse, but there is still an "<Spket IDE>" perspective in the Perspective list. How do I get rid of it? I've made sure there are no more Spket directories under eclipse_dir/plugins, eclipse_dir/features and eclipse_dir/dropins. Where does Eclipse keep a list of its perspectives? Cheers ...

Controlling compiler options in Eclipse

Is there a way to control the optimization level of the java compiler that Eclipse uses when building a project? Or is this question not relevant anymore, is all optimization deferred to the vm? The reason I'm asking is that I recently wrote a quick test doing this: private static int test_f(int i) { return i * 42; } ... int z = 41; ...

In Eclipse Websphere 7, how do I resolve "Enumeration cannot be resolved" error message?

I would usually get this message when I was importing or creating a new project. Everything would build fine but the compiler would give me a "Enumeration cannot be resolved" error for all Enum classes/objects. I resolved this by changing compliance from Java 5 to Java 1.4, since Enumeration was added in Java 5 which was not there in Ja...

two instances of the same editor

I created an editor using the eclipse PDE. Every time I double click on the same file it opens a new instance of my editor instead of just selecting the one that already opened (like in .java files). My Editor input implements IEditorInput. How can I change it? ...

Does Tycho work with Eclipse 3.5

I've finally got round to looking at Tycho (a bridge between Maven 3 and OSGi), but I am not getting very far. Following this tutorial I have downloaded Tycho 0.3.0-DEV-1819 and the tychodemo.zip and unpacked them both as instructed. I have a 1.5.0_15 JDK set as JAVA_HOME. When I run (without the newline): c:\tycho\bin\mvn org.codehaus...

Problem including dynamic image in Eclipse BIRT 2.5.0 report on Windows

I have a BIRT 2.5.0 report design with a dynamic image (URL is specified through report parameter, image formats tried - .png, .bmp). When running the report from our application on Ubuntu, everything renders OK. When doing exactly the same thing on Windows, there's following message instead of the actual image: Current report item is n...

Eclipse (IBM AST) cannot find imports to existing files

I am having issues with IBM's AST (which is based on Eclipse 3.2) importing files. For example, I have a class file named "Status" in the following package: com.test.model When I give another class in the project the following statement: import com.test.model.Status; the IDE complains that it cannot resolve the import. There are no ...

The project description file (.project) for my project is missing

I am using Eclipse PDT 3.5 on Vista (32 bit). It works, though eclipse needs admin rights to execute. This annoys me, but I accept it. But: every now and then (I am not sure, it may even be everytime I want to open a project), I get the error message "The project description file (.project) for my project is missing.". It is NOT missi...

How to remove templates in Eclipse

I am learning Java servlets technology. In a bookt that I am reading, they have asked me to work in a notepad for time being. When i Create a servlet in eclipse, it just auto fills some content to that servlet class which I want to write on my own to learn stuff. For example, the doGet and doPost methods and their signatures. I want t...

Using m4 macros with Eclipse & Java

Is there a way to use m4 macros when developing in Java for Eclipse, ie. making sure the preprocessor is automatically invoked before Eclipse compiles? Or has anyone used another preprocessor successfully with Eclipse? ...

Eclipse package explorer type icons

Does anyone know of an eclipse plugin that changes the file icon used by the package explorer to something that indicates type? It would be handy if the icon looked different for interfaces, abstract classes, enum, and concrete classes. ...

Eclipse keyboard shortcuts with Dvorak

I use Eclipse with Dvorak-QWERTY Commands (a Mac option). I am running OS 10.6. But when I press the command key, it does not revert back to the QWERTY keyboard but instead stays as Dvorak. This makes keyboard shortcuts a lot harder to use. How can I fix this problem? ...

How to structure a website project in Eclipse

I am starting a web application project that will have an Adobe Flex front-end and a PHP/MySQL back-end. I've developed a lot of C++ desktop applications, but am new to building web applications, and to the Eclipse environment. I have set up my current project structure in Subversion as: --MyWebsite +--tags +--branches +--trunk ...

Inserting breakpoints on Eclipse for an Android program

I'm using Eclipse 3.3 and Android 1.6. I installed DDMS on my Eclipse and tried to insert breakpoints as in tutorial https://www.ibm.com/developerworks/library/os-ecbug/ . However, as I run my project, the program won't stop when it reaches the breakpoint. Is there a bug in Eclipse or am I doing something wrong? ...

Eclipse CDT Workspace Multiple Project Library Management

I have projects in eclipse workspace. I can build the related projects. But when i invoke the project the libraries in the project can not be seen by the main process. I must copy the libraries to the /usr/lib or /usr/local/lib but i don't want my system know my libraries. How can i solve this problem. How can i say to eclipse "run my ma...

adding action to toolbar in formpage

I want to add a button to the toolbar in my page that derives from FormPage. I use the code: Action action = some action... action.setImageDescriptor(som descriptor...); toolBarManager.add(action); When i run the editor I don't see nothing in the place were the button should be. If I'm hovering it with the mouse it changes to a hand ...