eclipse

How to identify the source of a text selection event coming from a CompareEditorInput in eclipse?

In my eclipse plugin I have the following code: public class MyHandler extends AbstractHandler { @Override public Object execute( ExecutionEvent event ) throws ExecutionException { ISelection sel = HandlerUtil .getActiveWorkbenchWindowChecked( event ) .getSelectionService() .getSelecti...

Need help in using Eclipse JEE version to develop a servlet project

Hi, I have downloaded eclipse jee version (3.5) and I would like to use it to develop a servlet project on tomcat. So I install tomcat and add it as my server in my eclipse environment. create a Dynamic Web Project called 'TestServlet' create a new servlet called 'MainServlet' and then I deploy my project to the tomcat server via...

How to modify the "new" submenu in the Eclipse Navigator?

I am pretty new to eclipse. I notice that depending on the Perspective I am in, the new submenu lists different items in it. Is there a way to pick the items it lists (modifying the perspective) just using the eclipse interface? or am I needing to do a plugin of some sort to enable this. ...

Which Eclipse for Android ?

Should I use 32-bit Eclipse or 64-bit Eclipse for Android development? Im on a MacBook Pro (Core 2 Duo). Does it matter which version for Android coding? ...

"The left hand side of an assignment must be a variable" due to extra parentheses

I know why the following code doesn't compile: public class Main { public static void main(String args[]) { main((null)); // this is fine! (main(null)); // this is NOT! } } What I'm wondering is why my compiler (javac 1.6.0_17, Windows version) is complaining "The left hand side of an assignment must be a variable". ...

Disable building workspace process in Eclipse

Hello everyone, What is Eclipse doing when building workspace process is running? Can i disable it because it is taking a long time to complete and i dont know if it is necessary. Thank you ...

Eclipse update problem?

Hello, Please take a look here: Why i got that error when i'm trying to update my Eclipse Galileo to the newest Eclipse M6 Helios? I'm using the update URL from here: http://eclipsesource.com/blogs/2010/03/14/eclipse-3-6-m6-helios-available-for-download/ Is this a bug? If not, what can i do? Please help. Thanks! ...

Programatically change icon for a eclipse RCP command

I have a menu drop down action in the coolbar. It has 3 sub items that form a radio group. I would like to change the icon shown in the coolbar when the user selects one of these options. I've googled and seen that I should look at: org.eclipse.ui.commands.ICommandService.refreshElements(String, Map) and org.eclipse.ui.commands.IEleme...

To find an execution line-counter for Java IDE

Is there any plugin to some IDE that show the number of times a line is run in the code? Eclipse's ECLemma does not seem to have a setting to show execution times at the left-hand-side bar, like in the service WebCat. ...

Can I get an integrated shell (command prompt) in Eclipse?

Is there any plug-in that provides an integrated shell (i.e. command prompt) in Eclipse? The console only seems to be for interaction with a running program. I've found a reference to the plug-in Open extern but that opens an external command window, and I'd rather have it integrated with Eclipse. ...

Eclipse: The icons in "Display View" are all greyed out

The discussion here describes the "display view" in eclipse which allows one to to quickly evaluate java expressions. The thing is, when I open the display view the icons remain greyed out and I can't execute anything. The only icon that isn't is "clear console". The odd thing is, alot of the screenshots on the web show the same behaviou...

With Eclipse, in a PHP project with SVN, how to "tell" Eclipse to find autocompletion choice only in the current trunk or branch?

Hello, Using Eclipse on a PHP Project, I recently created a tag on my SVN. Since that day, let's say I'm working on a class in my trunk, when I ctrl+space in my code, Eclipse is getting really really slow (sometimes even freeze), and if I'm lucky, it will give me 2 responses for autocompletion : One referencing some method/class from th...

NoSuchMethod exception when using scala Regex class... confused...

Hi there, I have a simple Scala project that runs without any problems inside Eclipse, however, when packaged into a .jar I receive this exception when running it: Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: scala.util.matching.Regex.replaceAllIn(Ljava/lang/CharSequence;Lscala/Function1;)Ljava/lang/String; What...

Transitioning from FlexBuilder 3 to FlashBuilder 4 ... there and back again.

It's growing pains time again. Some of our stuff requires FlashBuilder 4 and some still requires FlexBuilder 3. Both are installed OK, and no projects use both IDEs. The trouble is, when I go back to work on a FlexBuilder 3 project it takes freakin' forever to build and I get weird errors like these: This doesn't seem to cause any ide...

eclipse & cmake cdt4: lost in translation

I have an out-of-source build setup with cmake and I am trying to generate an Eclipse project. I have one source folder and a seperate build folder for eclipse, the two folders are siblings. When I generate an Eclipse project the source folder does not end up as part of the eclipse project. Is there any way to annotate the directory so...

C code autocomplete in Eclipse

Hi, I'm a Java developer and I've downloaded the Eclipse for C (course purposes) and to my amazement the control+space shortcut (for autocomplete) did not work. I've created a new project and a new class using the wizzards and started to type "print" and then tried to find an autocomplete feature. After a bit of googling I arrived at C/C...

Add jar to EAR in Eclipse

I have several projects in an EAR in Eclipse. These projects themselves have dependency jar's on the build path marked as "do not export, do not contribute to others". Now in Eclipse I add jar's to the EAR via the EAR properties "Java EE Module Dependencies". I browse to the jar (add jar) and click ok. The jar is added to the list. Whe...

eclipse coloring: how to config the background color of folding margin ?

I checked every possible editor coloring options carefully, but the background color of folding margin seems not in the preferences dialog. Is it possible to config this? ...

Import eclipse project as J2EE

I have created a J2EE project using maven and would like to import it as a J2EE project (ie: auto have the libs jars added to the classpath, tomcat jars to classpath, etc). How can I change an existing project to a J2EE project? ...

Mupltiple Qt project files in one Eclipse project

Is it possible to have multiple Qt project files in a single Eclipse project? The reason that I want to do this, is that I want to generate two different executables that have a large code base in common. If there is a better way to deal with this, please let me know. ...