Package org.openbp.jaspira.gui.interaction

Examples of org.openbp.jaspira.gui.interaction.BasicTransferable


            setSelectedObject(newItem);
            focusPlugin();

            if (newItem instanceof ProcessItem)
            {
              fireEvent("plugin.association.open", new BasicTransferable(newItem));
            }
          }
        });
      }
    }
View Full Code Here


    if (mo instanceof Item)
    {
      ((Item) mo).setRuntimeAttribute(Modeler.ATTRIBUTE_SKELETON, Boolean.TRUE);
    }
    addToolBoxItem(new ToolBoxItem(null, mo.getModelObjectSymbolName(), getPluginResourceCollection().getOptionalString(tooltipResourceName),
      new BasicTransferable(mo)));
  }
View Full Code Here

            if (o instanceof Item)
            {
              item = (Item) o;

              addToolBoxItem(new ToolBoxItem(item.getDisplayText(), ItemIconMgr.getInstance().getIcon(item, FlexibleSize.MEDIUM), item
                .getDescriptionText(), new BasicTransferable(item)));
              refreshContent();
            }
          }
          catch (UnsupportedFlavorException e)
          {
          }
          catch (IOException e)
          {
          }
        }

        if (flavors[i].equals(ModelerFlavors.COLOR))
        {
          try
          {
            Color c = (Color) data.getTransferData(ModelerFlavors.COLOR);

            ResourceCollection res = getPluginResourceCollection();
            StringBuffer description = new StringBuffer();
            description.append(res.getOptionalString("color.red"));
            description.append(' ');
            description.append(c.getRed());
            description.append('\n');
            description.append(res.getOptionalString("color.green"));
            description.append(' ');
            description.append(c.getGreen());
            description.append('\n');
            description.append(res.getOptionalString("color.blue"));
            description.append(' ');
            description.append(c.getBlue());

            addToolBoxItem(new ToolBoxItem(res.getOptionalString("color.title"), ColorChooserPlugin.createColorDragIcon(c).getIcon(
              FlexibleSize.MEDIUM), description.toString(), new BasicTransferable(c)));
            refreshContent();
          }
          catch (UnsupportedFlavorException e)
          {
          }
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.gui.interaction.BasicTransferable

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.