Package org.adoptopenjdk.jitwatch.ui.Dialogs

Examples of org.adoptopenjdk.jitwatch.ui.Dialogs.Response


    btnNewProfile.setOnAction(new EventHandler<ActionEvent>()
    {
      @Override
      public void handle(ActionEvent e)
      {
        Response resp = Dialogs.showTextInputDialog(MainConfigStage.this, "Enter Profile Name", S_EMPTY);

        if (resp == Response.YES)
        {
          String name = Dialogs.getTextInput();

          if (name != null)
          {
            if (DEBUG_LOGGING)
            {
              logger.debug("setting new name: {}", name);
            }

            config.setProfileName(name);

            chooserSource.setItems(config.getSourceLocations());
            chooserClasses.setItems(config.getClassLocations());

            createComboOptions(config);

            if (DEBUG_LOGGING)
            {
              logger.debug("setting combo name: {}", name);
            }

            comboBox.setValue(name);
          }
        }
      }
    });

    Button btnDelete = new Button("Delete");

    btnDelete.setOnAction(new EventHandler<ActionEvent>()
    {
      @Override
      public void handle(ActionEvent e)
      {
        String profileName = comboBox.getValue();

        if (profileName != null && !config.isBuiltInProfile(profileName))
        {
          Response resp = Dialogs.showYesNoDialog(MainConfigStage.this, "Really Delete Profile?", "Delete profile '"
              + profileName + C_QUOTE);

          if (resp == Response.YES)
          {
            if (DEBUG_LOGGING)
View Full Code Here


  public void promptSave()
  {
    if (isModified)
    {
      Response resp = Dialogs.showYesNoDialog(sandboxStage.getStageForChooser(), "Save modified file?", "Save changes?");

      if (resp == Response.YES)
      {
        saveFile();
      }
View Full Code Here

    btnResetSandbox.setOnAction(new EventHandler<ActionEvent>()
    {
      @Override
      public void handle(ActionEvent e)
      {
        Response resp = Dialogs.showYesNoDialog(SandboxStage.this, "Reset Sandbox?",
            "Delete all modified Sandbox sources and classes?");

        if (resp == Response.YES)
        {
          initialiseLog();
View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.ui.Dialogs.Response

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.