|
Re: Mandatory snippet variable values? [message #171526 is a reply to message #171511] |
Fri, 16 June 2006 21:14 |
|
Malcom Zung wrote:
> Is there a way to have the Snippets view variable replacement dialog
> issue a warning or error if the user does not fill in a value for a
> Snippet variable? What we'd like to create are essentially mandatory
> variables that the user must fill in before the Snippet can be inserted
> into the editor.
No, there is no support for declaring a variable as being required.
The extension point does allow you to specify a default value,
though, so that barring the user clearing it, a value will be
present. If that isn't enough, you'll need to either subclass the
DefaultSnippetInsertion dialog to provide a UI that enforces that,
or open a feature request:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols&component=wst.common&short_desc=[snippets]
--
- Nitin
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Powered by
FUDForum. Page generated in 0.02659 seconds