How to make this MyWorkspaceAccessPluginExtension as singleton

Post here questions and problems related to oXygen frameworks/document types.
vishwavaranasi
Posts: 37
Joined: Fri Feb 28, 2020 4:02 pm

How to make this MyWorkspaceAccessPluginExtension as singleton

Post by vishwavaranasi » Tue May 04, 2021 11:17 am

Hello Team ,

We already have a Workspace plugin, MyWorkspaceAccessPluginExtension implements WorkspaceAccessPluginExtension

and we have added
// add a View to the StandalonePluginWorkspace
pluginWorkspaceAccess.addViewComponentCustomizer(new ViewComponentCustomizer() {
/*created JPanel and added JButtons for different functions that we have implemented */

}

now question is
How to make this MyWorkspaceAccessPluginExtension as singleton , i mean when we click any one button from the ViewComponent , the user should not allow to click any other buttons.

your help on this much appreciated.

Thanks,
vishwa
Thanks,
vishwa

Radu
Posts: 7468
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to make this MyWorkspaceAccessPluginExtension as singleton

Post by Radu » Tue May 04, 2021 12:10 pm

Hi,

I'm afraid I do not understand. Maybe you can give me an example.
Maybe you can add a field to the "MyWorkspaceAccessPluginExtension" class which points to your custom panel implementation or keep all buttons as fields of the MyWorkspaceAccessPluginExtension class.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply