|
|
|
|
|
|
|
|
Re: How To Programmatically Create An HTML File Using The Eclipse Standard HTML Template [message #369125 is a reply to message #369116] |
Tue, 28 July 2009 14:00  |
Eclipse User |
|
|
|
Originally posted by: runzhou.li.gmail.com
I see, I'll take a look at how content type is done, and how to make use of
it.
Thank you for your valuable help :)
"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:h4naqs$j2k$1@build.eclipse.org...
> Runzhou Li wrote:
>> I'm also trying to avoid using internal classes, so about creating my own
>> template, say I create a template through
>> "org.eclipse.ui.editors.templates -> template" called my_html_new but
>> instead of creating my own contextType, I reuse html_new as
>> contextTypeId. How can I get access to this template and use it to serve
>> my original purpose?
>
> Unless you want your template visible in our wizard, content assist, and
> preference page, there's no reason to use an HTML context type--it's
> perfectly fine to declare your own. I didn't work on this myself, so
> there's not a lot of advice I can give past examining how it's implemented
> in our plug-ins and those from the Platform.
>
> One piece of advice I *can* give is to avoid accidentally declaring the
> same ID for a context type as anyone else. JSDT has a bug open due to its
> contexts colliding with those of JDT (266680), causing unpredictably
> incorrect behavior in the preferences UI and content assist when both are
> installed.
>
> --
> ---
> Nitin Dahyabhai
> Eclipse WTP Source Editing
> IBM Rational
|
|
|
Powered by
FUDForum. Page generated in 0.29328 seconds