Package org.openbp.guiclient.event

Examples of org.openbp.guiclient.event.OpenEventInfo


  {
    String mimeType = (String) event.getObject();

    if (MimeTypes.ITEM.equals(mimeType))
    {
      event.addResult(new OpenEventInfo("plugin.itembrowser.open", mimeType, itemBrowser.getTitle()));
      return EVENT_HANDLED;
    }

    return EVENT_IGNORED;
  }
View Full Code Here


    {
      String mimeType = (String) event.getObject();

      if (MimeTypes.PROCESS_ITEM.equals(mimeType) || MimeTypes.PROCESS_NODE.equals(mimeType))
      {
        event.addResult(new OpenEventInfo("open.modeler", mimeType, getPluginResourceCollection().getRequiredString("title.association.modeler")));
        return EVENT_HANDLED;
      }

      return EVENT_IGNORED;
    }
View Full Code Here

    {
      String mimeType = (String) event.getObject();

      if (MimeTypes.ACTIVITY_ITEM.equals(mimeType) || MimeTypes.PROCESS_ITEM.equals(mimeType) || MimeTypes.COMPLEX_TYPE_ITEM.equals(mimeType))
      {
        event.addResult(new OpenEventInfo("open.componenteditor", mimeType, getPluginResourceCollection().getRequiredString("title.association.editor")));
        return EVENT_HANDLED;
      }

      return EVENT_IGNORED;
    }
View Full Code Here

      // Check if there is an association for this MIME type
      MimeTypeAssociation mta = getMimeTypeAssociation(mimeType);

      if (mta != null && mta.getAssociatedProgram() != null)
      {
        event.addResult(new OpenEventInfo("plugin.externalassociation.openfile", mimeType, mta.getDescription()));
        return EVENT_HANDLED;
      }

      return EVENT_IGNORED;
    }
View Full Code Here

TOP

Related Classes of org.openbp.guiclient.event.OpenEventInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.