GeneralPropertiesEditionPartForm.java 文件源码

java
阅读 33 收藏 0 点赞 0 评论 0

项目:time4sys 作者:
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.hrm.parts.GeneralPropertiesEditionPart#setTargetPort(EObject
 *      newValue)
 * 
 */
public void setTargetPort(EObject newValue) {
    if (newValue != null) {
        targetPort.setSelection(new StructuredSelection(newValue));
    } else {
        targetPort.setSelection(new StructuredSelection()); // $NON-NLS-1$
    }
    boolean eefElementEditorReadOnlyState = isReadOnly(HrmViewsRepository.General.Properties.targetPort);
    if (eefElementEditorReadOnlyState && targetPort.isEnabled()) {
        targetPort.setEnabled(false);
        targetPort.setToolTipText(HrmMessages.General_ReadOnly);
    } else if (!eefElementEditorReadOnlyState && !targetPort.isEnabled()) {
        targetPort.setEnabled(true);
    }

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号