import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
+import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JToolBar;
SwingUtils.center(this);
I18n.registerI18nable(this);
addWindowListener(this);
+ setIconImage(IconLoader.loadImage("/jSite-frame-icon.png"));
}
//
return null;
}
+ /**
+ * Sets the given node to the “online” state.
+ *
+ * @param node
+ * The node to set online
+ */
+ public void setOnline(Node node) {
+ nodeLabels.get(node).setOnline();
+ }
+
+ /**
+ * Sets the given node to the “offline” state in the status bar.
+ *
+ * @param node
+ * The node to set offline
+ */
+ public void setOffline(Node node) {
+ nodeLabels.get(node).setOffline();
+ }
+
+ /**
+ * Sets the given node to the “error” state in the status bar.
+ *
+ * @param node
+ * The node to set the error state for
+ */
+ public void setError(Node node) {
+ nodeLabels.get(node).setError();
+ }
+
//
// ACTIONS
//
project.addPropertyChangeListener(this);
if (switchToProject) {
projectPane.setSelectedIndex(newTabIndex);
+ while (project.getBasePath().length() == 0) {
+ JOptionPane.showMessageDialog(this, I18n.get("mainWindow.information.changeProjectBasePath.message"), I18n.get("mainWindow.information.changeProjectBasePath.title"), JOptionPane.INFORMATION_MESSAGE);
+ projectPanel.changeBasePath();
+ }
}
}
swingInterface.getQuitAction().updateI18n();
swingInterface.getAddNodeAction().updateI18n();
swingInterface.getAddProjectAction().updateI18n();
- swingInterface.getCloneProjectAction().updateI18n();
- swingInterface.getDeleteProjectAction().updateI18n();
swingInterface.getHelpAboutAction().updateI18n();
jSiteMenu.updateI18n();
nodeMenu.updateI18n();
swingInterface.getNodeEditAction(node).updateI18n();
swingInterface.getNodeDeleteAction(node).updateI18n();
}
+ for (Project project: swingInterface.getProjects()) {
+ swingInterface.getCloneProjectAction(project).updateI18n();
+ swingInterface.getDeleteProjectAction(project).updateI18n();
+ }
for (I18nAction languageAction: swingInterface.getLanguageActions()) {
languageAction.updateI18n();
}