/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.hrm.parts.TimingPropertiesEditionPart#setInputClock(EObject
* newValue)
*
*/
public void setInputClock(EObject newValue) {
if (newValue != null) {
inputClock.setSelection(new StructuredSelection(newValue));
} else {
inputClock.setSelection(new StructuredSelection()); // $NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(HrmViewsRepository.Timing.TimingProperties.inputClock);
if (eefElementEditorReadOnlyState && inputClock.isEnabled()) {
inputClock.setEnabled(false);
inputClock.setToolTipText(HrmMessages.Timing_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !inputClock.isEnabled()) {
inputClock.setEnabled(true);
}
}
java类org.eclipse.jface.viewers.StructuredSelection的实例源码
TimingPropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 30
收藏 0
点赞 0
评论 0
TwcaEventModelPropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 24
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.analysis.parts.TwcaEventModelPropertiesEditionPart#setParent_(EObject newValue)
* @generated
*/
public void setParent_(EObject newValue) {
if (newValue != null) {
parent_.setSelection(new StructuredSelection(newValue));
} else {
parent_.setSelection(new StructuredSelection()); //$NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(AnalysisViewsRepository.TwcaEventModel.Properties.parent_);
if (eefElementEditorReadOnlyState && parent_.isEnabled()) {
parent_.setEnabled(false);
parent_.setToolTipText(AnalysisMessages.TwcaEventModel_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !parent_.isEnabled()) {
parent_.setEnabled(true);
}
}
N4JSNavigatorActionProvider.java 文件源码
项目:n4js
阅读 32
收藏 0
点赞 0
评论 0
@Override
public void setContext(final ActionContext context) {
super.setContext(context);
projectGroup.setContext(context);
// context is null if disposal of the provider is triggered
if (null != context) {
StructuredSelection selection = (StructuredSelection) context.getSelection();
List<Object> selectedElements = Arrays.asList(selection.toArray());
selectionContainsWorkingSet = selectedElements.stream()
.anyMatch(element -> element instanceof WorkingSet);
// try to minimize number of context updates for working set action provider
if (selectionContainsWorkingSet) {
workingSetActionProvider.setContext(context);
}
assignWorkingSetsAction.selectionChanged(selection);
}
}
SchedulerPropertiesEditionPartForm.java 文件源码
项目:time4sys
阅读 24
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.analysis.parts.SchedulerPropertiesEditionPart#setUsedBy(EObject newValue)
* @generated
*/
public void setUsedBy(EObject newValue) {
if (newValue != null) {
usedBy.setSelection(new StructuredSelection(newValue));
} else {
usedBy.setSelection(new StructuredSelection()); //$NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(AnalysisViewsRepository.Scheduler.Properties.usedBy);
if (eefElementEditorReadOnlyState && usedBy.isEnabled()) {
usedBy.setEnabled(false);
usedBy.setToolTipText(AnalysisMessages.Scheduler_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !usedBy.isEnabled()) {
usedBy.setEnabled(true);
}
}
GeneralPropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 29
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.grm.parts.GeneralPropertiesEditionPart#setSet(EObject
* newValue)
*
*/
public void setSet(EObject newValue) {
if (newValue != null) {
set.setSelection(new StructuredSelection(newValue));
} else {
set.setSelection(new StructuredSelection()); // $NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(GrmViewsRepository.General.Properties.set);
if (eefElementEditorReadOnlyState && set.isEnabled()) {
set.setEnabled(false);
set.setToolTipText(GrmMessages.General_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !set.isEnabled()) {
set.setEnabled(true);
}
}
GeneralPropertiesEditionPartForm.java 文件源码
项目:time4sys
阅读 33
收藏 0
点赞 0
评论 0
/**
* {@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);
}
}
StorageOutputFlowPropertiesEditionPartForm.java 文件源码
项目:SimQRI
阅读 25
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see be.cetic.simqri.metamodel.parts.StorageOutputFlowPropertiesEditionPart#setDestination(EObject newValue)
*
*/
public void setDestination(EObject newValue) {
if (newValue != null) {
destination.setSelection(new StructuredSelection(newValue));
} else {
destination.setSelection(new StructuredSelection()); //$NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(MetamodelViewsRepository.StorageOutputFlow.Properties.destination);
if (eefElementEditorReadOnlyState && destination.isEnabled()) {
destination.setEnabled(false);
destination.setToolTipText(MetamodelMessages.StorageOutputFlow_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !destination.isEnabled()) {
destination.setEnabled(true);
}
}
CrtpEditor.java 文件源码
项目:OCCI-Studio
阅读 32
收藏 0
点赞 0
评论 0
/**
* This sets the selection into whichever viewer is active.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSelectionToViewer(Collection<?> collection) {
final Collection<?> theSelection = collection;
// Make sure it's okay.
//
if (theSelection != null && !theSelection.isEmpty()) {
Runnable runnable =
new Runnable() {
public void run() {
// Try to select the items in the current content viewer of the editor.
//
if (currentViewer != null) {
currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);
}
}
};
getSite().getShell().getDisplay().asyncExec(runnable);
}
}
InputPortPropertiesEditionPartForm.java 文件源码
项目:time4sys
阅读 26
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.analysis.parts.InputPortPropertiesEditionPart#setParent_(EObject newValue)
* @generated
*/
public void setParent_(EObject newValue) {
if (newValue != null) {
parent_.setSelection(new StructuredSelection(newValue));
} else {
parent_.setSelection(new StructuredSelection()); //$NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(AnalysisViewsRepository.InputPort.Properties.parent_);
if (eefElementEditorReadOnlyState && parent_.isEnabled()) {
parent_.setEnabled(false);
parent_.setToolTipText(AnalysisMessages.InputPort_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !parent_.isEnabled()) {
parent_.setEnabled(true);
}
}
ComputingResourcePropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 21
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.analysis.parts.ComputingResourcePropertiesEditionPart#setScheduler(EObject newValue)
* @generated
*/
public void setScheduler(EObject newValue) {
if (newValue != null) {
scheduler.setSelection(new StructuredSelection(newValue));
} else {
scheduler.setSelection(new StructuredSelection()); //$NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(AnalysisViewsRepository.ComputingResource.Properties.scheduler);
if (eefElementEditorReadOnlyState && scheduler.isEnabled()) {
scheduler.setEnabled(false);
scheduler.setToolTipText(AnalysisMessages.ComputingResource_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !scheduler.isEnabled()) {
scheduler.setEnabled(true);
}
}
TraceEditor.java 文件源码
项目:time4sys
阅读 27
收藏 0
点赞 0
评论 0
/**
* This sets the selection into whichever viewer is active.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSelectionToViewer(Collection<?> collection) {
final Collection<?> theSelection = collection;
// Make sure it's okay.
//
if (theSelection != null && !theSelection.isEmpty()) {
Runnable runnable =
new Runnable() {
public void run() {
// Try to select the items in the current content viewer of the editor.
//
if (currentViewer != null) {
currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);
}
}
};
getSite().getShell().getDisplay().asyncExec(runnable);
}
}
GeneralPropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 23
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.gqam.parts.GeneralPropertiesEditionPart#setRelRes(EObject
* newValue)
*
*/
public void setRelRes(EObject newValue) {
if (newValue != null) {
relRes.setSelection(new StructuredSelection(newValue));
} else {
relRes.setSelection(new StructuredSelection()); // $NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(GqamViewsRepository.General.Properties.relRes);
if (eefElementEditorReadOnlyState && relRes.isEnabled()) {
relRes.setEnabled(false);
relRes.setToolTipText(GqamMessages.General_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !relRes.isEnabled()) {
relRes.setEnabled(true);
}
}
GeneralPropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 26
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.srm.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(SrmViewsRepository.General.Properties.targetPort);
if (eefElementEditorReadOnlyState && targetPort.isEnabled()) {
targetPort.setEnabled(false);
targetPort.setToolTipText(SrmMessages.General_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !targetPort.isEnabled()) {
targetPort.setEnabled(true);
}
}
GqamEditor.java 文件源码
项目:time4sys
阅读 42
收藏 0
点赞 0
评论 0
/**
* This sets the selection into whichever viewer is active.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSelectionToViewer(Collection<?> collection) {
final Collection<?> theSelection = collection;
// Make sure it's okay.
//
if (theSelection != null && !theSelection.isEmpty()) {
Runnable runnable =
new Runnable() {
public void run() {
// Try to select the items in the current content viewer of the editor.
//
if (currentViewer != null) {
currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);
}
}
};
getSite().getShell().getDisplay().asyncExec(runnable);
}
}
LoginDialog.java 文件源码
项目:neoscada
阅读 58
收藏 0
点赞 0
评论 0
/**
* Load the current state from the dialog settings
*/
private void loadFrom ()
{
this.flagCredentialsAsProperties = this.dialogSettings.getBoolean ( SETTING_AS_PROPERTIES );
final String user = this.dialogSettings.get ( SETTING_USER );
final String contextId = this.dialogSettings.get ( SETTING_CONTEXT );
if ( user != null && contextId != null )
{
this.userText.setText ( user );
for ( final LoginContext context : this.contexts )
{
if ( context.getId ().equals ( contextId ) )
{
this.contextSelector.setSelection ( new StructuredSelection ( context ), true );
}
}
this.passwordText.setFocus ();
}
else
{
this.contextSelector.getControl ().setFocus ();
}
}
GeneralPropertiesEditionPartForm.java 文件源码
项目:time4sys
阅读 28
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.srm.parts.GeneralPropertiesEditionPart#setHost(EObject
* newValue)
*
*/
public void setHost(EObject newValue) {
if (newValue != null) {
host.setSelection(new StructuredSelection(newValue));
} else {
host.setSelection(new StructuredSelection()); // $NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(SrmViewsRepository.General.Properties.host);
if (eefElementEditorReadOnlyState && host.isEnabled()) {
host.setEnabled(false);
host.setToolTipText(SrmMessages.General_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !host.isEnabled()) {
host.setEnabled(true);
}
}
RequiredProtectionParameterPropertiesEditionPartForm.java 文件源码
项目:time4sys
阅读 26
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.analysis.parts.RequiredProtectionParameterPropertiesEditionPart#setParent_(EObject newValue)
* @generated
*/
public void setParent_(EObject newValue) {
if (newValue != null) {
parent_.setSelection(new StructuredSelection(newValue));
} else {
parent_.setSelection(new StructuredSelection()); //$NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(AnalysisViewsRepository.RequiredProtectionParameter.Properties.parent_);
if (eefElementEditorReadOnlyState && parent_.isEnabled()) {
parent_.setEnabled(false);
parent_.setToolTipText(AnalysisMessages.RequiredProtectionParameter_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !parent_.isEnabled()) {
parent_.setEnabled(true);
}
}
CommunicationResourcePropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 34
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.analysis.parts.CommunicationResourcePropertiesEditionPart#setParent_(EObject newValue)
* @generated
*/
public void setParent_(EObject newValue) {
if (newValue != null) {
parent_.setSelection(new StructuredSelection(newValue));
} else {
parent_.setSelection(new StructuredSelection()); //$NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(AnalysisViewsRepository.CommunicationResource.Properties.parent_);
if (eefElementEditorReadOnlyState && parent_.isEnabled()) {
parent_.setEnabled(false);
parent_.setToolTipText(AnalysisMessages.CommunicationResource_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !parent_.isEnabled()) {
parent_.setEnabled(true);
}
}
GeneralPropertiesEditionPartForm.java 文件源码
项目:time4sys
阅读 30
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.grm.parts.GeneralPropertiesEditionPart#setSet(EObject
* newValue)
*
*/
public void setSet(EObject newValue) {
if (newValue != null) {
set.setSelection(new StructuredSelection(newValue));
} else {
set.setSelection(new StructuredSelection()); // $NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(GrmViewsRepository.General.Properties.set);
if (eefElementEditorReadOnlyState && set.isEnabled()) {
set.setEnabled(false);
set.setToolTipText(GrmMessages.General_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !set.isEnabled()) {
set.setEnabled(true);
}
}
FragmentPropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 26
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.analysis.parts.FragmentPropertiesEditionPart#setPrevious(EObject newValue)
* @generated
*/
public void setPrevious(EObject newValue) {
if (newValue != null) {
previous.setSelection(new StructuredSelection(newValue));
} else {
previous.setSelection(new StructuredSelection()); //$NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(AnalysisViewsRepository.Fragment.Properties.previous);
if (eefElementEditorReadOnlyState && previous.isEnabled()) {
previous.setEnabled(false);
previous.setToolTipText(AnalysisMessages.Fragment_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !previous.isEnabled()) {
previous.setEnabled(true);
}
}
FragmentPropertiesEditionPartForm.java 文件源码
项目:time4sys
阅读 24
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.analysis.parts.FragmentPropertiesEditionPart#setTask(EObject newValue)
* @generated
*/
public void setTask(EObject newValue) {
if (newValue != null) {
task.setSelection(new StructuredSelection(newValue));
} else {
task.setSelection(new StructuredSelection()); //$NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(AnalysisViewsRepository.Fragment.Properties.task);
if (eefElementEditorReadOnlyState && task.isEnabled()) {
task.setEnabled(false);
task.setToolTipText(AnalysisMessages.Fragment_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !task.isEnabled()) {
task.setEnabled(true);
}
}
CommunicationPropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 24
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.analysis.parts.CommunicationPropertiesEditionPart#setScheduledBy(EObject newValue)
* @generated
*/
public void setScheduledBy(EObject newValue) {
if (newValue != null) {
scheduledBy.setSelection(new StructuredSelection(newValue));
} else {
scheduledBy.setSelection(new StructuredSelection()); //$NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(AnalysisViewsRepository.Communication.Properties.scheduledBy);
if (eefElementEditorReadOnlyState && scheduledBy.isEnabled()) {
scheduledBy.setEnabled(false);
scheduledBy.setToolTipText(AnalysisMessages.Communication_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !scheduledBy.isEnabled()) {
scheduledBy.setEnabled(true);
}
}
GeneralPropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 28
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.nfp.parts.GeneralPropertiesEditionPart#setMax(EObject newValue)
*
*/
public void setMax(EObject newValue) {
if (newValue != null) {
max.setSelection(new StructuredSelection(newValue));
} else {
max.setSelection(new StructuredSelection()); //$NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(NfpViewsRepository.General.Properties.max);
if (eefElementEditorReadOnlyState && max.isEnabled()) {
max.setEnabled(false);
max.setToolTipText(NfpMessages.General_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !max.isEnabled()) {
max.setEnabled(true);
}
}
GeneralPropertiesEditionPartForm.java 文件源码
项目:time4sys
阅读 30
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.gqam.parts.GeneralPropertiesEditionPart#setInputRel(EObject
* newValue)
*
*/
public void setInputRel(EObject newValue) {
if (newValue != null) {
inputRel.setSelection(new StructuredSelection(newValue));
} else {
inputRel.setSelection(new StructuredSelection()); // $NON-NLS-1$
}
boolean eefElementEditorReadOnlyState = isReadOnly(GqamViewsRepository.General.Properties.inputRel);
if (eefElementEditorReadOnlyState && inputRel.isEnabled()) {
inputRel.setEnabled(false);
inputRel.setToolTipText(GqamMessages.General_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !inputRel.isEnabled()) {
inputRel.setEnabled(true);
}
}
OsgiEditor.java 文件源码
项目:neoscada
阅读 27
收藏 0
点赞 0
评论 0
/**
* This sets the selection into whichever viewer is active.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSelectionToViewer ( Collection<?> collection )
{
final Collection<?> theSelection = collection;
// Make sure it's okay.
//
if ( theSelection != null && !theSelection.isEmpty () )
{
Runnable runnable = new Runnable () {
public void run ()
{
// Try to select the items in the current content viewer of the editor.
//
if ( currentViewer != null )
{
currentViewer.setSelection ( new StructuredSelection ( theSelection.toArray () ), true );
}
}
};
getSite ().getShell ().getDisplay ().asyncExec ( runnable );
}
}
GeneralPropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 26
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.hrm.parts.GeneralPropertiesEditionPart#getMainScheduler()
*
*/
public EObject getMainScheduler() {
if (mainScheduler.getSelection() instanceof StructuredSelection) {
Object firstElement = ((StructuredSelection) mainScheduler.getSelection()).getFirstElement();
if (firstElement instanceof EObject)
return (EObject) firstElement;
}
return null;
}
GeneralPropertiesEditionPartImpl.java 文件源码
项目:time4sys
阅读 26
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.nfp.parts.GeneralPropertiesEditionPart#initUnit(Object input, Enumerator current)
*/
public void initUnit(Object input, Enumerator current) {
unit.setInput(input);
unit.modelUpdating(new StructuredSelection(current));
boolean eefElementEditorReadOnlyState = isReadOnly(NfpViewsRepository.General.Properties.unit);
if (eefElementEditorReadOnlyState && unit.isEnabled()) {
unit.setEnabled(false);
unit.setToolTipText(NfpMessages.General_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !unit.isEnabled()) {
unit.setEnabled(true);
}
}
GeneralPropertiesEditionPartForm.java 文件源码
项目:time4sys
阅读 30
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.grm.parts.GeneralPropertiesEditionPart#initDependentScheduler(EObjectFlatComboSettings)
*/
public void initDependentScheduler(EObjectFlatComboSettings settings) {
dependentScheduler.setInput(settings);
if (current != null) {
dependentScheduler.setSelection(new StructuredSelection(settings.getValue()));
}
boolean eefElementEditorReadOnlyState = isReadOnly(GrmViewsRepository.General.Properties.dependentScheduler);
if (eefElementEditorReadOnlyState && dependentScheduler.isEnabled()) {
dependentScheduler.setEnabled(false);
dependentScheduler.setToolTipText(GrmMessages.General_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !dependentScheduler.isEnabled()) {
dependentScheduler.setEnabled(true);
}
}
GeneralPropertiesEditionPartForm.java 文件源码
项目:time4sys
阅读 35
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.srm.parts.GeneralPropertiesEditionPart#initGet(EObjectFlatComboSettings)
*/
public void initGet(EObjectFlatComboSettings settings) {
get.setInput(settings);
if (current != null) {
get.setSelection(new StructuredSelection(settings.getValue()));
}
boolean eefElementEditorReadOnlyState = isReadOnly(SrmViewsRepository.General.Properties.get);
if (eefElementEditorReadOnlyState && get.isEnabled()) {
get.setEnabled(false);
get.setToolTipText(SrmMessages.General_ReadOnly);
} else if (!eefElementEditorReadOnlyState && !get.isEnabled()) {
get.setEnabled(true);
}
}
GeneralPropertiesEditionPartForm.java 文件源码
项目:time4sys
阅读 36
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*
* @see org.polarsys.time4sys.ui.gqam.parts.GeneralPropertiesEditionPart#getEndToEndScenario()
*
*/
public EObject getEndToEndScenario() {
if (endToEndScenario.getSelection() instanceof StructuredSelection) {
Object firstElement = ((StructuredSelection) endToEndScenario.getSelection()).getFirstElement();
if (firstElement instanceof EObject)
return (EObject) firstElement;
}
return null;
}