Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » plugin validation
plugin validation [message #463951] Tue, 20 February 2007 21:42
Eclipse UserFriend
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
Previous Topic:Views vs Editors
Next Topic:Missing launcher icon
Goto Forum:
  


Current Time: Wed Mar 26 08:23:50 EDT 2025

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

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

Back to the top