Good morning again, Giovanni.

Look at the previous mail that I've send to you and change your code. Anyway, the error that you're taking it's caused because with the newInstance() method it's calling a parameterless constructor, and your class doesn't have any.

Regards,

Giovanni Virdis escribió:

The error comes generated in the class PlugInManager in the method

* private * * void * loadPlugInClasses( List plugInClasses ) * throws * Exception {

        * for * ( Iterator i = plugInClasses.iterator(); i.hasNext(); ) {

            Class plugInClass = (Class) i.next();

            PlugIn plugIn = (PlugIn) plugInClass.newInstance();

plugIn.initialize( * new * PlugInContext( context , * null * , * null * , * null * , * null * ));

        }

    }

The line that generates the error is that one evidenced

My class

* public * * class * DisegnaPoligonoPlugIn * extends * DrawPolygonTool * implements * PlugIn

* public * * class * DisegnaPoligonoExtension * extends * Extension

Perhaps I would have to manage the button in an other way?

------------------------------------------------------------------------

_______________________________________________
Kosmo mailing list
[email protected]
http://lists.saig.es/mailman/listinfo/kosmo

--

Sergio Baños Calvo

Jefe de desarrollos
Sistemas Abiertos de Información Geográfica, S.L. (SAIG S.L.)
Tlfno. móvil: 685005960
Tlfno. fijo: (+34) 954788876

E-mail: [EMAIL PROTECTED]

_______________________________________________
Kosmo mailing list
[email protected]
http://lists.saig.es/mailman/listinfo/kosmo

Responder a