Example usage for org.eclipse.swt.ole.win32 OleControlSite OleControlSite

List of usage examples for org.eclipse.swt.ole.win32 OleControlSite OleControlSite

Introduction

In this page you can find the example usage for org.eclipse.swt.ole.win32 OleControlSite OleControlSite.

Prototype

public OleControlSite(Composite parent, int style, String progId, File file) 

Source Link

Document

Create an OleClientSite child widget to edit the specified file using the specified OLE Document application.

Usage

From source file:org.eclipse.swt.examples.ole.win32.OLEExample.java

OleClientSite createSite(OleFrame frame, String progID, File file) {
    if (createClientSite) {
        return new OleClientSite(frame, SWT.NONE, progID, file);
    } else {//from  w  w  w  . j  a v a 2 s  .  c o  m
        return new OleControlSite(frame, SWT.NONE, progID, file);
    }
}