mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-19 14:15:50 +02:00
[259412] fixed getName and getDescription methods to return name and description of real service if possible.
This commit is contained in:
parent
f8991f6ca1
commit
e2d9f5123d
1 changed files with 7 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Anna Dushistova (MontaVista) - extracted from DelegatingTerminalService
|
||||
* Anna Dushistova (MontaVista) - fixed getName() and getDescription() methods
|
||||
********************************************************************************/
|
||||
package org.eclipse.rse.services.terminals;
|
||||
|
||||
|
@ -38,10 +39,16 @@ public abstract class AbstractDelegatingTerminalService extends AbstractTerminal
|
|||
}
|
||||
|
||||
public String getDescription() {
|
||||
if(getRealTerminalService() != null){
|
||||
return getRealTerminalService().getDescription();
|
||||
}
|
||||
return RSEServicesMessages.AbstractDelegatingTerminalService_description;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
if(getRealTerminalService() != null){
|
||||
return getRealTerminalService().getName();
|
||||
}
|
||||
return RSEServicesMessages.AbstractDelegatingTerminalService_name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue