Package java.util

Examples of java.util.List.clear()


    extLink.append(WebappHelper.getContextRoot()).append("/auth/repo/go?rid=");
    RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntry(course, true);
    extLink.append(re.getKey()).append("&par=").append(courseNode.getIdent());
    String iconCssClass = CourseNodeFactory.getInstance().getCourseNodeConfiguration(courseNode.getType()).getIconCSSClass();
    KalendarEventLink link = new KalendarEventLink("COURSE", courseNode.getIdent(), courseNode.getShortTitle(), extLink.toString(), iconCssClass);
    kalendarEventLinks.clear();
    kalendarEventLinks.add(link);
  }
}
View Full Code Here


          secGroupWaiting = ((BusinessGroup) bGroup).getWaitingGroup();
          BusinessGroupManagerImpl.getInstance().removeFromWaitingListAndFireEvent(identity, securityManager.getIdentitiesOfSecurityGroup(secGroupWaiting), ((BusinessGroup) bGroup), flagsLearning);
        }
      }
      // RightGroups
      allGroups.clear();
      allGroups = course.getCourseEnvironment().getCourseGroupManager().getAllRightGroupsFromAllContexts();
      BGConfigFlags flagsRightgroup = BGConfigFlags.createRightGroupDefaultFlags();
      for (Object bGroup : allGroups) {
        secGroupPartipiciant = ((BusinessGroup) bGroup).getPartipiciantGroup();
        BusinessGroupManagerImpl.getInstance().removeParticipantsAndFireEvent(identity, securityManager.getIdentitiesOfSecurityGroup(secGroupPartipiciant), ((BusinessGroup) bGroup), flagsRightgroup);
View Full Code Here

        // we do not use the tree event's getSelectedNodeIDs, instead
        // we walk through the model and fetch the children in order
        // to keep the sorting.
        List kalendarEventLinks = kalendarEvent.getKalendarEventLinks();
        TreeNode rootNode = selectionTree.getTreeModel().getRootNode();
        kalendarEventLinks.clear();
        clearSelection(rootNode);
        rebuildKalendarEventLinks(rootNode, te.getNodeIds(), kalendarEventLinks);
        // if the calendarevent is already associated with a calendar, save the modifications.
        // otherwise, the modifications will be saver, when the user saves
        // the calendar event.
View Full Code Here

      entries.add(logEntries.nextElement());
    }
    for (int i=entries.size()-1; i>-1; --i) {
      logged((LogEntry) (entries.get(i)));
    }
    entries.clear();
  }

}// end of class FileLog
View Full Code Here

        for( int i=0; i<subPaths.size(); i++ )
        {
            GeneralPath subPath = (GeneralPath)subPaths.get( i );
            graphics.draw( subPath );
        }
        subPaths.clear();
        GeneralPath path = drawer.getLinePath();
        graphics.draw( path );
        path.reset();
    }
}
View Full Code Here

        assertSame( source, found );

        // ----------------------------------------
        // ----------------------------------------

        sources.clear( );

        source = new MockTupleSource( );

        source.addTupleDeclaration( this.objectDecl );
View Full Code Here

        // ----------------------------------------
        // ----------------------------------------

        cond.addDeclaration( this.objectDecl );

        sources.clear( );

        source = new MockTupleSource( );

        source.addTupleDeclaration( this.objectDecl );
        source.addTupleDeclaration( this.stringDecl );
View Full Code Here

      List forRemoval = new ArrayList();
      // now lets loop over and over until we have done all we can
      while ((anyNewAnnotations || anyNewParents) && (!decpToRepeat.isEmpty() || !decaToRepeat.isEmpty())) {
        anyNewParents = anyNewAnnotations = false;
        forRemoval.clear();
        for (DeclareParents decp : decpToRepeat) {
          boolean didSomething = doDeclareParents(decp, sourceType);
          if (didSomething) {
            if (factory.pushinCollector != null) {
              factory.pushinCollector.tagAsMunged(sourceType, decp.getParents().get(0));
View Full Code Here

            forRemoval.add(decp);
          }
        }
        decpToRepeat.removeAll(forRemoval);

        forRemoval.clear();
        for (DeclareAnnotation deca : decaToRepeat) {
          boolean didSomething = doDeclareAnnotations(deca, sourceType, false);
          if (didSomething) {
            if (factory.pushinCollector != null) {
              factory.pushinCollector.tagAsMunged(sourceType, deca.getAnnotationString());
View Full Code Here

       
        // Check ordering with a single row.
        s.execute("INSERT INTO T VALUES 1");
        commit();
        int fireCount = assertFiringOrder("INSERT", 1);
        info.clear();
       
        s.execute("UPDATE T SET ID = 2");
        commit();
        fireCount += assertFiringOrder("UPDATE", 1);
        info.clear();
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.