Package org.eclipse.gef.examples.logicdesigner.rulers

Examples of org.eclipse.gef.examples.logicdesigner.rulers.LogicRulerProvider


protected void loadProperties() {
  // Ruler properties
  LogicRuler ruler = getLogicDiagram().getRuler(PositionConstants.WEST);
  RulerProvider provider = null;
  if (ruler != null) {
    provider = new LogicRulerProvider(ruler);
  }
  getGraphicalViewer().setProperty(RulerProvider.PROPERTY_VERTICAL_RULER, provider);
  ruler = getLogicDiagram().getRuler(PositionConstants.NORTH);
  provider = null;
  if (ruler != null) {
    provider = new LogicRulerProvider(ruler);
  }
  getGraphicalViewer().setProperty(RulerProvider.PROPERTY_HORIZONTAL_RULER, provider);
  getGraphicalViewer().setProperty(RulerProvider.PROPERTY_RULER_VISIBILITY,
      new Boolean(getLogicDiagram().getRulerVisibility()));
 
View Full Code Here

TOP

Related Classes of org.eclipse.gef.examples.logicdesigner.rulers.LogicRulerProvider

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.