Examples of IWindowTrim


Examples of org.eclipse.ui.internal.layout.IWindowTrim

   */
  public void restoreZoomedViewStacks() {
    Iterator mapIter = idToFastViewsMap.keySet().iterator();
    while (mapIter.hasNext()) {
      String id = (String) mapIter.next();
      IWindowTrim trim = tbm.getTrim(id);
      if (trim != null && trim instanceof ViewStackTrimToolBar) {
        ViewStackTrimToolBar vstb = (ViewStackTrimToolBar) trim;
        if (vstb.restoreOnUnzoom())
          restoreToPresentation(vstb.getId());
      }
View Full Code Here

Examples of org.eclipse.ui.internal.layout.IWindowTrim

   * @param selected
   *            the selection state of the icon
   */
  public void setFastViewIconSelection(IViewReference ref, boolean selected) {
    String id = getIdForRef(ref);
    IWindowTrim trim = tbm.getTrim(id);
    if (trim instanceof ViewStackTrimToolBar) {
      ViewStackTrimToolBar vstb = (ViewStackTrimToolBar) trim;
      vstb.setIconSelection(ref, selected);
    } else if (trim instanceof FastViewBar) {
      FastViewBar fvb = (FastViewBar) trim;
View Full Code Here

Examples of org.eclipse.ui.internal.layout.IWindowTrim

        IViewReference ref = (IViewReference) fvIter.next();
        removeViewReference(ref, true, !fvIter.hasNext());
      }

      // Blow the trim away
      IWindowTrim trim = tbm.getTrim(id);
      if (trim != null && trim instanceof ViewStackTrimToolBar) {
        tbm.removeTrim(trim);
        trim.getControl().dispose();
       
        stacksWereRestored = true;
      }
    }
   
View Full Code Here

Examples of org.eclipse.ui.internal.layout.IWindowTrim

     
      // Never show 'empty' stacks
      if (visible && fvs.size() == 0)
        continue;

      IWindowTrim trim = tbm.getTrim(id);
      if (trim != null && trim instanceof ViewStackTrimToolBar) {
        ((ViewStackTrimToolBar)trim).update(true);
        tbm.setTrimVisible(trim, visible);
      }
    }
View Full Code Here

Examples of org.eclipse.ui.internal.layout.IWindowTrim

        IMemento area = memento
            .createChild(IWorkbenchConstants.TAG_TRIM_AREA, Integer
                .toString(id));
        Iterator d = trim.iterator();
        while (d.hasNext()) {
          IWindowTrim item = (IWindowTrim) d.next();
          area.createChild(IWorkbenchConstants.TAG_TRIM_ITEM, item
              .getId());
        }
      }
    }
    return Status.OK_STATUS;
View Full Code Here

Examples of org.eclipse.ui.internal.layout.IWindowTrim

          IMemento item = items[j];
          String id = item.getID();
          knownIds.add(id);
          preferredLocations.add(id);
         
          IWindowTrim t = defaultLayout.getTrim(id);
          if (t != null) {
            trimOrder[i].add(t);
          }
        }
       
View Full Code Here

Examples of org.eclipse.ui.internal.layout.IWindowTrim

   *            one of <code>SWT.LEFT</code>,<code>SWT.BOTTOM</code>,
   *            or <code>SWT.RIGHT</code> (only LEFT has been tested)
   * @since 3.0
   */
  public void addToTrim(IWindowTrim trim, int side) {
    IWindowTrim reference = null;
    defaultLayout.addTrim(side, trim, reference);
  }
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.