Good morning, Giovanni.
The extension mechanism that is implemented in Kosmo allows to
incorporate new functionalities to the core base, but it can't replace
the funcionality that is already present at core without modifying it
(in general). You can modify the JUMPConfiguration class and change the
tools that are loaded into the program by modifying its contents.
Another possibility that we have used in some projects it's to add an
additional .jar to the distribution that contains the modified classes
(e.g.: the new JUMPConfiguration and your extending EditablePlugIn) and
change the .bat/.sh launch file to take it into account. E.g.:
SET PATH=..\dlls;%PATH%
start.\jre\bin\javaw -Djava.library.path="..\dlls;" -cp
.;./myclasses.jar;./saig.jar -Xmx800M
com.vividsolutions.jump.workbench.JUMPWorkbench -plug-in-directory ./ext
Note that the myclasses.jar must be declared before the saig.jar to
occult the common classes and use the defined at myclasses.jar.
Regards,
Giovanni Virdis escribió:
Good morning,
I have a question
I am working with kosmo and I have made some extension, but I have not
understood if it is possible to manage kosmo without to modify the
original project (saig-core) and only using the extensions. For
example, I want to extends the class "EditablePlugIn" with my class,
and I want that for some users it is not possible to execute the
modification of the layer.
I must directly modify the class “EditablePlugIn “so as to inhibit its
operations or I can make all by means of one my class?
If I succeed to manage all through the extensions also changing
version of kosmo in future I must not have problems or mistake?
How I can add my class for the modification of the layer in the
relative menu to the layer replacing the original class
"EditablePlugIn" without to modify the code of the project (saig-core) ?
Thanks
Giovanni
------------------------------------------------------------------------
_______________________________________________
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