Package net.sourceforge.fullsync.impl

Examples of net.sourceforge.fullsync.impl.SimplyfiedRuleSetDescriptor


        ConnectionDescription.unserialize((Element) element.getElementsByTagName("Destination").item(0)),
        RuleSetDescriptor.unserialize((Element) element.getElementsByTagName("RuleSetDescriptor").item(0)));
    // this may happen with profiles that used advanced rule sets
    if (null == p.getRuleSet()) {
      p.setLastError(-1, "Error: the Filters of this Profile are broken");
      p.setRuleSet(new SimplyfiedRuleSetDescriptor(true, null, false, null));
    }
    p.setDescription(element.getAttribute("description"));
    p.setSynchronizationType(element.getAttribute("type"));
    if (element.hasAttribute("enabled")) {
      p.setEnabled(Boolean.valueOf(element.getAttribute("enabled")).booleanValue());
View Full Code Here


      buttonEnabled.setSelection(p.isEnabled());

      RuleSetDescriptor ruleSetDescriptor = p.getRuleSet();
      filter = null;

      SimplyfiedRuleSetDescriptor simpleDesc = (SimplyfiedRuleSetDescriptor) ruleSetDescriptor;
      syncSubsButton.setSelection(simpleDesc.isSyncSubDirs());
      FileFilter fileFilter = simpleDesc.getFileFilter();
      filter = fileFilter;
      if (fileFilter != null) {
        textFilterDescription.setText(fileFilter.toString());
      }
      else {
        textFilterDescription.setText("");
      }
      boolean useFilter = simpleDesc.isUseFilter();
      buttonUseFileFilter.setSelection(useFilter);
      enableFilterControls(useFilter);
      FileFilterTree fileFilterTree = simpleDesc.getFileFilterTree();
      if (fileFilterTree != null) {
        itemsMap = fileFilterTree.getItemsMap();
      }
    }
    catch (Exception e) {
View Full Code Here

        return false;
      }
    }
    Profile p;
    RuleSetDescriptor ruleSetDescriptor = null;
    ruleSetDescriptor = new SimplyfiedRuleSetDescriptor(syncSubsButton.getSelection(), filter, buttonUseFileFilter.getSelection(),
        getFileFilterTree());

    if (profileName == null) {
      p = new Profile(textProfileName.getText(), src, dst, ruleSetDescriptor);
      p.setSynchronizationType(comboType.getText());
View Full Code Here

  @Override
  @Before
  public void setUp() throws Exception {
    super.setUp();
    //profile.getDestination().setParameter("bufferStrategy", "syncfiles");
    profile.setRuleSet(new SimplyfiedRuleSetDescriptor(true, null, false, null));
    profile.setSynchronizationType("Publish/Update");
  }
View Full Code Here

    profile = new Profile(
        "TestProfile",
        src,
        dst,
        new SimplyfiedRuleSetDescriptor(true, null, false, null)
        );
    profile.setSynchronizationType("Publish/Update");

    clearDirectory(testingSrc);
    clearDirectory(testingDst);
View Full Code Here

  @Override
  @Before
  public void setUp() throws Exception {
    super.setUp();
    profile.setRuleSet(new SimplyfiedRuleSetDescriptor(true, null, false, null));
    expectation = new Hashtable<String, Action>();
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.fullsync.impl.SimplyfiedRuleSetDescriptor

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.