Package com.google.gdt.eclipse.designer.uibinder.model.widgets

Examples of com.google.gdt.eclipse.designer.uibinder.model.widgets.UIObjectInfo


  //
  // Operations
  //
  ////////////////////////////////////////////////////////////////////////////
  public void commandCreate(Object newObject, Object nextObject) throws Exception {
    UIObjectInfo newItem = (UIObjectInfo) newObject;
    UIObjectInfo nextItem = (UIObjectInfo) nextObject;
    // add new item
    XmlObjectUtils.add(newItem, Associations.direct(), m_menu, nextItem);
    // schedule selection
    MenuObjectInfoUtils.setSelectingObject(newItem);
  }
View Full Code Here


  @SuppressWarnings("unchecked")
  public List<?> commandPaste(Object mementoObject, Object nextObject) throws Exception {
    List<UIObjectInfo> pastedObjects = Lists.newArrayList();
    List<XmlObjectMemento> mementos = (List<XmlObjectMemento>) mementoObject;
    for (XmlObjectMemento memento : mementos) {
      UIObjectInfo newItem = (UIObjectInfo) memento.create(m_menu);
      commandCreate(newItem, nextObject);
      memento.apply();
      pastedObjects.add(newItem);
    }
    return pastedObjects;
View Full Code Here

    }
    return pastedObjects;
  }

  public void commandMove(Object object, Object nextObject) throws Exception {
    UIObjectInfo item = (UIObjectInfo) object;
    UIObjectInfo nextItem = (UIObjectInfo) nextObject;
    // move item
    XmlObjectUtils.move(item, Associations.direct(), m_menu, nextItem);
    // schedule selection
    MenuObjectInfoUtils.setSelectingObject(item);
  }
View Full Code Here

  ////////////////////////////////////////////////////////////////////////////
  public void contributeMenu(IMenuManager manager, Property property) throws Exception {
    if (property instanceof GenericPropertyImpl) {
      GenericPropertyImpl genericProperty = (GenericPropertyImpl) property;
      if (genericProperty.getObject() instanceof UIObjectInfo) {
        UIObjectInfo object = (UIObjectInfo) genericProperty.getObject();
        MethodExpressionAccessor accessor = getMethodAccessor(genericProperty);
        if (accessor != null) {
          manager.insertAfter(GROUP_EDIT, new ExposePropertyAction(genericProperty,
              object,
              accessor));
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.uibinder.model.widgets.UIObjectInfo

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.