Package org.rssowl.ui.internal.dialogs

Examples of org.rssowl.ui.internal.dialogs.ConfirmDeleteDialog.open()


    if (!selection.isEmpty()) {
      ILabel label = (ILabel) selection.getFirstElement();

      String msg = "Are you sure you want to delete the Label '" + label.getName() + "'?";
      ConfirmDeleteDialog dialog = new ConfirmDeleteDialog(getShell(), "Confirm Delete", "This action can not be undone", msg, null);
      if (dialog.open() == IDialogConstants.OK_ID) {

        /* Remove Label from any News containing it */
        Collection<INews> affectedNews = DynamicDAO.getDAO(INewsDAO.class).loadAll(label);
        for (INews news : affectedNews) {
          news.removeLabel(label);
View Full Code Here


    }

    /* Create Dialog and open if confirmation required */
    if (confirmPrefKey == null || fPreferences.getBoolean(confirmPrefKey)) {
      ConfirmDeleteDialog dialog = new ConfirmDeleteDialog(fShell, "Confirm Delete", "This action can not be undone", getMessage(elements), confirmPrefKey);
      return dialog.open() == IDialogConstants.OK_ID;
    }

    return true;
  }

View Full Code Here

        msg += bmMsg + "?";
      else
        msg += newsCounter + " news?";

      ConfirmDeleteDialog dialog = new ConfirmDeleteDialog(getShell(), "Confirm Delete", "This action can not be undone", msg, null);
      if (dialog.open() != Window.OK)
        return false;
    }

    /* Runnable that performs the tasks */
    IRunnableWithProgress runnable = new IRunnableWithProgress() {
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.