Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Example of org.eclipse.ui.editors.templates extension point?
Example of org.eclipse.ui.editors.templates extension point? [message #248174] Wed, 26 September 2007 20:41 Go to next message
Eclipse UserFriend
Originally posted by: doddsie.pacbell.net

Hi,

I would like to create my own set of templates that you can find at Preferences
> Java > Editor > Templates AND distribute them with out the user having
to import them manually.

Is there a way to import my templates with no manual action from the developer/user?

I found this extension point org.eclipse.ui.editors.templates but the documentation
is not all that clear what is needed. Seems like this would work.

Is there a "simple" example out there of this extension point to get me bootstraped?

Ideally, I could have my plugin look for an xml file in a special location
and then load them when the user intends to use the templates.

Thanks,

Dave
Re: Example of org.eclipse.ui.editors.templates extension point? [message #248211 is a reply to message #248174] Thu, 27 September 2007 11:45 Go to previous message
Eclipse UserFriend
David ddodd wrote:

> Hi,
>
> I would like to create my own set of templates that you can find at
> Preferences
>
>> Java > Editor > Templates AND distribute them with out the user having
>
> to import them manually.
>
> Is there a way to import my templates with no manual action from the
> developer/user?
>
> I found this extension point org.eclipse.ui.editors.templates but the
> documentation is not all that clear what is needed. Seems like this
> would work.
>
> Is there a "simple" example out there of this extension point to get
> me bootstraped?
>
> Ideally, I could have my plugin look for an xml file in a special
> location and then load them when the user intends to use the templates.

The simplest way is to put the templates in a plug-in using the
org.eclipse.ui.edtiors.templates extension point:

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/extension-points/org_eclipse_ui_e ditors_templates.html
This allows to specify/include the templates in an XML file.

Dani

>
> Thanks,
>
> Dave
>
>
Previous Topic:TDD Symposia on Eclipse Summit Europe
Next Topic:Java formatter
Goto Forum:
  


Current Time: Thu May 08 07:55:19 EDT 2025

Powered by FUDForum. Page generated in 1.27925 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top