package com.github.aureliano.edocs.app.cmd;

public class ExitCommand implements ICommand {

	public ExitCommand() {}
	
	@Override
	public void execute() {
		if (!this.canExecute()) {
			return;
		}
		
		System.exit(0);
	}

	@Override
	public boolean canExecute() {
		return true;
	}
}
@@ -38,16 +38,65 @@
 p.cmd;%0A%0A
+import com.github.aureliano.edocs.app.EdocsApp;%0A%0A
 public c
@@ -244,16 +244,60 @@
 %0A%09%09%7D%0A%09%09%0A
+%09%09EdocsApp.instance().getFrame().dispose();%0A
 %09%09System

Exit command.