mdi.showEntryByID(MultipleDocumentInterface.SIDEBAR_SECTION_PLUS);
}
}
public static void openTrialAskWindow() {
VuzeMessageBox box = new VuzeMessageBox(
MessageText.getString("dlg.try.trial.title"),
MessageText.getString("dlg.try.trial.text"), new String[] {
MessageText.getString("Button.turnon"),
MessageText.getString("Button.cancel")
}, 0);
box.setButtonVals(new Integer[] {
SWT.OK,
SWT.CANCEL,
});
box.addResourceBundle(FeatureManagerUI.class,
SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_register");
box.setIconResource("image.burn.dlg.header");
box.setListener(new VuzeMessageBoxListener() {
public void shellReady(Shell shell, SWTSkinObjectContainer soExtra) {
SWTSkin skin = soExtra.getSkin();
String id = "dlg.register.trialask";
SWTSkinObject so = skin.createSkinObject(id, id, soExtra);
SWTSkinObjectText soLink = (SWTSkinObjectText) skin.getSkinObject(
"link", so);
if (soLink != null) {
soLink.addUrlClickedListener(new SWTSkinObjectText_UrlClickedListener() {
public boolean urlClicked(URLInfo urlInfo) {
String url = ConstantsVuze.getDefaultContentNetwork().getExternalSiteRelativeURL(
"plus_tos.start", true);
Utils.launch(url);
return true;
}
});
}
}
});
box.open(new UserPrompterResultListener() {
public void prompterClosed(int result) {
if (result == SWT.OK) {
SimpleTimer.addEvent("createTrial", SystemTime.getCurrentTime(),
new TimerEventPerformer() {
public void perform(TimerEvent event) {