Package de.sebastianbenz.task

Examples of de.sebastianbenz.task.Container


    }
    return _builder;
  }
 
  public boolean isFirst(final Task task) {
    Container _parent = task.getParent();
    EList<Content> _children = _parent.getChildren();
    Iterable<Task> tasks = Iterables.<Task>filter(_children, Task.class);
    Iterator<Task> _iterator = tasks.iterator();
    Task _next = _iterator.next();
    return Objects.equal(_next, task);
  }
View Full Code Here


    Task _next = _iterator.next();
    return Objects.equal(_next, task);
  }
 
  public boolean isLast(final Task task) {
    Container _parent = task.getParent();
    EList<Content> siblings = _parent.getChildren();
    int _size = siblings.size();
    int _minus = (_size - 1);
    Content _get = siblings.get(_minus);
    return Objects.equal(_get, task);
  }
View Full Code Here

    }
    return internalSelect(projectReference, project.getParent());
  }

  protected boolean _select(ProjectReference projectReference, Content content) {
    Container parent = content.getParent();
    while (parent != null) {
      if (parent instanceof  Project && internalSelect(projectReference, parent)) {
        return true;
      }
      if (parent instanceof Content) {
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetParent(Container newParent, NotificationChain msgs)
  {
    Container oldParent = parent;
    parent = newParent;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaskPackage.CONTENT__PARENT, oldParent, newParent);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

  protected void computeObjectFolding(EObject eObject, IFoldingRegionAcceptor<ITextRegion> foldingRegionAcceptor) {
    if(!(eObject instanceof Container)){
      return;
    }
    Container container = (Container)eObject;
    if(container.getChildren().isEmpty()){
      return;
    }
    super.computeObjectFolding(eObject, foldingRegionAcceptor);
  }
View Full Code Here

TOP

Related Classes of de.sebastianbenz.task.Container

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.