Package org.eclipse.gef

Examples of org.eclipse.gef.SnapToGuides


    if (adapter == SnapToHelper.class) {
      List snapStrategies = new ArrayList();
      Boolean val = (Boolean) getViewer().getProperty(
          RulerProvider.PROPERTY_RULER_VISIBILITY);
      if (val != null && val.booleanValue())
        snapStrategies.add(new SnapToGuides(this));
      val = (Boolean) getViewer().getProperty(
          SnapToGeometry.PROPERTY_SNAP_ENABLED);
      if (val != null && val.booleanValue())
        snapStrategies.add(new SnapToGeometry(this));
      val = (Boolean) getViewer().getProperty(
View Full Code Here


  public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
    if (adapter == SnapToHelper.class) {
      List<SnapToHelper> snapStrategies = new ArrayList<SnapToHelper>();
      Boolean val = (Boolean) getViewer().getProperty(RulerProvider.PROPERTY_RULER_VISIBILITY);
      if (val != null && val.booleanValue())
        snapStrategies.add(new SnapToGuides(this));
      val = (Boolean) getViewer().getProperty(SnapToGeometry.PROPERTY_SNAP_ENABLED);
      if (val != null && val.booleanValue())
        snapStrategies.add(new SnapToGeometry(this));
      val = (Boolean) getViewer().getProperty(SnapToGrid.PROPERTY_GRID_ENABLED);
      if (val != null && val.booleanValue())
View Full Code Here

public Object getAdapter(Class adapter) {
  if (adapter == SnapToHelper.class) {
    List snapStrategies = new ArrayList();
    Boolean val = (Boolean)getViewer().getProperty(RulerProvider.PROPERTY_RULER_VISIBILITY);
    if (val != null && val.booleanValue())
      snapStrategies.add(new SnapToGuides(this));
    val = (Boolean)getViewer().getProperty(SnapToGeometry.PROPERTY_SNAP_ENABLED);
    if (val != null && val.booleanValue())
      snapStrategies.add(new SnapToGeometry(this));
    val = (Boolean)getViewer().getProperty(SnapToGrid.PROPERTY_GRID_ENABLED);
    if (val != null && val.booleanValue())
View Full Code Here

TOP

Related Classes of org.eclipse.gef.SnapToGuides

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.