Package org.eclipse.ui

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


            }
            StructuredSelection javaSelection = null;
            IWorkbenchPart vPart = null;
            if(el!=null) {
              javaSelection = new StructuredSelection(el);
              vPart = page.findView(creator.getSourceViewId());
              // show(el, org.eclipse.ui.internal.views.);
              if(
                  (vPart!=null)
                  &&(
                      !vPart.getSite()
View Full Code Here


   */
  public Object execute(ExecutionEvent event) throws ExecutionException {
    // Get the view
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
    View view = (View) page.findView(View.ID);
    TableViewer viewer = view.getViewer();

    // Get the selection
    PWListContentProvider contentProvider = (PWListContentProvider) view
        .getContentProvider();
View Full Code Here

    Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();

    // Get the view
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
    View view = (View) page.findView(View.ID);

    // File standard dialog
    FileDialog fileDialog = new FileDialog(shell);
    fileDialog.setText("Select File");
    // Open Dialog and save result of selection
View Full Code Here

    Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();

    // Get the view
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
    View view = (View) page.findView(View.ID);

    PWListContentProvider contentProvider = (PWListContentProvider) view
        .getContentProvider();
    try {
      contentProvider.save();
View Full Code Here

    Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();

    // Get the view
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
    View view = (View) page.findView(View.ID);

    // File standard dialog
    FileDialog fileDialog = new FileDialog(shell);
    // Set the text
    fileDialog.setText("Select file to merge");
View Full Code Here

  public Object execute(ExecutionEvent event) throws ExecutionException {
    // Get the view; we need almost all of these, so refactoring makes
    // little sense
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
    View view = (View) page.findView(View.ID);
    TableViewer viewer = view.getViewer();
    // Get the selection
    ISelection selection = viewer.getSelection();
    if (selection instanceof IStructuredSelection) {
      Object obj = ((IStructuredSelection) selection).getFirstElement();
View Full Code Here

   */
  public Object execute(ExecutionEvent event) throws ExecutionException {
    // Get the view
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
    View view = (View) page.findView(View.ID);
    PWListContentProvider contentProvider = (PWListContentProvider) view
        .getContentProvider();
    try {
      contentProvider.addEntry();
    } catch (Exception e) {
View Full Code Here

    Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();

    // Get the view
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
    View view = (View) page.findView(View.ID);

    // File standard dialog
    FileDialog fileDialog = new FileDialog(shell, SWT.SAVE);
    // Set the text
    fileDialog.setText("Save as...");
View Full Code Here

   */
  public Object execute(ExecutionEvent event) throws ExecutionException {
    // Get the view
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
    View view = (View) page.findView(View.ID);

    // get the content provider and fill it with an empty list
    PWListContentProvider contentProvider = (PWListContentProvider) view
        .getContentProvider();
    try {
View Full Code Here

                    if (fbProject != null && !item.getId().equals(fbProject.getCloudId())) {
                        fbProject.setCloudId(item.getId());
                        collection.reinitializeCloud();
                        IWorkbenchPage page = FindbugsPlugin.getActiveWorkbenchWindow().getActivePage();
                        if (page != null) {
                            IViewPart view = page.findView(FindbugsPlugin.TREE_VIEW_ID);
                            if (view instanceof CommonNavigator) {
                                CommonNavigator nav = ((CommonNavigator) view);
                                nav.getCommonViewer().refresh(true);
                            }
                        }
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.