^1440119917086
@
Stextarea
#$@text#$@
package xworker.swt.xwidgets;

import ognl.OgnlException;

import org.xmeta.ActionContext;
import org.xmeta.Thing;
import org.xmeta.World;
import org.xmeta.util.UtilData;
import org.xmeta.util.UtilMap;

import xworker.swt.ActionContainer;

public class DemoThing {
	public static Object create(ActionContext actionContext) throws OgnlException{
		Thing self = (Thing) actionContext.get("self");
		
		//要演示的事物
		Object com = UtilData.getData(self, "thing", actionContext);
		Thing comThing = null;
		if(com instanceof Thing){
			comThing = (Thing) com;
		}else if(com instanceof String){
			comThing = World.getInstance().getThing((String) com);
		}
		
		//创建演示的TabFolder
		Thing tabThing = World.getInstance().getThing("xworker.swt.xwidgets.DemoThing/@demoTabFolder");
		ActionContext ac = new ActionContext();
		ac.put("parent", actionContext.get("parent"));
		tabThing.doAction("create", ac);
		
		//演示的动作集
		ActionContainer actions = (ActionContainer) ac.get("actions");
		if(comThing != null){
			actions.doAction("setThing", ac, UtilMap.toMap("thing", comThing));
		}
		
		actionContext.getScope(0).put(self.getMetadata().getName(), actions);
		return actions;
	}
}
#$@text#$@
slabel
EditorInstance
smultiSelect
java,c
sinputselect
c
streeselect
E:\git\xworker\xworker\.\src\res,E:\git\xworker\xworker\.\src\xworker\app\model\tree\actions\TreeModelActionsDeleteCreator.java,E:\git\xworker\xworker\.\src\xworker\app\model\tree\actions\TreeModelActionsEventDeleteCreator.java
SdropdownWindow
#$@text#$@
dfdf
xvsdf
#$@text#$@
struefalse
false
struefalseselect
true
scheckbox
c++
sradio
c
spassword
fff
sdatepick
2015-08-18
sdatetime
2015-08-17 23:23:52
stime
23:19:28
sopenwindow
E:\git\xworker\xworker\CONTRIBUTORS
sthingselecor
xworker.codegenerator.CodeGeneratorTree
spathSelector
xworker.codegenerator
ScodeEditor
#$@text#$@
package xworker.swt.xwidgets;

import ognl.OgnlException;

import org.xmeta.ActionContext;
import org.xmeta.Thing;
import org.xmeta.World;
import org.xmeta.util.UtilData;
import org.xmeta.util.UtilMap;

import xworker.swt.ActionContainer;

public class DemoThing {
	public static Object create(ActionContext actionContext) throws OgnlException{
		Thing self = (Thing) actionContext.get("self");
		
		//要演示的事物
		Object com = UtilData.getData(self, "thing", actionContext);
		Thing comThing = null;
		if(com instanceof Thing){
			comThing = (Thing) com;
		}else if(com instanceof String){
			comThing = World.getInstance().getThing((String) com);
		}
		
		//创建演示的TabFolder
		Thing tabThing = World.getInstance().getThing("xworker.swt.xwidgets.DemoThing/@demoTabFolder");
		ActionContext ac = new ActionContext();
		ac.put("parent", actionContext.get("parent"));
		tabThing.doAction("create", ac);
		
		//演示的动作集
		ActionContainer actions = (ActionContainer) ac.get("actions");
		if(comThing != null){
			actions.doAction("setThing", ac, UtilMap.toMap("thing", comThing));
		}
		
		actionContext.getScope(0).put(self.getMetadata().getName(), actions);
		return actions;
	}
}
#$@text#$@
sfontSelector
"|10|2|#000000"
scolorPick
"#008080"
simagePick
C:\Program Files\Java\jdk1.7.0_17\lib\jvm.lib
sfilePick
world|\lib\db\c3p0-oracle-thin-extras-0.9.1.2.jar
sdirPick
C:\Users\zyx\Downloads
sdataTable
26,27,29
sname
EditorInstance
sdescriptors
xworker.example.ide.thingeditor.EditorDescriptor
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
