1
голосов
2ответов
6237 просмотров

How to create EJB 2.1 beans in Eclipse 3.5

I am not able to create EJB 2.1 beans using a wizard in the latest version of Eclipse. I only see options to create EJB 3.0 beans. I selected 2.1 as the 'EJB Module Version' while creating the "EJB Project". But now when I want to create a session bean, I don't see any option to create a 2.1 bea...

1
голосов
1ответов
336 просмотров

Move common include files to a separate directory, yet keep them easily editable within eclipse?

We are using Eclipse+CDT+SVN(Linux). How can we have some common header files in a separate include directory, which is also in the SVN, but not in the project specific subdirectory. The main goal would be to create some common, reusable code for multiple projects and to be able to easily edit/c...

1
голосов
1ответов
31 просмотров

Monitoring Eclipse Window Acceptance

I know that the Eclipse Foundation has a program within Eclipse (I guess it is a plugin) that can monitor the user behaviour. E.g. What window was used how many times. I forgot the name of that program. Is it possible to use the plugin in a company to monitor how the programmers use Eclipse?

1
голосов
1ответов
3158 просмотров

Undefined symbol errors when linking of C++ project using Eclipse

I compiled one C++ project which transplanted from another project, and there are some undefined symbol warnings while linking after compiled. The point is that these warnings are so strange. They are divided into 2 types: Type 1: dld: warning: Undefined symbol **'__record_needed_destruction'**...

7
голосов
2ответов
6492 просмотров

Java - Eclipse: Externalize Strings?

It looks like the "Externalize Strings" feature takes everything, makes a Messages class, and a .txt file in which to store the Strings themselves. This is interesting, but I've got another way to store constants: public final class Constants { //for parsing commands public static final ...

0
голосов
1ответов
2129 просмотров

Flex compiler error: "please put definition in a package" for classes that ARE in a package

This is with Flexbuilder 3.2, Eclipse 3.3.2. I am moving my development environment to a new machine. Actionscript classes that compiled in the old environment now get a compile error: A file found in a source-path must have an externally visible definition. If a definition in the file is mean...

14
голосов
3ответов
10050 просмотров

Defaults for Eclipse run configurations

I'm writing a Java library with a lot of jni code. Pretty much every test case needs to load my jni dll, and I have a lot of test cases. In order to run the test cases out of Eclipse's Junit launcher, I have to create a run/debug configuration and edit the VM arguments and environment variables. ...

1
голосов
1ответов
887 просмотров

Reusing Eclipse run time variable input

I am trying to create an eclipse runtime tool to diff 2 files. For my specific instance the files have the same name but are comparing versions. I created a runtime external tool configuration using p4merge using these arguments: gen\${string_prompt:File Name} gen2\${string_prompt:File Name} ...

13
голосов
2ответов
1613 просмотров

eclipse change member order shortcut (like intellij)

Intellij has a shortcut for moving the current method internally in the class ( I think it is Ctrl+Shift+{Up or Down Arrow}) I would like to know if Eclipse has the same functionality. I could mark the whole method and then alt-arrow to move it, but then it would move one line at a time. I woul...

1
голосов
2ответов
361 просмотров

hiding tab in pde

I have an editor (emf editor). And I only want one of the tabs in the editor. If I do not add the other pages, I still see one tab in the tab selection. Can I hide the tab, so the user will not see it is a multipageeditor?

1
голосов
1ответов
763 просмотров

Using IDE plug-in in an Eclipse RCP application?

I'm developing an Eclipse RCP based application, that uses the resource model of eclipse (workspace, projects, resources, etc.). For basic usage of the resource concept, there is no need to depend on the IDE plug-in. But many dialogs, wizards or views I want to use are inside this plug-in. I read...

2
голосов
1ответов
195 просмотров

Obtaining the Eclipse text font

How do I get a Font object representing the font set as the "Text Font" in the Eclipse Preferences -> General -> Appearance -> Colors and Fonts? I'm implementing a table-view where one of the columns is supposed to contained fixed-width text.

0
голосов
1ответов
178 просмотров

FDT code assist: cannot select option

I am making the step from Flex Builder to FDT. Now I have configured the content assist to trigger at ".:_abcdefghijklmnopqrstuvwxyz" - which works close to great. I get all the options presented to me. However when I try to select one by double clicking the item or hitting enter - the selectionb...

1
голосов
2ответов
1353 просмотров

XSLT - how to parse xml with recursive elements to Eclipse toc.xml?

I have the following XML: <HTML> <HEAD> <META name="GENERATOR" content="Microsoft HTML Help Workshop 4.1" /> <!-- Sitemap 1.0 --> </HEAD> <BODY> <OBJECT type="text/site properties"> <param name="FrameName" value="contents" /&gt...

10
голосов
6ответов
9747 просмотров

Cannot run/debug Java applications in Eclipse (JavaTimeZone issue)

I'm trying to get started with Eclipse/Java/Scala on a MacBook. The installed JDK was 1.5. The SDT plugin for Scala requires 1.6 which was included in an OS update, but I also manually installed a package from Apple to update 1.6. The problem is that I cannot run anything from Eclipse. I always g...

32
голосов
5ответов
69385 просмотров

build.xml in Java project

What is the file build.xml? I was wondering if it is a possibility to import this project in Eclipse or Netbeans using this build.xml. I tried to import the project but I get some errors since one part is created using J2ME and the other J2SE and I guess this file should be the configuration.

40
голосов
3ответов
27953 просмотров

Why does eclipse create a .settings directory?

i have noticed that eclipse recently creates a .settings directory with 1 file inside and i am wondering if i should add this to version control? SVN? also, is this new? i have been using eclipse for quite a while, but never noticed it. the contents of the file in the directory is this: #Sun ...

0
голосов
3ответов
3499 просмотров

creating jar file

can some one explain me how to crate jar file. my source folder has various sub folders and image files. you can see images explaining source folder structure from following url http://img63.imageshack.us/gal.php?g=capturev.png. when jar is created using eclipse export jar function, it only inc...

1
голосов
2ответов
371 просмотров

how to add menu to section title?

I have a section with TITLE_BAR, and i try to add a menu to the section header (like in the PDE editors). All I could find is the context menu.

0
голосов
2ответов
400 просмотров

Eclipse: how to run plugin test as part of local build

Due to incomplete understanding of eclipse infrastructure I have one problem. Historically we have one ugly thing in our build procedure. It looks like following: After eclipse builds entire workspace there is one incomplete thing in local build of plugins. It is some data file which is currently...

2
голосов
2ответов
629 просмотров

Watchpoints w/xDebug in Eclipse PDT?

Has anyone gotten watchpoints to work when debugging PHP with xDebug and Eclipse? The way I understand it, I'm supposed to be able to select a watched variable in the expressions view or select a variable in the Variables view during debugging, and then select Run->Toggle Watchpoint. But Toggl...

7
голосов
2ответов
7693 просмотров

Code analyzers: PMD & FindBugs

1. Regarding PMD: 1.1 How do I set the PMD checks, to ignore some of them, like "Variable name is too short, or too long", "Remove empty constructor, etc" - and if I do that, another warning appears that says the class must have some static methods. Basically, the class was empty, for later deve...

0
голосов
2ответов
1304 просмотров

Eclipse (3.4) will not load Flex Plugin

I installed Flex Builder plug in (3.2) into Eclipse 3.4. The installation had no errors, but I get this error when trying to start a new Flex Project. The selected wizard could not be started. Plug-in com.adobe.flexbuilder.apollo.ui was unable to load class com.adobe.flexbuilder.apollo.ui.wizard...

3
голосов
5ответов
3548 просмотров

Eclipse settings affect Maven command-line build?

Most of our projects are built with Maven, and some of them use classes in the com.sun package. That's a bad practice, but there's not much I can do about it. For a while this didn't seem to be a big problem. Then, at some point, builds started failing for me with errors such as the following: ...

15
голосов
4ответов
6561 просмотров

How is Eclipse Mylin useful?

In my Eclipse Preferences -> Java -> Editor -> Content Assist -> Advanced settings, I see the following: Java Non-Type Proposals Java Proposals Java Proposals (Task-focused) Java Type Proposals JPA Proposals (is always empty for me) PDE API Tools Proposals (gets skipped when checke...

1
голосов
3ответов
1022 просмотров

cool debugging of object

I just had an idea that I wonder whether is possible in java. Let's say when doing debugging using eclipse or netbeans, you could record an object and save it. Then when going through the second round of debugging, save the object again. Now you could compare the first object recorded with the se...

9
голосов
2ответов
9495 просмотров

Eclipse plugin to find out unused methods in a class/package

I am looking out for an eclipse plug-in that could be used to detect unused methods or classes across a project. Does any one know a efficient good to use plug-in of that kind?

0
голосов
4ответов
86 просмотров

How can I find objects that are in BOTH arrays and promptly add it to another array?

How can I create a method that recieve two arrays as parameters and return an array filled with the items that were in both arrays? Input (Array1 passed in method): ["Lisa", "George", "Mario"] Input (Array2 passed in method): ["Luigi", "Susan", "Lisa"] Method should return: ["Lisa"] I cannot u...

2
голосов
1ответов
18810 просмотров

Eclipse WTP: "The import ___ cannot be resolved for" error in a JSP file for a class defined in project

A Visual Studio user struggling w/ Eclipse... I imported a set of servlets/JSPs into a project in Oracle Workshop for Weblogic. /page.jsp has the following import statement: import="com.foo.bar.*" Eclipse is displaying an error: The import com cannot be resolved. The class that implem...

4
голосов
2ответов
412 просмотров

Using PDE build, p2 and AdvancedInstaller together

I am building an Eclipse RCP application with the command-line version of PDE build in Eclipse 3.5.1. Then I use AdvancedInstaller to create the installer for the RCP product. I think the context would be similar with InstallShield and similar packagers instead of AdvancedInstaller. If I incorpo...