Skip to content

Commit 7a380cf

Browse files
committed
MSDlite corrected
1 parent 33ea467 commit 7a380cf

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<classpath>
33
<classpathentry kind="src" path="src"/>
44
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
5-
<classpathentry kind="lib" path="lib/MSDlite.jar"/>
5+
<classpathentry kind="lib" path="lib/MSDlite.jar" sourcepath="/MAL Signature Designer Lite/src"/>
66
<classpathentry kind="output" path="bin"/>
77
</classpath>

lib/MSDlite.jar

130 KB
Binary file not shown.

src/com/inverseinnovations/VisualMALSignatureDesigner/BlockWindow.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import javax.swing.JPanel;
2424
import javax.swing.JScrollPane;
2525
import javax.swing.JTabbedPane;
26+
import javax.swing.JTextArea;
2627
import javax.swing.ListSelectionModel;
2728
import javax.swing.SwingUtilities;
2829
import javax.swing.WindowConstants;
@@ -56,15 +57,16 @@ public void run(){
5657
JMenuItem menuItem = new JMenuItem("Generate Script");
5758
menuItem.addActionListener(new ActionListener(){
5859
public void actionPerformed(ActionEvent e){
59-
System.out.println(blocks.getRootNode().createScript(null));
60-
}
61-
});
62-
menu.add(menuItem);
60+
final JDialog d = new JDialog(blockFrame, "MSD Script", true);
6361

64-
menuItem = new JMenuItem("Move Down");
65-
menuItem.addActionListener(new ActionListener(){
66-
public void actionPerformed(ActionEvent e){
67-
blocks.moveNodeDown();
62+
JTextArea textArea = new JTextArea(20, 100);
63+
JScrollPane textscrollPane = new JScrollPane(textArea);
64+
textArea.setEditable(false);
65+
textArea.setText(blocks.getRootNode().createScript(null));
66+
d.getContentPane().add(textscrollPane, BorderLayout.CENTER);
67+
68+
d.pack();
69+
d.setVisible(true);
6870
}
6971
});
7072
menu.add(menuItem);

src/com/inverseinnovations/VisualMALSignatureDesigner/BuildingBlock/BuildingBlock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,6 @@ public String createScript(String filteronly){
144144
* @return
145145
*/
146146
public String generateScript(){
147-
return null;
147+
return "";
148148
}
149149
}

src/com/inverseinnovations/VisualMALSignatureDesigner/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public Main(){
2323

2424
//just testing stuff here
2525
try {
26-
Thread.sleep(300);
26+
Thread.sleep(400);
2727
} catch (InterruptedException e) {}
2828
//sig.addBackground("#FF33FF"); //Place a black background(honestly not needed)
2929

0 commit comments

Comments
 (0)