All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.swt.actions.ShellActions.xer.txt Maven / Gradle / Ivy

^1437989264050
@
sname
ShellActions
slabel
ShellActions
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
sid
ShellActions
@/@ShellNormalActions1
sname
ShellNormalActions
sdescriptors
xworker.lang.MetaDescriptor3/@thing
sextends
xworker.lang.actions.SelfAction
smany
true
seditCols
2
sinitialization
false
sgroup
swt.shell
smodifier
public
sinheritDescription
false
sdescription

一些常用的简单的Shell操作。

sid ShellNormalActions1 sth_createIndex true sth_registThing child|xworker.lang.actions.Actions sth_mark false @/@ShellNormalActions1/@actions sname actions sid actions slabel actions sdescriptors xworker.lang.MetaDescriptor3/@actions @/@ShellNormalActions1/@actions/@run sname run sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.actions.ShellActionsShellNormalActionsCreator smethodName run sdisableGlobalContext false sid run sdescriptors xworker.lang.actions.JavaAction @/@ShellNormalActions1/@name sname name sinheritDescription false sdescription

Shell的变量名。

LvalidateOnBlur false LallowDecimals false LallowNegative false sid name sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@ShellNormalActions1/@label sname label sinheritDescription false LvalidateOnBlur false LallowDecimals false LallowNegative false sid label sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@ShellNormalActions1/@shellName sname shellName sinputtype openWindow sinputattrs xworker.swt.xworker.attributeEditor.openWins.SelectThingOpenWindow/@shell|descriptor=xworker.swt.widgets.Shell,returnType=name sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur false LallowDecimals false LallowNegative false sid shellName sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@ShellNormalActions1/@method sname method sinputtype select sdefault dispose sinheritDescription false LvalidateOnBlur false LallowDecimals false LallowNegative false sid method sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@ShellNormalActions1/@method/@active sname active slabel active svalue active sid active sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@ShellNormalActions1/@method/@dispose sname dispose slabel dispose svalue dispose sid dispose sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@ShellNormalActions1/@method/@enable sname enable slabel enable svalue enable sid enable sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@ShellNormalActions1/@method/@disable sname disable slabel disable svalue disable sid disable sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@ShellNormalActions1/@method/@fullScreen sname fullScreen slabel fullScreen svalue fullScreen sid fullScreen sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@ShellNormalActions1/@method/@unFullScreen sname unFullScreen slabel unFullScreen svalue unFullScreen sid unFullScreen sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@ShellNormalActions1/@method/@visible sname visible slabel visible svalue visible sid visible sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@ShellNormalActions1/@method/@unVisible sname unVisible slabel unVisible svalue unVisible sid unVisible sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@OpenShell sname OpenShell sdescriptors xworker.lang.MetaDescriptor3/@thing sextends xworker.lang.actions.SelfAction smany true seditCols 2 sinitialization false sgroup swt.shell smodifier public sinheritDescription false sdescription

打开一个Shell。

sid OpenShell sth_createIndex true sth_registThing child|xworker.lang.actions.Actions sth_mark false @/@OpenShell/@actions sname actions sid actions slabel actions sdescriptors xworker.lang.MetaDescriptor3/@actions @/@OpenShell/@actions/@run sname run sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.actions.ShellActionsOpenShellCreator smethodName run sdisableGlobalContext false sid run sdescriptors xworker.lang.actions.JavaAction @/@OpenShell/@name sname name sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid name sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@OpenShell/@label sname label sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid label sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@OpenShell/@singleInstance sname singleInstance sinputtype truefalse sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid singleInstance sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@OpenShell/@anotherThread sname anotherThread sinputtype truefalse sreadOnly false sdefault false sinheritDescription false sdescription

是否另外启动一个线程打开Shell。

svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid anotherThread sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@OpenShell/@parent sname parent sreadOnly false sinheritDescription false sdescription

display或者shell变量名,如果没有取当前活动的shell,如果shell不存在不打开窗口。

svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid parent sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@OpenShell/@shellPath sname shellPath sinputtype openWindow ssize 60 scolspan 2 sinputattrs xworker.lang.attributeEditors.openWins.SelectThingOpenWindow/@shell|descriptor=xworker.swt.widgets.Shell,returnType=path sreadOnly false sinheritDescription false sdescription

使用Ognl表达式获取,"xxxx"是字符串常量。

svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid shellPath sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@OpenShell/@description sname description sinputtype html sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_mark false @/@OpenCompositeShell sname OpenCompositeShell sdescriptors xworker.lang.MetaDescriptor3/@thing sextends xworker.lang.actions.SelfAction smany true seditCols 2 sinitialization false sgroup swt.shell smodifier public sinheritDescription false sdescription

在一个Shell中打开一个Composite,指定Composite在Shell中打开。

snotXmlAttribute false sth_createIndex true sth_registThing child|xworker.lang.actions.Actions sth_registMyChilds false sth_mark false @/@OpenCompositeShell/@actions sname actions sdescriptors xworker.lang.MetaDescriptor3/@actions sinheritDescription false sth_createIndex false sth_registMyChilds false sth_mark false @/@OpenCompositeShell/@actions/@run sname run sisSynchronized false sthrowException true suseOtherAction false svarScope Local sdisableGlobalContext false Scode #$@text#$@ import org.xmeta.ActionContext; //创建窗口 def ac = new ActionContext(); def shellThing = world.getThing("xworker.swt.actions.CompositeShell"); def shell = shellThing.doAction("create", ac); //创建composite ac.put("parent", shell); def compositeThing = world.getThing(self.getString("compositePath")); if(compositeThing != null){ compositeThing.doAction("create", ac); } //设置标题 if(self.getStringBlankAsNull("title") != null){ shell.setText(self.getString("title")); } //打开窗口 shell.setVisible(true); #$@text#$@ sinterpretationType Action screateLocalVarScope false ssaveReturn false sdebugLog false sdescriptors xworker.lang.actions.Actions/@GroovyAction sinheritDescription false sth_createIndex false sth_registMyChilds false sth_mark false @/@OpenCompositeShell/@name sname name sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_mark false @/@OpenCompositeShell/@label sname label sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_mark false @/@OpenCompositeShell/@title sname title sshowLabel true ssize 50 sreadOnly false sdefault 标题 sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_mark false @/@OpenCompositeShell/@compositePath sname compositePath sinputtype dataSelector sshowLabel true ssize 60 sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_mark false @/@OpenCompositeShell/@description sname description sinputtype html sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_mark false @/@ShellDialog sname ShellDialog slabel ShellDialog sdescriptors xworker.lang.MetaDescriptor3/@thing,xworker.lang.MetaDescriptor3 sextends xworker.lang.actions.SelfAction smany true seditCols 2 sinitialization false sgroup swt.dialogs smodifier public sinheritDescription false Sdescription #$@text#$@

把一个Shell当作Dialog弹出,返回dialog的结果。

本动作的结果列表中条件_result != null为已设置值。

shell作为dialog时,如果有返回值设置到actionContext的result变量中,否则设置result变量为null。

#$@text#$@ sid ShellDialog sth_createIndex true sth_registThing child|xworker.lang.actions.Actions sth_mark false @/@ShellDialog/@actions sname actions sid actions slabel actions sdescriptors xworker.lang.MetaDescriptor3/@actions @/@ShellDialog/@actions/@run sname run sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.actions.ShellActionsShellDialogCreator smethodName run sdisableGlobalContext false sid run sdescriptors xworker.lang.actions.JavaAction @/@ShellDialog/@name sname name sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid name sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@ShellDialog/@label sname label sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid label sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@ShellDialog/@dataObject sname shellPath sinputtype dataSelector ssize 60 scolspan 2 sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid dataObject sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@ShellDialog/@ImportVars sname VarSettingOnInit slabel 初始变量设置 sdescriptors xworker.lang.MetaDescriptor3/@thing smany true seditCols 2 sinitialization false smodifier public sinheritDescription false sdescription

创建对话框前的变量设置,即设置新的变量上下文的变量。

sid ImportVars @/@ShellDialog/@ImportVars/@VarSetting sname VarSetting slabel 变量设置 sdescriptors xworker.lang.MetaDescriptor3/@thing smany true seditCols 2 sinitialization false smodifier public sinheritDescription false sid VarSetting @/@ShellDialog/@ImportVars/@VarSetting/@name sname name sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid name sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@ShellDialog/@ImportVars/@VarSetting/@label sname label sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid label sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@ShellDialog/@ImportVars/@VarSetting/@sourcePath sname sourcePath sreadOnly false sinheritDescription false sdescription

使用ognl.

svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid sourcePath sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@ShellDialog/@ImportVars/@VarSetting/@targetPath sname targetPath sreadOnly false sinheritDescription false sdescription

使用ognl.

svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sid targetPath sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@ShellDialog/@VarSettingOnEnd sname VarSettingOnCreated slabel 创建后变量设置 sdescriptors xworker.lang.MetaDescriptor3/@thing smany true seditCols 2 sinitialization false smodifier public sinheritDescription false sdescription

对话框创建之后的变量设置,如设置标题等。

sid VarSettingOnEnd @/@ShellDialog/@VarSettingOnEnd/@VarSetting sname VarSetting slabel 变量设置 sdescriptors xworker.lang.MetaDescriptor3/@thing sextends xworker.swt.actions.ShellActions/@ShellDialog/@ImportVars/@VarSetting smany true seditCols 2 sinitialization false smodifier public sinheritDescription true sid VarSetting @/@SystemExitOnNoActiveShell sname SystemExitOnNoActiveWindow sdescriptors xworker.lang.MetaDescriptor3/@thing sextends xworker.lang.actions.SelfAction smany true seditCols 2 sinitialization false sgroup swt smodifier public sinheritDescription false Sdescription #$@text#$@

如果当前没有任何活动的窗口(Windows),那么调用System.exit(0)。

目前只实现了SWT的窗口判断。

#$@text#$@ sth_createIndex true sth_registThing child|xworker.lang.actions.Actions sth_mark false @/@SystemExitOnNoActiveShell/@actions sname actions sid actions slabel actions sdescriptors xworker.lang.MetaDescriptor3/@actions @/@SystemExitOnNoActiveShell/@actions/@run sname run sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.actions.ShellActions smethodName systemExitOnNoActiveWindow sdisableGlobalContext false sattributeTemplate false sinterpretationType Action svarScope Global screateLocalVarScope false ssaveReturn false sid run sdescriptors xworker.lang.actions.JavaAction




© 2015 - 2025 Weber Informatics LLC | Privacy Policy