From: <Hov...@ly...> - 2003-12-25 08:05:59
|
Here are my suggestions to simplify the config and make it more precise: in part and device tags e.g.: -------------- <device name="diagramEditor" sourcename="graphEditor.xml" > <terminals> </terminals> <part id="1" type="part" name="pGraphEditorUI" source="pGraphEditorUI.xml"/> <part id="2" type="part" name="pToolBarUI" source="pToolBarUI.xml"/> <part id="3" type="part" name="VCBProxy" source="pNetBeansUI.xml"/> ----------------- I am suggesting to remove sourcename, and as name use fully qualified name: <device name="org.vcb.diagramEditor" > <terminals> </terminals> <part id="1" type="part" name="org.vcb.pGraphEditorUI"/> <part id="2" type="part" name="org.vcb.pToolBarUI""/> ... ---------------------- The framework will look under classpath org/vcb/diagramEditor.vcb with standard extention .vcb To read the file we will use ClassLoader.getResource On diagrams we will still use short names although with possibility to use full names. in part config files: <part name="VCBProxy" type="SYSTEM_VIEW" classname="org.vcb.parts.view.VCBProxy" sourcename="pNetBeansUI.xml" > we can have <part name="org.vcb.parts.view.VCBProxy" type="SYSTEM_VIEW" > when classname skipped then it use the same path to get both class and vcb files. Although if they are different then classname can be used: <part name="org.vcb.VCBProxy" type="SYSTEM_VIEW" classname="org.vcb.parts.view.VCBProxy" > Best Hovhannes |