Package org.eclipse.wb.gef.core.policies

Examples of org.eclipse.wb.gef.core.policies.EditPolicy


  ////////////////////////////////////////////////////////////////////////////
  @Override
  protected void decorateChild(EditPart child) {
    Object childModel = child.getModel();
    if (childModel instanceof FormItemInfo) {
      EditPolicy policy = new AbsoluteLayoutSelectionEditPolicy<AbstractComponentInfo>();
      child.installEditPolicy(EditPolicy.SELECTION_ROLE, policy);
    }
  }
View Full Code Here


  @Override
  protected void decorateChild(EditPart child) {
    Object childModel = child.getModel();
    if (m_layout.isManagedObject(childModel)) {
      EditPolicy policy = new AbsoluteLayoutSelectionEditPolicy<WidgetInfo>();
      m_oldSelectionPolicies.put(child, child.getEditPolicy(EditPolicy.SELECTION_ROLE));
      child.installEditPolicy(EditPolicy.SELECTION_ROLE, policy);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.gef.core.policies.EditPolicy

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.