1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

put a ':' after the titel only if the status is not empty

This commit is contained in:
Michael Scharf 2007-03-15 14:20:56 +00:00
parent 9da0e88f19
commit 6178ce1f28

View file

@ -236,9 +236,10 @@ public class TerminalView extends ViewPart implements ITerminalView, ITerminalLi
// When parameter 'data' is null, we construct a descriptive string to
// display in the content description line.
String strConnected = getStateDisplayName(fCtlTerminal.getState());
String status=""; //$NON-NLS-1$
status=fCtlTerminal.getStatusString(strConnected);
strTitle = ViewMessages.PROP_TITLE + ": "+ status; //$NON-NLS-1$
String status=fCtlTerminal.getStatusString(strConnected);
if(status.length()>0)
status=": "+status; //$NON-NLS-1$
strTitle = ViewMessages.PROP_TITLE + status;
}
setContentDescription(strTitle);