Added basic saving, shortcuts & new buttons!

This commit is contained in:
Waverunner
2014-09-08 19:48:54 -04:00
parent 988f449d04
commit e576ffd2ba
21 changed files with 683 additions and 42 deletions
@@ -2,8 +2,6 @@
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Users/Wave/Documents/NetBeansProjects/ConversationScriptCreator/ConversationCompiler/src/com/projectswg/tools/csc/compiler/Compiler.java</file>
</group>
<group/>
</open-files>
</project-private>
@@ -1,2 +1,5 @@
javac.source=1.7
javac.compilerargs=-Xlint -Xlint:-serial
license.file=../LICENSE
nbm.homepage=http://www.projectswg.com
nbm.module.author=Waverunner
@@ -16,7 +16,6 @@ import javax.swing.JOptionPane;
import org.netbeans.api.visual.widget.ConnectionWidget;
import org.netbeans.api.visual.widget.Widget;
import org.openide.windows.TopComponent;
import org.openide.windows.WindowManager;
public class Compiler {
@@ -28,7 +27,7 @@ public class Compiler {
public void compile() throws IOException {
TopComponent component = WindowManager.getDefault().findTopComponent("EditorTopComponent");
TopComponent component = TopComponent.getRegistry().getActivated();
if (component == null || !(component instanceof EditorTopComponent))
return;