Add JComponent to oxygen by Framework
Posted: Thu May 31, 2012 5:24 pm
Hello,
We have create a customized oxygen view in a plugin, by using "WorkspaceAccessPluginExtension" + "addViewComponentCustomizer". In the customized view, we have used a Swing JPanel which contains some items.
public class S1000DPluginExtension implements WorkspaceAccessPluginExtension {
public void applicationStarted(final StandalonePluginWorkspace pluginWorkspace) {
pluginWorkspace.addMenuBarCustomizer(new S1000DMenuBarCustomizer());
try {
pluginWorkspace.addViewComponentCustomizer(new ViewComponentCustomizer() {
IllustrationsPanel illusPanel
public void customizeView(ViewInfo viewInfo) {
if ("Illustrations".equals(viewInfo.getViewID())) {
illusPanel = new IllustrationsPanel()
It works !
But now, we want create this Jpanel by using a framework, but we haven't found the solution.
How we can use addViewComponentCustomizer, .. by a framework ?
Do you think it's possible ?
Has anyone an idea?
thanks in advance
Regards.
Sébastien.L
We have create a customized oxygen view in a plugin, by using "WorkspaceAccessPluginExtension" + "addViewComponentCustomizer". In the customized view, we have used a Swing JPanel which contains some items.
public class S1000DPluginExtension implements WorkspaceAccessPluginExtension {
public void applicationStarted(final StandalonePluginWorkspace pluginWorkspace) {
pluginWorkspace.addMenuBarCustomizer(new S1000DMenuBarCustomizer());
try {
pluginWorkspace.addViewComponentCustomizer(new ViewComponentCustomizer() {
IllustrationsPanel illusPanel
public void customizeView(ViewInfo viewInfo) {
if ("Illustrations".equals(viewInfo.getViewID())) {
illusPanel = new IllustrationsPanel()
It works !
But now, we want create this Jpanel by using a framework, but we haven't found the solution.
How we can use addViewComponentCustomizer, .. by a framework ?
Do you think it's possible ?
Has anyone an idea?
thanks in advance
Regards.
Sébastien.L