/** * Creates a new help control that provides access to context help. * <p> * The <code>TrayDialog</code> implementation of this method creates * the control, registers it for selection events including selection, * Note that the parent's layout is assumed to be a <code>GridLayout</code> * and the number of columns in this layout is incremented. Subclasses may * override. * </p> * * @param parent the parent composite * @return the help control */ protected Control createHelpControl(Composite parent) { Image helpImage = JFaceResources.getImage(DLG_IMG_HELP); if (helpImage != null) { return createHelpImageButton(parent, helpImage); } return createHelpLink(parent); }
/** * Creates a new help control that provides access to context help. * <p> * The <code>TrayDialog</code> implementation of this method creates * the control, registers it for selection events including selection, * Note that the parent's layout is assumed to be a <code>GridLayout</code> * and the number of columns in this layout is incremented. Subclasses may * override. * </p> * * @param parent the parent composite * @return the help control */ protected Control createHelpControl(Composite parent) { Image helpImage = JFaceResources.getImage(DLG_IMG_HELP); if (helpImage != null) { return createHelpImageButton(parent, helpImage); } return createHelpLink(parent); }
/** * Creates a new help control that provides access to context help. * <p> * The <code>TrayDialog</code> implementation of this method creates * the control, registers it for selection events including selection, * Note that the parent's layout is assumed to be a <code>GridLayout</code> * and the number of columns in this layout is incremented. Subclasses may * override. * </p> * * @param parent the parent composite * @return the help control * @since 1.3 */ protected Control createHelpControl(Composite parent) { Image helpImage = JFaceResources.getImage(DLG_IMG_HELP); if (helpImage != null) { return createHelpImageButton(parent, helpImage); } return createHelpLink(parent); }