eclipse

Eclipse copy/paste entire line keyboard shortcut

Anyone know the keyboard shortcut to copy/paste a line into a new line in Eclipse, without having to highlight the entire line? Thanks. BTW ctrl-alt-down turns my whole screen upside down (I'm on windows). Interestingly, that's what's specified in the windows/preferences. ...

Auto generate header files for a C source file in an IDE

I am trying to use Eclipse and NetBeans for programming in C (not C++). Is there a feature/plugin for them which automatically keeps the source and header files in sync? As in, when I implement a function in the source file, does it automatically insert the correct lines in the header file? I did look at solutions like lzz, but they ar...

Update JAR used by Android app in Eclipse

My app uses an API from an external JAR file. This JAR file has been added into my project and added in the build path. My project builds and runs just fine, but now I need to update the JAR file (some code in those classes has changed). I created a new JAR and copied it into my project after removing the old one. Do I need to "re-import...

Question about the cancel button on a standard JOptionPane

So I am working on a program for school, and part of the assignment is to have a bunch of prompts for input pop up. I am using the JOptionPane, which inherently has an OK button and a Cancel button. Now, to make the program exit when they press cancel when the prompt is asking for a string, I have something like this: firstName = JOpti...

"No source available for main()" error when debugging simple C++ in Eclipse with gdb

Hi, I'm having trouble debugging a C++ program in Eclipse (the latest RC of Helios, updated with latest CDT from within itself) on OSX. The program is very simple (esentially Lesson 2 from NeHe's OpenGL tutorials), consisting of one cpp file and, using OpenGL and Cocoa frameworks, and linking with libSDL.a and libSDLmain.a. The struct...

Debug eclipse IDE

I would love to learn how to debug eclipse IDE. Back to the time when I was using VS for .NET development, I can attach VS to a process at anytime and start to trace down the problem. I hope there would be something similar with eclipse, but as a newbie to the Java world, I don't know about that. My eclipse recently often hang when I ru...

SVN "Share project was failed"

Hi, I get this error : Share project was failed. svn: Error writing entries file for 'C:\workspace2\Test' svn: Entry '' has inconsistent repository root and url But we get this error only on a particular PC. Also if we move the workspace in a network drive, everything works fine. We are using FDT(eclipse based IDE). ...

Are these two settings same in maven?

I want to limit maven to use only private/not public maven repository, do these two settings have the same effect ? 1.Setting mirror in settings.xml <mirrors> <mirror> <id>my-internal-site</id> <mirrorOf>*</mirrorOf> <name>our maven repository</name> <url>http://myserver/repositor...

Eclipse CDT project temporary files

What files can be safely removed from CDT project and workspace before archiving or saving in a source control system? Having MSVC experience, I tried to remove Debug and Release directories, this was really bad idea :( ...

Eclipse not detecting the installed java

I had installed Eclipse Galileo first and after that installed Java. But it is not detecting my java. What configuration changes can I make so that Eclipse can run my java programs? ========================== Edited ================================ ...

How can I show Month View in smartgwt Calendar?

I want to show only Month view of Calendar in SmartGWT2.0 with Eclipse 3.5(Galilio) How can i do that? ...

Howto solve jasper exception problem

This is what I got on the browser screen when I try to run the JSP file. The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatche...

Running P2 Ant tasks outside Eclipse

Hi everyone ! I got ant script running fine inside Eclipse Here is a piece of it : <p2.composite.repository failOnExists="true"> <repository location="file:/${basedir}/compRepo" name="Repository description goes here" /> <add> <repository location="http://url/Eclipse/repo/Galileo-3.5.1/" /> ...

Eclipse autosave workspace.

Is there a plugin for Eclipse which would automatically save the eclipse workspace every say 5 minutes in the background because every time eclipse crashes the entire workspace layout reverts or open files gets lost, and it is quite annoying at this point. ...

Debug servlets with eclipse (running resin)

I am using eclipse (Java EE edition) to write Java servlets and I would like to utilize the debugging functionality. However, I was reading the tutorial to set this up and when I got to the stage the choose a "Server Runtime Environment", I got stuck. I am using Resin, which does not appear to be in the list of available server runtime...

Eclipse Pulsar, JavaME, and Hello World

I tried to post this over on the Eclipse Pulsar site, but it doesn't seem to want to give me access, so I thought I would try over here. All I'm trying to do create a basic "hello world" application to test on multiple mobile phones as a proof of concept. I downloaded Eclipse Pulsar and the Samsung SDK (though I have this problem with ...

Eclipse classpath and NoClassDefFoundError

I'm going to try to give as much detail as possible here, pardon me if some is irrelevant. I have two projects in eclipse. Project 1: com.myworkplace.parent, with code in the package of the same name. Project 2: com.myworkplace.child, with code in package of the same name (I moved my code to that package, from the default package, if t...

How can I go to the next Eclipse marker (e.g. build error) using the keyboard?

Suppose I make a method signature change that breaks several callers, and I want to review the call sites manually to update them. Once I change the signature, my "Problems" view shows, say, a dozen errors. What keys can I hit to navigate through them while leaving the keyboard focus in the editor for fast fixups? (It's been a while, ...

Migrating Standalone Tomcat Instance to Eclipse

Currently I'm just kicking off Tomcat as a daemon from a standalone shell startup script. With that, I have many customized files in my app. For example, the start-up script needs user input, is using modified web.xml and server.xml, etc. However, it'd be nice to debug the overall application through eclipse. I've loaded up my Eclipse w...

What is the phpdoc syntax to link $this to a specific class in Aptana?

I'm working on Magento templates, but this issue would apply to any template loading system. As these templates are loaded by the template engine there's no way for the IDE (in this case Aptana) to know what object type $this is. Potentially it could more than one object as a single template could be loaded by multiple objects, but i...