Revision 37822 branches/v2_0_0_prep/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/execution/InstallPackageWindow.java
InstallPackageWindow.java | ||
---|---|---|
47 | 47 |
*/ |
48 | 48 |
public class InstallPackageWindow extends JPanel implements IWindow { |
49 | 49 |
|
50 |
private static final long serialVersionUID = 4719868181091291809L;
|
|
51 |
WindowInfo windowInfo = null;
|
|
50 |
private static final long serialVersionUID = 4719868181091291809L;
|
|
51 |
WindowInfo windowInfo = null;
|
|
52 | 52 |
|
53 |
public InstallPackageWindow(File applicationFolder, File pluginsFolder, |
|
54 |
File installFolder) throws LocatorException, |
|
55 |
InstallPackageWizardException { |
|
56 |
super(); |
|
57 |
AbstractInstallPackageWizard installPackageWizard = |
|
58 |
SwingInstallerLocator.getSwingInstallerManager() |
|
59 |
.createInstallPackageWizard(applicationFolder, pluginsFolder, |
|
60 |
installFolder); |
|
61 |
installPackageWizard |
|
62 |
.setWizardActionListener(new WindowInstallerListener(this)); |
|
63 |
this.setLayout(new BorderLayout()); |
|
64 |
add(installPackageWizard, BorderLayout.CENTER); |
|
65 |
} |
|
53 |
public InstallPackageWindow(File applicationFolder, File installFolder) |
|
54 |
throws LocatorException, InstallPackageWizardException { |
|
55 |
super(); |
|
56 |
AbstractInstallPackageWizard installPackageWizard = SwingInstallerLocator |
|
57 |
.getSwingInstallerManager().createInstallPackageWizard( |
|
58 |
applicationFolder, installFolder); |
|
59 |
installPackageWizard |
|
60 |
.setWizardActionListener(new WindowInstallerListener(this)); |
|
61 |
this.setLayout(new BorderLayout()); |
|
62 |
add(installPackageWizard, BorderLayout.CENTER); |
|
63 |
} |
|
66 | 64 |
|
67 |
public WindowInfo getWindowInfo() { |
|
68 |
if (windowInfo == null) { |
|
69 |
windowInfo = |
|
70 |
new WindowInfo(WindowInfo.MODELESSDIALOG |
|
71 |
| WindowInfo.ICONIFIABLE | WindowInfo.RESIZABLE); |
|
72 |
Dimension dim = getPreferredSize(); |
|
73 |
windowInfo.setWidth((int) dim.getWidth()); |
|
74 |
windowInfo.setHeight((int) dim.getHeight()); |
|
75 |
windowInfo.setTitle(Messages.getText("install_package")); |
|
76 |
} |
|
77 |
return windowInfo; |
|
78 |
} |
|
65 |
public WindowInfo getWindowInfo() { |
|
66 |
if (windowInfo == null) { |
|
67 |
windowInfo = new WindowInfo(WindowInfo.MODELESSDIALOG |
|
68 |
| WindowInfo.ICONIFIABLE | WindowInfo.RESIZABLE); |
|
69 |
Dimension dim = getPreferredSize(); |
|
70 |
windowInfo.setWidth((int) dim.getWidth()); |
|
71 |
windowInfo.setHeight((int) dim.getHeight()); |
|
72 |
windowInfo.setTitle(Messages.getText("install_package")); |
|
73 |
} |
|
74 |
return windowInfo; |
|
75 |
} |
|
79 | 76 |
|
80 |
public Object getWindowProfile() {
|
|
81 |
return WindowInfo.DIALOG_PROFILE;
|
|
82 |
}
|
|
77 |
public Object getWindowProfile() {
|
|
78 |
return WindowInfo.DIALOG_PROFILE;
|
|
79 |
}
|
|
83 | 80 |
|
84 | 81 |
} |
Also available in: Unified diff