List of usage examples for org.eclipse.jface.dialogs IDialogConstants OK_ID
int OK_ID
To view the source code for org.eclipse.jface.dialogs IDialogConstants OK_ID.
Click Source Link
From source file:com.clustercontrol.monitor.view.action.EventBatchConfirmAction.java
License:Open Source License
/** * [?]???????????/*from w w w .ja v a 2s. c o m*/ * <p> * <ol> * <li>[?]???</li> * <li>????????</li> * <li>??????ID????</li> * <li>ID????????? </li> * <li>[]???</li> * </ol> * * @see org.eclipse.core.commands.IHandler#execute * @see com.clustercontrol.monitor.dialog.EventBatchConfirmDialog * @see com.clustercontrol.monitor.view.EventView#update() */ @Override public Object execute(ExecutionEvent event) throws ExecutionException { this.window = HandlerUtil.getActiveWorkbenchWindow(event); // In case this action has been disposed if (null == this.window || !isEnabled()) { return null; } // ??? this.viewPart = HandlerUtil.getActivePart(event); EventBatchConfirmDialog dialog = new EventBatchConfirmDialog(this.viewPart.getSite().getShell()); EventView view = null; try { view = (EventView) this.viewPart.getAdapter(EventView.class); } catch (Exception e) { m_log.info("execute " + e.getMessage()); return null; } if (view == null) { m_log.info("execute: view is null"); return null; } FacilityTreeItem item = view.getScopeTreeComposite().getSelectItem(); if (null == item || item.getData().getFacilityType() == FacilityConstant.TYPE_COMPOSITE) { MessageDialog.openError(null, Messages.getString("failed"), Messages.getString("message.monitor.47")); return null; } String managerName; String facilityId; if (item.getData().getFacilityType() == FacilityConstant.TYPE_MANAGER) { facilityId = null; managerName = item.getData().getFacilityId(); } else { facilityId = item.getData().getFacilityId(); FacilityTreeItem manager = ScopePropertyUtil.getManager(item); managerName = manager.getData().getFacilityId(); } if (dialog.open() == IDialogConstants.OK_ID) { Property condition = dialog.getInputData(); PropertyUtil.deletePropertyDefine(condition); try { MonitorEndpointWrapper wrapper = MonitorEndpointWrapper.getWrapper(managerName); EventBatchConfirmInfo info = EventBatchConfirmPropertyUtil.property2dto(condition); wrapper.modifyBatchConfirm(ConfirmConstant.TYPE_CONFIRMED, facilityId, info); view.update(false); } catch (InvalidRole_Exception e) { // ?????? MessageDialog.openInformation(null, Messages.getString("message"), Messages.getString("message.accesscontrol.16")); } catch (HinemosUnknown_Exception e) { MessageDialog.openError(null, Messages.getString("message"), Messages.getString("message.monitor.60") + ", " + HinemosMessage.replace(e.getMessage())); } catch (Exception e) { m_log.warn("run() modifyBatchConfirm, " + e.getMessage(), e); MessageDialog.openError(null, Messages.getString("failed"), Messages.getString("message.hinemos.failure.unexpected") + ", " + HinemosMessage.replace(e.getMessage())); } } return null; }
From source file:com.clustercontrol.monitor.view.action.EventDetailAction.java
License:Open Source License
/** * []????????//from w ww .j a v a 2 s . com * [?]???? * <p> * <ol> * <li>[]??????????</li> * <li>????[?]???</li> * </ol> * * @see org.eclipse.core.commands.IHandler#execute * @see com.clustercontrol.monitor.view.EventView * @see com.clustercontrol.monitor.dialog.EventInfoDialog */ @Override public Object execute(ExecutionEvent event) throws ExecutionException { this.window = HandlerUtil.getActiveWorkbenchWindow(event); // In case this action has been disposed if (null == this.window || !isEnabled()) { return null; } // ??? this.viewPart = HandlerUtil.getActivePart(event); // ????? EventView view = null; try { view = (EventView) this.viewPart.getAdapter(EventView.class); } catch (Exception e) { m_log.info("execute " + e.getMessage()); return null; } if (view == null) { m_log.info("execute: view is null"); return null; } EventListComposite composite = (EventListComposite) view.getListComposite(); StructuredSelection selection = (StructuredSelection) composite.getTableViewer().getSelection(); List<?> list = (List<?>) selection.getFirstElement(); if (list != null) { EventInfoDialog dialog = new EventInfoDialog(this.viewPart.getSite().getShell(), list); if (dialog.open() == IDialogConstants.OK_ID) { String managerName = (String) list.get(GetEventListTableDefine.MANAGER_NAME); Property prop = dialog.getInputData(); CommentEvent comment = new CommentEvent(); comment.updateComment(managerName, prop); view.update(false); } } return null; }
From source file:com.clustercontrol.monitor.view.action.EventFilterAction.java
License:Open Source License
/** * [??]?????????// w w w.jav a 2s . c o m * ??? * <p> * <ol> * <li>[??]???</li> * <li>????????</li> * <li>[]??????</li> * <li>[]???</li> * </ol> * * @see org.eclipse.core.commands.IHandler#execute * @see com.clustercontrol.monitor.dialog.EventFilterDialog * @see com.clustercontrol.monitor.view.EventView#setCondition(Property) * @see com.clustercontrol.monitor.view.EventView#update() */ @Override public Object execute(ExecutionEvent event) throws ExecutionException { this.window = HandlerUtil.getActiveWorkbenchWindow(event); // ??? this.viewPart = HandlerUtil.getActivePart(event); EventView view = null; try { view = (EventView) this.viewPart.getAdapter(EventView.class); } catch (Exception e) { m_log.info("execute " + e.getMessage()); return null; } if (view == null) { m_log.info("execute: view is null"); return null; } ICommandService commandService = (ICommandService) window.getService(ICommandService.class); Command command = commandService.getCommand(ID); boolean isChecked = !HandlerUtil.toggleCommandState(command); if (isChecked) { // ? EventFilterDialog dialog = new EventFilterDialog(this.viewPart.getSite().getShell()); // ?????????? if (dialog.open() == IDialogConstants.OK_ID) { Property condition = dialog.getInputData(); view.setCondition(condition); view.update(false); } else { State state = command.getState(RegistryToggleState.STATE_ID); state.setValue(false); } } else { // ? view.setCondition(null); // ???(?????) TreeViewer tree = view.getScopeTreeComposite().getTreeViewer(); // ???????? if (((StructuredSelection) tree.getSelection()).getFirstElement() != null) { tree.setSelection(tree.getSelection()); // ?? } // ????????? else { view.update(false); } } return null; }
From source file:com.clustercontrol.monitor.view.action.EventModifyMonitorSettingAction.java
License:Open Source License
/** * []????????/*from w w w .j a v a 2s .c om*/ * <p> * <ol> * <li>[]??????????</li> * <li>????????? </li> * </ol> * * @see org.eclipse.core.commands.IHandler#execute * @see com.clustercontrol.monitor.view.EventView * @see com.clustercontrol.monitor.view.EventView#update() */ @Override public Object execute(ExecutionEvent event) throws ExecutionException { this.window = HandlerUtil.getActiveWorkbenchWindow(event); // In case this action has been disposed if (null == this.window || !isEnabled()) { return null; } // ??? this.viewPart = HandlerUtil.getActivePart(event); ScopeListBaseView view = null; try { view = (EventView) this.viewPart.getAdapter(EventView.class); } catch (Exception e) { m_log.info("execute " + e.getMessage()); return null; } if (view == null) { m_log.info("execute: view is null"); return null; } EventListComposite composite = (EventListComposite) view.getListComposite(); WidgetTestUtil.setTestId(this, null, composite); StructuredSelection selection = (StructuredSelection) composite.getTableViewer().getSelection(); List<?> list = (ArrayList<?>) selection.getFirstElement(); String managerName = ""; String pluginId = ""; String monitorId = ""; if (list != null) { managerName = (String) list.get(POS_MANAER_NAME); pluginId = (String) list.get(POS_PLUGIN_ID); if (pluginId == null) throw new InternalError("pluginId is null."); monitorId = (String) list.get(POS_MONITOR_ID); if (monitorId != null) { // ??? MonitorModifyAction mmAction = new MonitorModifyAction(); // ??????????? if (mmAction.dialogOpen(composite.getShell(), managerName, pluginId, monitorId) == IDialogConstants.OK_ID) { composite.update(); } } } return null; }
From source file:com.clustercontrol.monitor.view.action.EventReportAction.java
License:Open Source License
/** * [??]?????????//w ww . ja v a 2 s . co m * ??? * <p> * <ol> * <li>[??]???</li> * <li>?????????</li> * <li>??????ID????</li> * <li>ID???????? </li> * <li>???</li> * </ol> * * @see org.eclipse.core.commands.IHandler#execute * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction) * @see com.clustercontrol.monitor.dialog.EventReportDialog * @see com.clustercontrol.monitor.util.EventReportGenerator#run(String, Property, ArrayList, int, String) */ @Override public Object execute(ExecutionEvent event) throws ExecutionException { this.window = HandlerUtil.getActiveWorkbenchWindow(event); // In case this action has been disposed if (null == this.window || !isEnabled()) { return null; } // ??? this.viewPart = HandlerUtil.getActivePart(event); EventView view = null; try { view = (EventView) this.viewPart.getAdapter(EventView.class); } catch (Exception e) { m_log.info("execute " + e.getMessage()); return null; } if (view == null) { m_log.info("execute: view is null"); return null; } FacilityTreeItem item = view.getScopeTreeComposite().getSelectItem(); if (null == item || item.getData().getFacilityType() == FacilityConstant.TYPE_COMPOSITE) { MessageDialog.openError(null, Messages.getString("failed"), Messages.getString("message.monitor.47")); return null; } String managerName; String facilityId; if (item.getData().getFacilityType() == FacilityConstant.TYPE_MANAGER) { facilityId = RoleSettingTreeConstant.ROOT_ID; managerName = item.getData().getFacilityId(); } else { facilityId = item.getData().getFacilityId(); FacilityTreeItem manager = ScopePropertyUtil.getManager(item); managerName = manager.getData().getFacilityId(); } // ? EventReportDialog dialog = new EventReportDialog(this.viewPart.getSite().getShell(), managerName, facilityId); // ???????? int btnId = dialog.open(); if (btnId == IDialogConstants.OK_ID) { m_log.debug(dialog.getFilePath() + " exported"); if (!ClusterControlPlugin.isRAP()) { MessageDialog.openInformation(null, Messages.getString("successful"), Messages .getString("message.monitor.45", new String[] { dialog.getFileName(), managerName })); } } else if (btnId == IDialogConstants.CANCEL_ID) { // Do nothing } else { MessageDialog.openError(null, Messages.getString("failed"), Messages.getString("message.monitor.46")); } return null; }
From source file:com.clustercontrol.monitor.view.action.MonitorFilterAction.java
License:Open Source License
/** * ??//from w w w .j a v a 2 s . co m */ @Override public Object execute(ExecutionEvent event) throws ExecutionException { this.window = HandlerUtil.getActiveWorkbenchWindow(event); this.viewPart = HandlerUtil.getActivePart(event); MonitorListView view = null; try { view = (MonitorListView) this.viewPart.getAdapter(MonitorListView.class); } catch (Exception e) { m_log.info("execute " + e.getMessage()); return null; } if (view == null) { m_log.info("execute: view is null"); return null; } ICommandService commandService = (ICommandService) window.getService(ICommandService.class); Command command = commandService.getCommand(ID); boolean isChecked = !HandlerUtil.toggleCommandState(command); if (isChecked) { // ? MonitorFilterDialog dialog = new MonitorFilterDialog(this.viewPart.getSite().getShell()); // ?????????? if (dialog.open() == IDialogConstants.OK_ID) { Property condition = dialog.getInputData(); view.update(condition); } else { State state = command.getState(RegistryToggleState.STATE_ID); state.setValue(false); } } else { // ? view.update(null); } return null; }
From source file:com.clustercontrol.monitor.view.action.StatusFilterAction.java
License:Open Source License
/** * [??]?????????//from www .j av a 2 s . c o m * ??? * <p> * <ol> * <li>[??]???</li> * <li>????????</li> * <li>[]??????</li> * <li>[]???</li> * </ol> * * @see org.eclipse.core.commands.IHandler#execute * @see com.clustercontrol.monitor.dialog.StatusFilterDialog * @see com.clustercontrol.monitor.view.StatusView#setCondition(Property) * @see com.clustercontrol.monitor.view.StatusView#update() */ @Override public Object execute(ExecutionEvent event) throws ExecutionException { this.window = HandlerUtil.getActiveWorkbenchWindow(event); // In case this action has been disposed if (null == this.window || !isEnabled()) { return null; } // ??? this.viewPart = HandlerUtil.getActivePart(event); StatusView statusView = null; try { statusView = (StatusView) this.viewPart.getAdapter(StatusView.class); } catch (Exception e) { m_log.info("execute " + e.getMessage()); return null; } if (statusView == null) { m_log.info("execute: view is null"); return null; } ICommandService commandService = (ICommandService) window.getService(ICommandService.class); Command command = commandService.getCommand(ID); boolean isChecked = !HandlerUtil.toggleCommandState(command); if (isChecked) { // ? StatusFilterDialog dialog = new StatusFilterDialog(this.viewPart.getSite().getShell()); // ?????????? if (dialog.open() == IDialogConstants.OK_ID) { Property condition = dialog.getInputData(); statusView.setCondition(condition); statusView.update(false); } else { State state = command.getState(RegistryToggleState.STATE_ID); state.setValue(false); } } else { // ? statusView.setCondition(null); // ???(?????) TreeViewer tree = statusView.getScopeTreeComposite().getTreeViewer(); // ???????? if (((StructuredSelection) tree.getSelection()).getFirstElement() != null) { tree.setSelection(tree.getSelection()); // ?? } // ????????? else { statusView.update(false); } } return null; }
From source file:com.clustercontrol.monitor.view.action.StatusModifyMonitorSettingAction.java
License:Open Source License
/** * []????????/*w w w .j a va2s . c o m*/ * <p> * <ol> * <li>[]??????????</li> * <li>????????? </li> * </ol> * * @see org.eclipse.core.commands.IHandler#execute * @see com.clustercontrol.monitor.view.StatusView * @see com.clustercontrol.monitor.view.StatusView#update() */ @Override public Object execute(ExecutionEvent event) throws ExecutionException { this.window = HandlerUtil.getActiveWorkbenchWindow(event); // In case this action has been disposed if (null == this.window || !isEnabled()) { return null; } // ??? this.viewPart = HandlerUtil.getActivePart(event); ScopeListBaseView view = null; try { view = (StatusView) this.viewPart.getAdapter(StatusView.class); } catch (Exception e) { m_log.info("execute " + e.getMessage()); return null; } if (view == null) { m_log.info("execute: view is null"); return null; } StatusListComposite composite = (StatusListComposite) view.getListComposite(); WidgetTestUtil.setTestId(this, null, composite); StructuredSelection selection = (StructuredSelection) composite.getTableViewer().getSelection(); List<?> list = (ArrayList<?>) selection.getFirstElement(); if (list == null) { return null; } String managerName = ""; String pluginId = ""; String monitorId = ""; managerName = (String) list.get(GetStatusListTableDefine.MANAGER_NAME); pluginId = (String) list.get(GetStatusListTableDefine.PLUGIN_ID); if (pluginId == null) throw new InternalError("pluginId is null."); monitorId = (String) list.get(GetStatusListTableDefine.MONITOR_ID); if (monitorId != null) { // ??? MonitorModifyAction mmAction = new MonitorModifyAction(); // ??????????? if (mmAction.dialogOpen(composite.getShell(), managerName, pluginId, monitorId) == IDialogConstants.OK_ID) { composite.update(); } } return null; }
From source file:com.clustercontrol.notify.composite.action.NotifyDoubleClickListener.java
License:Open Source License
/** * ?????<BR>/*w w w .j av a 2s. com*/ * []????????????? * <P> * <ol> * <li>???????ID????</li> * <li>ID????????</li> * </ol> * * @param event * * @see com.clustercontrol.calendar.dialog.CalendarDialog * @see org.eclipse.jface.viewers.IDoubleClickListener#doubleClick(org.eclipse.jface.viewers.DoubleClickEvent) */ @Override public void doubleClick(DoubleClickEvent event) { String managerName = null; String notifyId = null; Integer notifyType = null; //ID? if (((StructuredSelection) event.getSelection()).getFirstElement() != null) { ArrayList<?> info = (ArrayList<?>) ((StructuredSelection) event.getSelection()).getFirstElement(); managerName = (String) info.get(NotifyTableDefineNoCheckBox.MANAGER_NAME); notifyId = (String) info.get(NotifyTableDefineNoCheckBox.NOTIFY_ID); notifyType = (Integer) info.get(NotifyTableDefineNoCheckBox.NOTIFY_TYPE); } if (notifyId != null && notifyType != null) { // ??? NotifyModifyAction action = new NotifyModifyAction(); // ??????????? if (action.openDialog(m_composite.getShell(), managerName, notifyId, notifyType) == IDialogConstants.OK_ID) { m_composite.update(); } } }
From source file:com.clustercontrol.notify.dialog.NotifyInfraCreateDialog.java
License:Open Source License
/** * ??????????//from w ww . j av a 2 s .c om * * @param parent ?? * * @see com.clustercontrol.notify.dialog.NotifyBasicCreateDialog#customizeDialog(Composite) */ @Override protected void customizeSettingDialog(Composite parent) { final Shell shell = this.getShell(); // shell.setText(Messages.getString("dialog.notify.infra.create.modify")); // ???? Label label = null; // ???? GridData gridData = null; // GridLayout layout = new GridLayout(1, true); layout.marginWidth = 10; layout.marginHeight = 10; layout.numColumns = 15; parent.setLayout(layout); /* * */ // Group groupInfra = new Group(parent, SWT.NONE); WidgetTestUtil.setTestId(this, "infra", groupInfra); layout = new GridLayout(1, true); layout.marginWidth = 5; layout.marginHeight = 5; layout.numColumns = 15; groupInfra.setLayout(layout); gridData = new GridData(); gridData.horizontalSpan = 15; gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; groupInfra.setLayoutData(gridData); groupInfra.setText(Messages.getString("notifies.infra")); /* * */ Group groupScope = new Group(groupInfra, SWT.NONE); WidgetTestUtil.setTestId(this, "scope", groupScope); groupScope.setText(Messages.getString("notify.infra.scope")); layout = new GridLayout(1, true); layout.marginWidth = 5; layout.marginHeight = 5; layout.numColumns = 15; groupScope.setLayout(layout); gridData = new GridData(); gridData.horizontalSpan = 15; gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; groupScope.setLayoutData(gridData); // this.m_radioGenerationNodeValue = new Button(groupScope, SWT.RADIO); WidgetTestUtil.setTestId(this, "generationnodevalue", m_radioGenerationNodeValue); gridData = new GridData(); gridData.horizontalSpan = 15; gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; this.m_radioGenerationNodeValue.setLayoutData(gridData); this.m_radioGenerationNodeValue.setText(Messages.getString("notify.node.generation") + " : "); this.m_radioGenerationNodeValue.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Button check = (Button) e.getSource(); WidgetTestUtil.setTestId(this, null, check); if (check.getSelection()) { m_radioFixedValue.setSelection(false); m_scopeSelect.setEnabled(false); } } }); // this.m_radioFixedValue = new Button(groupScope, SWT.RADIO); WidgetTestUtil.setTestId(this, "fixedvalue", m_radioFixedValue); gridData = new GridData(); gridData.horizontalSpan = 3; gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; this.m_radioFixedValue.setLayoutData(gridData); this.m_radioFixedValue.setText(Messages.getString("notify.node.fix") + " : "); this.m_radioFixedValue.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Button check = (Button) e.getSource(); WidgetTestUtil.setTestId(this, null, check); if (check.getSelection()) { m_radioGenerationNodeValue.setSelection(false); m_scopeSelect.setEnabled(true); } update(); } }); this.m_textScope = new Text(groupScope, SWT.BORDER | SWT.READ_ONLY); WidgetTestUtil.setTestId(this, "scope", m_textScope); gridData = new GridData(); gridData.horizontalSpan = 5; gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; this.m_textScope.setLayoutData(gridData); this.m_textScope.setText(""); this.m_scopeSelect = new Button(groupScope, SWT.NONE); WidgetTestUtil.setTestId(this, "scopeselect", m_scopeSelect); gridData = new GridData(); gridData.horizontalSpan = 2; gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; this.m_scopeSelect.setLayoutData(gridData); this.m_scopeSelect.setText(Messages.getString("refer")); this.m_scopeSelect.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { ScopeTreeDialog dialog = new ScopeTreeDialog(shell, m_notifyBasic.getManagerListComposite().getText(), m_notifyBasic.getRoleIdList().getText()); if (dialog.open() == IDialogConstants.OK_ID) { FacilityTreeItem selectItem = dialog.getSelectItem(); FacilityInfo info = selectItem.getData(); FacilityPath path = new FacilityPath(ClusterControlPlugin.getDefault().getSeparator()); m_facilityPath = path.getPath(selectItem); m_facilityId = info.getFacilityId(); m_textScope.setText(HinemosMessage.replace(m_facilityPath)); update(); } } }); label = new Label(groupScope, SWT.NONE); WidgetTestUtil.setTestId(this, null, label); gridData = new GridData(); gridData.horizontalSpan = 5; gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; label.setLayoutData(gridData); // label = new Label(groupInfra, SWT.NONE); WidgetTestUtil.setTestId(this, "space1", label); gridData = new GridData(); gridData.horizontalSpan = 15; gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; label.setLayoutData(gridData); /* * ?? ??? */ // ?? label = new Label(groupInfra, SWT.NONE); WidgetTestUtil.setTestId(this, "priority", label); gridData = new GridData(); gridData.horizontalSpan = WIDTH_PRIORITY; gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; label.setLayoutData(gridData); label.setText(Messages.getString("priority")); // ? label = new Label(groupInfra, SWT.NONE); WidgetTestUtil.setTestId(this, "run", label); gridData = new GridData(); gridData.horizontalSpan = WIDTH_INFRA_RUN; gridData.horizontalAlignment = GridData.CENTER; gridData.grabExcessHorizontalSpace = true; label.setLayoutData(gridData); label.setText(Messages.getString("notify.attribute")); // ID label = new Label(groupInfra, SWT.NONE); WidgetTestUtil.setTestId(this, "infraid", label); gridData = new GridData(); gridData.horizontalSpan = WIDTH_INFRA_ID; gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; label.setLayoutData(gridData); label.setText(Messages.getString("infra.management.id")); // label = new Label(groupInfra, SWT.NONE); WidgetTestUtil.setTestId(this, "failurecallvalue", label); gridData = new GridData(); gridData.horizontalSpan = WIDTH_FAILURE_PRIORITY; gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; label.setLayoutData(gridData); label.setText(Messages.getString("failure.call.value")); // ?? label = this.getLabelPriority(groupInfra, Messages.getString("info"), PriorityColorConstant.COLOR_INFO); this.m_checkInfraRunInfo = this.getCheckInfraRun(groupInfra); WidgetTestUtil.setTestId(this, "infraruninfo", m_checkInfraRunInfo); this.m_comboInfraIdInfo = this.getComboInfraId(groupInfra); WidgetTestUtil.setTestId(this, "infraidinfo", m_comboInfraIdInfo); this.m_comboFailurePriorityInfo = this.getComboPriority(groupInfra); WidgetTestUtil.setTestId(this, "failurepriority", m_comboFailurePriorityInfo); this.m_checkInfraRunInfo.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { setEnabled(m_checkInfraRunInfo.getSelection(), m_comboInfraIdInfo, m_comboFailurePriorityInfo); update(); } }); this.m_comboInfraIdInfo.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { update(); } }); setEnabled(false, m_comboInfraIdInfo, m_comboFailurePriorityInfo); // ?? label = this.getLabelPriority(groupInfra, Messages.getString("warning"), PriorityColorConstant.COLOR_WARNING); this.m_checkInfraRunWarning = this.getCheckInfraRun(groupInfra); WidgetTestUtil.setTestId(this, "infrarunwarning", m_checkInfraRunWarning); this.m_comboInfraIdWarning = this.getComboInfraId(groupInfra); WidgetTestUtil.setTestId(this, "infraidwarnitng", m_comboInfraIdWarning); this.m_comboFailurePriorityWarning = this.getComboPriority(groupInfra); WidgetTestUtil.setTestId(this, "failureprioritywarning", m_comboFailurePriorityWarning); this.m_checkInfraRunWarning.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { setEnabled(m_checkInfraRunWarning.getSelection(), m_comboInfraIdWarning, m_comboFailurePriorityWarning); update(); } }); this.m_comboInfraIdWarning.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { update(); } }); setEnabled(false, m_comboInfraIdWarning, m_comboFailurePriorityWarning); // ??? label = this.getLabelPriority(groupInfra, Messages.getString("critical"), PriorityColorConstant.COLOR_CRITICAL); this.m_checkInfraRunCritical = this.getCheckInfraRun(groupInfra); WidgetTestUtil.setTestId(this, "criticalcheck", m_checkInfraRunCritical); this.m_comboInfraIdCritical = this.getComboInfraId(groupInfra); WidgetTestUtil.setTestId(this, "infraidcritical", m_comboInfraIdCritical); this.m_comboFailurePriorityCritical = this.getComboPriority(groupInfra); WidgetTestUtil.setTestId(this, "failureprioritycritical", m_comboFailurePriorityCritical); this.m_checkInfraRunCritical.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { setEnabled(m_checkInfraRunCritical.getSelection(), m_comboInfraIdCritical, m_comboFailurePriorityCritical); update(); } }); this.m_comboInfraIdCritical.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { update(); } }); setEnabled(false, m_comboInfraIdCritical, m_comboFailurePriorityCritical); // ??? label = this.getLabelPriority(groupInfra, Messages.getString("unknown"), PriorityColorConstant.COLOR_UNKNOWN); this.m_checkInfraRunUnknown = this.getCheckInfraRun(groupInfra); WidgetTestUtil.setTestId(this, "infrarununknown", m_checkInfraRunUnknown); this.m_comboInfraIdUnknown = this.getComboInfraId(groupInfra); WidgetTestUtil.setTestId(this, "infraidunknown", m_comboInfraIdUnknown); this.m_comboFailurePriorityUnknown = this.getComboPriority(groupInfra); WidgetTestUtil.setTestId(this, "failurepriorityunknown", m_comboFailurePriorityUnknown); this.m_checkInfraRunUnknown.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { setEnabled(m_checkInfraRunUnknown.getSelection(), m_comboInfraIdUnknown, m_comboFailurePriorityUnknown); update(); } }); this.m_comboInfraIdUnknown.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { update(); } }); setEnabled(false, m_comboInfraIdUnknown, m_comboFailurePriorityUnknown); if (!this.updateFlg) { // ??????? getComboManagerName().addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { String managerNames = getComboManagerName().getText(); managerName = managerNames; refreshComboInfraId(); update(); } }); // ID?????? getComboOwnerRoleId().addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { refreshComboInfraId(); update(); } }); } }