/** * Create the associated button * * @return the button */ public static PushButton createPushButton() { PushButton pushButton = ScilabPushButton.createPushButton(); pushButton.setIcon(ICON); pushButton.setToolTipText(LABEL); pushButton.setCallback(getCallBack()); return pushButton; }
/** @return the corresponding button */ public static PushButton createButton() { PushButton button = ScilabPushButton.createPushButton(); button.setCallback(new GoToSCIAction()); ((SwingScilabPushButton) button.getAsSimplePushButton()) .setToolTipText(UiDataMessages.SCIFOLDER); ((SwingScilabPushButton) button.getAsSimplePushButton()).setIcon(FileUtils.getSCIIcon()); return button; }