Importing C Eclipse Project into Perforce - eclipse

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

Related

Can Eclipse and IntelliJ IDEA use the same workspace without conflict?

I'm using both IDEs for some projects and I was thinking of using the same "workspace" folder with both IDEs. Is there any known problems for doing this? Conflicts between IDEs or something?
Thanks!
Each IntelliJ project saves its setting within the project folder. With Eclipse, there is one common folder in "workspace" folder contains infomation about list of projects in this workspace.
It's safe to save using same "workspace" folder.
But the terminologies in 2 IDE are different, in Eclipse there are workspaces, under each workspace, there are multiple projects. But in IntelliJ there are projects and each project has multiple modules.
If your projects stand alone, IntelliJ project = Eclipse project. But if you have some projects relate to each other, IntelliJ project = Eclipse workspace, IntelliJ module = Eclipse project

Using maven generated sources in Eclipse

I have an application made up of a number of maven projects. I work on it in Eclipse. Some of the projects use Maven plugins to generate stub classes for web services etc.
When i import the projects into a new workspace I have to issue a maven generate sources command followed by attach source folders to build path on each project. The application i work on has more than 5-6 projects which require these steps.
Is there a plugin I can install in Eclipse to pick up the generated sources, or even one that generates the sources and updates the build path to save the manual steps?
I'm pretty sure the m2e plugin takes care of this automatically. m2e is included in the primary Java and Java EE packages of recent Eclipse versions, so you probably already have it. If you right-click on your project, and there is a Maven submenu, then the project is already managed by m2e. Otherwise, right-click and choose Configure > Convert to Maven project.
Well, it depends on exact maven plugin you are using.
generate sources
Before I considered that m2e connector would be needed for any non common plugin, like generator. But I came recently on some plugins (1), that do it without special m2e connector.
attach source folders to build path
For this part check build-helper-maven-plugin and answer to M2E and having maven generated source folders as eclipse source folders

Eclipse and MyEclipse Using Same project Different Settings

I am working on a java project. The developer who started working on it is pretty firm on using myeclipse and I am pretty firm on using eclipse. Is there a way I can use the project settings that would not conflict with MyEclipse. When I open the project in Eclipse, I see a lot of myeclipse jar files for Java EE and what not. He's not using maven.
You will need to keep your project folders private and only share the source. Both of you cannot use the same project metadata.
Sharing metadata will cause both of you pain. And even more when upgrading to newer versions of eclipse and reading old projects.
Our solution was to switch to maven, and NOT having any metadata in source control repository. The m2e plugin then generates exactly the metadata you need when you import the maven projects in Eclipse.
An added benefit was that suddenly our projects worked with Netbeans and IntelliJ without any extra effort.

Eclipse project structure ANT and MAVEN

I am trying to set up a project, but feel completely overwhelmed with lack of knowledge. In university we used netbeans which resolved project structure gently for us. As community leans towards eclipse I am trying to migrate there, but feel myself like a penguin not able to fly. I can't understand project structure where and what has to be added, do I have to define ANT or MAVEN manually in eclipse can they be integrated? Where to go ? Apache manuals are so complicated, why is that I can program in Java , but don't know the fundamentals, soo depressed, please anyone guide me. I find pieces on web, but seems can't build full picture in my head.
You have a couple of options. Basically, eclipse uses a workspace, which contains one .metadata directory used by the plugins and all of the project folders. Projects can then be things like java projects, PDE projects, PHP projects, etc.
There is maven integration in eclipse which I would use, http://www.eclipse.org/m2e/ It was part of Indigo, which released June 2011.
Set up your java projects in your workspace, and then use m2e to mavenize them, or use m2e to generate the java projects into your workspace.
maven provides a facility to create a new project with the required structure based on the type of project (jar, war, etc.).
You can do this or achieve it directly from Eclipse as suggested by Paul Webster, by installing the m2e plugin.
This structure can then be easily built using maven, as well as developed in Eclipse.

Using both netbeans and eclipse to edit a netbeans project

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, ...