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

org.openxma.xmadsl.Extensions.ext Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
import pom;
import dom;
import core;
import guidesign;

extension org::openxma::dsl::common::extensions::LogUtil reexport;
extension org::eclipse::xtend::util::stdlib::cloning;
extension extensions::Customization;

String id(emf::EObject x) :
	let p = x.metaType.getProperty("name") :
		p==null?
			null :
			p.get(x);
			

String id(XMAComponent x) :
	x.namClass;
	
String id(XMAComposite x) :
	x.namInstance;	
					
String id(Component x) :
	(x.xmaComponent == null) 
		? null 
		: x.xmaComponent.id();		
		
String id(ReferencedXMAComposite x) :
	(x.xmaComposite == null) 
		? null 
		: x.xmaComposite.id();
		
String id(ReferencedXMAPage x) :
	(x.xmaPage == null) 
		? null
		: x.xmaPage.id();	

String id(IBDAttachable x) :
	error("Id not defined for IBDAttachable");
		
String id(XMAText x) :
	x.namInstance;
	
String id(XMAList x) :
	x.namInstance;	
	
String id(HiddenWidget x) :
	x.namInstance;
	
String id(XMATable x) :
	x.namInstance;	
	
String id(XMACombo x) :
	x.namInstance;	
	
String id(SimpleCombo x) :
	x.namInstance;		

String id(XMAWidget x) :
	x.namInstance;
	
String id(XMATableColumn x):
	x.namInstance;	 	
		
String id(XMAPage x) :
	x.namClass;
	
String id(NotebookPage x) :
	x.namClass;	
	
String id(XMACompProperty x) :
	x.namProperty;
	
String id(PresentableFeature x) :
	x.name;


String id(pom::IField f) :
	f.object.name+"."+f.getAttributeName();	
	 
String id(pom::FieldReference f) :
	f.object.name+"."+f.getAttributeName();
		
String id(pom::CustomizeableField f) :	
	f.object.name+"."+f.getAttributeName();	
	
String id(flex::XMAFunction f):
	f.namFunction;	
	
String id(GuiElement x) :
	let p = x.metaType.getProperty("name") :
		p==null?
			null :
			p.get(x);
			
String id(BDAttribute x):
	x.bdObject.namInstance+"."+x.namAttrVal;
	
String id(Content x):
	x.eContainer.id()+"-content";
	
String id(ComplexElement x):
	let p = x.metaType.getProperty("name") : // Use name property if available
	(p != null)
		? p.get(x)
		: ( let container = (Content)x.eContainer:	
			x.eContainer.id()+"-contentitem["+x+"]");	



String getLabelText(CustomizeableField field):
JAVA org.openxma.xmadsl.XmadslModelExtension.getLabelText(org.openxma.dsl.pom.model.CustomizeableField);

String getTooltipText(CustomizeableField field):
JAVA org.openxma.xmadsl.XmadslModelExtension.getTooltipText(org.openxma.dsl.pom.model.CustomizeableField);

String getUnitText(CustomizeableField field):
JAVA org.openxma.xmadsl.XmadslModelExtension.getUnitText(org.openxma.dsl.pom.model.CustomizeableField);

Attribute getUnitAttribute(CustomizeableField field):
JAVA org.openxma.xmadsl.XmadslModelExtension.getUnitAttribute(org.openxma.dsl.pom.model.CustomizeableField);

Object getUnitObject(CustomizeableField field):
JAVA org.openxma.xmadsl.XmadslModelExtension.getUnitObject(org.openxma.dsl.pom.model.CustomizeableField);

String getName(PresentableFeature attributeHolder):
	attributeHolder.name;

String getAttributeName(IField field):
JAVA org.openxma.xmadsl.XmadslModelExtension.getAttributeName(org.openxma.dsl.pom.model.IField);

Attribute getAttribute(IField field):
JAVA org.openxma.xmadsl.XmadslModelExtension.getAttribute(org.openxma.dsl.pom.model.IField);






© 2015 - 2024 Weber Informatics LLC | Privacy Policy