Index: /applications/editors/josm/plugins/public_transport_layer/build.xml
===================================================================
--- /applications/editors/josm/plugins/public_transport_layer/build.xml	(revision 31931)
+++ /applications/editors/josm/plugins/public_transport_layer/build.xml	(revision 31932)
@@ -8,5 +8,5 @@
 
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="8339"/>
+    <property name="plugin.main.version" value="9278"/>
 
     <!-- Configure these properties (replace "..." accordingly).
Index: /applications/editors/josm/plugins/public_transport_layer/src/ptl/PublicTransportLayer.java
===================================================================
--- /applications/editors/josm/plugins/public_transport_layer/src/ptl/PublicTransportLayer.java	(revision 31931)
+++ /applications/editors/josm/plugins/public_transport_layer/src/ptl/PublicTransportLayer.java	(revision 31932)
@@ -27,6 +27,6 @@
 import org.openstreetmap.josm.gui.MapView;
 import org.openstreetmap.josm.gui.layer.Layer;
-import org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy;
-import org.openstreetmap.josm.gui.mappaint.TextElement;
+import org.openstreetmap.josm.gui.mappaint.styleelement.LabelCompositionStrategy;
+import org.openstreetmap.josm.gui.mappaint.styleelement.TextLabel;
 import org.openstreetmap.josm.tools.ColorHelper;
 import org.openstreetmap.josm.tools.ImageProvider;
@@ -87,5 +87,5 @@
         for (Pair<Node, Node> nodePair : segmentRefs.keySet()) {
             final String label = Utils.join(tr(", "), new TreeSet<>(segmentRefs.get(nodePair)));
-            final TextElement text = new TextElement(new LabelCompositionStrategy.StaticLabelCompositionStrategy(label), new Font("SansSerif", Font.PLAIN, 16), 0, 0, new Color(0x80FFFFFF, true), 0f, null);
+            final TextLabel text = new TextLabel(new LabelCompositionStrategy.StaticLabelCompositionStrategy(label), new Font("SansSerif", Font.PLAIN, 16), 0, 0, new Color(0x80FFFFFF, true), 0f, null);
             final Way way = new Way();
             way.addNode(nodePair.a);
