Page 1 of 1

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

Posted: Fri Jun 18, 2021 12:40 am
by Gerardo
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

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

Posted: Fri Jun 18, 2021 5:43 pm
by adrian_sorop
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.

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

Posted: Sat Jun 19, 2021 2:02 am
by Gerardo
Thanks so much. That was really helpful!

Gerardo