mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-15 07:48:29 -04:00
renamed some methods and variables
This commit is contained in:
parent
d984db1f68
commit
35a03fed34
@ -58,7 +58,7 @@ public class FSMFrame extends JFrame implements ClosingWindowListener.ConfirmSav
|
||||
private File filename;
|
||||
private File baseFilename;
|
||||
private boolean lastModified;
|
||||
private String circuitName;
|
||||
private String probeLabelName;
|
||||
|
||||
/**
|
||||
* Creates a new instance
|
||||
@ -391,22 +391,23 @@ public class FSMFrame extends JFrame implements ClosingWindowListener.ConfirmSav
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fsm name used in the circuit wich has opened this window
|
||||
* Sets the fsm name used in the circuit probe label which has opened
|
||||
* this window.
|
||||
*
|
||||
* @param circuitName the fsm name contained in the circuit
|
||||
* @param probeLabelName the fsm name contained in the circuit
|
||||
* @return this for chained calls
|
||||
*/
|
||||
public FSMFrame setCircuitName(String circuitName) {
|
||||
this.circuitName = circuitName;
|
||||
public FSMFrame setProbeLabelName(String probeLabelName) {
|
||||
this.probeLabelName = probeLabelName;
|
||||
return this;
|
||||
}
|
||||
|
||||
private File getFileNameFromHistory() {
|
||||
File f = fileHistory.getMostRecent();
|
||||
if (f != null)
|
||||
for (File l : fileHistory.getFiles())
|
||||
if (l.getName().equals(circuitName))
|
||||
f = l;
|
||||
for (File hf : fileHistory.getFiles())
|
||||
if (hf.getName().equals(probeLabelName))
|
||||
f = hf;
|
||||
return f;
|
||||
}
|
||||
|
||||
|
@ -1149,7 +1149,7 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
|
||||
|
||||
new FSMFrame(Main.this, library)
|
||||
.setBaseFileName(filename)
|
||||
.setCircuitName(foundName)
|
||||
.setProbeLabelName(foundName)
|
||||
.registerTo(Main.this)
|
||||
.setVisible(true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user