|
Lines 14-19
Link Here
|
| 14 |
|
14 |
|
| 15 |
import java.util.StringTokenizer; |
15 |
import java.util.StringTokenizer; |
| 16 |
|
16 |
|
|
|
17 |
import org.eclipse.core.runtime.Status; |
| 17 |
import org.eclipse.jface.dialogs.Dialog; |
18 |
import org.eclipse.jface.dialogs.Dialog; |
| 18 |
import org.eclipse.jface.dialogs.IDialogConstants; |
19 |
import org.eclipse.jface.dialogs.IDialogConstants; |
| 19 |
import org.eclipse.jface.dialogs.MessageDialog; |
20 |
import org.eclipse.jface.dialogs.MessageDialog; |
|
Lines 22-27
Link Here
|
| 22 |
import org.eclipse.swt.SWT; |
23 |
import org.eclipse.swt.SWT; |
| 23 |
import org.eclipse.swt.events.ModifyEvent; |
24 |
import org.eclipse.swt.events.ModifyEvent; |
| 24 |
import org.eclipse.swt.events.ModifyListener; |
25 |
import org.eclipse.swt.events.ModifyListener; |
|
|
26 |
import org.eclipse.swt.graphics.Color; |
| 25 |
import org.eclipse.swt.graphics.Point; |
27 |
import org.eclipse.swt.graphics.Point; |
| 26 |
import org.eclipse.swt.layout.GridData; |
28 |
import org.eclipse.swt.layout.GridData; |
| 27 |
import org.eclipse.swt.layout.GridLayout; |
29 |
import org.eclipse.swt.layout.GridLayout; |
|
Lines 112-118
Link Here
|
| 112 |
/* Stores the preference composite. Used for displaying warning when config file has to be regenerated */ |
114 |
/* Stores the preference composite. Used for displaying warning when config file has to be regenerated */ |
| 113 |
private Composite preferenceComposite = null; |
115 |
private Composite preferenceComposite = null; |
| 114 |
|
116 |
|
|
|
117 |
//bug 208831 |
| 118 |
private Composite notSupportPlatformComposite = null; |
| 119 |
private Label notSupportPlatformMsg = null; |
| 120 |
//end bug 208831 |
| 121 |
|
| 122 |
|
| 123 |
|
| 115 |
protected Control createContents(Composite parent) { |
124 |
protected Control createContents(Composite parent) { |
|
|
125 |
|
| 126 |
//bug 208831 |
| 127 |
if(!AdminUtil.isSupportedPlatform()){ |
| 128 |
createNotSupportPlatformErrorComposite(parent); |
| 129 |
AdminPlugin.getDefault().getLog().log(new Status(Status.INFO, AdminPlugin.PLUGIN_ID,"Local platform is not supported by Integrated Agent Controller." )); |
| 130 |
} |
| 131 |
//end bug 208831 |
| 132 |
|
| 133 |
|
| 116 |
preferenceComposite = parent; |
134 |
preferenceComposite = parent; |
| 117 |
createEnableDisableComposite(parent); |
135 |
createEnableDisableComposite(parent); |
| 118 |
GridLayout gridLayout = new GridLayout(); |
136 |
GridLayout gridLayout = new GridLayout(); |
|
Lines 142-148
Link Here
|
| 142 |
/* Get the saved values from the preference store */ |
160 |
/* Get the saved values from the preference store */ |
| 143 |
refreshValuesFromPreference(); |
161 |
refreshValuesFromPreference(); |
| 144 |
|
162 |
|
| 145 |
|
|
|
| 146 |
//bug 184625, add CSH |
163 |
//bug 184625, add CSH |
| 147 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(enableIACButton, AdminPlugin.PLUGIN_ID+".iacpp0001"); |
164 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(enableIACButton, AdminPlugin.PLUGIN_ID+".iacpp0001"); |
| 148 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(disableIACButton, AdminPlugin.PLUGIN_ID+".iacpp0002"); |
165 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(disableIACButton, AdminPlugin.PLUGIN_ID+".iacpp0002"); |
|
Lines 160-165
Link Here
|
| 160 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(addUserButton, AdminPlugin.PLUGIN_ID+".iacpp0014"); |
177 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(addUserButton, AdminPlugin.PLUGIN_ID+".iacpp0014"); |
| 161 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(removeUserButton, AdminPlugin.PLUGIN_ID+".iacpp0015"); |
178 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(removeUserButton, AdminPlugin.PLUGIN_ID+".iacpp0015"); |
| 162 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(editUserButton, AdminPlugin.PLUGIN_ID+".iacpp0016"); |
179 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(editUserButton, AdminPlugin.PLUGIN_ID+".iacpp0016"); |
|
|
180 |
|
| 181 |
//208831 |
| 182 |
if(!AdminUtil.isSupportedPlatform()){ |
| 183 |
|
| 184 |
enableIACButton.setSelection(false); |
| 185 |
disableIACButton.setSelection(false); |
| 186 |
enableIACButton.setEnabled(false); |
| 187 |
disableIACButton.setEnabled(false); |
| 188 |
|
| 189 |
setIACEnable(false); |
| 190 |
} |
| 191 |
//end bug 208831 |
| 163 |
return composite; |
192 |
return composite; |
| 164 |
} |
193 |
} |
| 165 |
|
194 |
|
|
Lines 654-659
Link Here
|
| 654 |
} |
683 |
} |
| 655 |
}); |
684 |
}); |
| 656 |
} |
685 |
} |
|
|
686 |
//bug 208831 |
| 687 |
private void createNotSupportPlatformErrorComposite(Composite parent) { |
| 688 |
|
| 689 |
GridData gridData1 = new GridData(); |
| 690 |
gridData1.grabExcessHorizontalSpace = true; |
| 691 |
gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; |
| 692 |
|
| 693 |
GridLayout gridLayout2 = new GridLayout(); |
| 694 |
gridLayout2.numColumns = 17; |
| 695 |
notSupportPlatformComposite = new Composite(parent, SWT.NONE); |
| 696 |
notSupportPlatformComposite.setLayout(gridLayout2); |
| 697 |
notSupportPlatformComposite.setLayoutData(gridData1); |
| 698 |
|
| 699 |
|
| 700 |
GridData gridData3 = new GridData(); |
| 701 |
gridData3.grabExcessHorizontalSpace = false; |
| 702 |
gridData3.horizontalAlignment = org.eclipse.swt.layout.GridData.BEGINNING; |
| 703 |
notSupportPlatformMsg = new Label(notSupportPlatformComposite, SWT.NONE); |
| 704 |
notSupportPlatformMsg.setText(PreferenceMessages.NOT_SUPPORT_PLATFORM); |
| 705 |
notSupportPlatformMsg.setSize(150, 20); |
| 706 |
notSupportPlatformMsg.setForeground(new Color(null, 255, 0, 0)); |
| 707 |
|
| 708 |
notSupportPlatformMsg.setLayoutData(gridData3); |
| 709 |
} |
| 710 |
//end bug 208831 |
| 657 |
|
711 |
|
| 658 |
/** |
712 |
/** |
| 659 |
* This method creates the enable disable buttons |
713 |
* This method creates the enable disable buttons |