Lines 93-99
Link Here
|
93 |
protected Combo runtimeCombo; |
93 |
protected Combo runtimeCombo; |
94 |
protected Button browse; |
94 |
protected Button browse; |
95 |
protected Button autoPublishDisable; |
95 |
protected Button autoPublishDisable; |
96 |
protected Button autoPublishEnable; |
96 |
protected Button autoPublishEnableResource; |
|
|
97 |
protected Button autoPublishEnableBuild; |
97 |
protected Spinner autoPublishTime; |
98 |
protected Spinner autoPublishTime; |
98 |
protected Table publishersTable; |
99 |
protected Table publishersTable; |
99 |
protected CheckboxTableViewer publishersViewer; |
100 |
protected CheckboxTableViewer publishersViewer; |
Lines 205-213
Link Here
|
205 |
} else if (event.getPropertyName().equals(Server.PROP_AUTO_PUBLISH_SETTING)) { |
206 |
} else if (event.getPropertyName().equals(Server.PROP_AUTO_PUBLISH_SETTING)) { |
206 |
Integer autoPublishSetting = (Integer)event.getNewValue(); |
207 |
Integer autoPublishSetting = (Integer)event.getNewValue(); |
207 |
int setting = autoPublishSetting.intValue(); |
208 |
int setting = autoPublishSetting.intValue(); |
208 |
autoPublishEnable.setSelection(setting == Server.AUTO_PUBLISH_ENABLE); |
209 |
autoPublishEnableResource.setSelection(setting == Server.AUTO_PUBLISH_RESOURCE); |
|
|
210 |
autoPublishEnableBuild.setSelection(setting == Server.AUTO_PUBLISH_BUILD); |
209 |
autoPublishDisable.setSelection(setting == Server.AUTO_PUBLISH_DISABLE); |
211 |
autoPublishDisable.setSelection(setting == Server.AUTO_PUBLISH_DISABLE); |
210 |
autoPublishTime.setEnabled(setting == Server.AUTO_PUBLISH_ENABLE); |
212 |
autoPublishTime.setEnabled(setting != Server.AUTO_PUBLISH_DISABLE); |
211 |
validate(); |
213 |
validate(); |
212 |
} else if (event.getPropertyName().equals(Server.PROP_START_TIMEOUT)) { |
214 |
} else if (event.getPropertyName().equals(Server.PROP_START_TIMEOUT)) { |
213 |
Integer time = (Integer)event.getNewValue(); |
215 |
Integer time = (Integer)event.getNewValue(); |
Lines 619-636
Link Here
|
619 |
autoPublishDisable.setSelection(publishSetting == Server.AUTO_PUBLISH_DISABLE); |
621 |
autoPublishDisable.setSelection(publishSetting == Server.AUTO_PUBLISH_DISABLE); |
620 |
whs.setHelp(autoPublishDisable, ContextIds.EDITOR_AUTOPUBLISH_DISABLE); |
622 |
whs.setHelp(autoPublishDisable, ContextIds.EDITOR_AUTOPUBLISH_DISABLE); |
621 |
|
623 |
|
622 |
autoPublishEnable = toolkit.createButton(composite, Messages.serverEditorOverviewAutoPublishEnabled, SWT.RADIO); |
624 |
autoPublishEnableResource = toolkit.createButton(composite, Messages.serverEditorOverviewAutoPublishEnabledResource, SWT.RADIO); |
623 |
autoPublishEnable.setSelection(publishSetting == Server.AUTO_PUBLISH_ENABLE); |
625 |
autoPublishEnableResource.setSelection(publishSetting == Server.AUTO_PUBLISH_RESOURCE); |
624 |
data = new GridData(GridData.FILL_HORIZONTAL); |
626 |
data = new GridData(GridData.FILL_HORIZONTAL); |
625 |
data.horizontalSpan = 2; |
627 |
data.horizontalSpan = 2; |
626 |
autoPublishEnable.setLayoutData(data); |
628 |
autoPublishEnableResource.setLayoutData(data); |
627 |
whs.setHelp(autoPublishEnable, ContextIds.EDITOR_AUTOPUBLISH_ENABLE); |
629 |
whs.setHelp(autoPublishEnableResource, ContextIds.EDITOR_AUTOPUBLISH_ENABLE); |
|
|
630 |
|
631 |
autoPublishEnableBuild = toolkit.createButton(composite, Messages.serverEditorOverviewAutoPublishEnabledBuild, SWT.RADIO); |
632 |
autoPublishEnableBuild .setSelection(publishSetting == Server.AUTO_PUBLISH_RESOURCE); |
633 |
data = new GridData(GridData.FILL_HORIZONTAL); |
634 |
data.horizontalSpan = 2; |
635 |
autoPublishEnableBuild.setLayoutData(data); |
636 |
whs.setHelp(autoPublishEnableBuild, ContextIds.EDITOR_AUTOPUBLISH_ENABLE); |
637 |
|
628 |
|
638 |
|
629 |
final Label autoPublishTimeLabel = createLabel(toolkit,composite, Messages.serverEditorOverviewAutoPublishEnabledInterval); |
639 |
final Label autoPublishTimeLabel = createLabel(toolkit,composite, Messages.serverEditorOverviewAutoPublishEnabledInterval); |
630 |
data = new GridData(); |
640 |
data = new GridData(); |
631 |
data.horizontalIndent = 20; |
641 |
data.horizontalIndent = 20; |
632 |
autoPublishTimeLabel.setLayoutData(data); |
642 |
autoPublishTimeLabel.setLayoutData(data); |
633 |
autoPublishTimeLabel.setEnabled(autoPublishEnable.getSelection()); |
643 |
autoPublishTimeLabel.setEnabled(!autoPublishDisable.getSelection()); |
634 |
|
644 |
|
635 |
autoPublishTime = new Spinner(composite, SWT.BORDER); |
645 |
autoPublishTime = new Spinner(composite, SWT.BORDER); |
636 |
autoPublishTime.setMinimum(0); |
646 |
autoPublishTime.setMinimum(0); |
Lines 640-662
Link Here
|
640 |
data = new GridData(GridData.HORIZONTAL_ALIGN_END); |
650 |
data = new GridData(GridData.HORIZONTAL_ALIGN_END); |
641 |
data.widthHint = 30; |
651 |
data.widthHint = 30; |
642 |
autoPublishTime.setLayoutData(data); |
652 |
autoPublishTime.setLayoutData(data); |
643 |
autoPublishTime.setEnabled(autoPublishEnable.getSelection()); |
653 |
autoPublishTime.setEnabled(!autoPublishDisable.getSelection()); |
644 |
SWTUtil.setSpinnerTooltip(autoPublishTime); |
654 |
SWTUtil.setSpinnerTooltip(autoPublishTime); |
645 |
whs.setHelp(autoPublishTime, ContextIds.EDITOR_AUTOPUBLISH_ENABLE); |
655 |
whs.setHelp(autoPublishTime, ContextIds.EDITOR_AUTOPUBLISH_ENABLE); |
646 |
|
656 |
|
647 |
autoPublishEnable.addSelectionListener(new SelectionAdapter() { |
657 |
autoPublishEnableResource.addSelectionListener(new SelectionAdapter() { |
648 |
public void widgetSelected(SelectionEvent e) { |
658 |
public void widgetSelected(SelectionEvent e) { |
649 |
if (updating || !autoPublishEnable.getSelection()) |
659 |
if (updating || !autoPublishEnableResource.getSelection()) |
650 |
return; |
660 |
return; |
651 |
updating = true; |
661 |
updating = true; |
652 |
execute(new SetServerAutoPublishDefaultCommand(getServer(), Server.AUTO_PUBLISH_ENABLE)); |
662 |
execute(new SetServerAutoPublishDefaultCommand(getServer(), Server.AUTO_PUBLISH_RESOURCE)); |
653 |
updating = false; |
663 |
updating = false; |
654 |
autoPublishTimeLabel.setEnabled(autoPublishEnable.getSelection()); |
664 |
autoPublishTimeLabel.setEnabled(!autoPublishDisable.getSelection()); |
655 |
autoPublishTime.setEnabled(autoPublishEnable.getSelection()); |
665 |
autoPublishTime.setEnabled(!autoPublishDisable.getSelection()); |
656 |
validate(); |
666 |
validate(); |
657 |
} |
667 |
} |
658 |
}); |
668 |
}); |
659 |
|
669 |
|
|
|
670 |
autoPublishEnableBuild.addSelectionListener(new SelectionAdapter() { |
671 |
public void widgetSelected(SelectionEvent e) { |
672 |
if (updating || !autoPublishEnableBuild.getSelection()) |
673 |
return; |
674 |
updating = true; |
675 |
execute(new SetServerAutoPublishDefaultCommand(getServer(), Server.AUTO_PUBLISH_BUILD)); |
676 |
updating = false; |
677 |
autoPublishTimeLabel.setEnabled(!autoPublishDisable.getSelection()); |
678 |
autoPublishTime.setEnabled(!autoPublishDisable.getSelection()); |
679 |
validate(); |
680 |
} |
681 |
}); |
682 |
|
660 |
autoPublishDisable.addSelectionListener(new SelectionAdapter() { |
683 |
autoPublishDisable.addSelectionListener(new SelectionAdapter() { |
661 |
public void widgetSelected(SelectionEvent e) { |
684 |
public void widgetSelected(SelectionEvent e) { |
662 |
if (updating || !autoPublishDisable.getSelection()) |
685 |
if (updating || !autoPublishDisable.getSelection()) |
Lines 664-671
Link Here
|
664 |
updating = true; |
687 |
updating = true; |
665 |
execute(new SetServerAutoPublishDefaultCommand(getServer(), Server.AUTO_PUBLISH_DISABLE)); |
688 |
execute(new SetServerAutoPublishDefaultCommand(getServer(), Server.AUTO_PUBLISH_DISABLE)); |
666 |
updating = false; |
689 |
updating = false; |
667 |
autoPublishTimeLabel.setEnabled(autoPublishEnable.getSelection()); |
690 |
autoPublishTimeLabel.setEnabled(!autoPublishDisable.getSelection()); |
668 |
autoPublishTime.setEnabled(autoPublishEnable.getSelection()); |
691 |
autoPublishTime.setEnabled(!autoPublishDisable.getSelection()); |
669 |
validate(); |
692 |
validate(); |
670 |
} |
693 |
} |
671 |
}); |
694 |
}); |
Lines 952-968
Link Here
|
952 |
Server svr = (Server) server; |
975 |
Server svr = (Server) server; |
953 |
int publishSetting = svr.getAutoPublishSetting(); |
976 |
int publishSetting = svr.getAutoPublishSetting(); |
954 |
autoPublishDisable.setSelection(publishSetting == Server.AUTO_PUBLISH_DISABLE); |
977 |
autoPublishDisable.setSelection(publishSetting == Server.AUTO_PUBLISH_DISABLE); |
955 |
autoPublishEnable.setSelection(publishSetting == Server.AUTO_PUBLISH_ENABLE); |
978 |
autoPublishEnableResource.setSelection(publishSetting == Server.AUTO_PUBLISH_RESOURCE); |
|
|
979 |
autoPublishEnableBuild.setSelection(publishSetting == Server.AUTO_PUBLISH_BUILD); |
956 |
autoPublishTime.setSelection(svr.getAutoPublishTime()); |
980 |
autoPublishTime.setSelection(svr.getAutoPublishTime()); |
957 |
|
981 |
|
958 |
if (readOnly) { |
982 |
if (readOnly) { |
959 |
autoPublishDisable.setEnabled(false); |
983 |
autoPublishDisable.setEnabled(false); |
960 |
autoPublishEnable.setEnabled(false); |
984 |
autoPublishEnableResource.setEnabled(false); |
|
|
985 |
autoPublishEnableBuild.setEnabled(false); |
961 |
autoPublishTime.setEnabled(false); |
986 |
autoPublishTime.setEnabled(false); |
962 |
} else { |
987 |
} else { |
963 |
autoPublishDisable.setEnabled(true); |
988 |
autoPublishDisable.setEnabled(true); |
964 |
autoPublishEnable.setEnabled(true); |
989 |
autoPublishEnableResource.setEnabled(true); |
965 |
autoPublishTime.setEnabled(publishSetting == Server.AUTO_PUBLISH_ENABLE); |
990 |
autoPublishEnableBuild.setEnabled(true); |
|
|
991 |
autoPublishTime.setEnabled(publishSetting != Server.AUTO_PUBLISH_DISABLE); |
966 |
} |
992 |
} |
967 |
} |
993 |
} |
968 |
|
994 |
|