Examples of parent()


Examples of org.eclipse.jgit.junit.TestRepository.CommitBuilder.parent()

    // merge b1Tip and b2Tip and update refs/heads/b1 to the merge commit
    Merger merger = MergeStrategy.SIMPLE_TWO_WAY_IN_CORE.newMerger(repo);
    merger.merge(b1Tip, b2Tip);
    CommitBuilder cb = tr.commit();
    cb.parent(b1Tip).parent(b2Tip);
    cb.setTopLevelTree(merger.getResultTreeId());
    RevCommit mergeCommit = cb.create();
    RefUpdate u = repo.updateRef("refs/heads/b1");
    u.setNewObjectId(mergeCommit);
    u.update();
View Full Code Here

Examples of org.eclipse.sapphire.Element.parent()

                {
                    element = element.root();
                }
                else if( segment instanceof ModelPath.ParentElementSegment )
                {
                    element = element.parent().element();
                }
                else if( segment instanceof ModelPath.PropertySegment )
                {
                    final Property property = element.property( ( (ModelPath.PropertySegment) segment ).getPropertyName() );
                   
View Full Code Here

Examples of org.eclipse.sapphire.ui.ISapphirePart.parent()

      GraphicalEditPart editpart = getGraphicalEditPart(part);
      ISapphirePart parentPart = part.parent();
      while ((editpart == null || !editpart.isSelectable()) && parentPart != null)
      {
        editpart = getGraphicalEditPart(parentPart);
        parentPart = parentPart.parent();
      }
      if (editpart != null)
      {
        // Force a layout first.
        viewer.flush();
View Full Code Here

Examples of org.eclipse.sapphire.ui.SapphirePart.parent()

      {
        SapphirePart part = this;
        SapphirePart parentPart = (SapphirePart)parent();
        while (!(parentPart instanceof DiagramNodePart || parentPart.getLocalModelElement() != getLocalModelElement())) {
          part = parentPart;
          parentPart = (SapphirePart)parentPart.parent();
        }
        this.containerParent = part;       
      }
    }
    return this.containerParent;
View Full Code Here

Examples of org.eclipse.sapphire.ui.diagram.editor.ShapePart.parent()

          ShapeEditPart shapeEditPart = (ShapeEditPart)editPart;
          if (shapeEditPart.getModel() instanceof ShapeModel)
          {
            ShapeModel shapeModel = (ShapeModel)shapeEditPart.getModel();
            ShapePart shapePart = (ShapePart)shapeModel.getSapphirePart();
            if (shapePart.parent() instanceof ShapeFactoryPart)
            {
              moveShapeFactoryPart = true;
              break;
            }
          }
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.CompositePart.parent()

    public void render()
    {
        final CompositePart part = part();
        final CompositeDef def = part.definition();
       
        final boolean indent = ( def.getIndent().content() && ! ( part.parent() instanceof MasterDetailsContentNodePart ) );
       
        if( indent )
        {
            final Label label = new Label( composite(), SWT.NONE );
            label.setLayoutData( gd() );
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.SectionDef.parent()

    @Override
    protected void initDefaultValueService()
    {
        final SectionDef section = context( SectionDef.class );
       
        if( section.parent() != null )
        {
            final Element parent = section.parent().element();
           
            if( parent instanceof MasterDetailsContentNodeDef )
            {
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.SplitFormSectionPart.parent()

   
    @Override
    public void render()
    {
        final SplitFormSectionPart part = part();
        final SplitFormPart parent = part.parent();
        final Orientation orientation = parent.orientation();
        final int sectionCount = parent.children().all().size();
        final int sectionIndex = parent.children().all().indexOf( part );
       
        this.control = new Composite( composite(), SWT.NONE );
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.presentation.DiagramPresentation.parent()

  protected ContainerShapePresentation getParentContainer(ShapePresentation shapePresentation)
  {
    DiagramPresentation parentPresentation = shapePresentation.parent();
    while (!(parentPresentation instanceof ContainerShapePresentation) && parentPresentation != null)
    {
      parentPresentation = parentPresentation.parent();
    }
    return (ContainerShapePresentation)parentPresentation;
  }
 
  protected IFigure getPartFigure(ShapePart shapePart)
View Full Code Here

Examples of org.elasticsearch.action.delete.DeleteRequest.parent()

        final String index = request.hasParam("index") ? request.param("index") : "solr";
        final String type = request.hasParam("type") ? request.param("type") : "docs";

        // create the delete request object
        DeleteRequest deleteRequest = new DeleteRequest(index, type, getId(id));
        deleteRequest.parent(request.param("parent"));

        // TODO: this was causing issues, do we need it?
        // deleteRequest.version(RestActions.parseVersion(request));
        // deleteRequest.versionType(VersionType.fromString(request.param("version_type"),
        // deleteRequest.versionType()));
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.