Examples of run()


Examples of org.rssowl.ui.internal.actions.ArchiveNewsAction.run()

    /*  Archive */
    else if (queryProvided && ARCHIVE_HANDLER_ID.equals(id)) {
      INews news = getNews(query);
      if (news != null) {
        ArchiveNewsAction action = new ArchiveNewsAction(new StructuredSelection(news));
        action.run();
      }
    }

    /*  Delete */
    else if (queryProvided && DELETE_HANDLER_ID.equals(id)) {
View Full Code Here

Examples of org.rssowl.ui.internal.actions.AssignLabelsAction.run()

    IStructuredSelection selection = OwlUI.getActiveFeedViewSelection();

    /* Perform Action */
    if (shell != null && selection != null && !selection.isEmpty()) {
      AssignLabelsAction action = new AssignLabelsAction(shell, selection);
      action.run();
    }

    return null; //As per JavaDoc
  }
}
View Full Code Here

Examples of org.rssowl.ui.internal.actions.CopyLinkAction.run()

          manager.add(new Action("Copy Link") {
            @Override
            public void run() {
              IActionDelegate action = new CopyLinkAction();
              action.selectionChanged(null, selection);
              action.run(null);
            }

            @Override
            public boolean isEnabled() {
              return !selection.isEmpty();
View Full Code Here

Examples of org.rssowl.ui.internal.actions.CreateFilterAction.run()

          manager.add(new Action(Messages.ApplicationActionBarAdvisor_CREATE_FILTER) {
            @Override
            public void run() {
              CreateFilterAction action = new CreateFilterAction();
              action.selectionChanged(null, selection);
              action.run(null);
            }

            @Override
            public ImageDescriptor getImageDescriptor() {
              return OwlUI.FILTER;
View Full Code Here

Examples of org.rssowl.ui.internal.actions.DeleteTypesAction.run()

    }

    IStructuredSelection selection = (IStructuredSelection) fViewer.getSelection();
    if (!selection.isEmpty()) {
      DeleteTypesAction deleteAction = new DeleteTypesAction(getShell(), selection);
      deleteAction.run();

      if (deleteAction.isConfirmed())
        fViewer.remove(selection.getFirstElement());
    }
  }
View Full Code Here

Examples of org.rssowl.ui.internal.actions.ExportAction.run()

        /* Export */
      case EXPORT: {
        ExportAction action = new ExportAction();
        action.init(fWindow);
        action.run(null);
        break;
      }

        /* Undo */
      case UNDO: {
View Full Code Here

Examples of org.rssowl.ui.internal.actions.FindUpdatesAction.run()

      JobRunner.runInUIThread(5000, OwlUI.getActiveShell(), new Runnable() {
        public void run() {
          if (Owl.getPreferenceService().getGlobalScope().getBoolean(DefaultPreferences.UPDATE_ON_STARTUP)) {
            FindUpdatesAction action = new FindUpdatesAction(false);
            action.init(OwlUI.getWindow());
            action.run();
          }
        }
      });
    }
View Full Code Here

Examples of org.rssowl.ui.internal.actions.ImportAction.run()

        /* Import */
      case IMPORT: {
        ImportAction action = new ImportAction();
        action.init(fWindow);
        action.run(null);
        break;
      }

        /* Export */
      case EXPORT: {
View Full Code Here

Examples of org.rssowl.ui.internal.actions.LabelAction.run()

    news3.setTitle("News 3");
    DynamicDAO.save(feed);

    LabelAction action = new LabelAction(label1, new StructuredSelection(new Object[] { news1, news2 }));
    action.setChecked(true);
    action.run();

    assertEquals(1, news1.getLabels().size());
    assertEquals(1, news2.getLabels().size());

    action = new LabelAction(label1, new StructuredSelection(new Object[] { news1, news2 }));
View Full Code Here

Examples of org.rssowl.ui.internal.actions.MakeNewsStickyAction.run()

    INews news3 = Owl.getModelFactory().createNews(null, feed, new Date());
    news3.setTitle("News 3");
    DynamicDAO.save(feed);

    MakeNewsStickyAction action = new MakeNewsStickyAction(new StructuredSelection(new Object[] { news1, news2 }));
    action.run();

    assertTrue(news1.isFlagged());
    assertTrue(news2.isFlagged());
  }
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.