Package net.sourceforge.ganttproject.gui.UIFacade

Examples of net.sourceforge.ganttproject.gui.UIFacade.Choice


        if(myProject.getDocument() == null && !myProject.isModified()) {
            return false;
        }
      String message = i18n("msg17");
      String title = i18n("question");
      Choice mergeChoice = getUIFacade().showConfirmationDialog(message, title);
      if (mergeChoice == Choice.YES) {
        return true;
      }
        if (myProject.checkCurrentProject()) {
            myProject.close();
View Full Code Here


    public void actionPerformed(ActionEvent e) {
        myProjectFrame.getTabs().setSelectedIndex(UIFacade.RESOURCES_INDEX);
        final ResourceAssignment[] context = myContext.getResourceAssignments();
        if (context != null && context.length > 0) {
          Choice choice = myProjectFrame.getUIFacade().showConfirmationDialog(getI18n("msg23") + " "
                    + getDisplayName(context) + "?", getI18n("warning"));
            if (choice==Choice.YES) {
                myProjectFrame.getUIFacade().getUndoManager().undoableEdit("Resource removed",
                        new Runnable() {
                            public void run() {
View Full Code Here

        final ProjectResource[] context = getContext().getResources();
        if (context.length > 0) {
          final String message = getLanguage().getText("msg6") + " "
            + getDisplayName(context)+ "?";
          final String title = getLanguage().getText("question");
          Choice choice = myUIFacade.showConfirmationDialog(message, title);
            if (choice==Choice.YES) {
                myUIFacade.getUndoManager().undoableEdit("Resource removed",
                        new Runnable() {
                            public void run() {
                                deleteResources(context);
View Full Code Here

TOP

Related Classes of net.sourceforge.ganttproject.gui.UIFacade.Choice

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.