if (!MessageText.keyExistsForDefaultLocale(msgidPrefix + "text")) {
msgidPrefix = "dlg.stream.plus.";
}
}
final String f_msgidPrefix = msgidPrefix;
final VuzeMessageBox box = new VuzeMessageBox(
MessageText.getString(msgidPrefix + "title"),
MessageText.getString(msgidPrefix + "text"), new String[] {
MessageText.getString(buttonID),
MessageText.getString("Button.cancel"),
}, 0);
box.setButtonVals(new Integer[] {
BUTTON_UPGRADE,
SWT.CANCEL
});
box.setSubTitle(MessageText.getString(msgidPrefix + "subtitle"));
box.addResourceBundle(FeatureManagerUI.class,
SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_streamplus");
box.setIconResource("image.header.streamplus");
box.setListener(new VuzeMessageBoxListener() {
public void shellReady(Shell shell, SWTSkinObjectContainer soExtra) {
SWTSkin skin = soExtra.getSkin();
skin.createSkinObject("dlg.stream.plus", "dlg.stream.plus", soExtra);
SWTSkinObject soSubText = skin.getSkinObject("trial-info", soExtra);
if (soSubText instanceof SWTSkinObjectText) {
((SWTSkinObjectText) soSubText).setTextID(f_msgidPrefix + "subtext");
}
}
});
box.open(new UserPrompterResultListener() {
public void prompterClosed(int result) {
if (result == BUTTON_UPGRADE) {
SBC_PlusFTUX.setSourceRef("dlg-stream" + (referal == null ? "" : "-" + referal));
MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();