本文整理匯總了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>>>();
}