DataModelCommandVector commandVector = popupModel.getMethods();
GridBagConstraints buttonConstr = new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 2, 0, 2), 0, 0);
if (commandVector != null) {
for (command = commandVector.firstItem(); command != null; command = commandVector.nextItem()) {
try {
buttonViewer = factory.createDefaultEditor(command);
button = buttonViewer.getJComponent();
buttonPanel.add(button, buttonConstr);
++buttonConstr.gridx;