Where can I get the View IDs of the different views in Oxygen?

Post here questions and problems related to oXygen frameworks/document types.
Gerardo
Posts: 8
Joined: Thu Jun 17, 2021 11:58 pm

Where can I get the View IDs of the different views in Oxygen?

Post by Gerardo » Fri Jun 18, 2021 12:40 am

Hi all,

Where can I get the View IDs of the different views in Oxygen? The interface StandalonePluginWorkspace has a method to show/hide views that requires the View ID.

void showView(java.lang.String viewID, boolean requestFocus)

I have made some testing and the view IDs are really straightforward for the views below.

pluginWorkspaceAccess.showView("Outline", true);
pluginWorkspaceAccess.showView("Project", true);
pluginWorkspaceAccess.showView("Attributes", true);
pluginWorkspaceAccess.showView("Elements", true);

However, I haven't found what right view IDs are for the DITA Maps Manager and the Data Source Explorer View

// Not working
pluginWorkspaceAccess.showView("DITA Maps Manager", true);
pluginWorkspaceAccess.showView("Data Source Explorer", true);

Is there a way to figure out what the right IDs are?

Thanks in advance
Gerardo

adrian_sorop
Posts: 20
Joined: Wed Jun 22, 2016 2:48 pm

Re: Where can I get the View IDs of the different views in Oxygen?

Post by adrian_sorop » Fri Jun 18, 2021 5:43 pm

Hi Gerardo,

The IDs of the components (views, toolbars, etc) are available here

Code: Select all

ro.sync.exml.MainFrameComponentsConstants
Ex:

Code: Select all

  pluginWorkspaceAccess.showView(ro.sync.exml.MainFrameComponentsConstants.DITA_MAPS_MANAGER, true);
  pluginWorkspaceAccess.showView(ro.sync.exml.MainFrameComponentsConstants.DATASOURCE_EXPLORER_VIEW, true);
Hope this helps,
Adrian S.
Adrian Sorop
<oXygen/> XML Editor
http://www.oxygenxml.com

Gerardo
Posts: 8
Joined: Thu Jun 17, 2021 11:58 pm

Re: Where can I get the View IDs of the different views in Oxygen?

Post by Gerardo » Sat Jun 19, 2021 2:02 am

Thanks so much. That was really helpful!

Gerardo

Post Reply