Examples of hideView()


Examples of org.eclipse.ui.IWorkbenchPage.hideView()

        // If there is an opened MergeView then close it!
        if (viewRef != null) {
            Display.getDefault().asyncExec(new Runnable() {
                @Override
                public void run() {
                    page.hideView(viewRef.getView(false));
                }
            });
        }
    }
}
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.hideView()

      ApplicationGIS.getView(false, MergeView.ID);
      IWorkbenchPage page = PlatformUI.getWorkbench()
          .getActiveWorkbenchWindow().getActivePage();
      IViewPart viewPart = page.findView(MergeView.ID);
      page.hideView(viewPart);
    } finally {
      IToolContext context = getContext();
      if(context != null){
        UndoableMapCommand clearSelectionCommand = context
            .getSelectionFactory().createNoSelectCommand();
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.hideView()

        } catch (Exception e) {
        }
      }
      try {
        IViewPart part = page.findView(PaletteView.ID);
        page.hideView(part);
      } catch (Exception e) {
      }
    }
  }
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.hideView()

        break;
      }
    }
   
    if (view != null) {
      page.hideView(view);
    }
  }
 
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.hideView()

      try {       
        IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();             

        IViewReference playlistView = page.findViewReference(PlaylistView.ID, _playlistName);
                if (playlistView != null) {
                  page.hideView(playlistView);                   
                }                     
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.hideView()

        break;
      }
    }
   
    if (view != null) {
      _page.hideView(view);
    }
  }
 
  public static void closeViewByID(String primaryId, String secondaryId) {
    IViewReference view = null;
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.hideView()

        break;
      }
    }
   
    if (view != null) {
      _page.hideView(view);
    }
  }
 
  public static void showViewByID(String id) {
    IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();             
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.hideView()

                    IWorkbenchPage page = window.getActivePage();
                    for ( IViewReference viewref : page.getViewReferences() )
                    {
                        if ( "org.eclipse.ui.internal.introview".equals( viewref.getId() ) )
                        {
                            page.hideView( viewref );
                        }
                    }

                    // close shells (open dialogs)
                    Shell activeShell = Display.getCurrent().getActiveShell();
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.hideView()

            //assumption is that there is only ever one intro per workbench
            //if we ever support one per window then this will need revisiting
            IWorkbenchPage page = introView.getSite().getPage();
            IViewReference reference = page
                    .findViewReference(IIntroConstants.INTRO_VIEW_ID);
            page.hideView(introView);
            if (reference == null || reference.getPart(false) == null) {
                introPart = null;               
                return true;
            }
            return false;
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.hideView()

        viewHelpers._("handle-responses", this, logPanel, expression, resp.seq());
    }

    public void closeView () throws Exception {
        IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
        page.hideView(this);
        closeConnections();
    }

    public void closeConnections () throws Exception {
        if (interactive != null) interactive.close();
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.