/** * Notifies of the pressing of the Help button. * <p> * The default implementation of this framework method calls * <code>performHelp</code> on the currently active page. * </p> */ protected void helpPressed() { if (currentPage != null) { currentPage.performHelp(); } }
/** * Notifies of the pressing of the Help button. * <p> * The default implementation of this framework method calls * <code>performHelp</code> on the currently active page. * </p> */ protected void helpPressed() { if (currentPage != null) { currentPage.performHelp(); } }
/** * Notifies of the pressing of the Help button. * <p> * The default implementation of this framework method calls * <code>performHelp</code> on the currently active page. * </p> */ protected void helpPressed() { if (currentPage != null) { currentPage.performHelp(); } }
@Override public void helpRequested(HelpEvent event) { if (currentPage == null) { // no current page? open dialog's help openDialogHelp(); return; } // A) A typical path: the current page has registered its own help link // via WorkbenchHelpSystem#setHelp(). When just call it and let // it handle the help request. Control pageControl = currentPage.getControl(); if (pageControl != null && pageControl.isListening(SWT.Help)) { currentPage.performHelp(); return; } // B) Less typical path: no standard listener has been created for the page. // In this case we may or may not have an override of page's #performHelp(). // 1) Try to get default help opened for the dialog; openDialogHelp(); // 2) Next call currentPage's #performHelp(). If it was overridden, it might switch help // to something else. currentPage.performHelp(); }
public void helpRequested(HelpEvent event) { if (currentPage == null) { // no current page? open dialog's help openDialogHelp(); return; } // A) A typical path: the current page has registered its own help link // via WorkbenchHelpSystem#setHelp(). When just call it and let // it handle the help request. Control pageControl = currentPage.getControl(); if (pageControl != null && pageControl.isListening(SWT.Help)) { currentPage.performHelp(); return; } // B) Less typical path: no standard listener has been created for the page. // In this case we may or may not have an override of page's #performHelp(). // 1) Try to get default help opened for the dialog; openDialogHelp(); // 2) Next call currentPage's #performHelp(). If it was overridden, it might switch help // to something else. currentPage.performHelp(); }
@Override public void helpRequested(HelpEvent event) { if (currentPage == null) { // no current page? open dialog's help openDialogHelp(); return; } // A) A typical path: the current page has registered its own help link // via WorkbenchHelpSystem#setHelp(). When just call it and let // it handle the help request. Control pageControl = currentPage.getControl(); if (pageControl != null && pageControl.isListening(SWT.Help)) { currentPage.performHelp(); return; } // B) Less typical path: no standard listener has been created for the page. // In this case we may or may not have an override of page's #performHelp(). // 1) Try to get default help opened for the dialog; openDialogHelp(); // 2) Next call currentPage's #performHelp(). If it was overridden, it might switch help // to something else. currentPage.performHelp(); }