[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[ve-dev] Disabling swing Palette
|
Hello,
We have the following issues with regards to our ULC VE plugin:
1. Trying to disable Swing Palette:
We implemented the extension point:
<extension
point="org.eclipse.ve.java.core.contributors">
<contributor
class="com.canoo.ulc.visualeditor.ULCVisualEditorContributor"
container="ULC_CONTAINER">
</contributor>
<palette
container="ULC_CONTAINER"
loc="first"
categories="palette/ulcbeanscats.xmi"
plugin="com.canoo.ulc.visualeditor">
</palette>
</extension>
ULCVisualEditorContributor implements IVEContributor as follows to remove
all Swing palette.
public boolean contributePalleteCats(List currentCategories, ResourceSet
rset) {
// remove the palette categories of the plugins (i.e. the VE plugin) on
which ulc ve plugin depends
currentCategories.clear();
return true;
}
The arg currentCategories contains all the Swing and Awt palette categories.
This works fine in the Plug-in Development environment. However, it does not
work when the ULC plugin is installed on a separate Eclipse installation.
Question: Is this a correct way of suppressing Swing palettes? If so why
does it not work outside of plugin dev environment?
2. As discussed earlier, we would like to disable/uninstall/stop running ULC
VE plugin if the license for it is invalid.
Alternatively, in the VE, is there a way to disable the canvas, the bean
tree and code generation?
Thanks and regards,
Janak & Sibylle