mirror of
https://github.com/ProjectSWGCore/ConversationScriptCreator.git
synced 2026-07-13 22:01:20 -04:00
Added basic saving, shortcuts & new buttons!
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user