mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-16 08:25:09 -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 filename;
|
||||||
private File baseFilename;
|
private File baseFilename;
|
||||||
private boolean lastModified;
|
private boolean lastModified;
|
||||||
private String circuitName;
|
private String probeLabelName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new instance
|
* 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
|
* @return this for chained calls
|
||||||
*/
|
*/
|
||||||
public FSMFrame setCircuitName(String circuitName) {
|
public FSMFrame setProbeLabelName(String probeLabelName) {
|
||||||
this.circuitName = circuitName;
|
this.probeLabelName = probeLabelName;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private File getFileNameFromHistory() {
|
private File getFileNameFromHistory() {
|
||||||
File f = fileHistory.getMostRecent();
|
File f = fileHistory.getMostRecent();
|
||||||
if (f != null)
|
if (f != null)
|
||||||
for (File l : fileHistory.getFiles())
|
for (File hf : fileHistory.getFiles())
|
||||||
if (l.getName().equals(circuitName))
|
if (hf.getName().equals(probeLabelName))
|
||||||
f = l;
|
f = hf;
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1149,7 +1149,7 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
|
|||||||
|
|
||||||
new FSMFrame(Main.this, library)
|
new FSMFrame(Main.this, library)
|
||||||
.setBaseFileName(filename)
|
.setBaseFileName(filename)
|
||||||
.setCircuitName(foundName)
|
.setProbeLabelName(foundName)
|
||||||
.registerTo(Main.this)
|
.registerTo(Main.this)
|
||||||
.setVisible(true);
|
.setVisible(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user