Examples of Position


Examples of org.eclipse.jface.text.Position

      int annotationLayer = annotationAccess.getLayer(annotation);
      if (annotationAccess != null)
        if (annotationLayer < layer)
          continue;

      Position position = model.getPosition(annotation);
      if (!includesRulerLine(position, document))
        continue;

      boolean isReadOnly = fTextEditor instanceof ITextEditorExtension && ((ITextEditorExtension) fTextEditor).isEditorInputReadOnly();
      if (!isReadOnly) {
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.utils.Position

        widget.setFocus();
        int offset = widget.getSelectionRange().x;
        int line = widget.getContent().getLineAtOffset(offset);
        int offsetAtLine = widget.getContent().getOffsetAtLine(line);
        int column = offset - offsetAtLine;
        return new Position(line, column);
      }
    });
  }
View Full Code Here

Examples of org.eclipse.ui.internal.misc.StringMatcher.Position

    private boolean match(String text) {
      if (matcher==null) {
        return true; // Search term not set... anything is acceptable.
      } else {
        Position x = matcher.find(text, 0, text.length());
        return x!=null;
      }
    }
View Full Code Here

Examples of org.fxmisc.richtext.TwoDimensional.Position

            area.replaceText(start, end, "");
        }
    }

    private void downLines(SelectionPolicy selectionPolicy, int nLines) {
        Position currentLine = visual.currentLine();
        Position targetLine = currentLine.offsetBy(nLines, Forward).clamp();
        if(!currentLine.sameAs(targetLine)) {
            // compute new caret position
            int newCaretPos = visual.getInsertionIndex(getTargetCaretOffset(), targetLine);

            // update model
View Full Code Here

Examples of org.geoserver.wms.WatermarkInfo.Position

        return watermark.getTransparency();
    }

    public int getWatermarkPosition() {
        WatermarkInfo watermark = getServiceInfo().getWatermark();
        Position position = watermark.getPosition();
        return position.getCode();
    }
View Full Code Here

Examples of org.jboss.dna.common.text.Position

            command = parseQuery(tokens, typeSystem);
            while (tokens.hasNext()) {
                if (tokens.matchesAnyOf("UNION", "INTERSECT", "EXCEPT")) {
                    command = parseSetQuery(tokens, command, typeSystem);
                } else {
                    Position pos = tokens.previousPosition();
                    String msg = GraphI18n.unexpectedToken.text(tokens.consume(), pos.getLine(), pos.getColumn());
                    throw new ParsingException(pos, msg);
                }
            }
        } else {
            // We expected SELECT ...
            Position pos = tokens.nextPosition();
            String msg = GraphI18n.unexpectedToken.text(tokens.consume(), pos.getLine(), pos.getColumn());
            throw new ParsingException(pos, msg);
        }
        return command;
    }
View Full Code Here

Examples of org.jbox2d.dynamics.contacts.Position

    if (m_positions == null || m_bodyCapacity > m_positions.length) {
      final Position[] old = m_positions == null ? new Position[0] : m_positions;
      m_positions = new Position[m_bodyCapacity];
      System.arraycopy(old, 0, m_positions, 0, old.length);
      for (int i = old.length; i < m_positions.length; i++) {
        m_positions[i] = new Position();
      }
    }
  }
View Full Code Here

Examples of org.jbpm.formapi.shared.api.items.BorderPanelRepresentation.Position

    @Override
    public FormItemRepresentation getRepresentation() {
        BorderPanelRepresentation rep = super.getRepresentation(new BorderPanelRepresentation());
        for (Map.Entry<Position, FBFormItem> entry : this.locations.entrySet()) {
            Position key = entry.getKey();
            FormItemRepresentation value = entry.getValue().getRepresentation();
            rep.putItem(key, value);
        }
        return rep;
    }
View Full Code Here

Examples of org.kie.api.definition.type.Position

                          fld.getAnnotations().length );
            assertNotNull( fld.getAnnotation( Deprecated.class ) );
            assertNotNull( fld.getAnnotation( Position.class ) );
            assertNotNull( fld.getAnnotation( Key.class ) );

            Position pos = fld.getAnnotation( Position.class );
            assertEquals( 0,
                          pos.value() );
        } catch ( NoSuchFieldException nsfe ) {
            fail( "field name has not been generated correctly : " + nsfe.getMessage() );
        }

        Annotation[] anns = clazz.getAnnotations();
View Full Code Here

Examples of org.kie.definition.type.Position

            // as these could be set in any order, initialise first, to allow setting later.
            orderedFields.add( null );
        }

        for (Field fld : fields) {
            Position pos = fld.getAnnotation( Position.class );
            if (pos != null) {
                FieldDefinition fldDef = new FieldDefinition( fld.getName(),
                                                              fld.getType().getName() );
                fldDef.setIndex( pos.value() );
                orderedFields.set( pos.value(),
                                   fldDef );
            }
        }
        for (FieldDefinition fld : orderedFields) {
            if (fld != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.