Package org.eclipse.ui.internal

Examples of org.eclipse.ui.internal.WorkbenchWindow$PageList


    IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
   
    if (windows.length < 1)
      throw new IllegalStateException("should be at least one workbench window");
   
    WorkbenchWindow window = (WorkbenchWindow)windows[0];
   
    final StatusLineManager statusLineManager = window.getStatusLineManager();
   
    final LabelContributionItem label = new LabelContributionItem(HaloStatusPlugin.PLUGIN_ID + ".statusContribution", 7);
   
    setHaloStatus(label, HaloStatusPlugin.getPlugin().getPlayerCount());
    label.setImage(HaloStatusPlugin.getImage("resources/icons/halo1.gif"));
View Full Code Here


    IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
   
    if (windows.length < 1)
      throw new IllegalStateException("should be at least one workbench window");
   
    WorkbenchWindow window = (WorkbenchWindow)windows[0];
   
    final StatusLineManager statusLineManager = window.getStatusLineManager();
   
    label = new LabelContributionItem(HudsonPlugin.PLUGIN_ID + ".statusContribution", new LabelMenuCreator());
    label.setDoubleClickAction(new Action("doubleClick") {
      public void run() {
        handleDoubleClick();
View Full Code Here

    /**
     * Return true if the shell is activated.
     */
    protected boolean getShellActivated() {
        WorkbenchWindow window = (WorkbenchWindow) getSite().getPage()
                .getWorkbenchWindow();
        return window.getShellActivated();
    }
View Full Code Here

     * @return The status line contribution item, if any; <code>null</code>,
     *         if none.
     */
    StatusLineContributionItem getStatusLine() {
        if (associatedWindow instanceof WorkbenchWindow) {
            WorkbenchWindow window = (WorkbenchWindow) associatedWindow;
            IStatusLineManager statusLine = window.getStatusLineManager();
            // TODO implicit dependency on IDE's action builder
            // @issue implicit dependency on IDE's action builder
            if (statusLine != null) { // this can be null if we're exiting
                IContributionItem item = statusLine
                        .find("ModeContributionItem"); //$NON-NLS-1$
View Full Code Here

   */
  public Object execute(ExecutionEvent event) throws ExecutionException {
    final IWorkbenchWindow activeWorkbenchWindow = HandlerUtil
        .getActiveWorkbenchWindowChecked(event);
    if (activeWorkbenchWindow instanceof WorkbenchWindow) {
      WorkbenchWindow window = (WorkbenchWindow) activeWorkbenchWindow;
      window.toggleToolbarVisibility();
      ICommandService commandService = (ICommandService) activeWorkbenchWindow
          .getService(ICommandService.class);
      Map filter = new HashMap();
      filter.put(IServiceScopes.WINDOW_SCOPE, window);
      commandService.refreshElements(event.getCommand().getId(), filter);
View Full Code Here

  private boolean updateCoolBar(ToolBarManager mgr) {
    IWorkbenchWindow[] windows = PlatformUI.getWorkbench()
        .getWorkbenchWindows();
    for (int i = 0; i < windows.length; i++) {
      WorkbenchWindow window = (WorkbenchWindow) windows[i];
      ICoolBarManager cb = window.getCoolBarManager2();
      if (cb != null) {
        IContributionItem[] items = cb.getItems();
        for (int j = 0; j < items.length; j++) {
          if (items[j] instanceof ToolBarContributionItem) {
            IToolBarManager tbm = ((ToolBarContributionItem) items[j])
View Full Code Here

   */
  public void createContributionItems(IServiceLocator serviceLocator,
      IContributionRoot additions) {
    IActionBarPresentationFactory actionBarPresentationFactory = null;

    WorkbenchWindow window = (WorkbenchWindow) serviceLocator
        .getService(IWorkbenchWindow.class);
    if (window != null) {
      actionBarPresentationFactory = window
          .getActionBarPresentationFactory();
    }

    IConfigurationElement[] items = additionElement.getChildren();
    for (int i = 0; i < items.length; i++) {
View Full Code Here

  @SuppressWarnings("restriction")
  public Object execute(ExecutionEvent event) throws ExecutionException {

    ILaunchManager lnmanger = DebugPlugin.getDefault().getLaunchManager();

    WorkbenchWindow window = (WorkbenchWindow) HandlerUtil
        .getActiveWorkbenchWindowChecked(event);

    RunJettyRunLaunch.launch(window);
    return null;
  }
View Full Code Here

    IWorkbenchWindow currentWindow = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow();
    if (currentWindow == null) {
      return;
    }
    WorkbenchWindow internalWindow = (WorkbenchWindow) currentWindow;

    ProgressRegion progressRegion = internalWindow.getProgressRegion();
    if (progressRegion == null) {
      return;
    }
    Rectangle endPosition = progressRegion.getControl().getBounds();

    Point windowLocation = internalWindow.getShell().getLocation();
    endPosition.x += windowLocation.x;
    endPosition.y += windowLocation.y;
    RectangleAnimation animation = new RectangleAnimation(internalWindow
        .getShell(), startPosition, endPosition);
    animation.schedule();
  }
View Full Code Here

    IWorkbenchWindow currentWindow = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow();
    if (currentWindow == null) {
      return;
    }
    WorkbenchWindow internalWindow = (WorkbenchWindow) currentWindow;
    Point windowLocation = internalWindow.getShell().getLocation();

    ProgressRegion progressRegion = internalWindow.getProgressRegion();
    if (progressRegion == null) {
      return;
    }
    Rectangle startPosition = progressRegion.getControl().getBounds();
    startPosition.x += windowLocation.x;
    startPosition.y += windowLocation.y;

    RectangleAnimation animation = new RectangleAnimation(internalWindow
        .getShell(), startPosition, endPosition);
    animation.schedule();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.WorkbenchWindow$PageList

Copyright © 2018 www.massapicom. 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.