org.eclipse.swt.ole.win32
Class VariantWrapper

java.lang.Object
  extended by org.eclipse.swt.ole.win32.VariantWrapper

public class VariantWrapper
extends java.lang.Object

As its name implies the Variant Wrapper class wraps a SWT Variant class. Its sole purpose is to allows access to the package level setData and getData methods. This class is a MAJOR hack however due to limitations in SWT it is required. It does not work in an eclipe plugin since OSDI will trap any attempts to do this sort of security breach. SWT version 3.3 will fix this problem and remove the need for this HACK!

Author:
Mark Richter

Constructor Summary
VariantWrapper()
          Constructs a new VariantWrapper that will create a new Variant.
VariantWrapper(org.eclipse.swt.ole.win32.Variant variant)
          Constructs a new VariantWrapper that wrap the specified Variant.
 
Method Summary
 void getData(int pData)
          Gets the data of the wrapped variant and moves it to the specified address.
 org.eclipse.swt.ole.win32.Variant getVariant()
          Returns the wrapped variant.
 void setData(int pData)
          Sets the data of the wrapped variant to the data contained at the specified address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariantWrapper

public VariantWrapper()
Constructs a new VariantWrapper that will create a new Variant.


VariantWrapper

public VariantWrapper(org.eclipse.swt.ole.win32.Variant variant)
Constructs a new VariantWrapper that wrap the specified Variant.

Parameters:
variant - the variant to wrap.
Method Detail

setData

public void setData(int pData)
Sets the data of the wrapped variant to the data contained at the specified address.

Parameters:
pData - the address that contains data to set into the wrapped variant.

getData

public void getData(int pData)
Gets the data of the wrapped variant and moves it to the specified address.

Parameters:
pData - the address in to which the data of the wrapped variant should be placed.

getVariant

public org.eclipse.swt.ole.win32.Variant getVariant()
Returns the wrapped variant.

Returns:
the wrapped variant.