mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 04:15:35 +02:00
put a ':' after the titel only if the status is not empty
This commit is contained in:
parent
9da0e88f19
commit
6178ce1f28
1 changed files with 4 additions and 3 deletions
|
@ -236,9 +236,10 @@ public class TerminalView extends ViewPart implements ITerminalView, ITerminalLi
|
||||||
// When parameter 'data' is null, we construct a descriptive string to
|
// When parameter 'data' is null, we construct a descriptive string to
|
||||||
// display in the content description line.
|
// display in the content description line.
|
||||||
String strConnected = getStateDisplayName(fCtlTerminal.getState());
|
String strConnected = getStateDisplayName(fCtlTerminal.getState());
|
||||||
String status=""; //$NON-NLS-1$
|
String status=fCtlTerminal.getStatusString(strConnected);
|
||||||
status=fCtlTerminal.getStatusString(strConnected);
|
if(status.length()>0)
|
||||||
strTitle = ViewMessages.PROP_TITLE + ": "+ status; //$NON-NLS-1$
|
status=": "+status; //$NON-NLS-1$
|
||||||
|
strTitle = ViewMessages.PROP_TITLE + status;
|
||||||
}
|
}
|
||||||
|
|
||||||
setContentDescription(strTitle);
|
setContentDescription(strTitle);
|
||||||
|
|
Loading…
Add table
Reference in a new issue