close

Filter

loading table of contents...

Studio Developer Manual / Version 2010

Table Of Contents

7.13.3 Configure a Singleton Work Area Tab

The previously shown OpenTabAction has an additional Boolean configuration parameter singleton. In the example a button that opens a CoreMediaTab is added, which is a browse tab with the fix URL of the CoreMedia homepage:

...
<editor:FavoritesToolbar>
  <editor:plugins>
    <ui:AddItemsPlugin>
      <ui:items>
        <!-- Add a button that opens the CoreMedia homepage browse tab as singleton -->
        <Button itemId="coremediaTab">
          <baseAction>
            <editor:OpenTabAction singleton="true" text="...">
               <editor:tab>
                 <example:CoreMediaTab/>
               </editor:tab>
             </editor:OpenTabAction>
          </baseAction>
        </Button>
      </ui:items>
      ...
    </ui:AddItemsPlugin>
  </editor:plugins>
</editor:FavoritesToolbar>
...

Example 7.66. Adding a button to open a browser tab


In the work area there will be no more than one opened coreMediaTab: When clicking the button the already opened coreMediaTab will be active instead of opening a new one.

Search Results

Table Of Contents