Fixed simplified tab names for classes
This commit is contained in:
parent
cec2df4685
commit
a0f7acdbeb
1 changed files with 6 additions and 4 deletions
|
@ -160,17 +160,19 @@ public class WorkPaneMainComponent extends VisibleComponent
|
||||||
public void addWorkingFile(final FileContainer container, String name, final ClassNode cn)
|
public void addWorkingFile(final FileContainer container, String name, final ClassNode cn)
|
||||||
{
|
{
|
||||||
String workingName = container.name + ">" + name;
|
String workingName = container.name + ">" + name;
|
||||||
String containerName = name;
|
|
||||||
|
if (Configuration.simplifiedTabNames)
|
||||||
|
name = MiscUtils.getChildFromPath(name);
|
||||||
if (Configuration.displayParentInTab)
|
if (Configuration.displayParentInTab)
|
||||||
containerName = container.name + ">" + name;
|
name = container.name + ">" + name;
|
||||||
|
|
||||||
if (!workingOn.containsKey(workingName))
|
if (!workingOn.containsKey(workingName))
|
||||||
{
|
{
|
||||||
final ClassViewer tabComp = new ClassViewer(container, containerName, cn, workingName);
|
final ClassViewer tabComp = new ClassViewer(container, name, cn, workingName);
|
||||||
tabs.add(tabComp);
|
tabs.add(tabComp);
|
||||||
final int tabIndex = tabs.indexOfComponent(tabComp);
|
final int tabIndex = tabs.indexOfComponent(tabComp);
|
||||||
workingOn.put(workingName, tabIndex);
|
workingOn.put(workingName, tabIndex);
|
||||||
|
|
||||||
TabbedPane tabbedPane = new TabbedPane(tabIndex, workingName, container.name, name, tabs);
|
TabbedPane tabbedPane = new TabbedPane(tabIndex, workingName, container.name, name, tabs);
|
||||||
tabComp.tabbedPane = tabbedPane;
|
tabComp.tabbedPane = tabbedPane;
|
||||||
tabs.setTabComponentAt(tabIndex, tabbedPane);
|
tabs.setTabComponentAt(tabIndex, tabbedPane);
|
||||||
|
|
Loading…
Reference in a new issue