类org.eclipse.ui.views.properties.IPropertySourceProvider源码实例Demo

下面列出了怎么用org.eclipse.ui.views.properties.IPropertySourceProvider的API类实例代码及写法,或者点击链接到github查看源代码。

public boolean performFinish(final ContractConstraint constraintToUpdate,
        final IPropertySourceProvider propertySourceProvider) {
    final IPropertySource constraintPropertySource = propertySourceProvider.getPropertySource(constraintToUpdate);
    constraintPropertySource.setPropertyValue(ProcessPackage.Literals.CONTRACT_CONSTRAINT__EXPRESSION,
            constraint.getExpression());
    if (inputIndexer != null) {
        try {
            inputIndexer.join();
        } catch (final InterruptedException e) {
            BonitaStudioLog.error("Failed to join input indexer job.", e, ContractPlugin.PLUGIN_ID);
            return false;
        }
    }
    constraintPropertySource.setPropertyValue(ProcessPackage.Literals.CONTRACT_CONSTRAINT__INPUT_NAMES,
            constraint.getInputNames());
    return true;
}
 
源代码2 项目: scava   文件: CrossflowDomainNavigatorItem.java
/**
* @generated
*/
public CrossflowDomainNavigatorItem(EObject eObject, Object parent,
		IPropertySourceProvider propertySourceProvider) {
	myParent = parent;
	myEObject = eObject;
	myPropertySourceProvider = propertySourceProvider;
}
 
源代码3 项目: bonita-studio   文件: ConstraintEditorFactory.java
public int openConstraintEditor(final Shell shell,
        final ContractConstraint constraint,
        final IPropertySourceProvider propertySourceProvider) {
    final ContractConstraintExpressionWizard wizard = createWizard(constraint, propertySourceProvider);
    final WizardDialog wizardDialog = new ConstraintEditorWizardDialog(Display.getDefault().getActiveShell(), wizard);
    return openDialog(wizardDialog);
}
 
public ContractConstraintExpressionDialogCellEditor(final Composite parent, final ContractConstraint constraint,
        final IPropertySourceProvider propertySourceProvider, final ConstraintEditorFactory factory) {
    super(parent);
    this.constraint = constraint;
    this.propertySourceProvider = propertySourceProvider;
    this.factory = factory;
}
 
public ContractConstraintExpressionWizard(final ContractConstraint constraint, final IPropertySourceProvider propertySourceProvider) {
    this.constraint = constraint;
    constraintWorkingCopy = EcoreUtil.copy(constraint);
    inputs = ModelHelper.getFirstContainerOfType(constraint, Contract.class).getInputs();
    this.propertySourceProvider = propertySourceProvider;
    setDefaultPageImageDescriptor(Pics.getWizban());
}
 
public ContractInputTypeEditingSupport(final ColumnViewer viewer, final IPropertySourceProvider propertySourceProvider,
        final ContractInputController controller, ContractInputRefactorOperationFactory refactorOperationFactory,
        IProgressService progressService,
        TransactionalEditingDomain.Factory transactionalEditingDomainFactory) {
    super(viewer, propertySourceProvider, ProcessPackage.Literals.CONTRACT_INPUT__TYPE.getName());
    this.controller = controller;
    this.contractInputRefactorOperationFactory = refactorOperationFactory;
    this.progressService = progressService;
    this.transactionalEditingDomainFactory = transactionalEditingDomainFactory;
}
 
源代码7 项目: scava   文件: CrossflowDomainNavigatorItem.java
/**
* @generated
*/
public IPropertySourceProvider getPropertySourceProvider() {
	return myPropertySourceProvider;
}
 
源代码8 项目: statecharts   文件: DomainNavigatorItem.java
public DomainNavigatorItem(EObject eObject, Object parent,
		IPropertySourceProvider propertySourceProvider) {
	myParent = parent;
	myEObject = eObject;
	myPropertySourceProvider = propertySourceProvider;
}
 
源代码9 项目: statecharts   文件: DomainNavigatorItem.java
public IPropertySourceProvider getPropertySourceProvider() {
	return myPropertySourceProvider;
}
 
public CustomPropertyColumnLabelProvider(final IPropertySourceProvider propertySourceProvider, final EStructuralFeature feature,
        final IObservableSet knowElements) {
    super(propertySourceProvider, feature.getName());
    this.knowElements = knowElements;
    this.feature = feature;
}
 
源代码11 项目: bonita-studio   文件: ConstraintEditorFactory.java
protected ContractConstraintExpressionWizard createWizard(final ContractConstraint constraint, final IPropertySourceProvider propertySourceProvider) {
    return new ContractConstraintExpressionWizard(constraint, propertySourceProvider);
}
 
public ConstraintDescriptionCellLabelProvider(final IPropertySourceProvider propertySourceProvider, final IObservableSet knownElements) {
    super(propertySourceProvider, ProcessPackage.Literals.CONTRACT_CONSTRAINT__DESCRIPTION, knownElements);
}
 
public ConstraintExpressionCellLabelProvider(final IPropertySourceProvider propertySourceProvider, final IObservableSet knowElements) {
    super(propertySourceProvider, ProcessPackage.Literals.CONTRACT_CONSTRAINT__EXPRESSION, knowElements);
}
 
public ConstraintErrorMessageCellLabelProvider(final IPropertySourceProvider propertySourceProvider, final IObservableSet knownElements) {
    super(propertySourceProvider, ProcessPackage.Literals.CONTRACT_CONSTRAINT__ERROR_MESSAGE, knownElements);
}
 
public ConstraintNameCellLabelProvider(final IPropertySourceProvider propertySourceProvider, final IObservableSet knownElements) {
    super(propertySourceProvider, ProcessPackage.Literals.CONTRACT_CONSTRAINT__NAME, knownElements);
}
 
public CheckboxPropertyEditingSupport(final IPropertySourceProvider sourceProvider, final ColumnViewer viewer, final String propertyID) {
    super(viewer, sourceProvider, propertyID);
}
 
源代码17 项目: bonita-studio   文件: InputNameCellLabelProvider.java
public InputNameCellLabelProvider(final IPropertySourceProvider propertySourceProvider, final IObservableSet knownElements) {
    super(propertySourceProvider, ProcessPackage.Literals.CONTRACT_INPUT__NAME, knownElements);
}
 
public DescriptionCellLabelProvider(final IPropertySourceProvider propertySourceProvider, final IObservableSet knownElements) {
    super(propertySourceProvider, ProcessPackage.Literals.CONTRACT_INPUT__DESCRIPTION, knownElements);
}
 
@Before
public void setUp() throws Exception {
    composite = realm.createComposite();
    doReturn(wizard).when(factory).createWizard(any(ContractConstraint.class), any(IPropertySourceProvider.class));
    doReturn(Dialog.OK).when(factory).openDialog(any(WizardDialog.class));
}
 
 类所在包
 同包方法