getStatusLineManager().setErrorMessage(msg);  if (msg == null || msg.trim().length() == 0) { if (fStatusLineClearer != null) { getSelectionProvider().removeSelectionChangedListener(fStatusLineClearer); fStatusLineClearer= null; } } else if (fStatusLineClearer == null) { fStatusLineClearer= new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { getSelectionProvider().removeSelectionChangedListener(fStatusLineClearer); fStatusLineClearer= null; getStatusLineManager().setErrorMessage(null); } }; getSelectionProvider().addSelectionChangedListener(fStatusLineClearer); }
IEditorStatusLine statusLine= (IEditorStatusLine) getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null);
	protected void setStatusLineErrorMessage(String msg) {		// set error message		getStatusLineManager().setErrorMessage(msg);		// install message remover		if (msg == null || msg.trim().length() == 0) {			if (fStatusLineClearer != null) {				getSelectionProvider().removeSelectionChangedListener(fStatusLineClearer);				fStatusLineClearer= null;			}		} else if (fStatusLineClearer == null) {			fStatusLineClearer= new ISelectionChangedListener() {				public void selectionChanged(SelectionChangedEvent event) {					getSelectionProvider().removeSelectionChangedListener(fStatusLineClearer);					fStatusLineClearer= null;					getStatusLineManager().setErrorMessage(null);				}			};			getSelectionProvider().addSelectionChangedListener(fStatusLineClearer);		}	}