^1692152344102
@
sname
functions
slabel
XWorker
Sdescription
#$@text#$@
<p><strong>任务</strong></p>

<ul>
	<li><a href="javascript:invoke('tab:xworker.ide.task.TaskManager/@mainCompostie')">任务管理器</a></li>
	<li><a href="javascript:invoke('tab:xworker.workflow.WorkflowManager/@mainComposite')">流程管理器</a></li>
</ul>

<p><strong>权限</strong></p>

<ul>
	<li><a href="javascript:invoke('tab:xworker.lang.security.PermissionViewer/@mainComposite')">权限浏览</a></li>
</ul>
#$@text#$@
sdescriptors
xworker.lang.util.Functions
  @/@file
  sname
  file
  slabel
  文件(&F)
  sen_label
  File(&F)
  sdisabled
  false
  sdescriptors
  xworker.lang.util.Functions/@node
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  file
    @/@file/@newThing
    sname
    newThing
    slabel
    新建
    sen_label
    new
    sdisabled
    false
    sdescriptors
    xworker.lang.util.Functions/@node
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    newThing
      @/@file/@newThing/@Project
      sname
      Project
      slabel
      Project
      ssingleInstance
      true
      sanotherThread
      true
      spath
      xworker.swt.ide.worldexplorer.swt.dialogs.NewProjectDialog
      sdisabled
      false
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@openSwtShell
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      Project
    @/@file/@import
    sname
    import
    slabel
    导入
    sen_label
    Import
    sdisabled
    false
    sdescriptors
    xworker.lang.util.Functions/@node
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    import
      @/@file/@import/@importExeistsProject
      sname
      importExeistsProject
      slabel
      其它路径下的项目
      sen_label
      Import Project from Other Location
      spath
      _local.xworker.worldExplorer.ProjectSet
      sdisabled
      false
      sdescription
      <p>打开导入其它目录下的模型项目的配置模型。</p>
      sdescriptors
      xworker.lang.util.Functions/@openDataObject
      sinheritDescription
      false
      sth_createIndex
      true
      sth_keywords
      导入,其它,l路径,项目,模型
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      importExeistsProject
      @/@file/@import/@importPrjProjects
      sname
      importPrjProjects
      slabel
      导入XWorker源码下项目
      sen_label
      Import XWorker Source Projects
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import java.io.File;
import org.xmeta.Thing;

def projectSet = world.getThing("_local.xworker.worldExplorer.ProjectSet");

def file = new java.io.File(".");
if(!file.getCanonicalPath().endsWith("xworker_explorer")){
    //不是在XWorker的代码目录下
    return;
}
def parent = file.getCanonicalFile().getParentFile();
for(childFile in parent.listFiles()){
    def name = childFile.getName();
    if(name == "xworker_explorer"){
        continue;
    }
    
    def prjFile = new File(childFile, "./src/main/resources/");
    if(prjFile.exists()){
        //println name + " is project";
        def have = false;
        for(pc in projectSet.getChilds()){
            if(pc.getMetadata().getName() == name){
                have = true;
                break;
            }
        }
        
        if(!have){
            def prj = new Thing("xworker.ide.worldexplorer.things.ProjectSet/@ProjectDir");
            prj.set("name", name);
            prj.set("dir", prjFile.getCanonicalPath());
            projectSet.addChild(prj);
        }
    }
}

projectSet.save();
projectSet.doAction("run", actionContext);
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sswitchResult
      false
      sdebugLog
      false
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@function
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_noThingRegistViewer
      false
      sth_fileMonitor
      false
      sth_mark
      false
      sth_registQueryOnlySelf
      false
      sid
      importPrjProjects
    @/@file/@Export
    sname
    Export
    slabel
    Export
    sdisabled
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@node
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    Export
      @/@file/@Export/@openExportExample
      sname
      openExportExample
      slabel
      打开导出示例
      sen_label
      Open Export Example
      spath
      xworker.swt.xwidgets.prototypes.SimpleThingEditorExportAction
      sdisabled
      false
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@openDataObject
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_noThingRegistViewer
      false
      sth_fileMonitor
      false
      sth_mark
      false
      sth_registQueryOnlySelf
      false
      snotXmlAttribute
      false
      sjson_isArray
      false
      sgroupDescriptor
      false
      sid
      openExportExample
    @/@file/@Seperator
    sname
    Seperator
    sdescriptors
    xworker.lang.util.Functions/@Seperator
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    Seperator
    @/@file/@openTopic
    sname
    openTopic
    slabel
    主页
    sen_label
    Home
    spath
    xworker.function.ui.topic.TopicShell/@mainComposite
    sdisabled
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openComposite
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sicon
    icons/application_home.png
    sth_mark
    false
    sid
    openTopic
    @/@file/@openThing
    sname
    openThing
    slabel
    打开模型
    sen_label
    Open Model
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    Scode
#$@text#$@
import org.xmeta.ActionContext;
import org.xmeta.util.UtilString;

ActionContext newContext = new ActionContext();
newContext.put("parent", explorerShell);
newContext.put("type", "dataObject");
newContext.put("explorerActions", explorerActions);

def shellObj = world.getThing("xworker.swt.ide.worldexplorer.swt.dialogs.OpenThingDialog/@shell");
def shell = shellObj.doAction("create", newContext);
shell.setText(UtilString.getString("res:res.w_exp:menuItemOpenThing:打开事物", actionContext));
shell.open();
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdebugLog
    false
    sonlyRegist
    false
    saccelerator
    Ctrl + T
    sdescriptors
    xworker.lang.util.Functions/@function
    sth_createIndex
    false
    sth_registMyChilds
    false
    sicon
    /xworker/ide/images/openThing.gif
    sth_mark
    false
    sid
    openThing
    @/@file/@openAction
    sname
    openAction
    slabel
    打开动作
    sen_label
    Open Action
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    Scode
#$@text#$@
import org.xmeta.ActionContext;
import org.xmeta.util.UtilString;

ActionContext newContext = new ActionContext();
newContext.put("parent", explorerShell);
newContext.put("type", "scriptObject");
newContext.put("explorerActions", explorerActions);

def shellObj = world.getThing("xworker.swt.ide.worldexplorer.swt.dialogs.OpenThingDialog/@shell");
def shell = shellObj.doAction("create", newContext);
shell.setText(UtilString.getString("res:res.w_exp:menuItemOpenAction:打开动作", actionContext));
shell.open();
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdescriptors
    xworker.lang.util.Functions/@function
    sth_createIndex
    false
    sth_registMyChilds
    false
    sicon
    /xworker/ide/images/openAction.gif
    sth_mark
    false
    sid
    openAction
    @/@file/@Seperator1
    sname
    Seperator
    sdescriptors
    xworker.lang.util.Functions/@Seperator
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    Seperator1
    @/@file/@save
    sname
    save
    slabel
    保存
    sen_label
    Save
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    Scode
#$@text#$@
workbench.save();
return; 

//取得当前编辑窗体中的Tab的actionContext
def tab = explorerActionContext.centerTabFolder.getSelection();
def tabActionContext = tab.getData("actionContext");

if(tabActionContext != null){
    //如果actionContext中有okButtonSelection，执行保存
    def okButtonSelection = tabActionContext.get("okButtonSelection");
    if(okButtonSelection != null){
        okButtonSelection.handleEvent(null);
    }
}
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdebugLog
    false
    sonlyRegist
    false
    saccelerator
    Ctrl + S
    sdescriptors
    xworker.lang.util.Functions/@function
    sth_createIndex
    false
    sth_registMyChilds
    false
    sicon
    /xworker/ide/images/save.gif
    sth_mark
    false
    sid
    save
      @/@file/@save/@ActionDefined
      sname
      ActionDefined
      sdescriptors
      xworker.lang.actions.Inout/@ActionDefined
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      ActionDefined
        @/@file/@save/@ActionDefined/@saveEditor
        sname
        saveEditor
        seditorContext
        var:editorContext
        sinterpretationType
        Self
        sattributeTemplate
        false
        schildsAttributeTemplate
        false
        svarScope
        Local
        sisSynchronized
        false
        sthrowException
        true
        screateLocalVarScope
        false
        ssaveReturn
        false
        sdisableGlobalContext
        false
        sdebugLog
        false
        sdescriptors
        xworker.swt.xwidgets.app.AppActions/@Save
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        saveEditor
    @/@file/@Seperator2
    sname
    Seperator
    sdescriptors
    xworker.lang.util.Functions/@Seperator
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    Seperator2
    @/@file/@restartXWorker
    sname
    restartXWorker
    slabel
    重新启动
    sen_label
    Restart
    sthingPath
    xworker.ide.config.functions/@file/@restartXWorker
    sactionName
    restart
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@ExecuteThingAction
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    restartXWorker
      @/@file/@restartXWorker/@actions
      sname
      actions
      sdescriptors
      xworker.lang.MetaThing/@actions
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      actions
        @/@file/@restartXWorker/@actions/@restart1
        sname
        restart
        sisSynchronized
        false
        sthrowException
        true
        suseOtherAction
        false
        svarScope
        Local
        sdisableGlobalContext
        false
        Scode
#$@text#$@
try{
    explorerActionContext.shell.dispose();
}finally{
    restart(actionContext);
}
#$@text#$@
        sinterpretationType
        Action
        screateLocalVarScope
        false
        ssaveReturn
        false
        sdebugLog
        false
        sdescriptors
        xworker.lang.actions.Actions/@GroovyAction
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        restart1
          @/@file/@restartXWorker/@actions/@restart1/@ActionDefined
          sname
          ActionDefined
          sdescriptors
          xworker.lang.actions.Inout/@ActionDefined
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_mark
          false
          sid
          ActionDefined
            @/@file/@restartXWorker/@actions/@restart1/@ActionDefined/@restart
            sname
            restart
            sdescriptors
            xworker.core.actions.ExecuteXWorkerProcess
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_registDisabled
            false
            sth_mark
            false
            sid
            restart
    @/@file/@exit
    sname
    exit
    slabel
    退出(&X)
    sen_label
    Exit(&X)
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    scode
    explorerActionContext.shell.dispose();
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdescriptors
    xworker.lang.util.Functions/@function
    sth_createIndex
    false
    sth_registMyChilds
    false
    sicon
    icons/door_out.png
    sth_mark
    false
    sid
    exit
  @/@app
  sname
  app
  slabel
  应用
  sen_label
  Application
  sdisabled
  false
  sdescriptors
  xworker.lang.util.Functions/@node
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  app
    @/@app/@appManager
    sname
    appManager
    slabel
    应用管理
    sen_label
    Applications
    ssingleInstance
    true
    sanotherThread
    false
    spath
    xworker.app.appmanager.swt.AppManagerNew
    sdisabled
    false
    sdescription
    <p>打开应用管理窗口。</p>
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openSwtShell
    sinheritDescription
    false
    sth_createIndex
    true
    sth_keywords
    打开,应用,管理,窗口
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    appManager
    @/@app/@WebBrowser
    sname
    WebBrowser
    slabel
    WebBrowser
    spath
    xworker.swt.xworker.app.browser.WebBrowserPrototype/@shell/@mainComposite
    sdisabled
    false
    sdescription
    <p>内置的WEB浏览器。</p>
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openComposite
    sinheritDescription
    false
    sth_createIndex
    true
    sth_keywords
    打开,内置,web,浏览器,应用
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    WebBrowser
    @/@app/@groovyConsole
    sname
    groovyConsole
    slabel
    Groovy Console
    spath
    xworker.ide.worldexplorer.swt.dialogs.GroovyScriptDialog/@shell/@mainComposite
    sdisabled
    false
    sdescription
    <p>Groovy控制台，可以编写和运行Groovy脚本。</p>
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openComposite
    sinheritDescription
    false
    sth_createIndex
    true
    sth_keywords
    打开,groovy,console,控制台,编程,应用
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    groovyConsole
    @/@app/@topTextWindow
    sname
    topTextWindow
    slabel
    置顶文本窗口
    sen_label
    Top Text Window
    ssingleInstance
    true
    sanotherThread
    true
    spath
    xworker.ide.worldexplorer.swt.tools.TopTextWindow
    sdisabled
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openSwtShell
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sid
    topTextWindow
    @/@app/@gc
    sname
    gc
    slabel
    Gc
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Global
    sdisableGlobalContext
    false
    Scode
#$@text#$@
System.gc();

println "gc is ok";
#$@text#$@
    sdescriptors
    xworker.lang.util.Functions/@function
    sinheritDescription
    false
    sth_createIndex
    true
    sth_keywords
    执行,java,gc,命令
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    gc
    @/@app/@functionUI
    sname
    functionUI
    slabel
    函数交互式编程
    sen_label
    Functional UI
    spath
    xworker.function.ui.function.RunctionRunnerShell/@mainComposite
    sdisabled
    false
    sdescription
    <p>打开函数交互式编程的界面。</p>
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openComposite
    sinheritDescription
    false
    sth_createIndex
    true
    sth_keywords
    打开,函数,交互,交互式,编程,应用
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sicon
    icons/page_white_actionscript.png
    sth_mark
    false
    sid
    functionUI
    @/@app/@debugManager
    sname
    debugManager
    slabel
    调试管理
    sen_label
    Debug
    spath
    xworker.swt.ide.worldexplorer.swt.actions.DebugInfoEditor/@mainComposite
    sdisabled
    false
    sdescription
    <p>打开调试管理。</p>
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openComposite
    sinheritDescription
    false
    sth_createIndex
    true
    sth_keywords
    打开,调试,管理,应用
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sicon
    icons/bug_edit.png
    sth_mark
    false
    sid
    debugManager
    @/@app/@tools
    sname
    tools
    slabel
    工具
    sen_label
    Tools
    sdisabled
    false
    sdescriptors
    xworker.lang.util.Functions/@node
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    tools
      @/@app/@tools/@viewClass
      sname
      viewClass
      slabel
      类查看器
      sen_label
      Class Viewer
      ssingleInstance
      true
      sanotherThread
      true
      spath
      xworker.ide.tools.java.lang.ClassViewer/@shell
      sdisabled
      false
      sdescription
      <p>查看当前所使用到的java包和类。</p>
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@openSwtShell
      sinheritDescription
      false
      sth_createIndex
      true
      sth_keywords
      打开,查看,view,class,类,java,package,包,应用
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      viewClass
      @/@app/@tools/@searchThings
      sname
      searchThings
      slabel
      查询事物
      sen_label
      Thing Queryer
      ssingleInstance
      true
      sanotherThread
      false
      spath
      xworker.ide.db.dbindex.app.swt.ThingQueryerByKeyword/@shell
      sdisabled
      false
      sdescription
      <p>查询建立了关键字索引的事物。</p>
      sdescriptors
      xworker.lang.util.Functions/@openSwtShell
      sid
      searchThings
      @/@app/@tools/@lastEditThing
      sname
      lastEditThing
      slabel
      最近修改的事物
      sen_label
      Last Modified Things
      ssingleInstance
      true
      sanotherThread
      false
      spath
      xworker.swt.ide.worldexplorer.swt.tools.LastEditedThingsViewer/@shell
      sdisabled
      false
      sdescription
      <p>按照最后修改时间列出最近编辑的事物。</p>
      sdescriptors
      xworker.lang.util.Functions/@openSwtShell
      sinheritDescription
      false
      sth_createIndex
      true
      sth_keywords
      打开,最近,修改,事物,应用
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      lastEditThing
      @/@app/@tools/@TaskManager
      sname
      TaskManager
      slabel
      TaskManager
      ssingleInstance
      true
      sanotherThread
      false
      spath
      xworker.swt.ide.worldexplorer.swt.TaskManager/@shell
      sdisabled
      false
      sdescription
      <p>查看线程和内存占用情况的工具。</p>
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@openSwtShell
      sinheritDescription
      false
      sth_createIndex
      true
      sth_keywords
      打开,任务,管理器,窗口,应用
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      TaskManager
    @/@app/@task
    sname
    task
    slabel
    任务
    sen_label
    Tasks
    sdisabled
    false
    sdescriptors
    xworker.lang.util.Functions/@node
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    task
      @/@app/@task/@taskManager
      sname
      taskManager
      slabel
      任务管理器
      sen_label
      Task Manager
      spath
      xworker.ide.task.TaskManager/@mainCompostie
      sdisabled
      false
      sdescription
      <p>打开任务管理器。</p>
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@openComposite
      sinheritDescription
      false
      sth_createIndex
      true
      sth_keywords
      打开,任务,管理器,应用
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sicon
      icons/clock_go.png
      sth_mark
      false
      sid
      taskManager
      @/@app/@task/@FlowManager
      sname
      FlowManager
      slabel
      流程管理器
      sen_label
      Flow Manager
      spath
      xworker.workflow.WorkflowManager/@mainComposite
      sdisabled
      false
      sdescription
      <p>打开流程管理器。</p>
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@openComposite
      sinheritDescription
      false
      sth_createIndex
      true
      sth_keywords
      打开,流程,管理器,应用
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sicon
      icons/cog_go.png
      sth_mark
      false
      sid
      FlowManager
      @/@app/@task/@userTaskMonitor
      sname
      userTaskMonitor
      slabel
      用户任务监控
      sen_label
      Task Monitor
      spath
      xworker.ide.task.UserTaskManager/@composite
      sdisabled
      false
      sdescription
      <p>打开用户监控任务。</p>
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@openComposite
      sinheritDescription
      false
      sth_createIndex
      true
      sth_keywords
      打开,用户,任务,监控,应用
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sicon
      icons/clock_pause.png
      sth_mark
      false
      sid
      userTaskMonitor
  @/@node2
  sname
  setting
  slabel
  设置
  sen_label
  Setting
  sdisabled
  false
  sdescription
  <p>XWorker的一些常用设置。</p>
  sdescriptors
  xworker.lang.util.Functions/@node
  sid
  node2
    @/@node2/@globalSettings
    sname
    globalSettings
    slabel
    全局设置
    sen_label
    Global Settings
    spath
    _local.xworker.config.GlobalConfig
    sdisabled
    false
    sdescription
    <p>打开全局设置模型。</p>
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openDataObject
    sinheritDescription
    false
    sth_createIndex
    true
    sth_keywords
    打开,全局,设置,global,config,globalconfig
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    globalSettings
    @/@node2/@Language
    sname
    Language
    slabel
    Language（语言）
    sdescriptors
    xworker.lang.util.Functions/@node
    sid
    Language
      @/@node2/@Language/@setEnLocal
      sname
      setEnLocal
      slabel
      English
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Global
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import java.util.Locale;

import org.xmeta.util.UtilResource;
import org.xmeta.ui.session.SessionManager;

import xworker.lang.util.XWorkerUtils;

Locale l = new Locale("en", "US");
def session = SessionManager.getSession(null);
session.setLocale(l);
session.setI18nResource(UtilResource.getInstance(l));

XWorkerUtils.ideDoAction("restart", null);

def config = world.getThing("_local.xworker.config.GlobalConfig");
if(config != null){
    config.put("language", "en_US");
    config.save();
}
return "Current language has setted to english";
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sswitchResult
      false
      sdebugLog
      false
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@function
      sid
      setEnLocal
      @/@node2/@Language/@Chinese
      sname
      Chinese
      slabel
      中文
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Global
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import java.util.Locale;

import org.xmeta.util.UtilResource;
import org.xmeta.ui.session.SessionManager;

import xworker.lang.util.XWorkerUtils;

Locale l = new Locale("zh", "CN");
def session = SessionManager.getSession(null);
session.setLocale(l);
session.setI18nResource(UtilResource.getInstance(l));

XWorkerUtils.ideDoAction("restart", null);

def config = world.getThing("_local.xworker.config.GlobalConfig");
if(config != null){
    config.put("language", "zh_CN");
    config.save();
}

return "当前语言已设置为中文，部分界面重新启动后才能生效！";
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sswitchResult
      false
      sdebugLog
      false
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@function
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      Chinese
    @/@node2/@Debug
    sname
    Debug
    slabel
    Debug
    sdisabled
    false
    sdescriptors
    xworker.lang.util.Functions/@node
    sid
    Debug
      @/@node2/@Debug/@showDebugConsole
      sname
      showDebugConsole
      slabel
      Debug Console
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Global
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import xworker.debug.Debuger;

Debuger.showDebugConsole();
#$@text#$@
      sdescriptors
      xworker.lang.util.Functions/@function
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      showDebugConsole
      @/@node2/@Debug/@node
      sname
      node
      slabel
      调试状态
      sen_label
      Debug Status
      sdisabled
      false
      sdescriptors
      xworker.lang.util.Functions/@node
      sid
      node
        @/@node2/@Debug/@node/@DebugEnable
        sname
        DebugEnable
        slabel
        EnableDebug
        sisSynchronized
        false
        sthrowException
        true
        suseOtherAction
        false
        svarScope
        Global
        sdisableGlobalContext
        false
        Scode
#$@text#$@
import xworker.debug.Debuger;

Debuger.getDebuger().setEnabled(true);
#$@text#$@
        sdescriptors
        xworker.lang.util.Functions/@function
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        DebugEnable
        @/@node2/@Debug/@node/@DebugDisable
        sname
        DebugDisable
        slabel
        DisableDebug
        sisSynchronized
        false
        sthrowException
        true
        suseOtherAction
        false
        svarScope
        Global
        sdisableGlobalContext
        false
        Scode
#$@text#$@
import xworker.debug.Debuger;

Debuger.getDebuger().setEnabled(false);
#$@text#$@
        sdescriptors
        xworker.lang.util.Functions/@function
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        DebugDisable
      @/@node2/@Debug/@node1
      sname
      actionStatus
      slabel
      动作状态
      sen_label
      Action Recod Status
      sdisabled
      false
      sdescriptors
      xworker.lang.util.Functions/@node
      sid
      node1
        @/@node2/@Debug/@node1/@StartActionRecord
        sname
        StartActionRecord
        slabel
        StartActionRecord
        sisSynchronized
        false
        sthrowException
        true
        suseOtherAction
        false
        svarScope
        Global
        sdisableGlobalContext
        false
        Scode
#$@text#$@
import xworker.debug.Debuger;

Debuger.getDebuger().startActionRecord();
#$@text#$@
        sdescriptors
        xworker.lang.util.Functions/@function
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        StartActionRecord
        @/@node2/@Debug/@node1/@StopActionRecord
        sname
        StopActionRecord
        slabel
        StopActionRecord
        sisSynchronized
        false
        sthrowException
        true
        suseOtherAction
        false
        svarScope
        Global
        sdisableGlobalContext
        false
        Scode
#$@text#$@
import xworker.debug.Debuger;

Debuger.getDebuger().stopActionRecord();
#$@text#$@
        sdescriptors
        xworker.lang.util.Functions/@function
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        StopActionRecord
        @/@node2/@Debug/@node1/@actionRecorder
        sname
        actionRecorder
        slabel
        动作记录器
        sen_label
        Action Recorder
        ssingleInstance
        false
        sanotherThread
        true
        spath
        xworker.ide.debug.action.SwtActionRecorder/@shell
        sdisabled
        false
        sdescriptors
        xworker.lang.util.Functions/@openSwtShell
        sid
        actionRecorder
    @/@node2/@permission
    sname
    permission
    slabel
    权限
    sen_label
    Security
    sdisabled
    false
    sdescriptors
    xworker.lang.util.Functions/@node
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    permission
      @/@node2/@permission/@securityPermission
      sname
      securityPermission
      slabel
      权限浏览
      sen_label
      Permission Viewer
      spath
      xworker.lang.security.swt.SecurityManager
      sdisabled
      false
      sdescription
      <p>浏览权限设置。</p>
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@openComposite
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      securityPermission
    @/@node2/@XWorkerStartScript
    sname
    XWorkerStartScript
    slabel
    启动脚本
    sen_label
    Start Scripts
    sthingPath
    xworker.ide.worldexplorer.StartupIndex
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@OpenThingDoc
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    XWorkerStartScript
    @/@node2/@preferences
    sname
    preferences
    slabel
    参数配置
    sen_label
    Preferences
    spath
    xworker.swt.ide.worldexplorer.swt.tools.PreferencesEditor/@mainComposite
    sdisabled
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openComposite
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sicon
    icons/database_table.png
    sth_fileMonitor
    false
    sth_deprecated
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sid
    preferences
    @/@node2/@rebuildIndex
    sname
    rebuildIndex
    slabel
    重建索引
    sen_label
    Rebuild Indexs
    ssingleInstance
    true
    sanotherThread
    false
    spath
    xworker.ide.db.dbindex.actions.IndexRebuildShell
    sdisabled
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openSwtShell
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sid
    rebuildIndex
    @/@node2/@netProxyItem
    sname
    netProxyItem
    slabel
    网络代理
    sen_label
    Net Proxy
    ssingleInstance
    true
    sanotherThread
    true
    spath
    xworker.ide.worldexplorer.swt.dialogs.NetProxyDialog
    sdisabled
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openSwtShell
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sgroupDescriptor
    false
    sid
    netProxyItem
  @/@Help
  sname
  Help
  slabel
  帮助
  sen_label
  Help
  sdisabled
  false
  sonlyRegist
  false
  ssortWeight
  10000
  sdescriptors
  xworker.lang.util.Functions/@node
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  Help
    @/@Help/@welcomeToXWorker
    sname
    welcomeToXWorker
    slabel
    欢迎窗口
    sen_label
    Welcome
    sthingPath
    xworker.guides.base.XWorkerIntroduce
    sactionName
    run
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@ExecuteThingAction
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sicon
    icons/user.png
    sth_fileMonitor
    false
    sth_deprecated
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sid
    welcomeToXWorker
    @/@Help/@document1
    sname
    tutorials
    slabel
    教程
    sen_label
    Tutorials
    ssingleInstance
    true
    sanotherThread
    false
    spath
    xworker.guides.GuideShell
    sdisabled
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openSwtShell
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sid
    document1
    @/@Help/@exampleMenu1
    sname
    exampleMenu
    slabel
    文档
    sen_label
    Documents
    ssingleInstance
    true
    sanotherThread
    false
    spath
    xworker.example.DocumentMain
    sdisabled
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openSwtShell
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    exampleMenu1
    @/@Help/@exampleMenu
    sname
    exampleMenu
    slabel
    示例
    sen_label
    Examples
    ssingleInstance
    true
    sanotherThread
    false
    spath
    xworker.example.ExampleMain
    sdisabled
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openSwtShell
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    exampleMenu
    @/@Help/@openSwtShell
    sname
    commontratorMenuItem
    slabel
    解说
    sen_label
    Commontrator
    ssingleInstance
    true
    sanotherThread
    false
    spath
    xworker.lang.AutoCommentratorShell
    sdisabled
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@openSwtShell
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sgroupDescriptor
    false
    sid
    openSwtShell
    @/@Help/@help1
    sname
    help
    slabel
    XWorker主页
    sen_label
    XWorker Home Page
    surl
    http://www.xworker.org/
    sdisabled
    false
    Sdescription
#$@text#$@
<script language="javascript">
document.location = 'do?sc=xworker.orgweb.ModuleWeb/@index&menuPath=xworker.orgweb.doc.DocModule/@Doc/@tutorials/@editThing/@editThing1/@createThing';
</script>
#$@text#$@
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@htmlUrl
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    help1
    @/@Help/@Seperator
    sname
    Seperator
    sdescriptors
    xworker.lang.util.Functions/@Seperator
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    Seperator
    @/@Help/@refreshAllMenu
    sname
    refreshAllMenu
    slabel
    刷新菜单
    sen_label
    Refresh Menu
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    Scode
#$@text#$@
import xworker.lang.util.XWorkerUtils;

XWorkerUtils.ideDoAction("refreshAllMenu", null);
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.util.Functions/@function
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    refreshAllMenu
    @/@Help/@editMenu
    sname
    editMenu
    slabel
    编辑菜单
    sen_label
    Edit Menu
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    Scode
#$@text#$@
def menuThing = world.getThing("xworker.ide.worldexplorer.swt.util.IdeMenuEditor");
def shell = menuThing.doAction("create", actionContext);
shell.open();
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdebugLog
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@function
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    editMenu
    @/@Help/@openMenuDoc
    sname
    openMenuDoc
    slabel
    菜单说明
    sen_label
    Menu Description
    sthingPath
    xworker.ide.config.functions/@Help/@openMenuDoc
    sdescriptors
    xworker.lang.util.Functions/@OpenThingDoc
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_deprecated
    false
    Sdescription
#$@text#$@
<h1><strong>XWorker模型管理器菜单说明</strong></h1>

<h2><strong>1.如何设置菜单</strong></h2>

<p>&nbsp;&nbsp;&nbsp; XWorker的模型管理器约定了一个特殊的目录，即xxx1/xxx2/config目录，其中xxx1和xxx2是一级目录和二级目录，在xxx1/xxx2/config下是放置模型管理器约定的配置文件的。</p>

<p>&nbsp;&nbsp;&nbsp; 其中xxx1.xxx2.config.functions模型是菜单的配置，其描述者是：xworker.lang.util.Functions。</p>

<p>&nbsp;&nbsp;&nbsp; 可以通过菜单帮助-&gt;编辑菜单的窗口快速打开一个菜单的配置模型。</p>

<h2><strong>2. 菜单执行的变量上下文</strong></h2>

<p>&nbsp;&nbsp;&nbsp; 菜单每次执行时都会有自己的变量上下文，但可以使用以下预制的变量：</p>

<ul>
	<li><strong>parent</strong></li>
	<li><strong>explorerShell</strong><br />
	是模型管理器的主Shell，类型是org.eclipse.swt.widgets.Shell。<br />
	&nbsp;</li>
	<li><strong>mainMenu</strong><br />
	<strong>模型</strong>管理器的主菜单，类型是org.eclipse.swt.widgets.Menu。</li>
</ul>
#$@text#$@
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sid
    openMenuDoc
    @/@Help/@Seperator1
    sname
    Seperator
    sdescriptors
    xworker.lang.util.Functions/@Seperator
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    Seperator1
    @/@Help/@API文档
    sname
    API文档
    sen_label
    API
    sdisabled
    false
    sonlyRegist
    false
    sdescriptors
    xworker.lang.util.Functions/@node
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    API文档
      @/@Help/@API文档/@XMeta
      sname
      XMeta
      slabel
      XMeta引擎API
      sen_label
      XMeta Engine API
      surl
      http://www.xworker.org/html/xmeta/index.html
      sdisabled
      false
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@htmlUrl
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      XMeta
      @/@Help/@API文档/@Seperator
      sonlyRegist
      false
      sname
      Seperator
      sdescriptors
      xworker.lang.util.Functions/@Seperator
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_noThingRegistViewer
      false
      sth_fileMonitor
      false
      sth_mark
      false
      sth_registQueryOnlySelf
      false
      snotXmlAttribute
      false
      sjson_isArray
      false
      sid
      Seperator
      @/@Help/@API文档/@Java1_8
      sname
      Java1.8
      slabel
      Java1.8 API
      surl
      https://docs.oracle.com/javase/8/docs/api/index.html
      sdisabled
      false
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@htmlUrl
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_noThingRegistViewer
      false
      sth_fileMonitor
      false
      sth_mark
      false
      sth_registQueryOnlySelf
      false
      snotXmlAttribute
      false
      sjson_isArray
      false
      sid
      Java1_8
      @/@Help/@API文档/@java11
      sname
      java11
      slabel
      Java11 API
      surl
      https://docs.oracle.com/javase/11/docs/api/index.html
      sdisabled
      false
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@htmlUrl
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_noThingRegistViewer
      false
      sth_fileMonitor
      false
      sth_mark
      false
      sth_registQueryOnlySelf
      false
      snotXmlAttribute
      false
      sjson_isArray
      false
      sid
      java11
      @/@Help/@API文档/@java18
      sname
      java18
      slabel
      Java18 API
      surl
      https://docs.oracle.com/javase/18/docs/api/index.html
      sdisabled
      false
      sonlyRegist
      false
      sdescriptors
      xworker.lang.util.Functions/@htmlUrl
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_noThingRegistViewer
      false
      sth_fileMonitor
      false
      sth_mark
      false
      sth_registQueryOnlySelf
      false
      snotXmlAttribute
      false
      sjson_isArray
      false
      sid
      java18
