Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
525 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package jmri.jmrit.whereused; | ||
|
||
import javax.swing.JTextArea; | ||
import jmri.NamedBean; | ||
|
||
/** | ||
* Find entry/exit references. | ||
* | ||
* @author Dave Sand Copyright (C) 2020 | ||
*/ | ||
|
||
public class EntryExitWhereUsed { | ||
|
||
/** | ||
* Populate a textarea with the where used content for the supplied bean. | ||
* @param entryexit The entry/exit bean. | ||
* @return a populated textarea. | ||
*/ | ||
static public JTextArea getWhereUsed(NamedBean entryexit) { | ||
JTextArea textArea = new JTextArea(); | ||
String label = Bundle.getMessage("MakeLabel", Bundle.getMessage("BeanNameEntryExit")); // NOI18N | ||
textArea.append(Bundle.getMessage("ReferenceTitle", label, entryexit.getDisplayName())); // NOI18N | ||
textArea.append(Bundle.getMessage("ListenerCount", entryexit.getNumPropertyChangeListeners())); // NOI18N | ||
|
||
textArea.append(WhereUsedCollectors.checkLogixConditionals(entryexit)); | ||
textArea.append(WhereUsedCollectors.checkEntryExit(entryexit)); | ||
return textArea; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.