All Downloads are FREE. Search and download functionalities are using the official Maven repository.

editor.run.RemoteRunConfigFactory Maven / Gradle / Ivy

There is a newer version: 1.18.1
Show newest version
package editor.run;

import editor.util.EditorUtilities;

import javax.swing.*;

/**
 */
public class RemoteRunConfigFactory implements IRunConfigFactory
{
  private static RemoteRunConfigFactory INSTANCE = new RemoteRunConfigFactory();

  public static RemoteRunConfigFactory instance()
  {
    return INSTANCE;
  }

  @Override
  public String getName()
  {
    return "Remote";
  }

  @Override
  public RemoteRunConfigParameters makeParameters()
  {
    RemoteRunConfigParameters params = new RemoteRunConfigParameters();
    // setup reasonable default values
    params.setTransport( DebugTransport.AttachingSocket );
    params.setHost( "localhost" );
    params.setPort( "5005" );
    params.setAddress( "gosudebug" );
    return params;
  }

  @Override
  public RemoteRunConfig newRunConfig( RemoteRunConfigParameters params )
  {
    return new RemoteRunConfig( params );
  }

  @Override
  public Icon getIcon()
  {
    return EditorUtilities.loadIcon( "images/remote.png" );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy