eclipse

Remote debugging error with eclipse CDT

Hi, I am using Galileo CDT on mac os x 10.5.7. I want to remotelly debug a c++ application on a linux machine. I found this guide: http://www.embedded-linux.co.uk/tutorial/eclipse-rse But when it comes to the step "Install Remote System Explorer", when I go to "available software", I only get error messages like "No repository found ...

Fastest way to compare strings (literal and numerical)

I have a performance problem related to string comparison (in Java). I'm working on a project that needs to sort a huge list (a TableViewer in Eclipse). Anyway I've pinpointed the bottleneck down to the call to compareTo() for the string to be compared. Is there any way to optimize the performance of a string compare? I've searched and...

What's up with "GetStockObject" ?

I've created a program in Eclipse / MinGW / C (project type: C) which should just present an empty window. It also has the folowing line: wndclassex.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); The call to GetStockObject() produces a compiler error: Z:/mtsts_workspace/MTSTS/Debug/../WinMain.c:29: undefined reference to ...

Error while updating a project.

I get the following error when trying to "update" my eclipse project : failed due to an internal error (took 0:00.337) Error: Problem writing resource '/sspaceex/src/PLWL_implementations/CVS/Template'. A resource already exists on disk '/home/ray/workspace2/sspaceex/src/PLWL_implementations/CVS/Template'. Error: A reso...

How to add items in popup menu?

In eclipse plugin development, I want to add one item (eg: Mystyle ) in popup menu. For an instance, Project Explorer --> Right Click --> New --> MyStyle How can I achieve this in eclipse plugin development? Regards Mathan ...

C++ with Eclipse without a tool chain?

I have a C++ project that has to build on Linux but I don't have a Linux machine set up to run any kind of GUI (they all have no monitors). So the question is, can I use eclipse to develop via a file share and build via SSH? I've been doing this and aside from putting lots of ware on alt+tab the only problem seems to be that auto-complet...

Customized new JUnit templates in Eclipse?

I've spent a few hours searching for this, and can't find it, so I'm asking. Why here? How can I customize Eclipse so that when I create a new JUnit test class or method, it includes different items? For other source, I'd just go into Window->Preferences, and change the templates. But for JUnit, that doesn't seem to be possible. I...

Eclipse plugin activator class

What is the role of activator class in eclipse plugin ? ...

Automatically set a Java EE Module dependencies in Eclipse using Maven2

I have two projects, one called my-lib, the other one is my-webapp. As I use Maven2, I set my-lib as a dependency of my-webapp. In Eclipse, I need to have my-lib set as a "Java EE Module dependencies" for my-webapp. Is there a way to make this dependency set when I run the mvn eclipse:clean eclipse:eclipse command? For the moment, ever...

Remove unprintable characters from JSP using Eclipse WTP

Is there anyway to remove non printable characters like \t and \n from a compiled JSP when using Eclipse and WTP for development? Right now the complied JSP has code like: out.write("\t\t\t\\n"); I have tried the removewhitespace directive with no luck, and as I understand it this directive only eliminates whitespace around jsp tags. ...

Is Perforce worth it?

A colleague of mine has become excited about the possibilities with PerForce (we basically need an abillity to logistically group patches and changes, and having the SCM support this natively would be very nice). We currently use CVS and are open to all posibillities. We are only few developers who use plain Eclipse and run builds usin...

how to exclude a source package when deploying an app on JBoss within Eclipse

Hello! I'm developing a java web-based application and deploying it on JBoss 5.0 within Eclipse. I have some testing packages in my project which I'd like to avoid deploying them. Is there any means by which I can tell Eclipse to exclude these testing packages from the deploying war ? I've tried with the run configuration but didn't f...

EditingSupport's ComboBoxCellEditor won't call setValue until it loses focus

This is using SWT, jface and eclipse 3.4. I've set up a tableviewer with EditingSupport, and a ComboBoxCellEditor. When I change the selection in the combobox and then click outside the combobox to deselect it, that's when it calls setValue in the EditingSupport. However, I have this setup in a Dialog, and if I change the selection in ...

Keyboard Navigation and Accessibility for custom SWT widgets

I am trying to build a simple custom SWT widget and i want to ensure that it is accessible. I know that accessbility encompasses a lot of factors, but as a starting point, i would at least like to make it navigable via the keyboard. This is a simplified view of my custom control. I have overridden the 'Canvas' class in SWT. The 'Thir...

Eclipse PDE build does not call customBuildCallbacks.xml

I'm trying to get my PDE build script to invoke my customBuildCallbacks.xml. I've added # build.properties customBuildCallbacks=customBuildCallbacks.xml and copied the customBuildCallbacks.xml file from the PDE build plugin, but it's still not called. The only reference to customBuildCallbacks I get (with -verbose) is a note [java] ...

What are the efficiencies afforded by Emacs or Vim vs Eclipse?

Hey All, I started coding around 5 years ago. I was introduced through Java and Eclipse which both have substantial stigma attached in the programming community. A number of people at the company I currently intern at prefer emacs or vim. I can't see how a basic text editor is faster or easier than an IDE in general although I appreciat...

Saving a PNG file on a server in a Java bean, using JSTL

I am writing an update page in JSTL where the user inputs some numbers. I then call a java bean - passing the numbers as parameters - which, using JFreeChart, creates a PNG image. All of this works fine when I save the file directly on my hard drive using ImageIO.write(myBufferedImage, "png", new File("C:/testChart.png")); I can al...

What is the preferred way to load a DLL on an Eclipse RCP plugin?

I have an Eclipse RCP plugin that requires a DLL. What is the recommended best practice to add the DLL reference to the MANIFEST? Where should the DLL be located, what is the recommended directory name? I have read conflicting practices. Some ask you to create a folder with the architecture and processor type, some ask to set some pla...

Completely lost with Blackberry JDE for Eclipse.

I'm serious. I installed the Blackberry web developer thing for eclipse (being stupid, and not seeing the 'web' part). Then, when I realized my mistake, I went and got the JDE for Eclipse. I went through the install process....open up Eclipse...and I'm lost. I don't know how to run code...or the simulator, or anything. All the tutori...

Filtering Export Wizard availability by File extension

I am using the org.eclipse.ui.exportWizard extension point in Eclipse 3.5. When the user right-clicks on files in the workspace project explorer I only want my Export Wizard to be available if the IFile being selected has a particular extension. I can use the selection element to define that the Wizard should only show up for an IFile. ...