Last change
on this file since 29819 was 27960, checked in by stoecker, 13 years ago |
fix revision for conflation plugin
|
File size:
909 bytes
|
Line | |
---|
1 | package nanolog;
|
---|
2 |
|
---|
3 | import javax.swing.*;
|
---|
4 | import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
|
---|
5 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
6 | import org.openstreetmap.josm.tools.Shortcut;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * NanoLog Panel. Displays the selected log item, along with surrounding 30-50 lines.
|
---|
10 | *
|
---|
11 | * @author zverik
|
---|
12 | */
|
---|
13 | public class NanoLogPanel extends ToggleDialog {
|
---|
14 | private JList logPanel;
|
---|
15 | private LogListModel listModel;
|
---|
16 |
|
---|
17 | public NanoLogPanel() {
|
---|
18 | super(tr("NanoLog"), "nanolog", tr("Open NanoLog panel"), null, 150, true);
|
---|
19 |
|
---|
20 | listModel = new LogListModel();
|
---|
21 | logPanel = new JList(listModel);
|
---|
22 | createLayout(logPanel, true, null);
|
---|
23 | }
|
---|
24 |
|
---|
25 | private class LogListModel extends AbstractListModel {
|
---|
26 |
|
---|
27 | public int getSize() {
|
---|
28 | return 0;
|
---|
29 | }
|
---|
30 |
|
---|
31 | public String getElementAt( int index ) {
|
---|
32 | return ""; // todo
|
---|
33 | }
|
---|
34 | }
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.