Examples of warnOfContentChange()


Examples of org.eclipse.ui.console.IConsoleView.warnOfContentChange()

          if (window != null) {
            IWorkbenchPage page= window.getActivePage();
            if (page != null) {
              IConsoleView consoleView= (IConsoleView)page.findView(IConsoleConstants.ID_CONSOLE_VIEW);
              if (consoleView != null) {
                consoleView.warnOfContentChange(console);
              }
            }
          } 
          fWarnQueued = false;
          return Status.OK_STATUS;
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService.warnOfContentChange()

                {
                    IWorkbenchSiteProgressService progressService =
                        (IWorkbenchSiteProgressService)getSite().getAdapter(IWorkbenchSiteProgressService.class);
                   
                    progressService.decrementBusy();
                    progressService.warnOfContentChange();
                }
            });
        }
       
        stopWatchingFile();
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService.warnOfContentChange()

        // content type change)
        ((ITextViewerExtension) getSourceViewer()).setRedraw(true);
       
        IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) getSite().getService(IWorkbenchSiteProgressService.class);
        if (service != null) {
          service.warnOfContentChange();
        }
      }
    }

    // Note: this one should probably be used to
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService.warnOfContentChange()

        // content type change)
        ((ITextViewerExtension) getSourceViewer()).setRedraw(true);
       
        IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) getSite().getService(IWorkbenchSiteProgressService.class);
        if (service != null) {
          service.warnOfContentChange();
        }
      }
    }

    // Note: this one should probably be used to
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService.warnOfContentChange()

  public void warnOfContentChange(IConsole console) {
    IWorkbenchPart part = (IWorkbenchPart)fConsoleToPart.get(console);
    if (part != null) {
      IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) part.getSite().getAdapter(IWorkbenchSiteProgressService.class);
      if (service != null) {
        service.warnOfContentChange();
      }
    }
  }
 
    public Object getAdapter(Class key) {
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService.warnOfContentChange()

  public void warnOfContentChange() {

    IWorkbenchSiteProgressService service = getProgressService();
    if(service != null) {
      service.warnOfContentChange();
    }
  }

  public boolean lastLaunchIsKeptAlive() {
    return false;
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService.warnOfContentChange()

          if (container.getPrivateMessageSender() != null) {
            messageView.openTab(container.getPrivateMessageSender(), null, targetID, message.getFromID());

            messageView.showMessage(message);
            service.warnOfContentChange();
          }
        } catch (Exception e) {
          Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, Messages.ChatRoomManagerView_EXCEPTION_MESSAGE_VIEW_INITIALIZATION + message.getFromID(), e));
        }
      }
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService.warnOfContentChange()

      }
      view.addContainer(container);
      final IWorkbenchPage page = workbench.getActiveWorkbenchWindow().getActivePage();
      if (!page.isPartVisible(view)) {
        final IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) view.getSite().getAdapter(IWorkbenchSiteProgressService.class);
        service.warnOfContentChange();
      }
    } catch (final PartInitException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService.warnOfContentChange()

        MessagesView view = (MessagesView) workbench.getActiveWorkbenchWindow().getActivePage().findView(MessagesView.VIEW_ID);
        if (view != null) {
          final IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) view.getSite().getAdapter(IWorkbenchSiteProgressService.class);
          view.openTab(icms, itms, targetID, message.getFromID());
          view.showMessage(message);
          service.warnOfContentChange();
        } else {
          try {
            final IWorkbenchPage page = workbench.getActiveWorkbenchWindow().getActivePage();
            view = (MessagesView) page.showView(MessagesView.VIEW_ID, null, IWorkbenchPage.VIEW_CREATE);
            if (!page.isPartVisible(view)) {
View Full Code Here

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService.warnOfContentChange()

          try {
            final IWorkbenchPage page = workbench.getActiveWorkbenchWindow().getActivePage();
            view = (MessagesView) page.showView(MessagesView.VIEW_ID, null, IWorkbenchPage.VIEW_CREATE);
            if (!page.isPartVisible(view)) {
              final IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) view.getSite().getAdapter(IWorkbenchSiteProgressService.class);
              service.warnOfContentChange();
            }
            view.openTab(icms, itms, targetID, message.getFromID());
            view.showMessage(message);
          } catch (final PartInitException e) {
            e.printStackTrace();
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.