Using both netbeans and eclipse to edit a netbeans project - eclipse

Hi Netbeans is the default IDE at my workplace. I want to use Eclipse to edit the Netbeans projects. How easy or difficult is it to do this. Can someone outline the steps involved for this.

You should be able to import an existing project into Eclipse by:
File -> Import -> Choose General -> Existing Projects into Workspace
It won't pick up your Netbeans settings however. You may need to set your project up manually in terms of a libraries, source location etc..
Alternatively, if you're using Maven and Eclipse m2eclipse you should be able to import a Maven project and have it pick up most of the settings.

Importing an eclipse project should be easy (for Netbeans 6.7): File->Import Project->Eclipse Project
Or create a 'project with existing sources' which is available for Java, ruby, ...

Related

Importing Projects into Eclipse + Python

How to import an Python project not created through Eclipse into Eclipse.
Using Eclipse Luna
-Shiva S
Follow these following steps...
First add pydev interpreter in eclipse Follow this link
Configure the pydev interpreter
windows->preferences->Pydev->Interpreter-Python
Then import the project File->import->General->Existing project into
workspace
The basic solution is creating a new project (just set the location of the new project to the existing sources).
The FAQ covers that: http://pydev.org/faq.html#PyDevFAQ-HowdoIimportexistingprojects%2FsourcesintoPyDev%3F if you have something more complex you want to do.

Configure PyDev for a project programmatically

I'm using PyDev for an Eclipse RCP. Is it possible to configure PyDev for a project programmatically? It doesn't seem to have an API through Eclipse extension points.
It seems I can create a .pydevproject from scratch and modify the Eclipse .project file in order to add the PyDev nature, but it seems an ugly hack.

Import project on eclipse using maven plug-in

I'm trying to import an existing project on eclipse using maven plugin m2eclipse. However, I don't know how to do it. I woulld aprreciate it if somebody can explain it to me.
Currently using eclipse 3.6
Many thanks,
file -> import -> existing maven project -> browse to your directory (the one with the pom.xml) and select your project in the projects window.

Eclipse pom.xml content assistant

I'm new to Eclipse. I'm using Eclipse Kepler to create Maven project, everything works fine except when i'm working with pom.xml the content assistant doesn't give me auto complete just like Netbeans does. Below is the screenshot from Netbeans
My question is can Eclipse be like that in term of gives me auto complete on pom.xml?
Do i need plugin for it?
thank you
There are basically 2 ways for doing that:
Refer to the XML's DTD/XSD in its header, so the simple Eclipse XML editor can help you in a minimal way (e.g., check well-formedness, offers Ctrl+Space assist, etc.).
A better option is to install m2e which is the official Eclipse Maven integration plug-in. It should be available through the Install new software... menu item by default, just search for it. It has quite a heavy support for Maven projects (specific editors, repo browsers, it does update the project configuration automatically, helps you select the dependencies, hanldes multi-module projects, makes easier to import Maven-based projects, etc.)
How to Setup Maven AutoComplete:
1) Download and install the maven plugin into Eclipse. I think the link is this http://www.eclipse.org/m2e/
2) In Eclipse, go to Windows tab -> Preferences
3) Got Maven folder from the left-hand menu. Make sure the three boxes I circled are checked. Click Ok
One of the boxes lets you do AutoComplete. I forget which one.
4) Right-click on your project and go to Maven -> Update Project.
5) You're now done! You should be able to do autocomplete by pressing Control+Spacebar:

Importing C Eclipse Project into Perforce

I have the Perforce plug-In in my Eclipse IDE. Now I want to import Eclipse C projects that is already in the Perforce server. However, I cannot build them. They do not get imported as a C project.
I observed the same situation for Java project. Looks like any project from perforce is imported as just the Project. So that to resolve the problem I used the following approach.
Create project from perforce
Create separate language-specific project and set it up so that it is created from existing sources.
Share project (in perforce plugin terminology) so this is under perforce control now
In my Eclipse, I can right click on the project and choose New --> "Convert to a C/C++ project (Adds C/C++ Nature)". See also this question: Adding a C/C++ nature to an Eclipse project