Skip to content

Commit

Permalink
MSDlite corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
apocist committed Aug 6, 2014
1 parent 33ea467 commit 7a380cf
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="lib" path="lib/MSDlite.jar"/>
<classpathentry kind="lib" path="lib/MSDlite.jar" sourcepath="/MAL Signature Designer Lite/src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Binary file modified lib/MSDlite.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.ListSelectionModel;
import javax.swing.SwingUtilities;
import javax.swing.WindowConstants;
Expand Down Expand Up @@ -56,15 +57,16 @@ public void run(){
JMenuItem menuItem = new JMenuItem("Generate Script");
menuItem.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
System.out.println(blocks.getRootNode().createScript(null));
}
});
menu.add(menuItem);
final JDialog d = new JDialog(blockFrame, "MSD Script", true);

menuItem = new JMenuItem("Move Down");
menuItem.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
blocks.moveNodeDown();
JTextArea textArea = new JTextArea(20, 100);
JScrollPane textscrollPane = new JScrollPane(textArea);
textArea.setEditable(false);
textArea.setText(blocks.getRootNode().createScript(null));
d.getContentPane().add(textscrollPane, BorderLayout.CENTER);

d.pack();
d.setVisible(true);
}
});
menu.add(menuItem);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ public String createScript(String filteronly){
* @return
*/
public String generateScript(){
return null;
return "";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public Main(){

//just testing stuff here
try {
Thread.sleep(300);
Thread.sleep(400);
} catch (InterruptedException e) {}
//sig.addBackground("#FF33FF"); //Place a black background(honestly not needed)

Expand Down

0 comments on commit 7a380cf

Please sign in to comment.