本文整理汇总了Java中org.eclipse.swt.ole.win32.OleAutomation类的典型用法代码示例。如果您正苦于以下问题:Java OleAutomation类的具体用法?Java OleAutomation怎么用?Java OleAutomation使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OleAutomation类属于org.eclipse.swt.ole.win32包,在下文中一共展示了OleAutomation类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAutomation
import org.eclipse.swt.ole.win32.OleAutomation; //导入依赖的package包/类
@Override
public IOleAutomation getAutomation() {
if (oleAutomationLazy == null) {
oleAutomationLazy = new OleAutomationImpl(new OleAutomation(getOleControlSite()));
}
return oleAutomationLazy;
}
示例2: getTypeInfo
import org.eclipse.swt.ole.win32.OleAutomation; //导入依赖的package包/类
static String getTypeInfo(final OleAutomation auto) {
final StringBuilder result = new StringBuilder();
final TYPEATTR typeattr = auto.getTypeInfoAttributes();
if (typeattr != null) {
if (typeattr.cFuncs > 0) {
result.append("Functions :\n");
}
for (int i = 0; i < typeattr.cFuncs; i++) {
final OleFunctionDescription description = auto.getFunctionDescription(i);
result.append(getInvokeKind(description.invokeKind)
+ " (id = "
+ description.id
+ ") : "
+ "\n\tSignature : "
+ getTypeName(description.returnType)
+ " "
+ description.name
+ "("
+ getFunctionDescription(description)
+ ")"
+ "\n\tDescription : "
+ description.documentation
+ "\n\tHelp File : "
+ description.helpFile
+ "\n");
}
if (typeattr.cVars > 0) {
result.append("\n\nVariables :\n");
}
for (int i = 0; i < typeattr.cVars; i++) {
final OlePropertyDescription data = auto.getPropertyDescription(i);
result.append("PROPERTY (id = "
+ data.id
+ ") :"
+ "\n\tName : "
+ data.name
+ "\n\tType : "
+ getTypeName(data.type)
+ "\n");
}
}
return result.toString();
}
示例3: OleAutomationImpl
import org.eclipse.swt.ole.win32.OleAutomation; //导入依赖的package包/类
OleAutomationImpl(final OleAutomation oleAutomation) {
Assert.paramNotNull(oleAutomation, "oleAutomation");
this.oleAutomation = oleAutomation;
this.oleEventObservable = new OleEventObservable(oleAutomation);
this.oleEventObservable.setSwtOleControlSite(getOleControlSite());
}
示例4: OleEventObservable
import org.eclipse.swt.ole.win32.OleAutomation; //导入依赖的package包/类
OleEventObservable(final OleAutomation oleAutomation) {
this.oleAutomation = oleAutomation;
this.listenersMap = new HashMap<Integer, Tuple<OleListener, Set<IOleEventListener>>>();
}