Examples of UIBackgroundJob


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) {
                fContentProvider.refreshCache(new IMark[] { fInput.getMark() }, false);
              }
View Full Code Here

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

  /* Set Input to Viewers */
  private void setInput(final IMark 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

  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

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

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

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

        for (SearchMarkEvent event : events) {
          ISearchMark searchMark = event.getEntity();

          for (final IMark inputMark : fInput) {
            if (inputMark.equals(searchMark)) {
              JobRunner.runUIUpdater(new UIBackgroundJob(fFeedView.getEditorControl()) {
                private List<INews> fAddedNews;

                @Override
                protected void runInBackground(IProgressMonitor monitor) {
                  fAddedNews = refreshCache(new IMark[] { inputMark }, true);
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

    /* 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;

      @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;

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

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

    ShowActivityAction action = new ShowActivityAction();
    action.init(fShell);
    action.run(null);

    /* Perform Update */
    JobRunner.runUIUpdater(new UIBackgroundJob(fShell, Messages.FindUpdatesAction_DOWNLOADING_UPDATES) {
      boolean errorUpdating;

      /* Download & Install Updates */
      @Override
      protected void runInBackground(IProgressMonitor monitor) {
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
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.