当前位置: 首页>>代码示例>>Java>>正文


Java PartComposer类代码示例

本文整理汇总了Java中org.eclipse.emf.eef.runtime.ui.parts.PartComposer的典型用法代码示例。如果您正苦于以下问题:Java PartComposer类的具体用法?Java PartComposer怎么用?Java PartComposer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PartComposer类属于org.eclipse.emf.eef.runtime.ui.parts包,在下文中一共展示了PartComposer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence poissonStep = new BindingCompositionSequence(propertiesEditionComponent);
	poissonStep
		.addStep(MetamodelViewsRepository.Poisson.Properties.class)
		.addStep(MetamodelViewsRepository.Poisson.Properties.interval);
	
	
	composer = new PartComposer(poissonStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.Poisson.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Poisson.Properties.interval) {
				return createIntervalText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:30,代码来源:PoissonPropertiesEditionPartForm.java

示例2: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence studentsTStep = new BindingCompositionSequence(propertiesEditionComponent);
	studentsTStep
		.addStep(MetamodelViewsRepository.StudentsT.Properties.class)
		.addStep(MetamodelViewsRepository.StudentsT.Properties.degreeOfFreedom);
	
	
	composer = new PartComposer(studentsTStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.StudentsT.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.StudentsT.Properties.degreeOfFreedom) {
				return createDegreeOfFreedomText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:30,代码来源:StudentsTPropertiesEditionPartForm.java

示例3: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence weibullStep = new BindingCompositionSequence(propertiesEditionComponent);
	CompositionStep propertiesStep = weibullStep.addStep(MetamodelViewsRepository.Weibull.Properties.class);
	propertiesStep.addStep(MetamodelViewsRepository.Weibull.Properties.shape);
	propertiesStep.addStep(MetamodelViewsRepository.Weibull.Properties.scale);
	
	
	composer = new PartComposer(weibullStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.Weibull.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Weibull.Properties.shape) {
				return createShapeText(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Weibull.Properties.scale) {
				return createScaleText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:33,代码来源:WeibullPropertiesEditionPartForm.java

示例4: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence uniformStep = new BindingCompositionSequence(propertiesEditionComponent);
	CompositionStep propertiesStep = uniformStep.addStep(MetamodelViewsRepository.Uniform.Properties.class);
	propertiesStep.addStep(MetamodelViewsRepository.Uniform.Properties.minimum);
	propertiesStep.addStep(MetamodelViewsRepository.Uniform.Properties.maximum);
	
	
	composer = new PartComposer(uniformStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.Uniform.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Uniform.Properties.minimum) {
				return createMinimumText(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Uniform.Properties.maximum) {
				return createMaximumText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:33,代码来源:UniformPropertiesEditionPartForm.java

示例5: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence diracDeltaStep = new BindingCompositionSequence(propertiesEditionComponent);
	diracDeltaStep
		.addStep(MetamodelViewsRepository.DiracDelta.Properties.class)
		.addStep(MetamodelViewsRepository.DiracDelta.Properties.mean);
	
	
	composer = new PartComposer(diracDeltaStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.DiracDelta.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.DiracDelta.Properties.mean) {
				return createMeanText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:30,代码来源:DiracDeltaPropertiesEditionPartForm.java

示例6: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence scalarStep = new BindingCompositionSequence(propertiesEditionComponent);
	scalarStep
		.addStep(MetamodelViewsRepository.Scalar.Properties.class)
		.addStep(MetamodelViewsRepository.Scalar.Properties.value);
	
	
	composer = new PartComposer(scalarStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.Scalar.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Scalar.Properties.value) {
				return createValueText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:30,代码来源:ScalarPropertiesEditionPartForm.java

示例7: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence binomialStep = new BindingCompositionSequence(propertiesEditionComponent);
	CompositionStep propertiesStep = binomialStep.addStep(MetamodelViewsRepository.Binomial.Properties.class);
	propertiesStep.addStep(MetamodelViewsRepository.Binomial.Properties.nbrOfTrial);
	propertiesStep.addStep(MetamodelViewsRepository.Binomial.Properties.probaOfSuccess);
	
	
	composer = new PartComposer(binomialStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.Binomial.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Binomial.Properties.nbrOfTrial) {
				return createNbrOfTrialText(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Binomial.Properties.probaOfSuccess) {
				return createProbaOfSuccessText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:33,代码来源:BinomialPropertiesEditionPartForm.java

示例8: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence exponentialStep = new BindingCompositionSequence(propertiesEditionComponent);
	exponentialStep
		.addStep(MetamodelViewsRepository.Exponential.Properties.class)
		.addStep(MetamodelViewsRepository.Exponential.Properties.scale);
	
	
	composer = new PartComposer(exponentialStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.Exponential.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Exponential.Properties.scale) {
				return createScaleText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:30,代码来源:ExponentialPropertiesEditionPartForm.java

示例9: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence fDistributionStep = new BindingCompositionSequence(propertiesEditionComponent);
	CompositionStep propertiesStep = fDistributionStep.addStep(MetamodelViewsRepository.FDistribution.Properties.class);
	propertiesStep.addStep(MetamodelViewsRepository.FDistribution.Properties.freedomDegreeA);
	propertiesStep.addStep(MetamodelViewsRepository.FDistribution.Properties.freedomDegreeB);
	
	
	composer = new PartComposer(fDistributionStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.FDistribution.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.FDistribution.Properties.freedomDegreeA) {
				return createFreedomDegreeAText(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.FDistribution.Properties.freedomDegreeB) {
				return createFreedomDegreeBText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:33,代码来源:FDistributionPropertiesEditionPartForm.java

示例10: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence paretoStep = new BindingCompositionSequence(propertiesEditionComponent);
	CompositionStep propertiesStep = paretoStep.addStep(MetamodelViewsRepository.Pareto.Properties.class);
	propertiesStep.addStep(MetamodelViewsRepository.Pareto.Properties.shape);
	propertiesStep.addStep(MetamodelViewsRepository.Pareto.Properties.scale);
	
	
	composer = new PartComposer(paretoStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.Pareto.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Pareto.Properties.shape) {
				return createShapeText(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Pareto.Properties.scale) {
				return createScaleText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:33,代码来源:ParetoPropertiesEditionPartForm.java

示例11: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence queryStep = new BindingCompositionSequence(propertiesEditionComponent);
	CompositionStep propertiesStep = queryStep.addStep(MetamodelViewsRepository.Query.Properties.class);
	propertiesStep.addStep(MetamodelViewsRepository.Query.Properties.name);
	propertiesStep.addStep(MetamodelViewsRepository.Query.Properties.value);
	
	
	composer = new PartComposer(queryStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.Query.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Query.Properties.name) {
				return createNameText(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Query.Properties.value) {
				return createValueTextarea(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:33,代码来源:QueryPropertiesEditionPartForm.java

示例12: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence gaussianStep = new BindingCompositionSequence(propertiesEditionComponent);
	CompositionStep propertiesStep = gaussianStep.addStep(MetamodelViewsRepository.Gaussian.Properties.class);
	propertiesStep.addStep(MetamodelViewsRepository.Gaussian.Properties.location);
	propertiesStep.addStep(MetamodelViewsRepository.Gaussian.Properties.scale);
	
	
	composer = new PartComposer(gaussianStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.Gaussian.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Gaussian.Properties.location) {
				return createLocationText(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Gaussian.Properties.scale) {
				return createScaleText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:33,代码来源:GaussianPropertiesEditionPartForm.java

示例13: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(final FormToolkit widgetFactory, Composite view) {
	CompositionSequence gammaStep = new BindingCompositionSequence(propertiesEditionComponent);
	gammaStep
		.addStep(MetamodelViewsRepository.Gamma.Properties.class)
		.addStep(MetamodelViewsRepository.Gamma.Properties.shape);
	
	
	composer = new PartComposer(gammaStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.Gamma.Properties.class) {
				return createPropertiesGroup(widgetFactory, parent);
			}
			if (key == MetamodelViewsRepository.Gamma.Properties.shape) {
				return createShapeText(widgetFactory, parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:30,代码来源:GammaPropertiesEditionPartForm.java

示例14: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart#
 * 			createControls(org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(Composite view) { 
	CompositionSequence studentsTStep = new BindingCompositionSequence(propertiesEditionComponent);
	studentsTStep
		.addStep(MetamodelViewsRepository.StudentsT.Properties.class)
		.addStep(MetamodelViewsRepository.StudentsT.Properties.degreeOfFreedom);
	
	
	composer = new PartComposer(studentsTStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.StudentsT.Properties.class) {
				return createPropertiesGroup(parent);
			}
			if (key == MetamodelViewsRepository.StudentsT.Properties.degreeOfFreedom) {
				return createDegreeOfFreedomText(parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:30,代码来源:StudentsTPropertiesEditionPartImpl.java

示例15: createControls

import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart#
 * 			createControls(org.eclipse.swt.widgets.Composite)
 * 
 */
public void createControls(Composite view) { 
	CompositionSequence betaStep = new BindingCompositionSequence(propertiesEditionComponent);
	CompositionStep propertiesStep = betaStep.addStep(MetamodelViewsRepository.Beta.Properties.class);
	propertiesStep.addStep(MetamodelViewsRepository.Beta.Properties.freedomDegreeA);
	propertiesStep.addStep(MetamodelViewsRepository.Beta.Properties.freedomDegreeB);
	
	
	composer = new PartComposer(betaStep) {

		@Override
		public Composite addToPart(Composite parent, Object key) {
			if (key == MetamodelViewsRepository.Beta.Properties.class) {
				return createPropertiesGroup(parent);
			}
			if (key == MetamodelViewsRepository.Beta.Properties.freedomDegreeA) {
				return createFreedomDegreeAText(parent);
			}
			if (key == MetamodelViewsRepository.Beta.Properties.freedomDegreeB) {
				return createFreedomDegreeBText(parent);
			}
			return parent;
		}
	};
	composer.compose(view);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:33,代码来源:BetaPropertiesEditionPartImpl.java


注:本文中的org.eclipse.emf.eef.runtime.ui.parts.PartComposer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。