plugin validation [message #463951] |
Tue, 20 February 2007 21:42 |
Eclipse User |
|
|
|
Originally posted by: j.b.dietrich.massey.ac.nz
I am trying to understand how plugin validation works. When creating an
extension point schema I can specify the type of attributes plus some
contraints. For instance, I can define an attribute “class” of the type
“java” implementing a certain interface, let’s say "java.util.Comparator”.
Perhaps somebody can help me with answering the following questions:
1. Where is this information processed and used for validation?
2. Can I register my own types and constraints (e.g. for XML documents
instantiating a certain schema).
I have played around with the settings in Window -> Preferences ->
Plugin-Dev -> Compiler and switched validation on in the launch
configuration – this seems to have no effect. I.e., I can launch the
application without error message even if the plugin does not provide
the correct class and I only get an exception at runtime when I read the
class attribute and try to load and instantiate the class with the
respective name and cast the result to “java.util.Comparator”.
Any help is appreciated! /Jens
|
|
|
Powered by
FUDForum. Page generated in 0.03054 seconds