Hi Ede,

AFAIK this should be simple. Here is an example from a plugin of mine. 
You have some member variables in a class:

    ...
    private String name = "";
    private String className = "";
    private String url = "";
    private String host = "";
    private String port = "";
    private String databaseName = "";
    private String user = "";
    private String password = "";
    ...

And the java2xml file for such a class:

<?xml version="1.0"?>
<root>
    <element xml-name="name" java-name="name" />
    <element xml-name="className" java-name="className" />
    <element xml-name="url" java-name="url" />
    <element xml-name="host" java-name="host" />
    <element xml-name="port" java-name="port" />
    <element xml-name="databaseName" java-name="databaseName" />
    <element xml-name="user" java-name="user" />
    <element xml-name="password" java-name="password" />
</root>

That's should be enough. The java2xml file must be in the same directory 
as the class. Let me know if you have problems or show me your code.

Matthias

> i'd like to make the selected skin sticky across oj restarts. but trying to 
> use the persistent backboard results in
>
>
> com.vividsolutions.jump.util.java2xml.XMLBinder$XMLBinderException: Could not 
> find java2xml file for 
> com.vividsolutions.jump.workbench.ui.plugin.skin.InstallSkinsPlugIn$1 or its 
> interfaces or superclasses
>       at 
> com.vividsolutions.jump.util.java2xml.XMLBinder.specElements(XMLBinder.java:230)
>       at com.vividsolutions.jump.util.java2xml.Java2XML.writeChildT....
>
> is anybody familiar with the persistent blackboard and can give me a quick 
> tutorial how to create the file missing?
>
> thanks.. ede
>
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second 
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>   


-- 

 _ __ ___ _________________________________ ___ __ _
 
  Technologieconsulting
  Matthias Scholz
  Siebigeröder Str 17a
  06308 Klostermansfeld

  T +49 34772 34150
  E m...@jammerhund.de
  W www.openjump.de
_ __ ___ _________________________________ ___ __ _


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to