eclipse

GWT + EJB 3.0 + Eclipse + Java EE + Weblogic 10g

I'm pretty new with EJB's and GWT but I've been using Java for a little while. My question is: How do I get GWT and EJB's running all together on eclipse? I keep getting pretty severe memory issues with it all together. It consumes 600mb of VM and 200mb of mem and every other operation I do (i.e. open a .java file or build), it crashes ...

How to create new Eclipse RCP project using maven2?

How to create new Eclipse RCP project using maven2 (preferably m2eclipse)? I read that there's plug-in for Maven that have idea about Eclipse. (Maven Eclipse Plugin) And then it looks like I need to find some Maven Archetype to create Eclipse RCP project, but I could not. At this point I am in doubt if I go right way. I just want to u...

Is eclipse clearing out extra files from workspace/project/bin ???

Hello, I'm developing an app using Eclipse IDE under linux. While developing, I'm having terminal opened, testing things under workspace/myApp/bin. For the needs of testing, I copied several files there - one txt file, one gif image. Also, several more files have been created as a result of my app. However, today I started Eclipse, ope...

How to create an war file in Eclipse without ant or maven?

I am using Eclipse IDE for Java Developers Helios. I have mainly done desktop applications before but now I would like to learn about Servlets. I have installed Jetty on my computer. And I wrote a simple Servlet in Java using Eclipse. But how do I compile it and export it to a war file in Eclipse? I have found some tutorials doing it wit...

Calling the clickHandler method and passing a value.

Hello, I have the following code for a spinner: public class MyOnItemSelectedListener implements OnItemSelectedListener { public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { String TABLE_NAME = parent.getItemAtPosition(pos).toString(); int spinnerYearsPos = parent.getSelectedItemPosi...

Autogenerate function comments in Eclipse

How to autogenerate xml based function header comments (@param etc) in Eclipse. Is there an equivalent of "///" shortcut in Visual Studio. ...

Eclipse UML plugin to generate Java Source code

Is there an Eclipse plugin that can draw uml class diagram and then generate Java source code from the class diagram? Thanks! ...

R.layout.main cannot be resolved

Hi, Using Eclipse on win XP. I've previously created an app or 2, but am now working on the 'real' version and get the above error. I was having funnies creating a 1.5 version, so have started a new project for 2.1. package xxx.guest; import android.R; import android.app.Activity; import android.content.Context; import android.graphic...

Classpath Build Order Changes

I am using Eclipse 3.5 JEE 64 bit on OS X Snow Leopard. Was wondering how the .classpath file's tag's order gets changed everytime I run a standard Ant build script. When I manually change the build path order like this (via Eclipse): Right click on project in Project Explorer. A context menu opens up Go to Build Path Configure Buil...

Regexp to detect call time pass by references in PHP source code

I'm looking for a regular expression that will accurately identify any PHP call time pass by references in source code in order to aid migration to PHP 5.3. Currently, I have [^=&]\s*&\s*\$, but this doesn't filter out assignment cases ($var = &$othervar;). This regexp should be compatible with eclipse (sorry, not sure what flavor of...

In eclipse, how do I add step continue and pause buttons to the toolbar of the java perspective?

In eclipse, how do I add the debugging buttons: step, continue, and pause buttons to the toolbar of the java perspective? When I right click to customize perspective I don't see where I could add those buttons. CLARIFICATION: I'd like to add these buttons directly to my java perspective if I can, I don't like switching back and forth b...

Displaying camel cased words as such with underscores in Eclipse

To me, reading long camel cased words can sometimes be a bit frustrating. For example: aReallyLongCamelCasedMethodNameWhichIsTooSelfDescribing Now, look at this version: a_Really_Long_Camel_Cased_Method_Name_Which_Is_Too_Self_Describing Which version is easier on your eyes? The second one is for mine. While using Emacs, I stumbled...

Can't pick build target when importing Android project from existing source

I'm trying to import an Android project into my Eclipse workspace, using existing source code. When I point Eclipse to my existing source location, it doesn't populate the Build Target area on the New Android Project dialog. Why isn't it letting me pick a build target? ...

In Eclipse, why additional plugin break the Android plug-in?

I had Eclipse running with the Android plug-in and I decided to add the Emacs plug-in. I downloaded and it worked. Then I decided to go back to the Eclipse key bindings and the Android plug-in disappeared. I could not update it, because Eclipse said it was installed, but it was not showing up in the menu. I had to re download Eclipse, a...

How to initialize a toggle button's selection state in a view's toolbarin an eclipse rcp

I contributed a toggle-style toolbar contribution to my view in my RCP. Now, i want to know how to set the button's state (since it's a toggle button) from my view. Or, at least, how to initialize it's state after the view is loaded (the toggle state can vary, its not static) I tried to call from my view: getViewSite().getActionBars().g...

Eclipse Extension Point for Updating the Classpath

Question Given a Classpath Container I've written as a plugin/extension, how do I add it to the classpath, automatically? Background Ok so I'm an experienced Java Developer but extremely new to writing Eclipse Plugins. I've been googling, following tutorials and reading source code of other plugins for a couple days. I know exactly ...

Android: Go back to previous activity

Hi! I want to do something simple on android app. How is it possible to go back to a previous activity. What code do I need to go back to previous activity ...

eclipse team ( Mercurial Eclipse ) edit highlighting

I am trying to move from Netbeans to Eclipse. Minor thing bothering me is that Eclipse dosen't seem to have the kinda edit highlighting that Netbeans does. For example, a new line is automatically highlighted as green. An edit is highlighted as blue. And this happens in an unobtrusive way on the left along with the line numbers( if li...

Help setting up Eclipse for Remote C Debugging !

Hi ! I am pretty new to Eclipse. Trying to set up to do remote debugging. Here is situation, I am connecting to remote machine running Linux, I am running Windows. 1) I have installed all the necessary tool for Eclipse, and was able to connect to Linux machine. 2) Remote machine has gdbserver linux1[1]% gdbserver Usage: gdbserver [OP...

WebDriver Selenium API: error running compiled .jar file.

I finished writing my test for FirefoxDriver, and compiled to a runnable jar packaging all the required libraries into the single test.jar file. while running java Tester.jar I get the following error: Exception in thread "main" Could not find the main class: Tester.jar but Tester.java has a main class. How to fix this ? ...