Bug 138759 [Dialogs] Compile errors against foundation 1.0: org.eclipse.jface
build n0426 I set org.eclipse.jface to compile against the Foundation 1.0 libraries and I got the following compile errors. They can be fixed by fully-qualifying the method reference. (either by "super" or "className.this") The method setImage is defined in an inherited type and an enclosing scope org.eclipse.jface/src/org/eclipse/jface/dialogs StatusDialog.java line 106 The method setImage is defined in an inherited type and an enclosing scope org.eclipse.jface/src/org/eclipse/jface/dialogs StatusDialog.java line 112
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/StatusDialog.java
return JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_ERROR);
			} else if (status.matches(IStatus.WARNING)) {
				return JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_WARNING);
			} else if (status.matches(IStatus.INFO)) {
				return JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_INFO);
			}
			return null;
		}
		/**
		 * Sets the message and image to the given status. 
		 * @param status IStatus or <code>null</code>.
		 * <code>null</code> will set the empty text and no image.
		 */
		public void setErrorStatus(IStatus status) {
			if (status != null && !status.isOK()) {
				String message = status.getMessage();
				if (message != null && message.length() > 0) {
					setText(message);
					setImage(findImage(status));
					setBackground(JFaceColors.getErrorBackground(getDisplay()));
					return;
				}
			}
			setText(""); 	
			setImage(null);
			setBackground(fNormalMsgAreaBackground);
		}
	}
	/**
	 * Creates an instance of a status dialog.