Skip to content

Commit

Permalink
fixed Test IDE window
Browse files Browse the repository at this point in the history
  • Loading branch information
ejakubowski committed Feb 17, 2014
1 parent d2c58a8 commit fd8509f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Synthuse

Version 1.0.5 released on 1-30-2014
Version 1.0.6 released on 2-17-2014
By Edward Jakubowski ejakubowski7@gmail.com

Description:
Expand All @@ -25,6 +25,9 @@ Software Requirements:


Release Notes:
2-17-2014 version 1.0.6
- fixed Test IDE window

1-30-2014 version 1.0.5
- Base version

2 changes: 1 addition & 1 deletion src/org/synthuse/SynthuseDlg.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class SynthuseDlg extends JFrame {
/**
*
*/
public static String VERSION_STR = "1.0.5";
public static String VERSION_STR = "1.0.6";

public static String RES_STR_MAIN_ICON = "/org/synthuse/img/gnome-robots.png";
public static String RES_STR_REFRESH_IMG = "/org/synthuse/img/rapidsvn.png";
Expand Down
20 changes: 13 additions & 7 deletions src/org/synthuse/TestIdeFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@

public class TestIdeFrame extends JFrame {

public static String RES_STR_MAIN_ICON = "/org/synthuse/img/applications-education.png";
public static String RES_STR_STOP_IMG = "/org/synthuse/img/dialog-close.png";
public static String RES_STR_RUN_IMG = "/org/synthuse/img/arrow-right-3.png";
public static String RES_STR_CLEAR_IMG = "/org/synthuse/img/user-trash-2.png";
public static String RES_STR_COPY_IMG = "/org/synthuse/img/edit-copy-7.png";

/**
*
*/
Expand All @@ -48,7 +54,7 @@ public class TestIdeFrame extends JFrame {

public TestIdeFrame() {
setTitle("Test IDE - Synthuse");
setIconImage(Toolkit.getDefaultToolkit().getImage(TestIdeFrame.class.getResource("/org/qedsys/synthuse/applications-education.png")));
setIconImage(Toolkit.getDefaultToolkit().getImage(TestIdeFrame.class.getResource(RES_STR_MAIN_ICON)));
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 700, 367);
contentPane = new JPanel();
Expand All @@ -64,7 +70,7 @@ public TestIdeFrame() {
public void actionPerformed(ActionEvent arg0) {
if (btnRun.getText().equals("Run")) {
btnRun.setText("Stop");
btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/dialog-close.png")));
btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_STOP_IMG)));
CommandProcessor.STOP_PROCESSOR.set(false);
CommandProcessor.executeThreaded(txtTest.getText(), new CommandProcessor.Events() {
@Override
Expand All @@ -74,18 +80,18 @@ public void statusChanged(String status) {
@Override
public void executionCompleted() {
btnRun.setText("Run");
btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/arrow-right-3.png")));
btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_RUN_IMG)));
}
});
}
else {
CommandProcessor.STOP_PROCESSOR.set(true);
//btnRun.setText("Run");
//btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/arrow-right-3.png")));
//btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_RUN_IMG)));
}
}
});
btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/arrow-right-3.png")));
btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_RUN_IMG)));
toolBar.add(btnRun);

btnClear = new JButton("Clear");
Expand All @@ -94,7 +100,7 @@ public void actionPerformed(ActionEvent arg0) {
txtTest.setText("");
}
});
btnClear.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/user-trash-2.png")));
btnClear.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_CLEAR_IMG)));
toolBar.add(btnClear);

btnCopy = new JButton("Copy Script");
Expand All @@ -106,7 +112,7 @@ public void actionPerformed(ActionEvent arg0) {
//StatusWindow sw = new StatusWindow("this is a test BLAH really long string goes here to test status of stuff yaya!!!!123123 123 123", 4000);
}
});
btnCopy.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/edit-copy-7.png")));
btnCopy.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_COPY_IMG)));
toolBar.add(btnCopy);

JScrollPane scrollPane = new JScrollPane();
Expand Down

0 comments on commit fd8509f

Please sign in to comment.