Package org.eclipse.egit.ui.internal

Examples of org.eclipse.egit.ui.internal.RepositorySaveableFilter


   */
  public static boolean saveAllEditors(Repository repository,
      String cancelConfirmationQuestion) {
    IWorkbench workbench = PlatformUI.getWorkbench();
    IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
    RepositorySaveableFilter filter = new RepositorySaveableFilter(
        repository);
    boolean success = workbench.saveAll(window, window, filter, true);
    if (success && cancelConfirmationQuestion != null && filter.isAnythingSaved()){
      // allow the user to cancel the operation to first do something with
      // the newly saved files
      String[] buttons = new String[] { IDialogConstants.YES_LABEL,
          IDialogConstants.NO_LABEL };
      MessageDialog dialog = new MessageDialog(window.getShell(),
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.RepositorySaveableFilter

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.