err.log(Level.FINE, "found help {0} by client property", hid); return new HelpCtx(hid);
/** Finds help context for a generic object. Right now checks * for HelpCtx.Provider and handles java.awt.Component in a * special way compatible with JavaHelp. * Also {@link BeanDescriptor}'s are checked for a string-valued attribute * <code>helpID</code>, as per the JavaHelp specification (but no help sets * will be loaded). * * @param instance to search help for * @return the help for the object or <code>HelpCtx.DEFAULT_HELP</code> if HelpCtx cannot be found * * @since 4.3 */ public static HelpCtx findHelp(Object instance) { if (instance instanceof java.awt.Component) { return findHelp((java.awt.Component) instance); } if (instance instanceof HelpCtx.Provider) { return ((HelpCtx.Provider) instance).getHelpCtx(); } try { BeanDescriptor d = Introspector.getBeanInfo(instance.getClass()).getBeanDescriptor(); String v = (String) d.getValue("helpID"); // NOI18N if (v != null) { return new HelpCtx(v); } } catch (IntrospectionException e) { err.log(Level.FINE, "findHelp on {0}: {1}", new Object[]{instance, e}); } return HelpCtx.DEFAULT_HELP; }
@Override public HelpCtx getHelpCtx() { HelpCtx h = HelpCtx.findHelp(bean); if (h != HelpCtx.DEFAULT_HELP) { return h; } else { return new HelpCtx(BeanNode.class); } }
err.log(Level.FINE, "found help {0} by client property", hid); return new HelpCtx(hid);
/** Finds help context for a generic object. Right now checks * for HelpCtx.Provider and handles java.awt.Component in a * special way compatible with JavaHelp. * Also {@link BeanDescriptor}'s are checked for a string-valued attribute * <code>helpID</code>, as per the JavaHelp specification (but no help sets * will be loaded). * * @param instance to search help for * @return the help for the object or <code>HelpCtx.DEFAULT_HELP</code> if HelpCtx cannot be found * * @since 4.3 */ public static HelpCtx findHelp(Object instance) { if (instance instanceof java.awt.Component) { return findHelp((java.awt.Component) instance); } if (instance instanceof HelpCtx.Provider) { return ((HelpCtx.Provider) instance).getHelpCtx(); } try { BeanDescriptor d = Introspector.getBeanInfo(instance.getClass()).getBeanDescriptor(); String v = (String) d.getValue("helpID"); // NOI18N if (v != null) { return new HelpCtx(v); } } catch (IntrospectionException e) { err.log(Level.FINE, "findHelp on {0}: {1}", new Object[]{instance, e}); } return HelpCtx.DEFAULT_HELP; }
@Override public HelpCtx getHelpCtx() { return new HelpCtx(Default.class); } }
@Override public HelpCtx getHelpCtx() { return new HelpCtx("SettingCandC++FileProperties"); // NOI18N } }
@Override public HelpCtx getHelpCtx() { return new HelpCtx("ProjectProperties"); // NOI18N } }
/** @return the action's help context */ public HelpCtx getHelpCtx() { return new HelpCtx (EditQueryStringAction.class); } }
@Override public HelpCtx getHelpCtx() { return new HelpCtx("org.netbeans.modules.javacard.AboutJavaCard3Development"); //NOI18N } }
@Override public HelpCtx getHelpCtx() { return new HelpCtx("org.netbeans.modules.bugtracking.tasks.DashboardTopComponent"); //NOI18N } }
/** Help context where to find more about the paste type action. * @return the help context for this action */ public HelpCtx getHelpCtx() { return new HelpCtx(PanelConfigureProjectVisual.class); } }
@Override public HelpCtx getHelpCtx() { return new HelpCtx("ProjectPropsProfile"); // NOI18N } }
/** Get context help for this system option. * @return context help */ public HelpCtx getHelpCtx () { return new HelpCtx (SystemOption.class); }
/** * Defines task list Help ID */ @Override public HelpCtx getHelpCtx() { return new HelpCtx(NotificationCenterTopComponent.class); }
@Override public HelpCtx getHelpCtx() { return new HelpCtx("ProjectPropsArchiverGeneral"); // NOI18N } }
public HelpCtx getHelp() { switch ( type ) { case NewRailsProjectWizardIterator.TYPE_APP: return new HelpCtx( this.getClass().getName() + "_APP" ); // NOI18N // case NewRailsProjectWizardIterator.TYPE_LIB: // return new HelpCtx( this.getClass().getName() + "_LIB" ); // NOI18N case NewRailsProjectWizardIterator.TYPE_EXT: return new HelpCtx( this.getClass().getName() + "_EXT" ); // NOI18N } return new HelpCtx( PanelConfigureProject.class ); }
public void run() { dialog[0] = DialogDisplayer.getDefault().createDialog(new DialogDescriptor(DetectRunnable.this, NbBundle.getMessage(SearchRunnable.class, "Title_DetectRunnable_Searching"), true, new Object[]{ NotifyDescriptor.CANCEL_OPTION, }, NotifyDescriptor.CANCEL_OPTION, DialogDescriptor.DEFAULT_ALIGN, new HelpCtx(DetectPanel.class), new ActionListener() { public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { stop = true; } })); } });
public HelpCtx getHelp() { if (wizardInfo.getName().equals(__MailResource)) { return new HelpCtx("AS_Wiz_Mail_general"); //NOI18N }else{ return HelpCtx.DEFAULT_HELP; } }
@Override public HelpCtx getHelpCtx() { return new HelpCtx(getContext().isCompilerConfiguration() ? "ProjectPropsCompiling" : "ProjectPropsParser"); // NOI18N } }