The real message of the article "How to Make the NetBeans Platform Sensitive to Customers", which I recently wrote on NetBeans Zone, is that actions in applications on the NetBeans Platform can be sensitive to their business objects (also known as model objects). In the case of that article, the business object was "Customer", while in NetBeans IDE the business objects are "FileObject", "DataObject", "Node", among others.
One of these is org.netbeans.api.debugger.jpda.ObjectVariable, which enables you to create actions that are sensitive to object variables in the NetBeans IDE Debugger:
From the bold lines above, especially, you can see that all the selected "org.netbeans.api.debugger.jpda.ObjectVariable" instances will be injected into my action class, which I defined as follows: import java.awt.Dialog; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.List; import org.netbeans.api.debugger.jpda.ObjectVariable; import org.openide.DialogDescriptor; import org.openide.DialogDisplayer; public final class ShowSelectedObjectVariables implements ActionListener { private final List context; public ShowSelectedObjectVariables(List context) { this.context = context; } public void actionPerformed(ActionEvent e) { DialogDescriptor dd = new DialogDescriptor(new UIPanel(context), "Selected Variables"); Dialog dlg = DialogDisplayer.getDefault().createDialog(dd); dlg.setVisible(true); } }
The "UIPanel" that you see above receives the selected ObjectVariables, where they are placed into a text area, as shown below, thanks to this constructor in the panel: UIPanel(List context) { initComponents(); for (ObjectVariable objectVariable : context) { jTextArea1.append(objectVariable.getType() + ": " + objectVariable.getValue()+"\n"); } }
To get the above to work, start the debugger in the IDE where you install the module. Then, when you select a row in the Variables window, the action will become enabled (the grumpy face button in the toolbar below) and when you invoke the action your new dialog will appear, showing the currently selected variables:

So, now you've made your first steps in extending the NetBeans IDE Debugger, more about which can be read here.


More...