Community
Participate
Working Groups
Build ID: (3.4M3) - I20071101-2000 Steps To Reproduce: There should be a better/simpler way to create sample projects in eclipse in a way similar to what most eclipse projects have. Unfortunately the only extension point that I could find was "org.eclipse.pde.ui.samples", and the API says: "This extension point is currently provided for internal Eclipse SDK usage only. It should not be used for anything else except Eclipse SDK examples." Would it be possible to move this extension point somewhere where it has lesser dependencies on PDE or JDT ? This would be a really useful extension point for creating example projects. I'd like to contribute a patch to do this, in case someone could provide on some pointers. Unfortunately I cant get the extension point "org.eclipse.pde.ui.samples" to work either.
Moving to the UI team for a comment.
Created attachment 85030 [details] sample plugin that can create sample plugins See file>new>other>Example Category>name Looking for initial feedback, this still needs some polish.
Ketan, you are asking for a way to contribute a sample project that is not really a PDE project, right? Currently, PDE has its own custom framework to contribute templates, but if that is what you are asking for, we would need to come up with some more general. Reassigning to UA for now since this request appears to be more general than PDE's scope.
(In reply to comment #3) > Ketan, you are asking for a way to contribute a sample project that is not > really a PDE project, right? Currently, PDE has its own custom framework to > contribute templates, but if that is what you are asking for, we would need to > come up with some more general. Yes, I'm talking about creating *any* kind of a sample project, not just Java. The PDE project framework is slightly more complex. Being able to extract a zip file into a project seems to be a good enough for most Java projects (and a maybe few PDE projects). > Reassigning to UA for now since this request appears to be more general than > PDE's scope. >
I think this falls under plugin development.
Seems to me like this is a nice request that would be looking for something similar to the PDE template functionality, but for any type of resource/project, not just for adding extensions (and example resources) to plugin projects. I dearly hope this doesn't become a 'pass-the-buck' enhancement, but to me, given the generic IDE / resource nature of the request, this should belong with Platform/IDE or Platform/Resources. Thoughts anyone?
Ketan, As regards your sample, I'd recommend dropping the BREE down from 1.6 to 1.5 (or 1.4 if you're not using any 5.0 features). Also, I quite like the technique that the PDE templates use, which uses a directory structure for the resources rather than having an embedded zip. IMHO :-)
(In reply to comment #7) > Ketan, > > As regards your sample, I'd recommend dropping the BREE down from 1.6 to 1.5 > (or 1.4 if you're not using any 5.0 features). Ack on that, I'm using JDK 1.6, and that's probably why the BREE bumped up to 1.6. > Also, I quite like the technique > that the PDE templates use, which uses a directory structure for the resources > rather than having an embedded zip. IMHO :-) I did not quite understand that. AFAIK, PDE uses zip files as well. The existing solution works just fine for me for most practical purposes. I don't mind cleaning it up a bit in case this makes though into eclipse. Someone needs to let me know if this contribution makes sense in the context of eclipse, so far I've only seen this bug being tossed from one component to the other.
If you have a look at the PDE template (in the org.eclipse.pde.ui.templates plugin) you'll see the resources that make up the content copied as a result of applying the template are in directories of the format 'template_X.X' (n.b. the alterations to the underlying plugin model are performed by code though rather than by copying files). For more info you may also want to have a look at the following article: http://www-128.ibm.com/developerworks/library/os-eclipse-pde/index.html?ca=dgr-eclipse-1
So this problem is as ancient as Eclipse is. The real issue here is that we can't decide on a standard templating framework to really make it easy to create example projects. Whether it is JET, JET2, XPAND, whatever, there are tons of solutions out within Eclipse land. I'm going to dupe this one to the original bug. If you want it, please vote on the bug and raise awareness. A general templating solution and wizards to create them are on my wishlist for Eclipse 4.0 *** This bug has been marked as a duplicate of bug 36960 ***