Examples of closeEditors()


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

                continue;
              System.arraycopy(refArray, 0, otherEditors, 0, i);
              System.arraycopy(refArray, i + 1, otherEditors, i, refArray.length - 1 - i);
              break;
            }
            page.closeEditors(otherEditors, true);
          }
        }
        break;
      }
View Full Code Here

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

            continue;
          System.arraycopy(refArray, 0, otherEditors, 0, i);
          System.arraycopy(refArray, i + 1, otherEditors, i, refArray.length - 1 - i);
          break;
        }
        page.closeEditors(otherEditors, true);
      }
    }
  }

  /**
 
View Full Code Here

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

            }

            // Closing the corresponding editor references
            if ( editorReferences.size() > 0 )
            {
                activePage.closeEditors( editorReferences.toArray( new IEditorReference[0] ), false );
            }
        }
    }

View Full Code Here

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

          System.arraycopy(refArray, 0, otherEditors, 0, i);
          System.arraycopy(refArray, i + 1, otherEditors, i,
              refArray.length - 1 - i);
          break;
        }
        page.closeEditors(otherEditors, true);
      }
    }

    return null;
  }
View Full Code Here

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

            }

            // Closing the corresponding editor references
            if ( editorReferences.size() > 0 )
            {
                activePage.closeEditors( editorReferences.toArray( new IEditorReference[0] ), false );
            }
        }
    }

View Full Code Here

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

                    } catch (PartInitException e) {
                        // do nothing
                    }
                }

                activePage
                        .closeEditors(matches.toArray(new IEditorReference[matches.size()]), true);
            }
        });
    }
View Full Code Here

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

            }

            // Closing the corresponding editor references
            if ( editorReferences.size() > 0 )
            {
                activePage.closeEditors( editorReferences.toArray( new IEditorReference[0] ), false );
            }
        }
    }

View Full Code Here

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

            }

            // Closing the corresponding editor references
            if ( editorReferences.size() > 0 )
            {
                activePage.closeEditors( editorReferences.toArray( new IEditorReference[0] ), false );
            }
        }
    }

View Full Code Here

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

       
        // Close editors
        IEditorReference[] editorRefs = page.findEditors(
            (IEditorInput) log.getAdapter(IEditorInput.class),
            null, IWorkbenchPage.MATCH_INPUT);
        page.closeEditors(editorRefs, false);
       
        try {
          UIPlugin.getDefault().getLogResourceManager().remove(log);
        } catch (CoreException e) {
          statuses.add(e.getStatus());
View Full Code Here

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

          for (IEditorReference each : editorReferences) {
            if (each.getId().equals("org.apache.uima.caseditor.editor")) {
              toClose.add(each);
            }
          }
          activePage.closeEditors(toClose.toArray(new IEditorReference[0]), true);
        }
        return true;
      }

      public void postShutdown(IWorkbench workbench) {
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.