projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MPROMEditor now calls its columns "Opcode" and "muPC"
[Mograsim.git]
/
plugins
/
net.mograsim.plugin.core
/
src
/
net
/
mograsim
/
plugin
/
editors
/
AbstractMemoryEditor.java
diff --git
a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/editors/AbstractMemoryEditor.java
b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/editors/AbstractMemoryEditor.java
index
e306cff
..
0391511
100644
(file)
--- a/
plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/editors/AbstractMemoryEditor.java
+++ b/
plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/editors/AbstractMemoryEditor.java
@@
-59,6
+59,8
@@
public abstract class AbstractMemoryEditor extends EditorPart
private LazyTableViewer viewer;
private MemoryTableContentProvider provider;
private DisplaySettings displaySettings;
private LazyTableViewer viewer;
private MemoryTableContentProvider provider;
private DisplaySettings displaySettings;
+ private final String addrColName;
+ private final String dataColName;
private Collection<Control> fontDependent = new HashSet<>();
private Collection<Control> fontDependent = new HashSet<>();
@@
-69,8
+71,11
@@
public abstract class AbstractMemoryEditor extends EditorPart
private final static String font = "net.mograsim.plugin.memory.table_font";
private IPropertyChangeListener fontChangeListener;
private final static String font = "net.mograsim.plugin.memory.table_font";
private IPropertyChangeListener fontChangeListener;
- public AbstractMemoryEditor()
+ public AbstractMemoryEditor(
String addrColName, String dataColName
)
{
{
+ this.addrColName = addrColName;
+ this.dataColName = dataColName;
+
memListener = this::cellModified;
}
memListener = this::cellModified;
}
@@
-197,10
+202,10
@@
public abstract class AbstractMemoryEditor extends EditorPart
private void createColumns()
{
private void createColumns()
{
- TableViewerColumn addrCol = createTableViewerColumn(
"Address"
, 100);
+ TableViewerColumn addrCol = createTableViewerColumn(
addrColName
, 100);
addrCol.setLabelProvider(new AddressLabelProvider());
addrCol.setLabelProvider(new AddressLabelProvider());
- TableViewerColumn dataCol = createTableViewerColumn(
"Data"
, 100);
+ TableViewerColumn dataCol = createTableViewerColumn(
dataColName
, 100);
dataCol.setLabelProvider(new NumberColumnLabelProvider(displaySettings)
{
@Override
dataCol.setLabelProvider(new NumberColumnLabelProvider(displaySettings)
{
@Override