Package org.eclipse.ui.internal.presentations.util

Examples of org.eclipse.ui.internal.presentations.util.AbstractTabItem


        }

        public Font getFont(Object element) {
            IPresentablePart presentablePart = (IPresentablePart)element;

            AbstractTabItem item = folder.getTab(presentablePart);
            // if in single tab mode, do not use the bold font for non-visible tabs
            // if in multiple tab mode, use the bold for non-visible tabs only
            if ((item!=null && item.isShowing()) || !hiddenTabsBold) {
        return folder.getTabFolder().getControl().getFont();
      }

            if (boldFont == null) {
                Control control = folder.getTabFolder().getControl();
View Full Code Here


         * @see org.eclipse.jface.viewers.ViewerComparator#category(java.lang.Object)
         */
        public int category(Object element) {

            IPresentablePart part = (IPresentablePart)element;
            AbstractTabItem tabItem = folder.getTab(part);
           
            if (tabItem!=null && tabItem.isShowing()) {
        return 1; // visible
      }
            return 0; // not visible
        }
View Full Code Here

          TabbedStackPresentation stack = (TabbedStackPresentation) folder.getPresentation();
         
          AbstractTabFolder tabFolder = stack.getTabFolder();
          if (tabFolder.getItemCount() == 1) {
            // Get the space that we need to show the tab
            AbstractTabItem firstItem = tabFolder.getItem(0);
            Rectangle tabRect = firstItem.getBounds();
           
            // Take the current shell 'trim' into account
            int shellHeight = windowShell.getBounds().height - windowShell.getClientArea().height;
            int shellWidth = windowShell.getBounds().width - windowShell.getClientArea().width;
           
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.presentations.util.AbstractTabItem

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.