|
@@ -37,9 +37,6 @@ public class MyDaemonInstallationNodeContribution implements InstallationNodeCon
|
|
Activator.daemonInterface=daemonInterface;
|
|
Activator.daemonInterface=daemonInterface;
|
|
}
|
|
}
|
|
|
|
|
|
- @Input(id = POPUPTITLE_KEY)
|
|
|
|
- private InputTextField popupTitleField;
|
|
|
|
-
|
|
|
|
@Input(id = "btnEnableDaemon")
|
|
@Input(id = "btnEnableDaemon")
|
|
private InputButton enableDaemonButton;
|
|
private InputButton enableDaemonButton;
|
|
|
|
|
|
@@ -55,24 +52,13 @@ public class MyDaemonInstallationNodeContribution implements InstallationNodeCon
|
|
@Label(id = "lblStatus")
|
|
@Label(id = "lblStatus")
|
|
private LabelComponent refLblStatus;
|
|
private LabelComponent refLblStatus;
|
|
|
|
|
|
- @Input(id = "numberPos")
|
|
|
|
- private InputTextField refNumberPos;
|
|
|
|
-
|
|
|
|
- @Input(id = "btnPos")
|
|
|
|
- private InputButton refButtonPos;
|
|
|
|
-
|
|
|
|
@Input(id = "btnDisableDaemon")
|
|
@Input(id = "btnDisableDaemon")
|
|
private InputButton disableDaemonButton;
|
|
private InputButton disableDaemonButton;
|
|
|
|
|
|
@Label(id = "lblDaemonStatus")
|
|
@Label(id = "lblDaemonStatus")
|
|
private LabelComponent daemonStatusLabel;
|
|
private LabelComponent daemonStatusLabel;
|
|
|
|
|
|
- @Input(id = POPUPTITLE_KEY)
|
|
|
|
- public void onMessageChange(InputEvent event) {
|
|
|
|
- if (event.getEventType() == InputEvent.EventType.ON_CHANGE) {
|
|
|
|
- setPopupTitle(popupTitleField.getText());
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
@Input(id = "btnRef")
|
|
@Input(id = "btnRef")
|
|
public void onBtnRef(InputEvent event) {
|
|
public void onBtnRef(InputEvent event) {
|
|
if (event.getEventType() == InputEvent.EventType.ON_CHANGE) {
|
|
if (event.getEventType() == InputEvent.EventType.ON_CHANGE) {
|
|
@@ -84,18 +70,6 @@ public class MyDaemonInstallationNodeContribution implements InstallationNodeCon
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- @Input(id = "btnPos")
|
|
|
|
- public void onBtnPos(InputEvent event) {
|
|
|
|
- if (event.getEventType() == InputEvent.EventType.ON_CHANGE) {
|
|
|
|
- try {
|
|
|
|
- String pos=refNumberPos.getText();
|
|
|
|
- getDaemonInterface().client.execute("pos", new String[]{pos});
|
|
|
|
- } catch (XmlRpcException e) {
|
|
|
|
- e.printStackTrace();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
@Input(id = "btnEnableDaemon")
|
|
@Input(id = "btnEnableDaemon")
|
|
public void onStartClick(InputEvent event) {
|
|
public void onStartClick(InputEvent event) {
|
|
if (event.getEventType() == InputEvent.EventType.ON_CHANGE) {
|
|
if (event.getEventType() == InputEvent.EventType.ON_CHANGE) {
|
|
@@ -116,7 +90,6 @@ public class MyDaemonInstallationNodeContribution implements InstallationNodeCon
|
|
public void openView() {
|
|
public void openView() {
|
|
enableDaemonButton.setText("Start Daemon");
|
|
enableDaemonButton.setText("Start Daemon");
|
|
disableDaemonButton.setText("Stop daemon");
|
|
disableDaemonButton.setText("Stop daemon");
|
|
- popupTitleField.setText(getPopupTitle());
|
|
|
|
refTextIP.setText(getIP());
|
|
refTextIP.setText(getIP());
|
|
refTextPort.setText(getPort());
|
|
refTextPort.setText(getPort());
|
|
|
|
|
|
@@ -231,7 +204,6 @@ public class MyDaemonInstallationNodeContribution implements InstallationNodeCon
|
|
|
|
|
|
|
|
|
|
private void resetToDefaultValue() {
|
|
private void resetToDefaultValue() {
|
|
- popupTitleField.setText(DEFAULT_VALUE);
|
|
|
|
model.set(POPUPTITLE_KEY, DEFAULT_VALUE);
|
|
model.set(POPUPTITLE_KEY, DEFAULT_VALUE);
|
|
setDaemonTitle(DEFAULT_VALUE);
|
|
setDaemonTitle(DEFAULT_VALUE);
|
|
}
|
|
}
|
|
@@ -267,7 +239,8 @@ public class MyDaemonInstallationNodeContribution implements InstallationNodeCon
|
|
// daemonService.getDaemon().start();
|
|
// daemonService.getDaemon().start();
|
|
// long endTime = System.nanoTime() + timeOutMilliSeconds * 1000L * 1000L;
|
|
// long endTime = System.nanoTime() + timeOutMilliSeconds * 1000L * 1000L;
|
|
// while(System.nanoTime() < endTime && (daemonService.getDaemon().getState() != DaemonContribution.State.RUNNING || !daemonInterface.isReachable())) {
|
|
// while(System.nanoTime() < endTime && (daemonService.getDaemon().getState() != DaemonContribution.State.RUNNING || !daemonInterface.isReachable())) {
|
|
-// Thread.sleep(100);
|
|
|
|
|
|
+// Thread.sleep(100)
|
|
|
|
+
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
//
|
|
//
|