Package com.denimgroup.threadfix.plugin.eclipse.dialog

Examples of com.denimgroup.threadfix.plugin.eclipse.dialog.ConfigDialog


   * @see IWorkbenchWindowActionDelegate#run
   */
  @Override
  public void run(IAction action) {
    boolean cancelled = false;
    ConfigDialog dialog = new ConfigDialog(window.getShell(), false);

    dialog.create();

    if (dialog.open() == Window.OK) {
      EclipsePropertiesManager.saveThreadFixInfo(dialog.getUrl(), dialog.getApiKey());
      ApplicationsMap threadFixApplicationMap = ThreadFixService.getApplications();
     
      while (threadFixApplicationMap.getTeams().isEmpty()) {
        dialog = new ConfigDialog(window.getShell(), true);

        dialog.create();
        if (dialog.open() == Window.OK) {
          EclipsePropertiesManager.saveThreadFixInfo(dialog.getUrl(), dialog.getApiKey());
          System.out.println("Saved ThreadFix information successfully.");
          threadFixApplicationMap = ThreadFixService.getApplications();
        } else {
          System.out.println("Cancel was pressed.");
          cancelled = true;
View Full Code Here


   */
  @Override
  public void run(IAction action) {
    boolean cancelled = false;
    // Get endpoint info
    ConfigDialog dialog = new ConfigDialog(window.getShell(),false);

    dialog.create();

    if (dialog.open() == Window.OK) {
      EclipsePropertiesManager.saveThreadFixInfo(dialog.getUrl(), dialog.getApiKey());
      System.out.println("Saved ThreadFix information successfully.");
     
      // Get application info
      ApplicationsMap threadFixApplicationMap = ThreadFixService.getApplications();
      while (threadFixApplicationMap.getTeams().isEmpty()){
        dialog = new ConfigDialog(window.getShell(), true);

        dialog.create();
        if (dialog.open() == Window.OK) {
          EclipsePropertiesManager.saveThreadFixInfo(dialog.getUrl(), dialog.getApiKey());
          System.out.println("Saved ThreadFix information successfully.");
          threadFixApplicationMap = ThreadFixService.getApplications();
        } else {
          System.out.println("Cancel was pressed.");
          cancelled = true;
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.plugin.eclipse.dialog.ConfigDialog

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.