Community
Participate
Working Groups
Created attachment 269982 [details] Demo of the problem ControlDecoration's hover is useful and should be possible to use without an image. There may be other ways used to indicate error (e.g., changing the colours of controls in error). But doing so results in the hover being shown against the parent composite instead. Ideally I want to be able to write code like: public class MyPrefPage extends PreferencePage { @Override public Control createControls() { // … etc … Combo stagingLocationInput = new Combo(target, SWT.DROP_DOWN); ControlDecoration stagingLocationCreationResults = new ControlDecoration(stagingLocationInput, SWT.TOP | SWT.LEFT); // when changed, hide previous creation failure results stagingLocationInput.addModifyListener(e -> { setErrorMessage(null); stagingLocationResults.hide() }); // … etc … } private void stagingLocationCreationFailed(String message) { setErrorMessage("Could not create staging location"); stagingLocationResults.showHoverText(message); } }