Revision 38434
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.api/src/main/java/org/gvsig/installer/swing/api/wizard/AbstractInstallerWizard.java | ||
---|---|---|
86 | 86 |
public File getInstallFolder() { |
87 | 87 |
return installFolder; |
88 | 88 |
} |
89 |
|
|
90 |
public boolean needsToRestartApplicationAfterFinish() { |
|
91 |
// false by default |
|
92 |
// to be overriden by subclasses |
|
93 |
return false; |
|
94 |
} |
|
89 | 95 |
} |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.api/src/main/java/org/gvsig/installer/swing/api/wizard/InstallerWizardPanel.java | ||
---|---|---|
54 | 54 |
public List<CancellableTask> getCancellableTasks(); |
55 | 55 |
|
56 | 56 |
public void addCancellableTask(CancellableTask task); |
57 |
|
|
58 |
/** |
|
59 |
* Tells whether this install wizard needs to restart |
|
60 |
* the app after install process has finished |
|
61 |
* |
|
62 |
* @return Whether this install wizard needs to restart |
|
63 |
* the app after install process has finished |
|
64 |
*/ |
|
65 |
public boolean needsToRestartApplicationAfterFinish(); |
|
57 | 66 |
} |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.api/src/main/java/org/gvsig/installer/swing/api/execution/AbstractInstallPackageWizard.java | ||
---|---|---|
113 | 113 |
public abstract void setSelectDefaultPackages(boolean isActivated); |
114 | 114 |
|
115 | 115 |
public abstract boolean getSelectDefaultPackages(); |
116 |
|
|
117 |
|
|
118 |
public boolean needsToRestartApplicationAfterFinish() { |
|
119 |
// installers need to restart |
|
120 |
return true; |
|
121 |
} |
|
116 | 122 |
|
117 | 123 |
} |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/resources/org/gvsig/symbology/app/symbolinstaller/text_en.properties | ||
---|---|---|
102 | 102 |
_install_addons_in_gvsig_standard_dist=install addons contained in the gvSIG standard distribution |
103 | 103 |
_install_addons_in_gvspki_or_gvspks_file=install addons contained in a .gvspki or .gvspks file |
104 | 104 |
_install_addons_from_remote_repo=install addons from a remote repository |
105 |
_These_packages_not_downloaded=Unable to download these packages |
|
105 |
_These_packages_not_downloaded=Unable to download these packages |
|
106 |
_gvSIG_must_be_restarted_to_have_changes_applied=Changes will take effect when gvSIG is restarted |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/resources/org/gvsig/symbology/app/symbolinstaller/text.properties | ||
---|---|---|
103 | 103 |
_install_addons_in_gvspki_or_gvspks_file=instalar complementos contenidos en un archivo .gvspki o .gvspks |
104 | 104 |
_install_addons_from_remote_repo=instalar complementos desde un repositorio remoto |
105 | 105 |
_These_packages_not_downloaded=No se han podido descargar estos paquetes |
106 |
_gvSIG_must_be_restarted_to_have_changes_applied=Es necesario reiniciar gvSIG para que los cambios tengan efecto |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/wizard/WizardListenerAdapter.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
package org.gvsig.installer.swing.impl.wizard; |
29 | 29 |
|
30 |
import java.awt.Component; |
|
31 |
|
|
32 |
import javax.swing.JOptionPane; |
|
33 |
|
|
30 | 34 |
import org.gvsig.gui.beans.wizard.WizardPanel; |
31 | 35 |
import org.gvsig.gui.beans.wizard.WizardPanelActionListener; |
36 |
import org.gvsig.i18n.Messages; |
|
32 | 37 |
import org.gvsig.installer.swing.api.wizard.InstallerWizardPanel; |
33 | 38 |
import org.gvsig.tools.task.CancellableTask; |
34 | 39 |
|
... | ... | |
60 | 65 |
installerWizardPanel.getWizardActionListener().finish( |
61 | 66 |
installerWizardPanel); |
62 | 67 |
} |
68 |
|
|
69 |
if (installerWizardPanel.needsToRestartApplicationAfterFinish()) { |
|
70 |
|
|
71 |
// --------------------------- Suggest restart |
|
72 |
Component parent = null; |
|
73 |
if (installerWizardPanel instanceof Component) { |
|
74 |
parent = (Component) installerWizardPanel; |
|
75 |
} |
|
76 |
JOptionPane.showMessageDialog( |
|
77 |
parent, |
|
78 |
Messages.getText("_gvSIG_must_be_restarted_to_have_changes_applied"), |
|
79 |
Messages.getText("_finished"), |
|
80 |
JOptionPane.WARNING_MESSAGE); |
|
81 |
} |
|
63 | 82 |
} |
64 | 83 |
} |
Also available in: Unified diff