Java Code Examples for org.openide.util.HelpCtx#setHelpIDString()

The following examples show how to use org.openide.util.HelpCtx#setHelpIDString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ParamsPanel.java    From netbeans with Apache License 2.0 6 votes vote down vote up
/** Creates new form ParamsPanel */
public ParamsPanel() {
    bundle = org.openide.util.NbBundle.getBundle(ParamsPanel.class);
    initComponents ();
    initAccessibility();
    paramsList.setModel(getListModel());
    paramsList.getSelectionModel().addListSelectionListener(
        new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent e) {
                if (paramsList.getSelectedIndex() != -1)
                    updateEditor(paramsList.getSelectedIndex());
                removeParamButton.setEnabled(paramsList.getSelectedIndex() != -1);
            }
        }
    );
    removeParamButton.setEnabled(paramsList.getSelectedIndex() != -1);
    HelpCtx.setHelpIDString(this, I18nUtil.HELP_ID_ADDPARAMS);
}
 
Example 2
Source File: NbProcessDescriptorCustomEditor.java    From netbeans with Apache License 2.0 6 votes vote down vote up
/** Creates new NbProcessDescriptorCustomEditor
 * @param editor the NbProcessDescriptorEditor
 */
public NbProcessDescriptorCustomEditor (NbProcessDescriptorEditor editor, PropertyEnv env) {
    this.editor = editor;
    initComponents ();
    
    if ( editor.pd != null ) {
        processField.setText (editor.pd.getProcessName ());
        argumentsArea.setText (editor.pd.getArguments ());
        hintArea.setText (editor.pd.getInfo ());
    }
    

    processField.getAccessibleContext().setAccessibleDescription(getString("ACSD_NbProcessDescriptorCustomEditor.processLabel"));
    argumentsArea.getAccessibleContext().setAccessibleDescription(getString("ACSD_NbProcessDescriptorCustomEditor.argumentsLabel"));
    hintArea.getAccessibleContext().setAccessibleDescription(getString("ACSD_NbProcessDescriptorCustomEditor.argumentKeyLabel"));
    jButton1.getAccessibleContext().setAccessibleDescription(getString("ACSD_NbProcessDescriptorCustomEditor.jButton1"));
    
    getAccessibleContext().setAccessibleDescription(getString("ACSD_CustomNbProcessDescriptorEditor"));

    HelpCtx.setHelpIDString (this, NbProcessDescriptorCustomEditor.class.getName ());

    env.setState(PropertyEnv.STATE_NEEDS_VALIDATION);
    env.addPropertyChangeListener(this);
}
 
Example 3
Source File: Actions.java    From netbeans with Apache License 2.0 6 votes vote down vote up
/** @param comp component
* @param action the action
*/
public Bridge(JComponent comp, Action action) {
    if(comp == null || action == null) {
        throw new IllegalArgumentException(
            "None of the arguments can be null: comp=" + comp + //NOI18N
            ", action=" + action); // NOI18N
    }
    this.comp = comp;
    this.action = action;

    actionL = WeakListeners.propertyChange(this, action);

    // associate context help, if applicable
    // [PENDING] probably belongs in ButtonBridge.updateState to make it dynamic
    HelpCtx help = findHelp(action);

    if ((help != null) && !help.equals(HelpCtx.DEFAULT_HELP) && (help.getHelpID() != null)) {
        HelpCtx.setHelpIDString(comp, help.getHelpID());
    }
}
 
Example 4
Source File: SourceWizardPanel.java    From netbeans with Apache License 2.0 6 votes vote down vote up
/** Creates new form SourceChooserPanel.
 * @param it's panel wizard descriptor */
private SourceWizardPanel(Panel descPanel, boolean testRole) {
    this.descPanel = descPanel;
    this.testRole = testRole;
    
    initComponents();        

    initAccessibility ();
    
    setPreferredSize(I18nWizardDescriptor.PREFERRED_DIMENSION);
    
    initList();
    
    putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, Integer.valueOf(0));
    
    if (testRole) {
        setName(Util.getString("TXT_SelecTestSources"));            //NOI18N
        HelpCtx.setHelpIDString(this, Util.HELP_ID_SELECTTESTSOURCES);
    } else {
        setName(Util.getString("TXT_SelectSources"));               //NOI18N
        HelpCtx.setHelpIDString(this, Util.HELP_ID_SELECTSOURCES);
    }        
}
 
Example 5
Source File: OpenFileAction.java    From netbeans with Apache License 2.0 6 votes vote down vote up
/**
 * Creates and initializes a file chooser.
 *
 * @return  the initialized file chooser
 */
protected JFileChooser prepareFileChooser() {
    FileChooserBuilder fcb = new FileChooserBuilder(OpenFileAction.class);
    fcb.setSelectionApprover(new OpenFileSelectionApprover());
    fcb.setFilesOnly(true);
    fcb.addDefaultFileFilters();
    for (OpenFileDialogFilter filter :
            Lookup.getDefault().lookupAll(OpenFileDialogFilter.class)) {
        fcb.addFileFilter(filter);
    }
    JFileChooser chooser = fcb.createFileChooser();
    chooser.setMultiSelectionEnabled(true);
    chooser.getCurrentDirectory().listFiles(); //preload
    chooser.setCurrentDirectory(getCurrentDirectory());
    if (currentFileFilter != null) {
        for (FileFilter ff : chooser.getChoosableFileFilters()) {
            if (currentFileFilter.equals(ff.getDescription())) {
                chooser.setFileFilter(ff);
                break;
            }
        }
    }
    HelpCtx.setHelpIDString(chooser, getHelpCtx().getHelpID());
    return chooser;
}
 
Example 6
Source File: LwjglAppletCustomizerPanel.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/** Creates new form LwjglAppletCustomizerPanel */
public LwjglAppletCustomizerPanel(ProjectExtensionProperties properties) {
    this.properties = properties;
    initComponents();
    loadProperties();
    HelpCtx.setHelpIDString(this, "sdk.application_deployment");
}
 
Example 7
Source File: WizardDialog.java    From snap-desktop with GNU General Public License v3.0 5 votes vote down vote up
private void updateHelpID() {
    if (helpId == null) {
        return;
    }
    if (getContentPane() instanceof JComponent) {
        HelpCtx.setHelpIDString((JComponent)getContentPane(), helpId);
    }
    if (helpButton != null) {
        HelpCtx.setHelpIDString(helpButton, helpId);
    }
}
 
Example 8
Source File: ObfuscateCustomizerPanel.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/** Creates new form LwjglAppletCustomizerPanel */
public ObfuscateCustomizerPanel(ProjectExtensionProperties properties) {
    this.properties = properties;
    initComponents();
    loadProperties();
    HelpCtx.setHelpIDString(this, "sdk.application_deployment");
}
 
Example 9
Source File: MobileCustomizerPanel.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/** Creates new form LwjglAppletCustomizerPanel */
public MobileCustomizerPanel(ProjectExtensionProperties properties) {
    this.properties = properties;
    initComponents();
    HelpCtx.setHelpIDString(this, "jme3.android");
    updateTargetList();
    loadProperties();
}
 
Example 10
Source File: DesignParentAction.java    From netbeans with Apache License 2.0 5 votes vote down vote up
/**
 * Returns a JMenuItem that presents this action in a Popup Menu.
 * @return the JMenuItem representation for the action
 */
@Override
public JMenuItem getPopupPresenter() {
    JMenu popupMenu = new JMenu(
            NbBundle.getMessage(DesignParentAction.class, "ACT_DesignParentAction")); // NOI18N
    
    popupMenu.setEnabled(isEnabled());
    HelpCtx.setHelpIDString(popupMenu, DesignParentAction.class.getName());
    createSubmenu(popupMenu);
    return popupMenu;
}
 
Example 11
Source File: OpenFileAction.java    From constellation with Apache License 2.0 5 votes vote down vote up
/**
 * Creates and initializes a file chooser.
 *
 * @return the initialized file chooser
 */
protected JFileChooser prepareFileChooser() {
    JFileChooser chooser = new FileChooser();
    chooser.setCurrentDirectory(getCurrentDirectory());
    HelpCtx.setHelpIDString(chooser, getHelpCtx().getHelpID());

    return chooser;
}
 
Example 12
Source File: ChooseSameSizeAction.java    From netbeans with Apache License 2.0 4 votes vote down vote up
private void createSameSizeSubmenu(JMenu menu) {
    if (menu.getMenuComponentCount() > 0) {
        menu.removeAll();
    }
    
    Node[] nodes = getActivatedNodes();
    
    List components = FormUtils.getSelectedLayoutComponents(nodes);
    if ((components == null) || (components.size() < 1)) { //FFF
        return;
    }

    ResourceBundle bundle = NbBundle.getBundle(ChooseSameSizeAction.class);

    JCheckBoxMenuItem sameSizeItemH = new SameSizeMenuItem(
            bundle.getString("CTL_SameSizeHorizontal"), // NOI18N
            components,
            LayoutConstants.HORIZONTAL);
    JCheckBoxMenuItem sameSizeItemV = new SameSizeMenuItem(
            bundle.getString("CTL_SameSizeVertical"), // NOI18N
            components,
            LayoutConstants.VERTICAL);
    
    RADComponent c = (RADComponent)components.get(0);
    LayoutModel lModel = c.getFormModel().getLayoutModel();
    
    int hLinked = lModel.areComponentsLinkSized(getComponentIds(components), LayoutConstants.HORIZONTAL);
    int vLinked = lModel.areComponentsLinkSized(getComponentIds(components), LayoutConstants.VERTICAL);
    
    if (components.size() > 1) {
        if (hLinked != LayoutConstants.INVALID) {
            sameSizeItemH.setSelected((hLinked == LayoutConstants.TRUE) ? true : false);
        } else {
            sameSizeItemH.setEnabled(false);
        }

        if (vLinked != LayoutConstants.INVALID) {
            sameSizeItemV.setSelected((vLinked == LayoutConstants.TRUE) ? true : false);
        } else {
            sameSizeItemV.setEnabled(false);
        }
    } else {
        sameSizeItemH.setSelected((hLinked == LayoutConstants.TRUE) ? true : false);
        if (hLinked != LayoutConstants.TRUE) {
            sameSizeItemH.setEnabled(false);
        }
        sameSizeItemV.setSelected((vLinked == LayoutConstants.TRUE) ? true : false);
        if (vLinked != LayoutConstants.TRUE) {
            sameSizeItemV.setEnabled(false);
        }
    }

    sameSizeItemH.addActionListener(getMenuItemListener());
    sameSizeItemV.addActionListener(getMenuItemListener());

    HelpCtx.setHelpIDString(sameSizeItemH, ChooseSameSizeAction.class.getName());
    HelpCtx.setHelpIDString(sameSizeItemV, ChooseSameSizeAction.class.getName());        

    menu.add(sameSizeItemH);
    menu.add(sameSizeItemV);
}
 
Example 13
Source File: ToolsAction.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public Popup(Action toolsAction) {
    super();
    this.toolsAction = toolsAction;
    HelpCtx.setHelpIDString(menu, ToolsAction.class.getName());

}
 
Example 14
Source File: NbClassPathCustomEditor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
private void setHelpToChooser( JFileChooser chooser ) {
    HelpCtx help = HelpCtx.findHelp( this );
    if ( help != null )
        HelpCtx.setHelpIDString(chooser, help.getHelpID());
}
 
Example 15
Source File: CustomizeEmptySpaceAction.java    From netbeans with Apache License 2.0 4 votes vote down vote up
private static void perform(Node[] nodes, boolean onlySingleGap) {
    RADVisualComponent metacomp = getMetaComponent(nodes);
    LayoutDesigner.EditableGap[] editableGaps = getEditableGaps(metacomp, onlySingleGap);
    if (editableGaps == null) {
        return; // [beep?]
    }
    FormModel formModel = metacomp.getFormModel();
    LayoutDesigner layoutDesigner = FormEditor.getFormDesigner(formModel).getLayoutDesigner();
    final EditLayoutSpacePanel customizer = new EditLayoutSpacePanel(editableGaps, metacomp.getName());

    DialogDescriptor dd = new DialogDescriptor(
        customizer,
        NbBundle.getMessage(CustomizeEmptySpaceAction.class, "TITLE_EditLayoutSpace"), // NOI18N
        true,
        new java.awt.event.ActionListener() {
        @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                if (evt.getSource() == NotifyDescriptor.OK_OPTION) {
                    if (customizer.applyValues()) {
                        dialog.dispose();
                    }
                }
            }
        });
    dd.setClosingOptions(new Object[] {NotifyDescriptor.CANCEL_OPTION});
    dialog = DialogDisplayer.getDefault().createDialog(dd);
    dialog.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(CustomizeEmptySpaceAction.class, "ACSD_EditLayoutSpace")); // NOI18N
    // setting the help id on the customizer after creating the dialog will avoid the help button
    HelpCtx.setHelpIDString(customizer, "f1_gui_layout_space_html"); // NOI18N
    dialog.setVisible(true);
    dialog = null;
    if (dd.getValue() == DialogDescriptor.OK_OPTION) {
        LayoutModel layoutModel = formModel.getLayoutModel();
        Object layoutUndoMark = layoutModel.getChangeMark();
        javax.swing.undo.UndoableEdit ue = layoutModel.getUndoableEdit();
        boolean autoUndo = true;
        try {
            layoutDesigner.applyEditedGaps(editableGaps);
            autoUndo = false;
        } finally {
            formModel.fireContainerLayoutChanged(editableGaps.length == 1 && metacomp instanceof RADVisualContainer ?
                    (RADVisualContainer)metacomp : metacomp.getParentContainer(), null, null, null);
            if (!layoutUndoMark.equals(layoutModel.getChangeMark())) {
                formModel.addUndoableEdit(ue);
            }
            if (autoUndo) {
                formModel.forceUndoOfCompoundEdit();
            }
        }
    }
}
 
Example 16
Source File: WorkspaceSwitchAction.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public JMenuItem getMenuPresenter() {
    // beware, we shouldn't cache menu intstance, because getMenuPresenter
    // can be legally called several times and menu component cannot be
    // contained in more than one component hierarchy
    JMenu menu = new org.openide.awt.JMenuPlus();
    Mnemonics.setLocalizedText(menu, getName());
    menu.setHorizontalTextPosition(JMenu.RIGHT);
    menu.setHorizontalAlignment(JMenu.LEFT);
    menu.setIcon(getIcon());
    HelpCtx.setHelpIDString(menu, WorkspaceSwitchAction.class.getName());

    final WindowManager pool = WindowManager.getDefault();

    final Hashtable<ActionListener, Workspace> menu2Workspace = new Hashtable<>(10);

    // ^ maps listener on workspace
    final Hashtable<Workspace, JRadioButtonMenuItem> workspace2Menu = new Hashtable<>(10);

    // ^ maps workspace to menuitem
    final Hashtable<Workspace, ActionListener> workspace2Listener = new Hashtable<>(10);

    // ^ maps workspace to action listener
    final Workspace[] currentDeskRef = new Workspace[1];
    currentDeskRef[0] = pool.getCurrentWorkspace();

    // attach all workspaces
    Workspace[] workspaces = pool.getWorkspaces();

    for (int i = 0; i < workspaces.length; i++) {
        attachWorkspace(workspaces[i], currentDeskRef, workspace2Menu, menu2Workspace, workspace2Listener, menu);
    }

    // check on currently active workspace
    JRadioButtonMenuItem curItem = (JRadioButtonMenuItem) workspace2Menu.get(currentDeskRef[0]);

    if (curItem != null) {
        curItem.setSelected(true);
    }

    // listen to the changes in workspaces
    pool.addPropertyChangeListener(
        getWorkspacePoolListener(workspace2Menu, menu2Workspace, workspace2Listener, currentDeskRef, menu)
    );

    return menu;
}
 
Example 17
Source File: ConditionsPanel.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/** Creates new form ConditionsPanel */
public ConditionsPanel(String helpId) {
    initComponents();
    HelpCtx.setHelpIDString(tfCondition, helpId);
    tfConditionFieldForUI = new javax.swing.JTextField();
    tfConditionFieldForUI.setEnabled(false);
    tfConditionFieldForUI.setToolTipText(tfCondition.getToolTipText());

    // remove border from condition editor on some LAFs
    String lafID = UIManager.getLookAndFeel().getID();
    if (lafID.equals("Windows") || lafID.startsWith("FlatLaf")) { // NOI18N
        tfConditionFieldForUI.setBorder(BorderFactory.createEmptyBorder());
        spCondition.setBorder(BorderFactory.createEmptyBorder());
    }

    classFilterCheckBoxActionPerformed(null);
    conditionCheckBoxActionPerformed(null);
    cbWhenHitCountActionPerformed(null);
    int preferredHeight = tfConditionFieldForUI.getPreferredSize().height;
    Dimension spDim = spCondition.getPreferredSize();
    if (spDim.height > preferredHeight) {
        preferredHeight = spDim.height;
        tfConditionFieldForUI.setPreferredSize(new java.awt.Dimension(tfConditionFieldForUI.getPreferredSize().width, preferredHeight));
    }
    Border b = spCondition.getBorder();
    if (b instanceof WatchPanel.DelegatingBorder) {
        Insets insets = ((WatchPanel.DelegatingBorder) b).getInsets();
        insets.right = 1;
        ((WatchPanel.DelegatingBorder) b).setInsets(insets);
    }
    spCondition.setPreferredSize(spDim);
    //spCondition.setMinimumSize(spDim);
    tfHitCountFilter.setPreferredSize(
            new Dimension(8*tfHitCountFilter.getFontMetrics(tfHitCountFilter.getFont()).charWidth('8'),
                          tfHitCountFilter.getPreferredSize().height));
    cbHitStyle.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
        NbBundle.getMessage(ConditionsPanel.class, "ConditionsPanel.cbWhenHitCount.equals"), // NOI18N
        NbBundle.getMessage(ConditionsPanel.class, "ConditionsPanel.cbWhenHitCount.greater"), // NOI18N
        NbBundle.getMessage(ConditionsPanel.class, "ConditionsPanel.cbWhenHitCount.multiple") // NOI18N
    }));
    conditionComboBox.setEditor(new ConditionComboBoxEditor());
    Object[] conditions = getSavedConditions();
    conditionComboBox.setModel(new DefaultComboBoxModel(conditions));
}
 
Example 18
Source File: ExceptionBreakpointPanel.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/** Creates new form LineBreakpointPanel */
public ExceptionBreakpointPanel (ExceptionBreakpoint b) {
    breakpoint = b;
    initComponents ();
    
    String className = b.getExceptionClassName ();
    ResourceBundle bundle = NbBundle.getBundle(ExceptionBreakpointPanel.class);
    String tooltipText = bundle.getString("TTT_TF_Field_Breakpoint_Class_Name");
    Pair<JScrollPane, JEditorPane> editorCC = ClassBreakpointPanel.addClassNameEditorCC(
            ExceptionClassNbDebugEditorKit.MIME_TYPE, pSettings, className, tooltipText);
    spExceptionClassName = editorCC.first();
    epExceptionClassName = editorCC.second();
    epExceptionClassName.getAccessibleContext().setAccessibleName(bundle.getString("ACSN_Method_Breakpoint_ClassName"));
    epExceptionClassName.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_Exception_Breakpoint_ClassName"));
    HelpCtx.setHelpIDString(epExceptionClassName, HELP_ID);
    jLabel3.setLabelFor(spExceptionClassName);
    
    cbBreakpointType.addItem (bundle.getString("LBL_Exception_Breakpoint_Type_Catched"));
    cbBreakpointType.addItem (bundle.getString("LBL_Exception_Breakpoint_Type_Uncatched"));
    cbBreakpointType.addItem (bundle.getString("LBL_Exception_Breakpoint_Type_Catched_or_Uncatched"));
    switch (b.getCatchType ()) {
        case ExceptionBreakpoint.TYPE_EXCEPTION_CATCHED:
            cbBreakpointType.setSelectedIndex (0);
            break;
        case ExceptionBreakpoint.TYPE_EXCEPTION_UNCATCHED:
            cbBreakpointType.setSelectedIndex (1);
            break;
        case ExceptionBreakpoint.TYPE_EXCEPTION_CATCHED_UNCATCHED:
            cbBreakpointType.setSelectedIndex (2);
            break;
    }
    
    conditionsPanel = new ConditionsPanel(HELP_ID);
    conditionsPanel.setupConditionPaneContext();
    conditionsPanel.showClassFilter(true);
    conditionsPanel.showCondition(true);
    conditionsPanel.setClassMatchFilter(b.getClassFilters());
    conditionsPanel.setClassExcludeFilter(b.getClassExclusionFilters());
    conditionsPanel.setCondition(b.getCondition());
    conditionsPanel.setHitCountFilteringStyle(b.getHitCountFilteringStyle());
    conditionsPanel.setHitCount(b.getHitCountFilter());
    cPanel.add(conditionsPanel, "Center");
    
    actionsPanel = new ActionsPanel (b);
    pActions.add (actionsPanel, "Center");
    // <RAVE>
    // The help IDs for the AddBreakpointPanel panels have to be different from the
    // values returned by getHelpCtx() because they provide different help
    // in the 'Add Breakpoint' dialog and when invoked in the 'Breakpoints' view
    putClientProperty("HelpID_AddBreakpointPanel", "debug.add.breakpoint.java.exception"); // NOI18N
    // </RAVE>
}
 
Example 19
Source File: ClassBreakpointPanel.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/** Creates new form LineBreakpointPanel */
public ClassBreakpointPanel (ClassLoadUnloadBreakpoint b) {
    breakpoint = b;
    initComponents ();
    
    String className = ""; // NOI18N
    String[] cf = b.getClassFilters ();
    className = ClassBreakpointPanel.concatClassFilters(cf);

    ResourceBundle bundle = NbBundle.getBundle(ClassBreakpointPanel.class);
    String tooltipText = bundle.getString("TTT_TF_Class_Breakpoint_Class_Name");
    Pair<JScrollPane, JEditorPane> editorCC = addClassNameEditorCC(JavaClassNbDebugEditorKit.MIME_TYPE, pSettings, className, tooltipText);
    spClassName = editorCC.first();
    epClassName = editorCC.second();
    epClassName.getAccessibleContext().setAccessibleName(bundle.getString("ACSN_Method_Breakpoint_ClassName"));
    epClassName.getAccessibleContext().setAccessibleDescription(bundle.getString("ACSD_Class_Breakpoint_ClassName"));
    HelpCtx.setHelpIDString(epClassName, HELP_ID);
    jLabel3.setLabelFor(spClassName);
    
    cbBreakpointType.addItem (bundle.getString("LBL_Class_Breakpoint_Type_Prepare"));
    cbBreakpointType.addItem (bundle.getString("LBL_Class_Breakpoint_Type_Unload"));
    cbBreakpointType.addItem (bundle.getString("LBL_Class_Breakpoint_Type_Prepare_or_Unload"));
    switch (b.getBreakpointType ()) {
        case ClassLoadUnloadBreakpoint.TYPE_CLASS_LOADED:
            cbBreakpointType.setSelectedIndex (0);
            break;
        case ClassLoadUnloadBreakpoint.TYPE_CLASS_UNLOADED:
            cbBreakpointType.setSelectedIndex (1);
            break;
        case ClassLoadUnloadBreakpoint.TYPE_CLASS_LOADED_UNLOADED:
            cbBreakpointType.setSelectedIndex (2);
            break;
    }
    
    conditionsPanel = new ConditionsPanel(HELP_ID);
    conditionsPanel.setupConditionPaneContext();
    cPanel.add(conditionsPanel, "Center");
    conditionsPanel.showExclusionClassFilter(true);
    conditionsPanel.showCondition(false);
    conditionsPanel.setClassExcludeFilter(b.getClassExclusionFilters());
    conditionsPanel.setHitCountFilteringStyle(b.getHitCountFilteringStyle());
    conditionsPanel.setHitCount(b.getHitCountFilter());
    
    actionsPanel = new ActionsPanel (b);
    pActions.add (actionsPanel, "Center");
    // <RAVE>
    // The help IDs for the AddBreakpointPanel panels have to be different from the
    // values returned by getHelpCtx() because they provide different help
    // in the 'Add Breakpoint' dialog and when invoked in the 'Breakpoints' view
    putClientProperty("HelpID_AddBreakpointPanel", HELP_ID); // NOI18N
    // </RAVE>
}
 
Example 20
Source File: BundleNodeCustomizer.java    From netbeans with Apache License 2.0 3 votes vote down vote up
/** Creates new form BundleNodeCustomizer */
public BundleNodeCustomizer(PropertiesDataObject propDataObject) {
    this.propDataObject = propDataObject;
    
    initComponents();
    initAccessibility();
    
    nameText.setText(propDataObject.getNodeDelegate().getName());

    localesList.setListData(retrieveLocales(propDataObject));
    
    removeLocales.setEnabled(false);
    
    HelpCtx.setHelpIDString(this, Util.HELP_ID_ADDLOCALE);
}