eclipse

Eclipse problem - file stayed opened in editor causes problematic eclipse startup

Worked in Eclipse. I closed it without closing file i was working on. On next start eclipse blocked - file inside could not be opened and it looked like it will load an load forever Is there a way to close file in editor before eclipse is started or do some kind of clean so i dont have this starting problem. thank you very much for ...

Start an activity from a listview

Hi I have a listview and I am trying to start an activity from the listview by {startActivity(class.java);} import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; public class ll2 extends Activity { publ...

Start an activity from a listview

Hi I have 24 teams in a list, I have 24 separate .java classes for each team with information about those teams. When the user click on an item(Team) in the list I want to goto that teams java file(Class) and display there information. below is the code, import android.app.Activity; import android.content.Intent; import android.os.Bu...

Refactoring in eclipse: how to add field,getter,setter to all implementations of an interface?

Hi, how can I add a field, getter and setter to all implementations of MyInterface (in the current project or folder?) ...

eclipse: global applet parameters in eclipse run configurations

hello, i have many run configurations in eclipse to launch applets. i provide parameters to these applets via the parameters tab of the run configurations. here i would like to add some global variables like ${playerid} like it can be done in the parameters section of normal applications. so if i change the value of playerid in the stri...

how to debug maven surefire test more easily (using eclipse as debug server)

I'm using maven / surefire / eclipse to write some code and later test / debug it. Standard way to do it is by using maven.surefire.debug maven property. By default, when this property is enabled, maven starts listening on port 5005 and I can attach to the debugged process using remote debugger. When the test finishes remote debugger di...

Getting started with a cross platform C++ project

I am starting a c++ project which I would like to compile equally well in Eclipse (Linux) and vs2010 from the same repository and could use some help getting started. While many of the aspects can individually be Google'd, I was hoping for advice on how to approach the problem on a whole. For example, where to keep the library sources,...

Mysterious Eclipse JSP Validation Errors

Eclipse (Helios) occasionally marks valid looking JSP content as having errors. It seems like it often breaks when I use the <c:if> tag. For example, in a JSP with just this content: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <html> <body> <c:if test="${1 == 1}"> something </c:if> </body> </html> The following ...

What is this resource and why can't Android find it?

Hey, Sorry if this is a dumb question. I'm an amateur programmer and new to Android, though I've prided myself on not having to bother anyone for help until this point. The problem I'm having is that my program randomly seems to hang on startup. It doesn't happen all the time, and when does happen, it sometimes unfreezes within severa...

What file(s) does eclipse store Java code style settings to?

I spent quite a bit of time modifying my Java code style settings to be the way I like. For example, go to Windows -> Preferences -> Java -> Code Style -> Clean Up / Formatter / Code Templates. I've set eclipse to use white space instead of tab chars, customized the heading on the top of java files, and a whole bunch of other stuff. N...

How can you visually represent which threads lock on which objects in Java while debugging?

Using the following textbook thread wait/notify example, is there a tool (Eclipse plugin?) that tracks which thread locks on which object while stepping through and debugging? A tool that visually displays the connections in some way would be ideal if possible. public class ThreadA { public static void main(String[] args) { ...

multi-modules project with maven is not working as expected?

Hi I am trying to create a multi-modules project in eclipse with m2eclipse. I followed some tutorials but the way it work is not what i expect: Here is the structure of my project -Root - webapps - module1 - module2 I have pom.xml for Root and modules. (module 1 and 2 are independent to each other) In t...

How do I suppress warnings in Eclipse for PHP?

In Eclipse, I'm getting warnings for not having a start tag (<div>) because the start tag is in another file. How do I suppress this warning to keep it out of my "Problems" window? I know in Java I could do @SuppressWarning, but I don't know how for php. I assume that there is, based on the availability of php type hinting in Eclipse,...

How can I create an activities in a list view

Hi, I have create a list view within a tab with a list of teams within it, I want to create a activity which when clich goes to another class, I want to do this with 20 items that will be in thisa list, code is below public class ll2 extends ListActivity { static final String[] teams = new String[] {"Accrington Stanley", "Aldershot", ...

PyDev in Eclipse seems not supporting incremental find

Eclipse Galileo + PyDev 1.5.4 Looks like under PyDev environment, the incremental find is not working. Can anyone confirm this, please? Thanks. ...

Which Eclipse version should I use for Android app?

Hello, I am starting to develop android applications. Can any one suggest me which version of eclipse should I use? I see there are 11 versions. I am confused with these: Eclipse IDE for Java Developers Eclipse Classic 3.6.1 Eclipse IDE for Java EE Developers Pulsar for Mobile Developers ...

GWT project in eclipse with Maven as OSGi bundle

I tried to set up a Maven project, which supports the Google GWT tools and eclipse PDE integration. I was only able to accomplish this by adding "gwt-dev-2.x.x.jar" and "gwt-user-2.x.x" to the bundle classpath. For this, I had to change their scope from provided to compile, which is highly undesirable as this greatly increases the size...

Errors in Layout Cant figure it out

Hi, I have created four tabs with listview in each. I have been attempting to make the list views clickable, I have used the listview tutorial from Here to create the list view using string.xml and R.array: The problem is when I use my intent and onItemClickListener I get multiple marker errors, if I play around with the commas bracket...

What is the difference in ECore between containment and reference?

When creating references between ECore entities there is the possibility to mark a reference as "containment". Can somebody explain me in easy words what's the difference between a plain reference and a containment? The definitions and explainations I found so far didn't do the trick for me. ...

How to use SVN commands from command line?

I am able to check out projects from SVN repository using eclipse as in the below screen shot. But i am not able to do the same from command line..I am getting the error as : 'SVN' is not recognized as an internal or external command If SVN is not installed on my machine how come eclipse is able to checkout? Do i need to install SV...