Example usage for org.eclipse.jface.dialogs MessageDialog openInformation

List of usage examples for org.eclipse.jface.dialogs MessageDialog openInformation

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs MessageDialog openInformation.

Prototype

public static void openInformation(Shell parent, String title, String message) 

Source Link

Document

Convenience method to open a standard information dialog.

Usage

From source file:com.clustercontrol.jobmanagement.composite.action.JobIdSelectionListener.java

License:Open Source License

@Override
public void widgetSelected(SelectionEvent e) {

    String managerName = managerListComposite.getText();

    if (null != managerName) {
        // /*w  ww  . j  a  va 2  s  . co m*/
        JobTreeDialog dialog = new JobTreeDialog(shell, managerName, this.m_ownerRoleId.getText(), false);
        if (dialog.open() == IDialogConstants.OK_ID) {
            JobTreeItem selectItem = dialog.getSelectItem().get(0);
            if (selectItem.getData().getType() != JobConstant.TYPE_COMPOSITE) {
                m_textJobId.setText(selectItem.getData().getId());
                m_textJobunitId.setText(selectItem.getData().getJobunitId());
            } else {
                m_textJobId.setText("");
                m_textJobunitId.setText("");
            }
        }
    } else {
        MessageDialog.openInformation(shell, Messages.getString("message"),
                Messages.getString("multimanager.managername.required.message"));
    }
}

From source file:com.clustercontrol.jobmanagement.composite.action.SessionJobDoubleClickListener.java

License:Open Source License

/**
 * ?????<BR>//from   ww w.  j  a  va2  s  .  c om
 * []?
 * []?
 * []
 * ?????????????
 * <P>
 * <ol>
 * <li>???????ID?ID????</li>
 * <li>ID?ID????????</li>
 * </ol>
 *
 * @param event 
 *
 * @see org.eclipse.jface.viewers.IDoubleClickListener#doubleClick(org.eclipse.jface.viewers.DoubleClickEvent)
 */
@Override
public void doubleClick(DoubleClickEvent event) {
    String managerName = null;
    String sessionId = null;
    String jobunitId = null;
    String jobId = null;

    if (m_composite instanceof HistoryComposite) {
        //ID?ID?
        if (((StructuredSelection) event.getSelection()).getFirstElement() != null) {
            ArrayList<?> info = (ArrayList<?>) ((StructuredSelection) event.getSelection()).getFirstElement();
            managerName = (String) info.get(GetHistoryTableDefine.MANAGER_NAME);
            sessionId = (String) info.get(GetHistoryTableDefine.SESSION_ID);
            jobunitId = (String) info.get(GetHistoryTableDefine.JOBUNIT_ID);
            jobId = (String) info.get(GetHistoryTableDefine.JOB_ID);
        }
    } else if (m_composite instanceof DetailComposite) {
        //ID?ID?
        if (((StructuredSelection) event.getSelection()).getFirstElement() != null) {
            JobTreeItem item = (JobTreeItem) ((StructuredSelection) event.getSelection()).getFirstElement();
            JobInfo info = item.getData();
            managerName = ((DetailComposite) m_composite).getManagerName();
            sessionId = ((DetailComposite) m_composite).getSessionId();
            jobunitId = ((DetailComposite) m_composite).getJobunitId();
            jobId = info.getId();
        }
    }
    //[]?? ([]??)
    else if (m_composite instanceof JobPlanComposite) {
        if (((StructuredSelection) event.getSelection()).getFirstElement() != null) {
            ArrayList<?> plan = (ArrayList<?>) ((StructuredSelection) event.getSelection()).getFirstElement();
            managerName = (String) plan.get(GetPlanTableDefine.MANAGER_NAME);
            jobunitId = (String) plan.get(GetPlanTableDefine.JOBUNIT_ID);
            jobId = (String) plan.get(GetPlanTableDefine.JOB_ID);
            //?
            IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
            IViewPart viewPart = page.findView(JobListView.ID);
            if (viewPart != null) {
                JobListView view = (JobListView) viewPart.getAdapter(JobListView.class);
                if (view == null) {
                    m_log.info("double click: view is null");
                    return;
                }
                view.setFocus(managerName, jobunitId, jobId);
            }
        }
    }

    if (sessionId != null && sessionId.length() > 0 && jobunitId != null && jobunitId.length() > 0
            && jobId != null && jobId.length() > 0) {

        JobTreeItem item = null;
        try {
            JobEndpointWrapper wrapper = JobEndpointWrapper.getWrapper(managerName);
            item = wrapper.getSessionJobInfo(sessionId, jobunitId, jobId);
        } catch (InvalidRole_Exception e) {
            MessageDialog.openInformation(null, Messages.getString("message"),
                    Messages.getString("message.accesscontrol.16"));
        } catch (Exception e) {
            m_log.warn("doubleClick() getSessionJobInfo, " + e.getMessage(), e);
            MessageDialog.openError(null, Messages.getString("failed"),
                    Messages.getString("message.hinemos.failure.unexpected") + ", "
                            + HinemosMessage.replace(e.getMessage()));
        }

        if (item != null) {
            JobDialog dialog = new JobDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
                    managerName, true, true);

            dialog.setJobTreeItem(item);
            dialog.open();
        }
    }
}

From source file:com.clustercontrol.jobmanagement.composite.DetailComposite.java

License:Open Source License

/**
 * ???<BR>//from w w w.j  av a  2  s .com
 * ???ID????
 * ????
 * <p>
 * <ol>
 * <li>???ID?????</li>
 * <li>????</li>
 * </ol>
 *
 * @param managerName ???
 * @param sessionId ID
 * @param jobunitId ?ID
 *
 * @see com.clustercontrol.jobmanagement.action.GetJobDetail#getJobDetail(String, String)
 * @see #setJobId(String)
 */
public void update(String managerName, String sessionId, String jobunitId) {
    //?
    JobTreeItem item = null;
    if (sessionId != null && sessionId.length() > 0) {
        try {
            JobEndpointWrapper wrapper = JobEndpointWrapper.getWrapper(managerName);
            item = wrapper.getJobDetailList(sessionId);
        } catch (InvalidRole_Exception e) {
            if (ClientSession.isDialogFree()) {
                ClientSession.occupyDialog();
                MessageDialog.openInformation(null, Messages.getString("message"),
                        Messages.getString("message.accesscontrol.16"));
                ClientSession.freeDialog();
            }
        } catch (Exception e) {
            m_log.warn("update() getJobDetailList, " + e.getMessage(), e);
            if (ClientSession.isDialogFree()) {
                ClientSession.occupyDialog();
                MessageDialog.openError(null, Messages.getString("failed"),
                        Messages.getString("message.hinemos.failure.unexpected") + ", "
                                + HinemosMessage.replace(e.getMessage()));
                ClientSession.freeDialog();
            }
        }
    }
    setItem(managerName, sessionId, jobunitId, item);
}

From source file:com.clustercontrol.jobmanagement.composite.ForwardFileComposite.java

License:Open Source License

/**
 * ???<BR>/*from ww w .  j ava2 s.c om*/
 * ???ID?ID?????
 * ????
 * <p>
 * <ol>
 * <li>???ID?ID??????</li>
 * <li>?????</li>
 * </ol>
 *
 * @param managerName ???
 * @param sessionId ID
 * @param jobId ID
 *
 * @see com.clustercontrol.jobmanagement.action.GetForwardFile#get(String, String)
 */
public void update(String managerName, String sessionId, String jobunitId, String jobId) {
    List<JobForwardFile> list = null;

    //??
    if (sessionId != null && jobId != null) {
        try {
            JobEndpointWrapper wrapper = JobEndpointWrapper.getWrapper(managerName);
            list = wrapper.getForwardFileList(sessionId, jobunitId, jobId);
        } catch (InvalidRole_Exception e) {
            if (ClientSession.isDialogFree()) {
                ClientSession.occupyDialog();
                MessageDialog.openInformation(null, Messages.getString("message"),
                        Messages.getString("message.accesscontrol.16"));
                ClientSession.freeDialog();
            }
        } catch (Exception e) {
            if (ClientSession.isDialogFree()) {
                ClientSession.occupyDialog();
                m_log.warn("update() getForwardFileList, " + e.getMessage(), e);
                MessageDialog.openError(null, Messages.getString("failed"),
                        Messages.getString("message.hinemos.failure.unexpected") + ", "
                                + HinemosMessage.replace(e.getMessage()));
                ClientSession.freeDialog();
            }
        }
    }
    if (list == null) {
        list = new ArrayList<JobForwardFile>();
    }

    ArrayList<Object> listInput = new ArrayList<Object>();
    for (JobForwardFile info : list) {
        ArrayList<Object> a = new ArrayList<Object>();
        a.add(info.getStatus());
        a.add(info.getEndStatus());
        a.add(info.getFile());
        a.add(info.getSrcFacility());
        a.add(info.getSrcFacilityName());
        a.add(info.getDstFacilityId());
        a.add(info.getDstFacilityName());
        a.add(info.getStartDate() == null ? "" : new Date(info.getStartDate()));
        a.add(info.getEndDate() == null ? "" : new Date(info.getEndDate()));
        a.add(TimeToANYhourConverter.toDiffTime(info.getStartDate(), info.getEndDate()));
        listInput.add(a);
    }
    m_viewer.setInput(listInput);

    m_sessionId = sessionId;
    m_jobunitId = jobunitId;
    m_jobId = jobId;

    //IDID
    if (m_sessionId != null && m_jobId != null) {
        m_idLabel.setText(Messages.getString("session.id") + " : " + m_sessionId + ",   "
                + Messages.getString("job.id") + " : " + m_jobId);
    } else {
        m_idLabel.setText(
                Messages.getString("session.id") + " : " + ",   " + Messages.getString("job.id") + " : ");
    }
}

From source file:com.clustercontrol.jobmanagement.composite.JobTreeComposite.java

License:Open Source License

public void doSearch(String keyword) {
    // Check and format keyword
    if (null == keyword) {
        return;/*from  w  w  w.j  av  a 2 s . co m*/
    }
    keyword = keyword.trim();
    if (keyword.isEmpty()) {
        return;
    }

    StructuredSelection selection = (StructuredSelection) m_viewer.getSelection();
    Object targetItem = selection.getFirstElement();
    JobTreeItem result = searchItem((JobTreeItem) (null != targetItem ? targetItem : m_viewer.getInput()),
            keyword);
    if (null != result) {
        JobTreeItem trace = result;
        LinkedList<JobTreeItem> pathList = new LinkedList<>();
        do {
            pathList.addFirst(trace);
            trace = trace.getParent();
        } while (null != trace);
        TreePath path = new TreePath(pathList.toArray(new JobTreeItem[] {}));
        m_viewer.setSelection(new TreeSelection(path), true);
    } else {
        MessageDialog.openInformation(this.getShell(), Messages.getString("message"),
                Messages.getString("search.not.found"));
        m_viewer.setSelection(new StructuredSelection(((JobTreeItem) m_viewer.getInput()).getChildren().get(0)),
                true);
    }
}

From source file:com.clustercontrol.jobmanagement.composite.MonitorComposite.java

License:Open Source License

/**
 * ?????//from  w  ww.jav a2 s .  c om
 *
 * @see com.clustercontrol.jobmanagement.bean.MonitorJobInfo
 */
public void reflectMonitorJobInfo() {

    // ?
    this.m_scopeJobParam.setSelection(false);
    this.m_scopeFixedValue.setSelection(true);
    this.m_scope.setText("");
    this.m_allNode.setSelection(true);
    this.m_infoEndValue.setText(String.valueOf(MonitorJobConstant.INITIAL_END_VALUE_INFO));
    this.m_warnEndValue.setText(String.valueOf(MonitorJobConstant.INITIAL_END_VALUE_WARN));
    this.m_criticalEndValue.setText(String.valueOf(MonitorJobConstant.INITIAL_END_VALUE_CRITICAL));
    this.m_unknownEndValue.setText(String.valueOf(MonitorJobConstant.INITIAL_END_VALUE_UNKNOWN));
    this.m_waitEndValueText.setText(String.valueOf(MonitorJobConstant.INITIAL_END_VALUE_UNKNOWN));
    this.m_waitTimeText.setText(String.valueOf(MonitorJobConstant.INITIAL_WAIT_INTERVAL_MINUTE));

    // 
    List<MonitorInfo> monitorInfoList = null;
    this.m_monitorIdMap = new ConcurrentHashMap<>();
    try {
        JobEndpointWrapper wrapper = JobEndpointWrapper.getWrapper(this.m_managerName);
        monitorInfoList = wrapper.getMonitorListForJobMonitor(this.m_ownerRoleId);
    } catch (InvalidRole_Exception e) {
        MessageDialog.openInformation(null, Messages.getString("message"),
                Messages.getString("message.accesscontrol.16"));
    } catch (Exception e) {
        m_log.warn("reflectMonitorJobInfo() getMonitorListByMonitorTypeIds, " + e.getMessage(), e);
        MessageDialog.openError(null, Messages.getString("failed"),
                Messages.getString("message.hinemos.failure.unexpected") + ", "
                        + HinemosMessage.replace(e.getMessage()));
    }
    String selectMonitorIdLabel = "";
    if (monitorInfoList != null && monitorInfoList.size() > 0) {
        for (MonitorInfo monitorInfo : monitorInfoList) {
            String monitorIdLabel = getMonitorIdLabel(monitorInfo);
            if (m_monitor != null && m_monitor.getMonitorId().equals(monitorInfo.getMonitorId())) {
                selectMonitorIdLabel = monitorIdLabel;
            }
            this.m_monitorIdMap.put(monitorIdLabel, monitorInfo);
            this.m_monitorIdCombo.add(monitorIdLabel);
        }
    } else {
        this.m_monitorIdCombo.add("");
    }
    this.m_monitorIdCombo.setText(selectMonitorIdLabel);

    if (this.m_monitor != null) {
        //
        this.m_facilityPath = HinemosMessage.replace(this.m_monitor.getScope());
        this.m_facilityId = this.m_monitor.getFacilityID();
        if (SystemParameterConstant.isParam(this.m_facilityId, SystemParameterConstant.FACILITY_ID)) {
            //ID???
            this.m_facilityId = "";
            this.m_facilityPath = "";
            this.m_scope.setText(this.m_facilityPath);
            this.m_scopeJobParam.setSelection(true);
            this.m_scopeFixedValue.setSelection(false);
        } else {
            if (this.m_facilityPath != null && this.m_facilityPath.length() > 0) {
                this.m_scope.setText(this.m_facilityPath);
            }
            this.m_scopeJobParam.setSelection(false);
            this.m_scopeFixedValue.setSelection(true);
        }
        //?
        if (this.m_monitor.getProcessingMethod() == ProcessingMethodConstant.TYPE_ALL_NODE) {
            this.m_allNode.setSelection(true);
            this.m_retry.setSelection(false);
        } else {
            this.m_allNode.setSelection(false);
            this.m_retry.setSelection(true);
        }

        //
        if (this.m_scopeJobParam.getSelection()) {
            this.m_scopeSelect.setEnabled(false);
        } else {
            this.m_scopeSelect.setEnabled(true);
        }

        // 
        if (this.m_monitor.getMonitorInfoEndValue() != null) {
            this.m_infoEndValue.setText(this.m_monitor.getMonitorInfoEndValue().toString());
        }

        // 
        if (this.m_monitor.getMonitorWarnEndValue() != null) {
            this.m_warnEndValue.setText(this.m_monitor.getMonitorWarnEndValue().toString());
        }

        // ?
        if (this.m_monitor.getMonitorCriticalEndValue() != null) {
            this.m_criticalEndValue.setText(this.m_monitor.getMonitorCriticalEndValue().toString());
        }

        // ?
        if (this.m_monitor.getMonitorUnknownEndValue() != null) {
            this.m_unknownEndValue.setText(this.m_monitor.getMonitorUnknownEndValue().toString());
        }

        // ??????
        if (this.m_monitor.getMonitorWaitTime() != null) {
            this.m_waitTimeText.setText(this.m_monitor.getMonitorWaitTime().toString());
        }

        // ??????
        if (this.m_monitor.getMonitorWaitEndValue() != null) {
            this.m_waitEndValueText.setText(this.m_monitor.getMonitorWaitEndValue().toString());
        }
    }
}

From source file:com.clustercontrol.jobmanagement.composite.NodeDetailComposite.java

License:Open Source License

/**
 * ???<BR>/*from www .  j  a v  a2  s . co  m*/
 * ???ID?ID????
 * ????
 * <p>
 * <ol>
 * <li>???ID?ID?????</li>
 * <li>????</li>
 * </ol>
 *
 * @param managerName ???
 * @param sessionId ID
 * @param jobunitId ?ID
 * @param jobId ID
 *
 * @see com.clustercontrol.jobmanagement.action.GetNodeDetail#getNodeDetail(String, String)
 */
public void update(String managerName, String sessionId, String jobunitId, String jobId) {
    List<JobNodeDetail> nodeDetailInfo = null;

    //?
    if (sessionId != null && jobId != null) {
        try {
            JobEndpointWrapper wrapper = JobEndpointWrapper.getWrapper(managerName);
            nodeDetailInfo = wrapper.getNodeDetailList(sessionId, jobunitId, jobId);
        } catch (InvalidRole_Exception e) {
            if (ClientSession.isDialogFree()) {
                ClientSession.occupyDialog();
                MessageDialog.openInformation(null, Messages.getString("message"),
                        Messages.getString("message.accesscontrol.16"));
                ClientSession.freeDialog();
            }
        } catch (Exception e) {
            m_log.warn("update() getNodeDetailList, " + e.getMessage(), e);
            if (ClientSession.isDialogFree()) {
                ClientSession.occupyDialog();
                MessageDialog.openError(null, Messages.getString("failed"),
                        Messages.getString("message.hinemos.failure.unexpected") + ", "
                                + HinemosMessage.replace(e.getMessage()));
                ClientSession.freeDialog();
            }
        }
    }
    if (nodeDetailInfo == null) {
        nodeDetailInfo = new ArrayList<JobNodeDetail>();
    }

    ArrayList<Object> listInput = new ArrayList<Object>();
    for (JobNodeDetail info : nodeDetailInfo) {
        ArrayList<Object> a = new ArrayList<Object>();
        a.add(info.getStatus());
        a.add(info.getEndValue());
        a.add(info.getFacilityId());
        a.add(info.getNodeName());
        a.add(info.getStartDate() == null ? "" : new Date(info.getStartDate()));
        a.add(info.getEndDate() == null ? "" : new Date(info.getEndDate()));
        a.add(TimeToANYhourConverter.toDiffTime(info.getStartDate(), info.getEndDate()));
        a.add(HinemosMessage.replace(info.getMessage()));
        listInput.add(a);
    }
    m_viewer.setInput(listInput);
    m_sessionId = sessionId;
    m_jobunitId = jobunitId;
    m_jobId = jobId;
    m_managerName = managerName;

    //IDID
    if (m_sessionId != null && m_jobId != null) {
        m_idLabel.setText(Messages.getString("session.id") + " : " + m_sessionId + ",   "
                + Messages.getString("job.id") + " : " + m_jobId);
    } else {
        m_idLabel.setText(
                Messages.getString("session.id") + " : " + ",   " + Messages.getString("job.id") + " : ");
    }
}

From source file:com.clustercontrol.jobmanagement.dialog.JobDialog.java

License:Open Source License

/**
 * ID?????/*from   w  w w.java2s .  com*/
 *
 * @param iconIdCombo ID
 * @param managerName ???
 * @param ownerRoleId ID
 */
private void setIconIdComboItem(Combo iconIdCombo, String managerName, String ownerRoleId) {

    // ?
    iconIdCombo.removeAll();
    // 
    iconIdCombo.add("");

    List<String> iconIdList = null;
    // ?
    try {
        if (ownerRoleId != null && !"".equals(ownerRoleId)) {
            JobEndpointWrapper wrapper = JobEndpointWrapper.getWrapper(managerName);
            iconIdList = wrapper.getJobmapIconImageIdListForSelect(ownerRoleId);
        }
    } catch (InvalidRole_Exception e) {
        // ???
        MessageDialog.openInformation(null, Messages.getString("message"),
                Messages.getString("message.accesscontrol.16"));
    } catch (Exception e) {
        // ?
        m_log.warn("update(), " + HinemosMessage.replace(e.getMessage()), e);
        MessageDialog.openError(null, Messages.getString("failed"),
                Messages.getString("message.hinemos.failure.unexpected") + ", "
                        + HinemosMessage.replace(e.getMessage()));
    }

    if (iconIdList != null) {
        for (String iconId : iconIdList) {
            iconIdCombo.add(iconId);
        }
    }
}

From source file:com.clustercontrol.jobmanagement.dialog.JobKickDialog.java

License:Open Source License

@Override
protected boolean action() {
    boolean result = false;
    try {//  www .j a  v  a  2  s. c o  m
        String managerName = this.m_managerComposite.getText();

        JobEndpointWrapper wrapper = JobEndpointWrapper.getWrapper(managerName);
        if (this.m_mode == PropertyDefineConstant.MODE_MODIFY) {
            if (this.m_jobkickType == JobKickConstant.TYPE_SCHEDULE) {
                wrapper.modifySchedule((JobSchedule) this.m_jobKick);
            } else if (this.m_jobkickType == JobKickConstant.TYPE_FILECHECK) {
                wrapper.modifyFileCheck((JobFileCheck) this.m_jobKick);
            } else if (this.m_jobkickType == JobKickConstant.TYPE_MANUAL) {
                wrapper.modifyJobManual(this.m_jobKick);
            }
            Object[] arg = { managerName };
            MessageDialog.openInformation(null, Messages.getString("successful"),
                    Messages.getString("message.job.77", arg));
        } else {//
            if (this.m_jobkickType == JobKickConstant.TYPE_SCHEDULE) {
                wrapper.addSchedule((JobSchedule) this.m_jobKick);
            } else if (this.m_jobkickType == JobKickConstant.TYPE_FILECHECK) {
                wrapper.addFileCheck((JobFileCheck) this.m_jobKick);
            } else if (this.m_jobkickType == JobKickConstant.TYPE_MANUAL) {
                wrapper.addJobManual(this.m_jobKick);
            }

            Object[] arg = { managerName };
            MessageDialog.openInformation(null, Messages.getString("successful"),
                    Messages.getString("message.job.79", arg));
        }
        result = true;
    } catch (InvalidRole_Exception e) {
        // ??????
        MessageDialog.openInformation(null, Messages.getString("message"),
                Messages.getString("message.accesscontrol.16"));
    } catch (JobKickDuplicate_Exception e) {
        String[] args = { this.m_jobKick.getId() };
        MessageDialog.openError(null, Messages.getString("failed"),
                Messages.getString("message.job.83", args) + " " + HinemosMessage.replace(e.getMessage()));
    } catch (InvalidUserPass_Exception e) {
        MessageDialog.openError(null, Messages.getString("failed"),
                Messages.getString("message.job.74") + " " + HinemosMessage.replace(e.getMessage()));
    } catch (InvalidSetting_Exception e) {
        MessageDialog.openError(null, Messages.getString("failed"),
                Messages.getString("message.job.74") + " " + HinemosMessage.replace(e.getMessage()));
    } catch (Exception e) {
        m_log.warn("action(), " + e.getMessage(), e);
        MessageDialog.openError(null, Messages.getString("failed"),
                Messages.getString("message.hinemos.failure.unexpected") + ", "
                        + HinemosMessage.replace(e.getMessage()));
    }
    return result;
}

From source file:com.clustercontrol.jobmanagement.util.JobKickFilterPropertyUtil.java

License:Open Source License

/**
 * ID?????//from w ww  .j  a v  a  2s.  c o  m
 * 
 * @return ID?
 */
private static Object[][] getCalendarIdList() {

    List<CalendarInfo> calList = new ArrayList<CalendarInfo>();
    Object retArray[][] = null;
    try {
        for (String managerName : EndpointManager.getActiveManagerSet()) {
            CalendarEndpointWrapper wrapper = CalendarEndpointWrapper.getWrapper(managerName);
            for (CalendarInfo info : wrapper.getAllCalendarList()) {
                calList.add(info);
            }
        }
    } catch (InvalidUserPass_Exception e) {
        // ??????
        MessageDialog.openInformation(null, Messages.getString("message"),
                Messages.getString("message.accesscontrol.16"));
    } catch (InvalidRole_Exception e) {
        // ??????
        MessageDialog.openInformation(null, Messages.getString("message"),
                Messages.getString("message.accesscontrol.16"));
    } catch (HinemosUnknown_Exception e) {
        m_log.warn("getCalendarIdList(), " + e.getMessage(), e);
        MessageDialog.openError(null, Messages.getString("failed"),
                Messages.getString("message.hinemos.failure.unexpected") + ", "
                        + HinemosMessage.replace(e.getMessage()));
    } catch (CalendarNotFound_Exception e) {
        m_log.warn("getCalendarIdList(), " + e.getMessage(), e);
        MessageDialog.openError(null, Messages.getString("failed"),
                Messages.getString("message.hinemos.failure.unexpected") + ", "
                        + HinemosMessage.replace(e.getMessage()));
    }

    if (calList != null && calList.isEmpty() == false) {
        retArray = new Object[2][calList.size() + 1];
        retArray[0][0] = "";
        retArray[1][0] = "";
        for (int i = 0; i < calList.size(); i++) {
            retArray[0][i + 1] = calList.get(i).getCalendarId();
            retArray[1][i + 1] = calList.get(i).getCalendarId();
        }
    } else {
        Object nullArray[][] = { { "" }, { "" } };
        retArray = nullArray;
    }
    return retArray;
}