Page 1 of 1

How to make this MyWorkspaceAccessPluginExtension as singleton

Posted: Tue May 04, 2021 11:17 am
by vishwavaranasi
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

Re: How to make this MyWorkspaceAccessPluginExtension as singleton

Posted: Tue May 04, 2021 12:10 pm
by Radu
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