eclipse

Is there a right way to manipulate GoogleAppEngine security permissions?

I have a GoogleAppEngine application that is required to connect to another localhost server, but when I'm trying to do this from the server code, I get: java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve) I know that I can specify my additional security grant by using java virtual machine ...

Application bundle Mac OS X Leopard

I had a working application bundle on Mac OS X Tiger. I was easily able to just replace the jar file and everything worked as i made changes. I take that app bundle now, and when it is on Leopard, I get the error message along the lines of "Cannot open this application because it is not supported on this architecture". I assume this is...

Renaming contents of text file using Regular Expressions

I have a text file with several lines in the following format: gatename #outputs #inputs list_of_inputs_separated_by_spaces * gate_id example: nand 3 2 10 11 * G0 (The two inputs to the nand gate are 10 and 11) or 2 1 10 * G1 (The only input to the or gate is gate 10) What I need to do is rename the contents such that I eliminate th...

How to control the size of MasterDetailsBlock component in Eclipse RCP?

I have editor that is using MasterDetailsBlock, where the master and detail part contains a Section each as direct child. Master's section contains a Table and a few buttons and Detail's Section contains a couple of StyledText. I am using FormLayout to control I am trying to fix the size of the MasterDetailsBlock which currently is too ...

Who loads javax.swing.* classes in Equinox osgi container?

I read some equinox code and doc. I came to understand that, at present, only class loading for java.* packages are delegated to the parent classloader(given that i have not modified org.osgi.bootdelegation property, which by the way seems to be null). Then who is loading the javax.swing.* classes. I have not mentioned it anywhere in the...

How to resolve "Publishing failed: Error creating zip file XXX.jar: duplicate entry: .svn/entries"

I have a modular Dynamic Web Project in Eclipse. When I try to publish this project to my embedded Tomcat server, I get this error: Publishing failed Error creating zip file XXX-web.jar: duplicate entry: .svn/entries duplicate entry: .svn/entries Error creating zip file XXX-domain.jar: duplicate entry: .svn/entries duplicate entry: .svn...

Howto hide a preference page in an eclipse RCP

I have an eclipse rcp and want to hide the security and help prerence pages. How can I do that? ...

Is there a tool to convert my GWT RemoteServiceServlet into the correct Service and ServiceAsync interfaces?

I'm working on a GWT project and I find it very tedious to have to add a function to my servlet, then copy and paste the function signature into my Service interface, then copy and paste it into my ServiceAsync interface and change the return parameter to be a callback. Is there a tool or a setting where I can just add public methods to ...

Eclipse "Open Type" dialog restricted to a particular interface

I'm trying to create a JavaUI.createTypeDialog() which restricts the user to selecting only types belonging to a particular interface. How could I do this? ...

Can I update the HTML files using Wicket and Eclipse without recompiling the classes?

I'm using Eclipse and Maven-2 and I'd like to be able to edit my HTML files without "it" (not sure if it's Eclipse or Maven) recompiling my application. I understand that usually Eclipse tries to do a hot replace of new compiled Java classes with Eclipse and Tomcat. Can I use something like this? getResourceSettings().setResourcePollFr...

Less known but useful features in Eclipse

I have been using Eclipse for a long time, the feature that is less known but very useful is the Scrapbook Page, that allows you to execute sections of the Java code without having them to be complete classes. For example, if I need to execute this simple for-loop I can do this by creating a scrap page (File->New->Other->Scrapbook Page) ...

Eclipse, is there a reason to chose it over emacs or vi?

As an old fart who has settled into using emacs whenever I can, I hear about Eclipse every so often. Is there any real reason to use Eclipse and give up all the knowledge of emacs and packages, plus the macros I wrote for it? ...

Tomcat web apps location question

Hello, I am q java web apps developer. I am using Eclipse+Tomcat. Currently I am working on about 10 web apps. Here is my problem: My web apps are not all placed under a single folder, they are located in different places. To test my changes I have to export my web apps into war files or to move the updated files manually every time s...

Eclipse auto-generation of serialVersionUID with each change

Hi, Eclipse nicely generates the serialVersionUID for me. But this seems to be passive code generation as the id won't be automatically updated as I change the file unless I do the generation again. Is there some way to have the serialVersionUID being generated every time I change the contents? The "Save Actions" don't seem to include...

Can we contribute a new plugin.xml to ExtensionRegistry

I have a some additional xml files(containing standard eclipse extensions) that lie outside the bundle. Is there a way that I could contribute the extns/extnpoints in those files to the platform's extension registry? I tried `Platform.getExtensionRegistry.addContribution(..)` But the method takes a masterToken object, which I dont h...

Unable to publish web app: SpringSource Tool Suite problem?

I have an existing, fully functional Spring web application based on Spring 2.5.6 - developed using SpringSource Tool Suite 2.1.0.SR1. Because I'd like to use REST I decided to upgrade to Spring 3.0.0.M4. After editing the dependencies in pom.xml and changing my code to reflect the API changes in Spring 3.0 I tried to publish my web app...

Dynamically changing the tooltip of a draw2d figure

We are currently using Eclipse Draw2D/GEF for an information page describing a process in our application. This basically consists of a matrix of large squares, each containing a matrix of smaller squares. We originally had all the squares as GEF objects, but because of the large volume of them being shown, we found that this did not sca...

Which projects are on the list of JAVA EE Module Dependancy.

Hi, I'm trying to include a project within another project as EE Dependency in Eclipse. For some reason, the project I want to include is not displayed in the list of possible projects. How does Eclipse decide which projects to use there? Thanks! ...

Eclipse compiling problem

Is there a way to set Eclipse report compile errors same as javac? I stumble upon few cases where something is working in eclipse, and cannot be compiled with javac. I understand that eclipse uses ECJ and that cannot be changed, but can it anywhere be set that everything that cannot compile with javac be a compile error in Eclipse? (sin...

Umlaut in Java SAX Parser

Hello everybody! I am currently having trouble with German umlaut values in a XML document I received. It displays / saves the value as a "ü" instead of a "ü". The XML Encoding is set to UTF-8 which should be capable of displaying umlauts. Also I couldn't find any option to set a locale on the SAX parser. Is there any other way I c...