當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。