Package org.openbp.common.generic.propertybrowser

Examples of org.openbp.common.generic.propertybrowser.CollectionDescriptor


    {
      // Doesn't matter if we can't find a create method
    }

    // Try to instantiate a new object using the default constructor
    CollectionDescriptor cd = getCollectionDescriptor();
    Class elementClass = cd.getSafeTypeClass();

    if (elementClass == null && list != null && list.size() > 0)
    {
      // If we don't have class info, try to guess from the list contents
      Object element = list.get(0);
View Full Code Here


    {
      // Node not associated with a collection, no popup menu
      return null;
    }

    CollectionDescriptor cd = cdn.getCollectionDescriptor();
    Class elementClass = cd.getSafeTypeClass();
    DataFlavor elementFlavor = new DataFlavor(elementClass, elementClass.getName());

    // Try to get the type of element we need from the clipboard
    Object o = null;
    try
View Full Code Here

    if (cdn != null && cdn.allowsNodeAddition())
    {
      Transferable transferable = ClipboardMgr.getInstance().getCurrentEntry();
      if (transferable != null)
      {
        CollectionDescriptor cd = cdn.getCollectionDescriptor();
        Class elementClass = cd.getSafeTypeClass();
        DataFlavor elementFlavor = new DataFlavor(elementClass, elementClass.getName());
        canPaste = transferable.isDataFlavorSupported(elementFlavor);
      }
    }
    actions [ACTION_INDEX_PASTE].setEnabled(canPaste);
View Full Code Here

TOP

Related Classes of org.openbp.common.generic.propertybrowser.CollectionDescriptor

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.