Eclipse - New Project - eclipse

I need to modify project creation in eclipse. I would like to add my own project creation. For example, when developer selectes File->New->Project, I want my option (i.e, XYZ Java Project) under to be available. Is this possible ? If yes, i am looking for some direction to begin with ?
Thanks.

To begin with you need to contribute your own Eclipse Plug in. Download Eclipse plugin developers IDE from this Location.
You can contribute a Custom Project Wizard through Extensions.
Define your Project Nature
For reference you can check this example Create a Custom Project in Eclipse – New Project Wizard: the Behavior
Hope this helps !!

Yes you can. A robust way to do this is to make an eclipse plugin so that it gets added to the menu. I was just looking into this myself a couple of days ago and this is what I found.
Here are some links:
O'Reilly
Better yet though, let me just show you an answer about this: https://stackoverflow.com/a/299316/879485

If you use Maven you can have a look at archetypes. Maven also has the ability to create Eclipse projects. With this you should have all the tools necessary to automate whatever project layout you need to have.

Related

Create plug-in that creates a snapshot of the source code currently opened on editor - Eclipse CDT

I need to create a plug-in for Eclipse CDT that sends a "snapshot" of the source code of the currently opened editor each time the code is "built".
I am already capable of doing it each time the user presses a custom button created by me, but it would be great if it could be done when the "standard" "build" action is performed.
Do i need no create a plug-in of the type "builder"?
I am using Eclipse 4.4.0...
Can someone help me?! (Sorry for some english mistakes... :( )
One solution would be to create your own custom "Builder". Instead of actually building the code, it would invoke the functionality you already have.
For information on how to use the eclipse build system, please have a look here: https://wiki.eclipse.org/Eclipse/FAQ/How_do_I_implement_an_Eclipse_builder%3F.
Also, this website goes into more details about building in eclipse: https://www.eclipse.org/articles/Article-Builders/builders.htm. However, I think that the first one should do.
As a side note, this works with any kind of eclipse project (JDT and CDT). The build described there is common to all flavours.
Hope it helps,
-Caius

How to define my own "Dynamic Web Project" wizard?

Eclipse Indigo has a "Dynamic Web Project" wizard(File->New ->Other->Web->Dynamic Web Project)
I am not familiar with the plugin development, but I want to create a wizard like "Dynamic Web Project"? Can anyone tell me how to do that? Any tutorial step by step? more detailed more bettor.
Thank you!
If you want "to create a wizard like "Dynamic Web Project"", the Vogella's tutorial won't help much. And any other tutorial as well. Oh, yes, they will help a bit in understanding the process. And how to make pages. But the example primitive wizards will be of no practical use to you in creating the whole real wizard.
You need to get the "Dynamic Web Project" wizard source from plugins view. It is very probable you haven't imported these sources yet. Do it (file-import-plugin development - plugins and fragments ... And set import from repositories!). After that copy the sources of the named project into your project, change its "outer" name, as it shows itself and try if it runs. Make it run.
After that adapt it to your needs by small steps, checking if it continues to run and is doing what you want.
Don't try to understand everything you see there, but try to understand what you are changing.
Feel free to ask - I have managed the same task (with another wizard) just now and I do remember the process yet.
Here's a good tutorial on creating wizard in eclipse:
http://www.vogella.com/articles/EclipseWizards/article.html
go to the link:
http://www.vogella.com/articles/EclipsePlugIn/article.html

How to set up customized project type?

I want to ask how to create a customized project type in Eclipse. For example, when I create my project, a project with some built-in read-only folders will appear and in these folders, some files are added. Any help will be appreciated.
Best regards.
You have to create a New project wizard using the extension point org.eclipse.ui.newWizards.
Then in the implementation you could rely on an existing wizard (look the plug-in spy to get the contributor plug-in of the wizard you are using - select the contribution of the first page in the New wizard, and press Alt+Shift+F3), and override the performFinish method to create your own content. However, you could also create your brand new wizard.
For creating the project/contents, you have to use the Eclipse resources API. A quick tutorial is included in the Java AST tutorial of Lars Vogel - it is Java specific, but has some information about creating files/folders.

To modify a core eclipse plugin

In order to modify an eclipse plugin, what are the steps to find its editable code ?
I read and debug source provided with eclipse distribution but to try a fix in org.eclipse.jdt.internal.corext.codemanipulation behavior I need to make it editable.
Well, the source repository is available at eclipse.org, the plugin compiled with the source should be available from the standard eclipse update site.
I'm guessing you are considering changing the source, recompiling and using your plugin instead of the standard one? There is a different way to change functionality, its with fragments. For example, look at a question I asked earlier, follow the links in my text and Andrews answer for more information.

Grouping Files in Project Explorer in Eclipse

I am newbie to Eclipse, I am planning to use it for AVR development with WinAVR and gcc.
The feature I am looking for is the grouping of different files in the project, like all headers together, all source files together and all files excluded from the build together etc.
I tried AVR Studio from Atmel, it has this grouping feature but it lacks several other features which Eclipse supports. Any help to configure Eclipse Project explorer to display the project files in this way would be appreciated and helpful for me to decide the IDE to use.
Note: I know that I can manually add different folders for each of these groups and move the files, but that moves the physical files, and breaks the relative path in the code, and other comilers/IDE's. I am looking for logical grouping of files.
Unfortunately there is no general way for a user to configure the grouping in the Project Explorer, the grouping is setup based on the code that controls the content (i.e. CDT, JDT, etc). I think it would be interesting to have this feature, but it's not clear the UI that can be used to specify it. You are welcome to submit an enhancement request to add this to the Eclipse Platform UI project. And giving an example of how it's done in another product would be helpful.
Thanks Francis, looking at your profile I think I found the right person to solve my issue :)
I have opened it as a bug (as I could not find a feature request in bugzila) Bug 296514 - Logical Grouping Files in Project Explorer in Eclipse
I have attcahed screenshots of both AVR Studio and Eclipse project explorer. That should give you an idea of what kind of UI features I am requesting. I can difinetely provide more information if you want.
I think what you are looking for can be done with Working Sets.