Examples of FilterAction


Examples of dk.contix.eclipse.hudson.views.actions.FilterAction

    manager.add(new OpenPreferencesAction(getSite().getShell()));

    MenuManager filtermenu = new MenuManager("Filters");

    StatusFilter filter = new StatusFilter();
    filtermenu.add(new FilterAction(viewer, "Successful builds", "Show successful builds", Activator.PREF_FILTER_SUCCESS, filter));
    filtermenu.add(new FilterAction(viewer, "Failed builds", "Show failed builds", Activator.PREF_FILTER_FAIL, filter));
    filtermenu.add(new FilterAction(viewer, "Test failures", "Show builds with test failures", Activator.PREF_FILTER_FAIL_TEST, filter));
    filtermenu.add(new FilterAction(viewer, "Unbuilt projects", "Show projects which have not been built yet", Activator.PREF_FILTER_NO_BUILD, filter));
    manager.add(filtermenu);
  }
View Full Code Here

Examples of dk.contix.eclipse.hudson.views.actions.FilterAction

    manager.add(new OpenPreferencesAction(getSite().getShell()));

    MenuManager filtermenu = new MenuManager("Filters");

    StatusFilter filter = new StatusFilter();
    filtermenu.add(new FilterAction(viewer, "Successful builds", "Show successful builds", Activator.PREF_FILTER_SUCCESS, filter));
    filtermenu.add(new FilterAction(viewer, "Failed builds", "Show failed builds", Activator.PREF_FILTER_FAIL, filter));
    filtermenu.add(new FilterAction(viewer, "Test failures", "Show builds with test failures", Activator.PREF_FILTER_FAIL_TEST, filter));
    filtermenu.add(new FilterAction(viewer, "Unbuilt projects", "Show projects which have not been built yet", Activator.PREF_FILTER_NO_BUILD, filter));
    manager.add(filtermenu);
  }
View Full Code Here

Examples of dk.contix.eclipse.hudson.views.actions.FilterAction

    manager.add(new OpenPreferencesAction(getSite().getShell()));

    MenuManager filtermenu = new MenuManager("Filters");

    StatusFilter filter = new StatusFilter();
    filtermenu.add(new FilterAction(viewer, "Successful builds", "Show successful builds", Activator.PREF_FILTER_SUCCESS, filter));
    filtermenu.add(new FilterAction(viewer, "Failed builds", "Show failed builds", Activator.PREF_FILTER_FAIL, filter));
    filtermenu.add(new FilterAction(viewer, "Test failures", "Show builds with test failures", Activator.PREF_FILTER_FAIL_TEST, filter));
    filtermenu.add(new FilterAction(viewer, "Unbuilt projects", "Show projects which have not been built yet", Activator.PREF_FILTER_NO_BUILD, filter));
    manager.add(filtermenu);
  }
View Full Code Here

Examples of dk.contix.eclipse.hudson.views.actions.FilterAction

    MenuManager filtermenu = new MenuManager("Filters");

    StatusFilter filter = new StatusFilter();
    nameFilter = new NameFilter();
    nameChanges.addPropertyChangeListener(nameFilter);
    filtermenu.add(new FilterAction(viewer, "Successful builds", "Show successful builds", Activator.PREF_FILTER_SUCCESS, filter));
    filtermenu.add(new FilterAction(viewer, "Failed builds", "Show failed builds", Activator.PREF_FILTER_FAIL, filter));
    filtermenu.add(new FilterAction(viewer, "Test failures", "Show builds with test failures", Activator.PREF_FILTER_FAIL_TEST, filter));
    filtermenu.add(new FilterAction(viewer, "Unbuilt projects", "Show projects which have not been built yet", Activator.PREF_FILTER_NO_BUILD, filter));
    FilterAction nameFilterAction = new FilterAction(viewer, "Name Filter", "Show Projects by Name", Activator.PREF_FILTER_NAME, nameFilter);
    nameFilterAction.addPropertyChangeListener(new IPropertyChangeListener() {
      public void propertyChange(
          org.eclipse.jface.util.PropertyChangeEvent event) {
        if(nameText!=null && nameText.isDisposed()==false)
          nameText.setEnabled(((Boolean)event.getNewValue()).booleanValue());       
      }
View Full Code Here

Examples of dk.contix.eclipse.hudson.views.actions.FilterAction

    MenuManager filtermenu = new MenuManager("Filters");

    StatusFilter filter = new StatusFilter();
    nameFilter = new NameFilter();
    nameChanges.addPropertyChangeListener(nameFilter);
    filtermenu.add(new FilterAction(viewer, "Successful builds", "Show successful builds", Activator.PREF_FILTER_SUCCESS, filter));
    filtermenu.add(new FilterAction(viewer, "Failed builds", "Show failed builds", Activator.PREF_FILTER_FAIL, filter));
    filtermenu.add(new FilterAction(viewer, "Test failures", "Show builds with test failures", Activator.PREF_FILTER_FAIL_TEST, filter));
    filtermenu.add(new FilterAction(viewer, "Unbuilt projects", "Show projects which have not been built yet", Activator.PREF_FILTER_NO_BUILD, filter));
    FilterAction nameFilterAction = new FilterAction(viewer, "Name Filter", "Show Projects by Name", Activator.PREF_FILTER_NAME, nameFilter);
    nameFilterAction.addPropertyChangeListener(new IPropertyChangeListener() {
      public void propertyChange(
          org.eclipse.jface.util.PropertyChangeEvent event) {
        if(nameText!=null && nameText.isDisposed()==false)
          nameText.setEnabled(((Boolean)event.getNewValue()).booleanValue());       
      }
View Full Code Here

Examples of dk.contix.eclipse.hudson.views.actions.FilterAction

    MenuManager filtermenu = new MenuManager("Filters");

    StatusFilter filter = new StatusFilter();
    nameFilter = new NameFilter();
    nameChanges.addPropertyChangeListener(nameFilter);
    filtermenu.add(new FilterAction(viewer, "Successful builds", "Show successful builds", Activator.PREF_FILTER_SUCCESS, filter));
    filtermenu.add(new FilterAction(viewer, "Failed builds", "Show failed builds", Activator.PREF_FILTER_FAIL, filter));
    filtermenu.add(new FilterAction(viewer, "Test failures", "Show builds with test failures", Activator.PREF_FILTER_FAIL_TEST, filter));
    filtermenu.add(new FilterAction(viewer, "Unbuilt projects", "Show projects which have not been built yet", Activator.PREF_FILTER_NO_BUILD, filter));
    FilterAction nameFilterAction = new FilterAction(viewer, "Name Filter", "Show Projects by Name", Activator.PREF_FILTER_NAME, nameFilter);
    nameFilterAction.addPropertyChangeListener(new IPropertyChangeListener() {
      public void propertyChange(
          org.eclipse.jface.util.PropertyChangeEvent event) {
        if(nameText!=null && nameText.isDisposed()==false)
          nameText.setEnabled(((Boolean)event.getNewValue()).booleanValue());       
      }
View Full Code Here

Examples of dk.contix.eclipse.hudson.views.actions.FilterAction

    MenuManager filtermenu = new MenuManager("Filters");

    StatusFilter filter = new StatusFilter();
    nameFilter = new NameFilter();
    nameChanges.addPropertyChangeListener(nameFilter);
    filtermenu.add(new FilterAction(viewer, "Successful builds", "Show successful builds", Activator.PREF_FILTER_SUCCESS, filter));
    filtermenu.add(new FilterAction(viewer, "Failed builds", "Show failed builds", Activator.PREF_FILTER_FAIL, filter));
    filtermenu.add(new FilterAction(viewer, "Test failures", "Show builds with test failures", Activator.PREF_FILTER_FAIL_TEST, filter));
    filtermenu.add(new FilterAction(viewer, "Unbuilt projects", "Show projects which have not been built yet", Activator.PREF_FILTER_NO_BUILD, filter));
    FilterAction nameFilterAction = new FilterAction(viewer, "Name Filter", "Show Projects by Name", Activator.PREF_FILTER_NAME, nameFilter);
    nameFilterAction.addPropertyChangeListener(new IPropertyChangeListener() {
      public void propertyChange(
          org.eclipse.jface.util.PropertyChangeEvent event) {
        if(nameText!=null && nameText.isDisposed()==false)
          nameText.setEnabled(((Boolean)event.getNewValue()).booleanValue());
      }
View Full Code Here

Examples of dk.contix.eclipse.hudson.views.actions.FilterAction

    MenuManager filtermenu = new MenuManager("Filters");

    StatusFilter filter = new StatusFilter();
    nameFilter = new NameFilter();
    nameChanges.addPropertyChangeListener(nameFilter);
    filtermenu.add(new FilterAction(viewer, "Successful builds", "Show successful builds", Activator.PREF_FILTER_SUCCESS, filter));
    filtermenu.add(new FilterAction(viewer, "Failed builds", "Show failed builds", Activator.PREF_FILTER_FAIL, filter));
    filtermenu.add(new FilterAction(viewer, "Test failures", "Show builds with test failures", Activator.PREF_FILTER_FAIL_TEST, filter));
    filtermenu.add(new FilterAction(viewer, "Unbuilt projects", "Show projects which have not been built yet", Activator.PREF_FILTER_NO_BUILD, filter));
    FilterAction nameFilterAction = new FilterAction(viewer, "Name Filter", "Show Projects by Name", Activator.PREF_FILTER_NAME, nameFilter);
    nameFilterAction.addPropertyChangeListener(new IPropertyChangeListener() {
      public void propertyChange(
          org.eclipse.jface.util.PropertyChangeEvent event) {
        if(nameText!=null && nameText.isDisposed()==false)
          nameText.setEnabled(((Boolean)event.getNewValue()).booleanValue());       
      }
View Full Code Here

Examples of dk.contix.eclipse.hudson.views.actions.FilterAction

    manager.add(new OpenPreferencesAction(getSite().getShell()));

    MenuManager filtermenu = new MenuManager("Filters");

    StatusFilter filter = new StatusFilter();
    filtermenu.add(new FilterAction(viewer, "Successful builds", "Show successful builds", Activator.PREF_FILTER_SUCCESS, filter));
    filtermenu.add(new FilterAction(viewer, "Failed builds", "Show failed builds", Activator.PREF_FILTER_FAIL, filter));
    filtermenu.add(new FilterAction(viewer, "Test failures", "Show builds with test failures", Activator.PREF_FILTER_FAIL_TEST, filter));
    filtermenu.add(new FilterAction(viewer, "Unbuilt projects", "Show projects which have not been built yet", Activator.PREF_FILTER_NO_BUILD, filter));
    manager.add(filtermenu);
  }
View Full Code Here

Examples of net.suberic.pooka.filter.FilterAction

  /**
   * Runs the configured spam action on this message.
   */
  public void runSpamAction() {
    FilterAction spamFilter = null;
    try {
      spamFilter = MessageFilter.generateFilterAction("Pooka.spamAction");
    } catch (Exception e) {
      int configureNow = Pooka.getUIFactory().showConfirmDialog("Spam action currently not configured.  Would you like to configure it now?", "Configure Spam action", javax.swing.JOptionPane.YES_NO_OPTION);
      if (configureNow == javax.swing.JOptionPane.YES_OPTION) {
        // show configure screen.
        Pooka.getUIFactory().showEditorWindow(Pooka.getProperty("Preferences.Spam.label", "Spam"), "Pooka.spamAction");
      }

    }
    if (spamFilter != null) {
      List l = new LinkedList();
      for (int i = 0; i < messages.length; i++) {
        l.add(messages[i].getMessageProxy());
      }
      java.util.List removed = spamFilter.performFilter(l);
      if (removed != null && removed.size() > 0) {
        try {
          getFolderInfo().expunge();
        } catch (OperationCancelledException oce) {
        } catch (MessagingException me) {
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.