Registering a Java Visual Editor Proxy for Custom Components

JDeveloper supports lightweight views of heavyweight components that you register for use by the Java Visual Editor.

To register the proxy class:

Add a key-value definition to oracle.jdevimpl.uieditor.UIEditorAddin section in the JDeveloper\lib\addins.xml file as follows:


<property>
     <key>PREFIX.CLASS_NAME</key>
     <value>PROXY_CLASS_NAME</value>
</property>

    

where:

For example; if you were to register a hypothetical heavyweight component implementation jdeveloper.concreteProxy.java.awt.Component using the oracle.jdevimpl.uieditor.proxy.Component proxy class, the property to add would look like:


<property>
     <key>jdeveloper.concreteProxy.java.awt.Component</key>
     <value>oracle.jdevimpl.uieditor.proxy.Component</value>
</property>    

Note that in order for the Java Visual Editor proxy class to be available from within the IDE, so that it will appear can be added to the Component Palette, the proxy class must be added to the IDEClasspath as a directive in JDeveloper\bin\jdev.conf file. For example:

AddJavaLibFile <myUiProxies.jar>

where, myUiProxies.jar contains the compiled class file for your Java Visual Editor proxy implementation.


About Java Visual Editor Proxy Classes