Skip to content

Commit 7837dac

Browse files
committed
Fix Ctrl+F7 view switcher showing same name for multi-instance views
Remove the getPartName() override in ViewReference that always returned the static descriptor label from plugin.xml. The parent class WorkbenchPartReference.getPartName() returns part.getLocalizedLabel() which reflects the dynamic name set by views via setPartName(). This is a generic fix for all multi-instance views (Terminal, Console, Search) that customize their part name. Fixes eclipse-platform/eclipse.platform#2774
1 parent ed75400 commit 7837dac

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/ViewReference.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ public void persist() {
6868
}
6969
}
7070

71-
@Override
72-
public String getPartName() {
73-
return descriptor == null ? "" : descriptor.getLabel(); //$NON-NLS-1$
74-
}
75-
7671
@Override
7772
public String getSecondaryId() {
7873
MPart part = getModel();

0 commit comments

Comments
 (0)