Examples of ConditionFactory


Examples of org.freeplane.features.filter.condition.ConditionFactory

    }
    return model;
  }

  private void loadConditionalStyles(ConditionalStyleModel conditionalStyleModel, XMLElement conditionalStylesRoot) {
    final ConditionFactory conditionFactory = FilterController.getCurrentFilterController().getConditionFactory();
    final Vector<XMLElement> styleElements = conditionalStylesRoot.getChildrenNamed("conditional_style");
    for(XMLElement styleElement : styleElements){
      final boolean isActive = Boolean.valueOf(styleElement.getAttribute("ACTIVE", "false"));
      final boolean isLast = Boolean.valueOf(styleElement.getAttribute("LAST", "false"));
      String styleText = styleElement.getAttribute("LOCALIZED_STYLE_REF", null);
      final IStyle style;
      if(styleText != null){
        style = StyleFactory.create(NamedObject.format((String) styleText));
      }
      else {
        style = StyleFactory.create(styleElement.getAttribute("STYLE_REF", null));
      }
      final ASelectableCondition condition;
      if(styleElement.getChildrenCount() == 1){
        final XMLElement conditionElement = styleElement.getChildAtIndex(0);
        try {
                  condition = conditionFactory.loadCondition(conditionElement);
                }
                catch (Exception e) {
                  e.printStackTrace();
                  continue;
                }
View Full Code Here

Examples of org.freeplane.features.filter.condition.ConditionFactory

  public static IconController getController(ModeController modeController) {
    return (IconController) modeController.getExtension(IconController.class);
    }

  public static void install() {
    final ConditionFactory conditionFactory = FilterController.getCurrentFilterController().getConditionFactory();
    conditionFactory.addConditionController(10, new IconConditionController());
    conditionFactory.addConditionController(50, new PriorityConditionController());
  }
View Full Code Here

Examples of org.freeplane.features.filter.condition.ConditionFactory

      setActionSelected();
    }
  }

  public static void install() {
    final ConditionFactory conditionFactory = FilterController.getCurrentFilterController().getConditionFactory();
    conditionFactory.addConditionController(80, new NodeLevelConditionController());
    conditionFactory.addConditionController(75, new CloneConditionController());
  }
View Full Code Here

Examples of org.jboss.messaging.core.contract.ConditionFactory

        
         int nodeId = serverPeer.getServerPeerID();
        
         ClusterNotifier clusterNotifier = serverPeer.getClusterNotifier();

         ConditionFactory cf = new JMSConditionFactory();
                 
         FilterFactory ff = new SelectorFactory();
        
         if (clustered)
         {       
View Full Code Here

Examples of org.jboss.messaging.core.contract.ConditionFactory

                                                      TransactionRepository tr,
                                                      PersistenceManager pm)
      throws Exception
   {
      FilterFactory ff = new SimpleFilterFactory();
      ConditionFactory cf = new SimpleConditionFactory();
      IDManager idm = new IDManager("channel_id", 10, pm);
      idm.start();
      ClusterNotifier cn = new DefaultClusterNotifier();

      // we're testing with JGroups stack configurations we're shipping with the release
View Full Code Here

Examples of org.jboss.messaging.core.contract.ConditionFactory

   protected static PostOffice createNonClusteredPostOffice(ServiceContainer sc, MessageStore ms, TransactionRepository tr,
                                                          PersistenceManager pm)
     throws Exception
   {
     FilterFactory ff = new SimpleFilterFactory();
     ConditionFactory cf = new SimpleConditionFactory();
      IDManager idm = new IDManager("channel_id", 10, pm);
      ClusterNotifier cn = new DefaultClusterNotifier();

     MessagingPostOffice postOffice =
       new MessagingPostOffice(sc.getDataSource(), sc.getTransactionManager(),
View Full Code Here

Examples of org.jboss.messaging.core.contract.ConditionFactory

        
         int nodeId = serverPeer.getServerPeerID();
        
         ClusterNotifier clusterNotifier = serverPeer.getClusterNotifier();

         ConditionFactory cf = new JMSConditionFactory();
                 
         FilterFactory ff = new SelectorFactory();
        
         if (clustered)
         {       
View Full Code Here

Examples of org.jboss.messaging.core.contract.ConditionFactory

                                                      TransactionRepository tr,
                                                      PersistenceManager pm)
      throws Exception
   {
      FilterFactory ff = new SimpleFilterFactory();
      ConditionFactory cf = new SimpleConditionFactory();
      IDManager idm = new IDManager("channel_id", 10, pm);
      idm.start();
      ClusterNotifier cn = new DefaultClusterNotifier();

      // we're testing with JGroups stack configurations we're shipping with the release
View Full Code Here

Examples of org.jboss.messaging.core.contract.ConditionFactory

   protected static PostOffice createNonClusteredPostOffice(ServiceContainer sc, MessageStore ms, TransactionRepository tr,
                                                          PersistenceManager pm)
     throws Exception
   {
     FilterFactory ff = new SimpleFilterFactory();
     ConditionFactory cf = new SimpleConditionFactory();
      IDManager idm = new IDManager("channel_id", 10, pm);
      ClusterNotifier cn = new DefaultClusterNotifier();

     MessagingPostOffice postOffice =
       new MessagingPostOffice(sc.getDataSource(), sc.getTransactionManager(),
View Full Code Here

Examples of org.jboss.messaging.core.contract.ConditionFactory

        
         int nodeId = serverPeer.getServerPeerID();
        
         ClusterNotifier clusterNotifier = serverPeer.getClusterNotifier();

         ConditionFactory cf = new JMSConditionFactory();
                 
         FilterFactory ff = new SelectorFactory();
        
         if (clustered)
         {       
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.