Creates a tab for the specified Data object. The tab name will be that of the Data object if it defines a getName() method. @param data the Data @return the new tab
(Data data)
| 524 | * @return the new tab |
| 525 | */ |
| 526 | protected DataToolTab createTab(Data data) { |
| 527 | // be sure fitBuilder is instantiated |
| 528 | fitBuilder = getFitBuilder(); |
| 529 | DataToolTab tab = new DataToolTab(data, this); |
| 530 | if (data != null) { |
| 531 | String name = data.getName(); |
| 532 | if ((name != null) && !name.equals("")) { //$NON-NLS-1$ ) |
| 533 | tab.setName(name); |
| 534 | } |
| 535 | } |
| 536 | return tab; |
| 537 | } |
| 538 | |
| 539 | /** |
| 540 | * Removes the tab at the specified index. |
no test coverage detected