eclipse

Syntax Highlight in structured text editor (JSP) in Eclipse

Hello guys, Is there a way to edit my color options for syntax highlighting in structured text editor in Eclipse like I can do for Java Source Code? The maximum I could do was change the font... Thanks for any help! ...

Cancel a close event

I have an editor in Eclipse. When the user chooses to close it, a dialog shall appear with several options. One of them is "Cancel" and should cancel the close event. How can I do that? The partial code I have so far: ... IEditorPart openEditor = page.openEditor(input, CS_STRINGEDITOR_ID); openEditor.getEditorSite().getPage...

Eclipse Generated Build Files

Hello all, I am using the ZK Studio plugin to create a web based project based on the ZK framework. Now, in order to deploy this project, all I do is right click on the project and select "Export" then select "WAR file". However, I would like build files to be created so that someone else can just make a change and run the build file to...

Why I am seeing static method warnings from Eclipse with dojo.*() ?

I'm writing a Dojo class that looks something like: dojo.provide("my.class.name"); dojo.declare("my.class.name", null, { myFunction: function(param) { // ... dojo.aValidDojoFunctionSuchAsrawXhrPost(param) { // ... } // ... } } I'm using Eclipse (in fact Rational Application Develope...

Failure to create Axis2 service in Eclipse WTP, Failure to create Axis2 service in Eclipse WTP, NoClassDefFoundError -CatalogManager

I am using Eclipse Galileo with Web tools platform and I am trying to create a sample Axis2 service. I learned that Eclipse WTP does not work with Axis2 1.5, so I am using 1.4.1. I mostly follow the following tutorial: Eclipse WTP Tutorials - Creating Bottom Up Web Service via Apache Axis2 (http://www.eclipse.org/webtools/community/tu...

Bundle's exported packages not visible.

I have a bunch of eclipse plugins that depend on a bundle that contains some third-party jar/dll resources, and exports the packages those resources contain. When I export and drop all this into eclipse/plugins, the plugins work perfectly. However, when I make a new plugin dependent on my resource bundle in this new workspace, I can't s...

Setting targeted version of plugin to avoid NoSuchMethodException

Im building a plugin in Eclipse 3.6, but I want it to be compatible with Eclipse 3.2. I just got NoSuchMethodException, because I used some new API. is there any way to force eclipse to check if im not using too new methods? When I created plugin i chose eclipse 3.2. ...

Eclipse - How to find out which libraries your project actually uses

Hello all, I installed ZK Studio plugin for eclipse and have used it to create a new ZK based webapp. However, inside my /WebContent/WEB-INF/lib folder, there are a number of .jar files that were included automatically (beloning to the zk framework). I'm assuming this was done by selecting "create a new ZK project". However, when it com...

build eclipse project when antoher project is requied

Hi all! I had wrote an app( android A) and I would like to build. The problem is the following: I had another android project(B), witch I want to start from the "A" one when the user click on an icon. I had added to the "A" build path the "B" project, but it isn't works. As I trying to build the "A" the app going down and said: "Class B...

Compiling C++/GTK within Eclipse

I'm fiddling around with the C/C++ version of Eclipse to build a simple GTK app. However, I can't seem to be able to compile a GTK sample from within Eclipse. I think gtk is installed properly, used the ubuntu Package manager. the code is: #include <gtk-2.0/gtk/gtk.h> int main( int argc, char *argv[] ) { GtkWidget *window; g...

subprocess.Popen() has inconsistent behavior between Eclipse/PyCharm and terminal execution

The problem I'm having is with Eclipse/PyCharm interpreting the results of subprocess's Popen() differently from a standard terminal. All are using python2.6.1 on OSX. Here's a simple example script: import subprocess args = ["/usr/bin/which", "git"] print "Will execute %s" % " ".join(args) try: p = subprocess.Popen(["/usr/bin/which...

Eclipse heap walk

When debugging Java code, Eclipse has a feature that allows it to find all instances of a given type (via context menu in the Variables window). Is there any way to filter these programatically? For instance, I want all instances of class FieldInstruction where the_instance.getType().getName().equals("somestring") Evaluates to t...

Eclipse Web Service Client - Username Token Policy

I used myEclipse to generate a WebService Client for a webservice using the WSDL. The problem is that I have to add some security information, which is not present in the wsdl. I tried this: public static void main(String[] args) { // TODO Auto-generated method stub ws.EVPQuery_Service s=new EVPQuery_Service(); ws.EVPQuery e...

[Eclipse] - Inserting Spaces Instead of Tabs in ALL Files

Our unit testing setup makes sure you use spaces instead of tabs in all files, including .jsp and jspx. I have set this option for the general editor but the jsp editor does not recognize/see this option and still continues to use tabs instead of spaces. Is there a way to force the jsp editor to insert spaces instead of tabs? :) ...

Android development : ddms from command line not seeing devices.

=============================== *SOLVED * : see answer below I dont want to use Eclipse. From the command line: An emulator is running. adb server is running. "adb devices" lists correctly and I can see my instance on an avd in the output. However when I manually start DDMS from the command line it just keeps trying to connect. I ca...

Is it possible to prevent Eclipse from closing up the project space when you close the app?

I have a Java project in Eclipse that mirrors a directory structure on my hard drive and every time I open Eclipse I have to manually open all of the folders to see the source files inside them. Is there a way to avoid this so that everything stays open between app sessions? ...

Change the active project in Eclipse - SVN Synchronize

When I want to synchronize (svn) a project in Eclipse, I choose 'Team - Synchronize with repository' in the project explorer. The perspective then changes to Team Synchronizing. Sometimes I need to update/synchronize another project as well. Is there a fast way to change the active project in the Synchronize perspective, so I don't ha...

How do you add Mylyn to an Eclipse package that does not already have it?

I have a version of Ganymede that does not seem to have Mylyn installed. Is it possible to add Mylyn without downloading a new version of Eclipse? ...

Eclipse command line build fails building android project, gui works fine

When I run this command on my android project workspace: eclipsec.exe -noSplash -data "F:\Users\awalsh\workspace" -application org.eclipse.jdt.apt.core.aptBuild I get this error: An error has occured. See the logfile F:\Users\awalsh\workspace.metadata.log There are a bunch of eclipse related errors in the log and then some android re...

Eclipse ASTParser to parse only a java function?

Hi, I just wanna know using org.eclipse.jdt.core.dom.ASTParser if it is possible to parse only a java function? This is how I tried: I passed the code of a function to the ASTParser.setSource(char[] s) as follows: ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setKind(ASTParser.K_COMPILATION_UNIT); parser.setSour...