OpenEvent oe = null;
String mimeType = openEventInfo [0].getMimeType();
if (mimeType.startsWith("text/") && (underlyingObject instanceof Item))
{
FileOpenEvent foe = new FileOpenEvent(AssociationPlugin.this, openEventInfo [0].getEventName(), (String) object, new String [] { openEventInfo [0].getMimeType() });
foe.setUnderlyingObject(underlyingObject);
foe.setReadonly(readOnly);
foe.setCreate(true);
if (event instanceof FileOpenEvent)
{
foe.setColumnNumber(((FileOpenEvent) event).getColumnNumber());
foe.setLineNumber(((FileOpenEvent) event).getLineNumber());
}
oe = foe;
}
else