eclipse

Can't use JFace and SWT in eclipse without creating plugin

DISCLAIMER: this is the classic case of .NET GUI trying to work his way around JAVA stuff. PROBLEM DESCRIPTION: I am trying to build a very simple GUI with JFace and SWT - the code is straightforward (there's plenty tutorials), what it's not so straightforward is that I can't seem to get JFace and SWT to work outside a plugin project...

Where are these ant properties defined? (FlexBuilder/Eclipse)

In trying to build a ant script for my Flex project i've come across a couple of properties that seem to be available by default such as ${DOCUMENTS} and ${PROJECT_FRAMEWORKS}. Does anybody know where these variables are defined and are there any more that maybe useful to me? Is there a list of variables that are created by default? Th...

How to setup my gwt development environment so it is easy to deploy (web.xml and jars mainly)

Hi, I'm currently developing a project in eclipse (3.5.1) where I'm using gwt for my UI and for the client-server communication. Currently I have two java projects which I need in my GWT project. A DAL project which is a required project in my second java project (Common) and is marked to be exported (Order and Export) and a Common proje...

Eclipse: table column image transparent or not?

Once I start drawing my own images in an Eclipse table cell, highlighting that table cell results in a strange highlight color. See for yourself: While the transparency is actually preserved like in the first column, the highlight-blue isn't as blue as it should. Is this my fault or Eclipse's fault? Here's the code snippet: public ...

How do i create a GNU Autotool Project in Eclipse CDT from existing C++ source code?

Hi, I have an existing C++ source code that is built using autotools and i wish to use in Eclipse CDT. I'm a beginner with Eclipse CDT. I've installed the Autotools plugin for eclipse but don't know how to create a project from existing code. May you please guide me in the right direction so that i can create an eclipse project that us...

Insert template into every source file in an Eclipse project?

Is there a tool, option or script to insert a custom template into the header of every existing source file within an Eclipse project?` Some background information I have very recently open-sourced a small application written for a university assignment. Initially the source files did not require any explicit license or author inform...

Eclipse - Galileo IDE force save of changed files before build?

Hi, When I used previous versions of Eclipse (e.g. Ganymede/Europa) if I had edited a file and then attempted a build Eclipse would prompt me to save first. Since I updated to Galileo (Build id: 20090920-1017 & just checked for updates) when I build I'm not prompted to save first. Perhaps the dialog had a checkbox for "don't tell me a...

Eclipse crashes on start-up. Wrong eclipse.ini?

I'm really confused. I've worked with Eclipse IDE a lot and now I don't understand what's happening. I've just downloaded latest Eclipse distributive and cannot start it. I'm getting the following message box before the IDE is even loaded: --------------------------- Eclipse --------------------------- JVM terminated. Exit code=-1 -Do...

Maven Eclipse Plugin - " ... cannot be resolved"

I am using Eclipse 3.5, Maven 2.0.9 for my multi module Java project in one single workspace. My plugin declaration is below: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.7</version> <configuration> <ajdtVersion>2.0</ajdtVersio...

how to retrieve corresponding xpath

I would like to know about how to retrieve corresponding xpaths when we input an xml file in java with eclipse platform. For example, <document> <name>xml file</name> <size>12 kb</size> </document> the result is: /document /document/name /document/size ...

Which eclipse version to use on a Mac? (Carbon or Cocoa)

When i go to the eclipse website (http://www.eclipse.org/downloads/) there are 3 different versions of eclipse for Mac: Carbon 32bit Cocoa 32bit Cocoa 64bit I'm confused about why there are three version and which one i should be using. (I'm running OSX 10.5 on a MBP) ...

How to read data from a file in Eclipse Plug-in?

I'm currently developing a Eclipse plug-in. When called, my plug-in will read the active (currently opened) source file's data and will do some formatting on the source code and then it will update the results to the same active source file. Now my questions are: How to read the data from the active source file? Do I need to get the f...

GUI runner in Eclipse for Python/IronPython

As much as the console runner is nice, I enjoy the instant red/green view of a graphical runner such as NUnit or MSTest for quickly glancing at broken tests. Does such a tool exist for Eclipse? I've tried Google but only found some awful standalone versions. ...

How to view a log file in Eclipse editor just like it looks in console window?

I have a txt log file. How to make it look in Eclipse editor just as if it was the console output [ eg links underlined ]. It is a bit sad plugins called "Log viewer" do not highlight links as Console Window does. That's the worst thing about such plugins. ...

How can i manage dependecy of JavaFX project with m2Eclipse plugin ?

JavaFX Editor in Eclipse couldn't see dependencies which is imported by m2eclipse (Junit, JavaFX library..), i must put libraries from Project Properties - Java Build Path - Libraries, if i want to solve this problem. M2Eclipse plugin and JavaFX plugin couldn't work together? OR JavaFX plugin couldn't work with Eclipse successfully ?...

Eclipse hangs while opening workspace after upgrading to GWT 2.0/Google app engine 1.2.8

After upgrading to the newest GWT/Google app engine I have problems opening my workspace in Eclipse. On startup, Eclipse hangs almost immediately and needs to be closed. This happens only in the workspace where I use GWT with app engine, and I weren't able to consistently reproduce it - sometimes it starts normally, and sometimes I need ...

Making Eclipse view different file extensions as PHP

I have several file extensions, like .module, that I would like to be understood by Eclipse to be PHP - so I get the same syntax highlighting, code completion, etc features as I would if I were editing a .php file. How can I do this? I went to Window >> Preferences >> General >> File Associations and added *.module to the file types lis...

Ctrl-Space in Eclipse without Pressing Ctrl-Space

I've just started using Eclipse and I noticed that when I start typing a local variable name it doesn't come up with suggestions like Visual Studio does until I press Ctrl-Space. Is there any way to get it to do this automatically? I find Ctrl-Space an awkward key press. ...

Using Maven to download drools sources

I'm new to maven and drools, so this could be obvious... I'm trying to work off of the drools snapshot repository using maven/eclipse. I'd like to be able to link the sources/javadoc when updating using maven but I keep getting messages similar to: Can't download java-source for artifact org.drools:drools-process-task:5.1.0.20091223.19...

Eclipse debugging "source not found"

I just started using Eclipse so go easy on me ;). But when trying to debug a JUnit test case I get a dialog that states the the source is not found when I get to this line in the code in my test method: Assert.assertEquals(1, contents.size()); I know I should probably go and try and download the source from somewhere, but I really don...