eclipse

Using Eclipse to create a new JUnit test case

I have a question about using Eclipse to write an additional JUnit test case for an existing Java application. There's a folder called "pass" which contains all of the pass tests. I create a new pass test by right clicking on the folder and going to New -> File. However, when I create the JUnit test case, the new test doesn't show up a...

How to search lines which don't contain an empty line before the return statement

I would prefer to have an empty line prior to the last return statement of any Java method. How do I find and replace such lines using Eclipse? public int foo() { ... ... System.out.println("end of foo"); return 1; } In this case , I would prefer an empty line before the return statement, do note that there could be a...

Why package name cannot be parsed in jar?

Hi all! I'm working at a spring-integrated Eclipse RCP application,but i got a error while spring framework initializing at application start. My code in Activator.java below: ... public void start(BundleContext context) throws Exception { super.start(context); initializeApplicationContext(); plugin = thi...

SWT/Eclipse: updated text value in CTabItem not displayed

Hi there, I am writing an Eclipse GUI to consume a data-feed which is unknown at compile-time. The configuration for consuming the feed will be passed to the ViewPart subclass at construction-time and displayed in a TableViewer contained withing a stacked-tab view. I would like to update the text value contained in the CTabItem display...

TableViewer inital sorting

Hi everybody, I have a problem with JFace TableViewer in RCP. Basically I have a table with 4 rows, and as input I give an already sorted list of elements. So I expect that first element in my input list is first row in a table. However, the TableViewer reorders the elements, and shows them sorted in DESC order for first column. Since t...

Where do I start investigating my Java process that won't end?

I have a Java application which doesn't end. The main method finishes, but threads remain active and the application doesn't end. The thing is, there don't appear to be any monitor locks / waits, so I can't see why it's not ending. According to Eclipse, I am left with two non-Daemon threads. One is labelled [DestroyJavaVM] (looks hop...

Can p2 be used to manage customisable, roaming profiles for Eclipse RCP applications?

I have an Eclipse RCP application that I'd like to make available to end users using the p2 provisioning platform. The requirements for the provisioning of the application are as follows: Users need to be able to install additional features in order to customise their individual application. Users move between workstations, so their ...

Highlight when equality operator (==) is used for string comparisons in Eclipse

Is there any way I can get Eclipse to highlight the use of the == operator to test String equality? I keep mistakenly using it instead of calling .equals(). I'd really like to make that into a warning and require an @SuppressWarnings annotation to remove it, in the yet-to-happen case that I actually want to compare strings for object e...

Combine eclipse hotkeys?

I don't know if this is possible but I would like to combine two functions onto one hotkey, specifically I would like the F5 key to both run my program and maximize the console. ...

Update of RCP-3.5 based application with old update-site failes

I am trying to update an eclipse-RCP-3.5 based application by an "old school" (not p2) update-site. It's a feature beased application with two features. Update process itself works fine. Application starts the update process if there is a new features an the update-site. The application downloads all new bundles but after restart the ol...

How to install Android platform components offline?

I downloaded Android SDK components from http://dl-ssl.google.com/android/repository/repository.xml. Now my question is how to install these components? I am using Eclipse and the AVD plugin for Eclipse is installed. ...

Export Non-executable jar in Eclipse with Reference Libraries

I have a project in Eclipse which I would like to export into a jar. However, this code is only generic helper code I use on many projects and would like to have wrapped up nicely, so I do not want to create an executable jar. My code relies on two referenced libraries, but it seems that the non-executable jar export feature in Eclipse d...

Eclipse: how to traverse all files in some folder

Hi Sorry for probably too simple question. I do have some org.eclipse.core.resources.IFolder I need to traverse all files in this folder. (I also need to do some SAX things for each file, but I don't want to load EMF model, because it's too slow) What is the best way to get the list of all files in this folder and subfolders? Thanks, ...

Subversion or subclipse - How do I get a list of checked out files?

Hi, Does anyone know any way from the command line or with subclipse that I can get the list of files I have checked out? Thanks. ...

How to install C Compiler to Eclipse?

Hi, I have install the C/C++ CDT Version of Eclipse. After making a HelloWorld.c file and get the code in there I get an error of "Launch failed. Binary not found". I found in google that my Eclipse miss the compiler and I install MinGW on my computer and add the path to env variables (tested it with "gcc -v" in cmd and succeded). But...

Maven Multi Module Project breaking compile-time class resolution

Hi, I've been previously managing a 3-module project as 3 seperate maven projects. As this project has been moving forward, I decided I ought to take advantage of the dependency management of maven2 to streamline integration between these 3 evolving modules. I defined a super-project that deploys as POM. Some shared dependencies are de...

First C programm - need help with eclipse

Hi, I have install the C/C++ CDT Version of Eclipse. After making a HelloWorld.c file and get the code in there I get an error of "Launch failed. Binary not found". I found in google that my Eclipse miss the compiler and I install MinGW on my computer and add the path to env variables (tested it with "gcc -v" in cmd and succeded). 1) ...

Eclipse & other Java IDEs for debugging concurrent code.

I'm currently working on some concurrent code that would appear to have a few race conditions in it. I'm attempting to debug the code using my current IDE, Eclipse, but I'm not completely satisfied. In particular, a race condition is present for a variable such that without a break point on one of the methods accessing it (the one 'getti...

why do i get this error "Unknown host http:80"?

i'm developing an application for blackbery, i'm displaying a webpage using Eclipse and net.rim.device.api.browser.field.* api when i click a submit buttom in a form i get this error "Unknown host http:80", can anyone helpme? ...

how to turn off break line in eclipse

Does anybody know how to turn line breaking in eclipse after you press CTRL + SHIFT + F (code format), ex : System.err .println("Incorrect file name, make sure you include .extension with your file name"); ...