eclipse

How do I create an ant builder file (build.xml) for an existing Java project?

Hi all, I am working on an Java assignment for a software design course in my university. It's not really complicated and it includes some classes, interfaces and jUnit test cases. We we're now told we should supply a build.xml file as an input for an ant builder. I have never heard of or used ant before. I also saw Eclipse supports it...

Eclipse or Netbeans for Swing based application?

Hi, My next university project is going to be Java based. We will have to develop this with Swing and I was wondering what's the common preference for that? A quick glimpse through Netbeans website and I could see a powerful Swing editor, or what it looks like one; since I never used it, I don't know. As for Eclipse, I'm sure there are...

Can I find out which thread is running using Eclipse?

I close my application by pressing a "Close" button. But in the Eclipse I see a red square indicating that something is still running. When I press this red square, I kill my application completely. Is it possible to find out what is still running (which method, which loop) using Eclipse? P.S. I am a newbie. So, it would be nice to ha...

How do I get Tycho?

Tycho is supposed to be a plug-in for maven for building eclipse plug-ins. I have found various blogs and other articles about it, but the contained links to Tycho are all dead or not accessible for the general public, for example: http://www.sonatype.com/people/2009/04/tycho-040-roadmap/ The only thing I found is a project proposal on...

Eclipse - change background color of opening and closing tags of current tag

I just changed my eclipse prefs for a darker theme. The only thing I cant figure is: When you select a tag in html, the background of the opening and closing tags is changed (so is the foreground color). This is the same behaviour for selecting a var in php (the background and foreground colors of similar text in the same document are al...

Unable to run JAR file (created in Eclipse)

I hate starting a post with this but I'm new to Java... I've followed this tutorial to create a socket server (mines in Eclipse). I can run the server within Eclipse, all is well. But when I try to export the project I can't figure out how to run it. I keep getting this error (it varies depending on how I run it) Exception in thread "ma...

How to validate SWT form?

Label label1 = new Label(container, SWT.NULL); label1.setText("Enter the Password "); text1 = new Text(container, SWT.BORDER | SWT.PASSWORD); text1.setText(""); text1.addKeyListener(new KeyListener() { public void keyPressed(KeyEvent e) { } public void keyReleased(KeyEvent e) { if (!...

plugging hyper terminal to eclipse

I often keep executing commands from hyperterminal ,with slight code changes.Is there a way to plug hyper terminal in eclipse so that i need not switch windows ...

disabling MercurialEclipse

How do I disable MercurialEclipse? I don't really use it anymore and it causes startup delays, but I can't find any option to turn it off. (note: this is Eclipse 3.4.2) ...

can I install both Eclipse 3.4 and Eclipse 3.5 simultaneously?

I would like to migrate to Eclipse 3.5 from Eclipse 3.4, but I am working on some critical development and want to make sure I can use 3.4 for a while. Can I install both of them? ...

Eclipse PDT Autocomplete

Hey Guys, this sounds a bit stupid, but i try for several days now to get autocomplete working. i have a clean install of pdt and one with plugins like aptana and subversion, but none works with autocomplete. what do i have to do that i get a list with all functions, variables, etc beginning with "str" for example when i type "str"? Do i...

How do you ensure a Utility Projects library dependency gets packaged in the final EAR in Eclipse Galileo?

I have a 'Utilty Project', and an 'EAR Project' that includes that 'Utility Project'. All the classes from the 'Utility Project' end up being packaged as a JAR and placed within the 'lib' directory of the exported EAR, for example: EAR.ear META-INF MANIFEST.MF lib utility.jar (which expands to): META-INF ...

Java Lib file errors

I am a brand new Java developer (I have been working in asp.net) and I inherited a project I am trying to get running correctly. I am on Windows 7 and have Tomcat installed and I am using Eclipse I'm trying to figure out how the heck Jar's work in java and I am really confused at the moment. I have been playing around with it and lookin...

How To Export to JNLP in Eclipse

I watched today as someone painlessly exported a NetBeans java project to a JNLP file and HTML file that he could just copy to his web server. I, for whatever reason, have found making JNLPs someone challenging, and would love if I could do the same in Eclipse, but I can't seem to find such a function or a plugin which does this. The o...

Location of Java dump heap file when using jconsole?

Well this is embarrassing ... I'm starting to play with the Eclipse Memory Analyzer to look for Java memory leaks on a Windows box. Step 1 is to obtain a heap dump file. To do this I start my Java (javaw.exe) process from within Eclipse and connect to it with jconsole. Then on the jconsole MBeans tab I click the dumpHeap button. The...

Eclipse and Actionscript 3

Does anyone know of any good solutions (Eclipse plugins presumably) for using Eclipse to develop in ActionScript 3? There are a number of solutions for developing with ActionScript 2, leveraging MTASC, Swfmill and other open source tools, but I'm specifically looking for AS3 support. It's simple enough to use Eclipse as an editor, and ...

Why is SpringSource Tool Suite (STS) so slow? And how can I fix it?

I've been running STS 2.3.2 on a MacBook Pro for a few days now. I'm finding the performance to be significantly slower than any other build of Eclipse I've used. For example, switching from one tab to another can take up to 4 seconds. I tried turning off much of the validation, and increasing the memory, but it's not making a differenc...

How can I add a .jar to my build path in Eclipse?

I try to do it the following way: Right click on the name of the project. Click on Build Path in the drop dawn menu. Click on "Configure Build Path" And then I do not know what to do. Should I select "Source", "Projects", "Libraries", "Order and Export"? In "Libraries" I have "Add JARs..." and "Add External JARs...". What should I s...

Problems with eclipse-plugin dependencies.

I write eclipse-plugins. I finished one plugin yesterday and it works with Run As Eclipse Application. I build a feature and an updateSite but when I try to install the plugin from the updateSite i get an error : Cannot complete the request. See the details. Cannot find a solution satisfying the following requirements org.eclipse....

Invoking callhierarchy for a method

hi, I have an object of type IMethod which represents a method .I want to get the Call Hierarchy of this method . Which methods should i call to get the call hierarchy of a method? Is there any method by which i can do it? I know that i can get it by ctrl+alt+H but i want the code or method for invoking it. Thanks ...