Package org.eclipse.ui.internal

Examples of org.eclipse.ui.internal.ViewPane


   */
  public List<SWTBotToolbarButton> getToolbarButtons() {
    return UIThreadRunnable.syncExec(new ListResult<SWTBotToolbarButton>() {

      public List<SWTBotToolbarButton> run() {
        ViewPane obj = (ViewPane) ((WorkbenchPartReference) partReference).getPane();
        ToolBar toolbar = (ToolBar) obj.getToolBar();

        List<SWTBotToolbarButton> l = new ArrayList<SWTBotToolbarButton>();
        ToolItem[] items = toolbar.getItems();
        for (int i = 0; i < items.length; i++) {
          try {
View Full Code Here


   */
  public List<SWTBotViewMenu> findMenus(final IViewReference view, final Matcher<?> matcher, final boolean recursive) {
    return UIThreadRunnable.syncExec(new ListResult<SWTBotViewMenu>() {

      public List<SWTBotViewMenu> run() {
        ViewPane viewPane = (ViewPane) ((WorkbenchPartReference) view).getPane();
        MenuManager mgr = viewPane.getMenuManager();
        List<SWTBotViewMenu> l = new ArrayList<SWTBotViewMenu>();

        l.addAll(getMenuItemsInternal(mgr.getItems(), matcher, recursive));

        return l;
View Full Code Here

   */
  public List<SWTBotToolbarButton> getToolbarButtons() {
    return UIThreadRunnable.syncExec(new ListResult<SWTBotToolbarButton>() {

      public List<SWTBotToolbarButton> run() {
        ViewPane obj = (ViewPane) ((WorkbenchPartReference) partReference).getPane();
        ToolBar toolbar = (ToolBar) obj.getToolBar();
        List<SWTBotToolbarButton> l = new ArrayList<SWTBotToolbarButton>();

        if (toolbar == null)
          return l;

View Full Code Here

   */
  public List<SWTBotViewMenu> findMenus(final IViewReference view, final Matcher<?> matcher, final boolean recursive) {
    return UIThreadRunnable.syncExec(new ListResult<SWTBotViewMenu>() {

      public List<SWTBotViewMenu> run() {
        ViewPane viewPane = (ViewPane) ((WorkbenchPartReference) view).getPane();
        MenuManager mgr = viewPane.getMenuManager();
        List<SWTBotViewMenu> l = new ArrayList<SWTBotViewMenu>();

        l.addAll(getMenuItemsInternal(mgr.getItems(), matcher, recursive));

        return l;
View Full Code Here

   */
  public List<SWTBotToolbarButton> getToolbarButtons() {
    return UIThreadRunnable.syncExec(new ListResult<SWTBotToolbarButton>() {

      public List<SWTBotToolbarButton> run() {
        ViewPane obj = (ViewPane) ((WorkbenchPartReference) partReference).getPane();
        ToolBar toolbar = (ToolBar) obj.getToolBar();
        final List<SWTBotToolbarButton> l = new ArrayList<SWTBotToolbarButton>();

        if (toolbar == null)
          return l;

View Full Code Here

    }

    public void run() {
      if (realFV) {
          if (viewPane.getPane() instanceof ViewPane) {
              ViewPane pane = (ViewPane) viewPane.getPane();
             
              if (!isChecked()) {
                  pane.doMakeFast();
              } else {
                  pane.doRemoveFast();
              }  
          }
      }
      else {
        // We're a minimized stack...restore it
View Full Code Here

   */
  public List findMenus(final IViewReference view, final IMatcher matcher, final boolean recursive) {
    return UIThreadRunnable.syncExec(new ListResult() {

      public List run() {
        ViewPane viewPane = (ViewPane) ((WorkbenchPartReference) view).getPane();
        MenuManager mgr = viewPane.getMenuManager();
        List l = new ArrayList();

        l.addAll(getMenuItemsInternal(mgr.getItems(), matcher, recursive));

        return l;
View Full Code Here

   */
  public List getToolbarButtons() {
    return UIThreadRunnable.syncExec(new ListResult() {

      public List run() {
        ViewPane obj = (ViewPane) ((WorkbenchPartReference) view).getPane();
        ToolBar toolbar = (ToolBar) obj.getToolBar();

        List l = new ArrayList();
        ToolItem[] items = toolbar.getItems();
        for (int i = 0; i < items.length; i++) {
          try {
View Full Code Here

   */
  public List<SWTBotViewMenu> findMenus(final IViewReference view, final Matcher<?> matcher, final boolean recursive) {
    return UIThreadRunnable.syncExec(new ListResult<SWTBotViewMenu>() {

      public List<SWTBotViewMenu> run() {
        ViewPane viewPane = (ViewPane) ((WorkbenchPartReference) view).getPane();
        MenuManager mgr = viewPane.getMenuManager();
        List<SWTBotViewMenu> l = new ArrayList<SWTBotViewMenu>();

        l.addAll(getMenuItemsInternal(mgr.getItems(), matcher, recursive));

        return l;
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.ViewPane

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.