Examples of UIBackgroundJob


Examples of org.rssowl.ui.internal.util.UIBackgroundJob

          if (fInput.equals(searchMark)) {
            JobRunner.runInUIThread(fFeedView.getEditorControl(), new Runnable() {
              public void run() {
                final boolean onlyHandleAddedNews = fFeedView.isVisible();

                JobRunner.runUIUpdater(new UIBackgroundJob(fFeedView.getEditorControl()) {
                  private List<INews> fAddedNews;

                  @Override
                  protected void runInBackground(IProgressMonitor monitor) {
                    if (!Controller.getDefault().isShuttingDown())
View Full Code Here

Examples of org.rssowl.ui.internal.util.UIBackgroundJob

    /* Disable Buttons and update Cursor */
    getButton(BUTTON_SEARCH).setEnabled(false);
    getShell().setCursor(getShell().getDisplay().getSystemCursor(SWT.CURSOR_APPSTARTING));

    JobRunner.runUIUpdater(new UIBackgroundJob(getShell()) {
      private List<ScoredNews> fResult = null;
      private Exception fException = null;

      @Override
      protected void runInBackground(IProgressMonitor monitor) {
View Full Code Here

Examples of org.rssowl.ui.internal.util.UIBackgroundJob

    /* No Result set yet */
    if (fResultViewer.getInput() == null)
      return;

    /* Check for Update / Deleted News */
    JobRunner.runUIUpdater(new UIBackgroundJob(getShell()) {
      private List<ScoredNews> fDeletedScoredNews;
      private List<ScoredNews> fUpdatedScoredNews;
      private Set<NewsEvent> fUpdatedNewsEvents;

      @Override
View Full Code Here

Examples of org.rssowl.ui.internal.util.UIBackgroundJob

      else
        showMessage(Messages.PreviewFeedDialog_LOAD_FEED, false, true);
    }

    /* Load Feed in Background */
    JobRunner.runUIUpdater(new UIBackgroundJob(fBrowser.getControl()) {
      private IFeed feed;
      private Exception error;

      @Override
      protected void runInBackground(IProgressMonitor monitor) {
View Full Code Here

Examples of org.rssowl.ui.internal.util.UIBackgroundJob

        if (!eventsRelatedToInput.isEmpty()) {
          JobRunner.runInUIThread(fFeedView.getEditorControl(), new Runnable() {
            public void run() {
              final boolean onlyHandleAddedNews = fFeedView.isVisible();

              JobRunner.runUIUpdater(new UIBackgroundJob(fFeedView.getEditorControl()) {
                private List<INews> fAddedNews;
                private boolean fWasEmpty;

                @Override
                protected void runInBackground(IProgressMonitor monitor) {
View Full Code Here

Examples of org.rssowl.ui.internal.util.UIBackgroundJob

  private void onGrabTitle() {
    if (StringUtils.isSet(fFeedInput.getText())) {
      fFeedInput.getShell().setCursor(fFeedInput.getDisplay().getSystemCursor(SWT.CURSOR_APPSTARTING));
      final String linkText = fFeedInput.getText();
      JobRunner.runUIUpdater(new UIBackgroundJob(fFeedInput.getShell()) {
        private String fLabel;

        @Override
        protected void runInBackground(IProgressMonitor monitor) {
          try {
View Full Code Here

Examples of org.rssowl.ui.internal.util.UIBackgroundJob

          ISearchMarkDAO dao = DynamicDAO.getDAO(ISearchMarkDAO.class);
          for (SearchConditionEvent event : events) {
            ISearchCondition condition = event.getEntity();
            ISearchMark searchMark = dao.load(condition);
            if (searchMark != null && searchMark.equals(fInput.getMark())) {
              JobRunner.runUIUpdater(new UIBackgroundJob(fParent) {
                @Override
                protected void runInBackground(IProgressMonitor monitor) {
                  if (!Controller.getDefault().isShuttingDown())
                    fContentProvider.refreshCache(monitor, fInput.getMark());
                }
View Full Code Here

Examples of org.rssowl.ui.internal.util.UIBackgroundJob

  /* Set Input to Viewers */
  private void setInput(final INewsMark mark, final boolean reused) {

    /* Update Cache in Background and then apply to UI */
    JobRunner.runUIUpdater(new UIBackgroundJob(fParent) {
      private IProgressMonitor fBgMonitor;

      @Override
      public boolean belongsTo(Object family) {
        return fCacheJobIdentifier.equals(family);
View Full Code Here

Examples of org.rssowl.ui.internal.util.UIBackgroundJob

  public void setFocus() {
    if (!fInfoComputed) {
      fInfoComputed = true;

      /* Load from Background */
      JobRunner.runUIUpdater(new UIBackgroundJob(fContainer) {
        private String description;
        private URI homepage;
        private int totalCount;
        private int newCount;
        private int unreadCount;
View Full Code Here

Examples of org.rssowl.ui.internal.util.UIBackgroundJob

    /* Disable Buttons and update Cursor */
    getButton(BUTTON_SEARCH).setEnabled(false);
    getShell().setCursor(getShell().getDisplay().getSystemCursor(SWT.CURSOR_APPSTARTING));

    JobRunner.runUIUpdater(new UIBackgroundJob(getShell()) {
      private List<ScoredNews> fResult = null;
      private Exception fException = null;

      @Override
      protected void runInBackground(IProgressMonitor monitor) {
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.