From fef59d129e380ca5a03d4063563b4db06e34191c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 28 May 2013 14:47:53 +0200 Subject: [PATCH] Use full title instead of title. --- src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java b/src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java index 133ec70..83041f1 100644 --- a/src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java +++ b/src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java @@ -175,11 +175,11 @@ public class PipelinePanel extends JPanel { JPanel componentPanel = new JPanel(new BorderLayout(12, 12)); componentPanel.setBorder(createCompoundBorder(createEtchedBorder(), createEmptyBorder(0, 4, 0, 3))); componentPanel.add(new JLabel(controlledComponent.name()), BorderLayout.WEST); - final JLabel titleLabel = new JLabel(controlledComponent.metadata().title()); + final JLabel titleLabel = new JLabel(controlledComponent.metadata().fullTitle()); titleLabel.setFont(titleLabel.getFont().deriveFont(titleLabel.getFont().getSize2D() * 0.8f)); componentPanel.add(titleLabel, BorderLayout.EAST); if (parentComponent != null) { - titleLabel.setVisible(!parentComponent.metadata().title().equals(controlledComponent.metadata().title())); + titleLabel.setVisible(!parentComponent.metadata().fullTitle().equals(controlledComponent.metadata().fullTitle())); parentComponent.addMetadataListener(new MetadataListener() { @Override @@ -193,8 +193,8 @@ public class PipelinePanel extends JPanel { @Override public void metadataUpdated(ControlledComponent component, Metadata metadata) { - titleLabel.setText(metadata.title()); - titleLabel.setVisible((parentComponent == null) || !parentComponent.metadata().title().equals(metadata.title())); + titleLabel.setText(metadata.fullTitle()); + titleLabel.setVisible((parentComponent == null) || !parentComponent.metadata().fullTitle().equals(metadata.fullTitle())); } }); return componentPanel; -- 2.7.4