source: osm/applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/gui/OsmInspectorBugInfoDialog.java

Last change on this file was 36176, checked in by taylor.smock, 7 months ago

Fix error_prone version issue and dependency updates (see #23218)

Plugins with an ivy_settings.xml file were not reading the error_prone version
from the core ivysettings.xml file. This removes redundant ivy_settings.xml files
and includes the core ivysettings.xml file in the remaining ivy_settings.xml
files.

Dependency updates:
apache-commons:

  • zstd-jni: 1.5.2-5 -> 1.5.5-6
  • commons-compress: 1.22 -> 1.24.0
  • commons-io: 2.11.0 -> 2.14.0
  • commons-lang3: 3.12.0 -> 3.13.0

apache-http:

  • httpclient5: 5.1.2 -> 5.2.1
  • Drops legacy httpcore, httpclient, and httpmime dependencies

ejml: 0.41 -> 0.43.1

  • ejml now requires Java 11

flatlaf: 3.2 -> 3.2.2
geotools: 28.2 -> 30.0

  • geotools now requires Java 11
  • 30.0 had some breaking API changes, but provided a migration script

jackson: 2.14.0 -> 2.15.3
jna: 5.12.1 -> 5.13.0
log4j: 2.19.0 -> 2.21.0
lwjgl: 3.3.1 -> 3.3.3
pbf:

  • protobuf-java: 3.20.3 -> 3.24.4
File size: 1.8 KB
Line 
1package org.openstreetmap.josm.plugins.osminspector.gui;
2
3import static org.openstreetmap.josm.tools.I18n.tr;
4
5import java.awt.event.KeyEvent;
6import java.util.Collections;
7
8import javax.swing.JTextPane;
9
10import org.openstreetmap.josm.gui.MainApplication;
11import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
12import org.openstreetmap.josm.plugins.osminspector.OsmInspectorLayer;
13import org.openstreetmap.josm.plugins.osminspector.OsmInspectorLayer.BugInfo;
14import org.openstreetmap.josm.tools.Shortcut;
15
16public class OsmInspectorBugInfoDialog extends ToggleDialog {
17
18 private JTextPane bugTextArea;
19
20 /**
21 * Builds the content panel for this dialog
22 */
23 protected void buildContentPanel() {
24 MainApplication.getMap().addToggleDialog(this, true);
25
26 bugTextArea = new JTextPane();
27 createLayout(bugTextArea, true, Collections.emptyList());
28 bugTextArea.setText("This is a demo");
29 this.add(bugTextArea);
30 }
31
32 public OsmInspectorBugInfoDialog(OsmInspectorLayer layer) {
33
34 super(tr("OsmBugInfo"), "select",
35 tr("Open a OSM Inspector selection list window."), Shortcut.registerShortcut("subwindow:select",
36 tr("Toggle: {0}", tr("Current Selected Bug Info")),
37 KeyEvent.VK_D, Shortcut.ALT_SHIFT), 150, // default
38 // height
39 true // default is "show dialog"
40 );
41 buildContentPanel();
42 }
43
44 public void updateDialog(OsmInspectorLayer l) {
45 }
46
47 public void setBugDescription(BugInfo i){
48 bugTextArea.setText(i.getContentString());
49 }
50
51 @Override
52 public void hideNotify() {
53 if (dialogsPanel != null) {
54 super.hideNotify();
55 }
56 }
57}
Note: See TracBrowser for help on using the repository browser.