eclipse

regular expression to replace '<?' by '<?php'

Hi i'm trying to find all occurences of '<?' in my php code. I use eclipse for this, and i tried to search for the folowing pattern: "<\?^[p]" in the hope this would return me all <? occrences, but not the <?php ones.. What's wrong about the regex? I thought I had figured out regular expressions, but it seams like i still have a long wa...

Can I develop for android applications by using CLI

I've start developing android applications. but My PC has so poor resource cpu and ram for using eclipse so I'd like to develop by CLI javac.. How can I use CLI for developing android? ...

Tomcat 6.0.26 caching Java classes

I am facing a wierd issue suddenly and I am out of wits why this would happen. My basic setup is to use maven (eclipse plugin 0.20), Tomcat 6.0.26. Until few days back i was able to start tomcat in debug mode, make changes in code while debugging and test them. Then later run prepare-package for maven, stop and start tomcat to reflect ...

Final in method parameter in eclipse

When I try to put final in method parameter eclipse doesn't help. Any idea how to get this to work? ...

java.lang.OutOfMemoryError: PermGen space

I am getting follwoing error frequently in eclipse IDE 3.2, how do I solve it java.lang.OutOfMemoryError: PermGen space java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClassCond(Unknown Source) java.lang.ClassLoader.defineClass(Unknown Source) java.security.SecureClassLoader.defineClass(Unkn...

In Eclipse, how do I refresh the icon decorators (per-file 1+ warning, 1+ error) in my Project Explorer?

In Eclipse, in the Project Explorer pane, each Java file will have an icon decorator, indicating whether that file has 1+ compilation errors, or 1+ compilation warnings. I often find that these icon decorators are out of date with my latest file changes. How can I force them to be up to date? I try right-clicking on the project's top-...

How can I get Visual Studio's "create method stub" feature in Eclipse/Helios/PHP?

I'm working in Eclipse/PHP and miss a feature I use often in Visual Studio: in my code I call a method as if it existed and Visual Studio instantly gives me a drop down to "create method stub". I've tried writing the method in PHP/Eclipse and the pressing CTRL-1 but it doesn't allow me to do this as this stackoverflow question indicated...

Eclipse content assist: accepting the selection with the . or ( keys

When using Visual Studio, I can accept an Intellisense selection by hitting either the . or the ( keys, as well as the enter key. I would like to configure Eclipse to do the same with its Content Assist feature, but I can't see any way to do so. Is this possible? In case it matters, I am specifically referring to Eclipse Helios with Pyd...

How do I browse JDT source code in eclipse?

My current attempt to browse the JDT source code in eclipse: installing Eclipse Helios RCP version. importing all plugins from installation as binary files into my workspace It does not work. ...

Special Characters [^M] appearing at the end of line in file if seen on unix but not when seen in eclipse

Hi, As described in questions, if I see a file in unix then I see special characters in it like ^M at the end of every line but if I see same file in eclipse than I do not see that special characters. How can I remove those characters in the file, if am using eclipse for editing the file, do we have to make any specific changes in th...

How to link classes and menus

Hi, I am really struggling with linking menus together. The app I want to create os a collection of menus that leads to url links to various sites I plan to open within the application. I have created a list activity menu with 8 options and I have eight classes with further options. My problem is how to link the menus together. publ...

Eclipse text-editor drag-and-drop mouse click key combination

In the Java source editor in Eclipse, you could select a block of code, pick it with a mouse click and drop the block of code into another area of the code. You can't do that for other text editors like XML, HTML, etc. I had to press a key combination before I could use the mouse to move and drop the selected text. I have a new Eclipse ...

how to connect to a paired device in j2me for blackberry?

Is there any way to connect to an already paired device in j2me using blackberry? ...

Eclipse PDT, how do I get the files on the server?

I am trying to learn how to use Eclipse Helios PDT, but I don't understand how one gets the files from their workspace to the server. The PDT documentation is painfully sparse. I have my workspace in /home/bob/workspace and my local dev webroot is /home/bob/public_html. If I set up a run configuration for my php project I see where I c...

How to specify a preprocessor directive in eclipse?

How are preprocessor directives specified in eclipse for different configurations? For instance if I have multiple mains that should be run in different configurations and specify #ifdef Problem1 //main func #endif /*Problem1*/ Note that this is with managed makefiles ...

How to get selected file in Package Explorer from Eclipse

Hello, I have an Action that implements IObjectActionDelegate. In this action I want to preform some operations over the file that is selected in Package Explorer when I selected my Action. I only have a run(IAction action) method and the ObjectAction filters the files so that the action only appears for the files I want. I'm looking f...

error: expected unqualified-id before ‘public’

I have read a few posts but cannot figure out what is wrong.My Code is a s follows #include <iostream> using namespace std; /* compiles with command line gcc xlibtest2.c -lX11 -lm -L/usr/X11R6/lib */ #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xos.h> #include <X11/Xatom.h> #include <stdio.h> #include <mat...

What's this Spring error and how to fix it

Sep 17, 2010 3:32:50 PM com.springsource.tcserver.security.PropertyDecoder <init> INFO: tcServer property decoder has been initialized. Sep 17, 2010 3:32:51 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:t...

Web page does not open

Sep 20, 2010 11:22:43 AM com.springsource.tcserver.security.PropertyDecoder <init> INFO: tcServer property decoder has been initialized. Sep 20, 2010 11:22:43 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server...

How to automate generating XML instances from XSD files, using Eclipse MDT XSD project?

I am working in a project where we create XSD schemas, and would like to generate sample xml instances for testing purposes. In eclipse, there is an XSD editor that has the option Generate > XML which does it by a click of a button. But I would like to convert this mouse click to a Builder, Maven or Ant task. Any ideas of how to do it? ...