Workbench

    Workbench sample demonstration video.

    Sample code:

<?xml version='1.0' encoding='utf-8'?>

<Workbench name="SimpleWorkbench" descriptors="xworker.swt.app.Workbench" editSelf="false"
      maximized="false">
     <Views>
         <View name="View" label="fileTree" id="SimpleThingEditor_FileExplorer" type="left"
              composite="xworker.swt.app.views.FileTree/@menuTree"/>
         <View name="View" _xmeta_id_="SystemConsole" label="Console" id="console" type="bottom"
              composite="xworker.swt.component.components.ProcessManager" closeable="false"/>
         <View name="outline" _xmeta_id_="SimpleThingEditor_Outline" id="SimpleThingEditor_Outline"
              type="right" composite="xworker.swt.app.views.Outline/@outlineMainComposite"
              closeable="false"/>
         <View name="View" _xmeta_id_="user_progressMontior" label="Progress" id="user_progressMontior"
              type="bottom" composite="xworker.ide.task.UserTaskManagerTabItem/@progressComposite/@composite"
              closeable="false" en_label="Progress"/>
         <View name="ThingExplorer" id="ThingExplorer" type="left" composite="xworker.swt.app.views.ProjectTree/@tree"/>
     </Views>
     <CoolBar>
         <CoolItem name="coolItem1">
             <QuickToolbar name="toolBar" FLAT="true">
                 <Item name="saveToolItem" image="icons/xworker/save.gif" actionContainer="actions"
                      actionName="save"/>
                 <Item name="openThingToolItem" image="/xworker/ide/images/open.gif"
                      actionContainer="actions" actionName="openThingDialog"/>
             </QuickToolbar>
         </CoolItem>
     </CoolBar>
     <Menu>
         <MenuItem name="fileMenuItem" text="lang:d=file&amp;en=File" style="CASCADE">
             <Menu name="fileMenu">
                 <MenuItem name="saveMenuItem" text="lang:d=save&amp;en=Save" style="PUSH" image="icons/xworker/save.gif">
                     <listeners>
                         <Listener name="Listener" ref="actions:save"/>
                     </listeners>
                 </MenuItem>
                 <MenuItem name="saveAllMenuItem" text="lang:d=Save All&amp;en=Save All" style="PUSH">
                     <listeners>
                         <Listener name="Listener" ref="actions:saveAll"/>
                     </listeners>
                 </MenuItem>
                 <MenuItem name="splt1" style="SEPARATOR"/>
                 <MenuItem name="exitMenuItem" text="lang:d=Exit&amp;en=Exit" style="PUSH">
                     <listeners>
                         <Listener>
                             <Ognl name="Ognl" expression="workbench.exit(false)"/>
                         </Listener>
                     </listeners>
                 </MenuItem>
             </Menu>
         </MenuItem>
     </Menu>
     <ActionContainer name="actions">
         <Ognl name="save" expression="workbench.save()"/>
         <Ognl name="saveAll" expression="workbench.saveAll()"/>
         <Ognl name="exit" _xmeta_id_="Exit" expression="workbench.exit(true)"/>
         <OpenShell name="openThingDialog" descriptors="xworker.swt.actions.ShellActionsNew/@OpenShell"
              parent="var:shell" shellPath="xworker.ide.worldexplorer.swt.dialogs.OpenThingDialog/@shell"
              singleInstance="true"/>
     </ActionContainer>
</Workbench>

 

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号