159160161162163164165166167168169
if (m.getCommandName().equals(text)) { CommandViewer viewer = null; try { viewer = (CommandViewer) factory.createDefaultViewer(m); ret = (JButton) viewer.createJButton(); } catch (Exception e) { e.printStackTrace(); //TODO } break;