getSimplePanel never called in LayoutUI plugin
Bug #880601 reported by
chunky
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gephi |
Confirmed
|
Low
|
chunky |
Bug Description
I'm working on a Layout plugin, here: http://
If you download the code, you'll see I have a class "GraphvizUIPanel", one of which is instantiated when Graphviz.
According to the javadoc for LayoutUI, if getSimplePanel returns something other than null, then that will be used in place of the simple properties dialog. [several of the options I have in my layout plugin are best expressed as combo boxes containing strings, something that properties aren't conducive to, hence I really would like this feature]
To post a comment you must log in.
Here's a simple patch that implements the feature.
I edited LayoutPanel in the DesktopLayout module, and added another panel called "layoutProvided Panel", exactly the same as the propertySheet.
Then: anel. layoutPrivdedPanel is shown, and propertySheet is hidden.
1) If a panel is provided by the plugin from getSimplePanel, then it is put into the new layoutProvidedP
2) If a panel isn't provided, then layoutProvidedPanel is cleared and hidden, and propertySheet is shown.
A plugin that manifests this ability is [some might say "suspiciously"] already working for this: icculus. org/~chunky/ stuff/gephi_ graphviz/
http://