@Override
 protected void execute(Component parentComponent) {
   RepositoryBrowserDialogPage page = new RepositoryBrowserDialogPage(resources, model);
   DefaultDialogConfiguration dialogConfiguration =
       DefaultDialogConfiguration.createWithOkOnly(page);
   UserDialog userDialog = new UserDialog(parentComponent, dialogConfiguration);
   userDialog.getDialog().setModal(true);
   userDialog.getDialog().setResizable(false);
   userDialog.show();
 }
Beispiel #2
0
 @Override
 public void execute() {
   Version currentVersion = getCurrentVersion();
   UpdateSystem updateSystem = createUpdateSystem(currentVersion);
   Updater updater = updateSystem.checkForUpdates();
   Version installedVersion = updateSystem.getInstalledVersion();
   UpdateDialogPage page = new UpdateDialogPage(resources, currentVersion);
   prepareForInstallation(page, updater);
   DefaultDialogConfiguration dialogConfiguration =
       DefaultDialogConfiguration.createWithOkOnly(page);
   UserDialog dialog =
       new UserDialog(SwingApplicationFrame.getParentComponent(), dialogConfiguration);
   updateSystem.reportAllProgressTo(new VersionDiscoveryReport(page, installedVersion));
   updateSystem.reportAllProgressTo(new InstallationProgressReport(page));
   updateSystem.reportAllProgressTo(new DialogUpdater(dialog));
   updateSystem.reportAllProgressTo(new ConfigureAnathema(updateSystem));
   dialog.getDialog().setModal(false);
   dialog.show();
   runUpdateCheck(updater);
 }