Class SIDE

java.lang.Object
  extended by SIDE
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class SIDE
extends java.lang.Object
implements java.awt.event.ActionListener

The main class of Simple IDE. All of the fun stuff is done here.


Field Summary
static SIDE _instance
           
static java.lang.String version
           
 
Constructor Summary
SIDE(java.lang.String[] args)
          Constructor for SIDE.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Action performed, all actions are sent as a string into the doAction method.
 void doAction(java.lang.String cmd)
          This processes all commands and does what is requested.
 void jar()
          Packages all the files into a jar with a name of your choice.
static void launchURL(java.lang.String url)
          Opens a URL in a new browser
static void log(java.lang.String message)
          This simply prints a message to the console.
static void main(java.lang.String[] args)
          Entry point for the JVM.
 boolean newProject(boolean quick)
          Creates a new project, asks all the necesary questions.
 void openProject()
          Loads a project configuration of your choice.
 void run()
          Dynamically loads all of the classes in the binary directory and runs the specified main class via reflection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static final java.lang.String version
See Also:
Constant Field Values

_instance

public static SIDE _instance
Constructor Detail

SIDE

public SIDE(java.lang.String[] args)
Constructor for SIDE.

Parameters:
args - Arguments to pass to the application.
Method Detail

main

public static void main(java.lang.String[] args)
Entry point for the JVM.

Parameters:
args - Arguments to pass to the application.

log

public static void log(java.lang.String message)
This simply prints a message to the console.

Parameters:
message - String to System.out.println

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Action performed, all actions are sent as a string into the doAction method.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
See Also:
doAction(String)

doAction

public void doAction(java.lang.String cmd)
This processes all commands and does what is requested.

Parameters:
cmd - The command to do in string format, ignores case.

run

public void run()
Dynamically loads all of the classes in the binary directory and runs the specified main class via reflection. TODO: find a better way to run the program so it doesnt run in the same jvm space, try to avoid system calls.


jar

public void jar()
Packages all the files into a jar with a name of your choice. This jar will be located in your home directory. Follows the jar preference.


openProject

public void openProject()
Loads a project configuration of your choice.


newProject

public boolean newProject(boolean quick)
Creates a new project, asks all the necesary questions.

Parameters:
quick - True to only ask required questions and default the rest, false to ask everything.
Returns:
True if the new project was created succesfully, false otherwise.

launchURL

public static void launchURL(java.lang.String url)
Opens a URL in a new browser

Parameters:
url - The url to open