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


Java IStructuredSelection.iterator方法代码示例

本文整理汇总了Java中org.eclipse.jface.viewers.IStructuredSelection.iterator方法的典型用法代码示例。如果您正苦于以下问题:Java IStructuredSelection.iterator方法的具体用法?Java IStructuredSelection.iterator怎么用?Java IStructuredSelection.iterator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jface.viewers.IStructuredSelection的用法示例。


在下文中一共展示了IStructuredSelection.iterator方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addWriteServices

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addWriteServices() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(writeServices.getInput(),
			writeServicesFilters, writeServicesBusinessFilters, "writeServices",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
						OtherPropertiesEditionPartForm.this, SrmViewsRepository.Other.Properties.writeServices,
						PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			writeServices.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:OtherPropertiesEditionPartForm.java

示例2: addAccessTokenElements

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addAccessTokenElements() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(accessTokenElements.getInput(),
			accessTokenElementsFilters, accessTokenElementsBusinessFilters, "accessTokenElements",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(TimingPropertiesEditionPartImpl.this,
								SrmViewsRepository.Timing.Properties.accessTokenElements,
								PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			accessTokenElements.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:22,代码来源:TimingPropertiesEditionPartImpl.java

示例3: addUnmapServices

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addUnmapServices() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(unmapServices.getInput(),
			unmapServicesFilters, unmapServicesBusinessFilters, "unmapServices",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
						OtherPropertiesEditionPartForm.this, SrmViewsRepository.Other.Properties.unmapServices,
						PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			unmapServices.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:OtherPropertiesEditionPartForm.java

示例4: addSuspendServices

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addSuspendServices() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(suspendServices.getInput(),
			suspendServicesFilters, suspendServicesBusinessFilters, "suspendServices",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
						OtherPropertiesEditionPartImpl.this, SrmViewsRepository.Other.Properties.suspendServices,
						PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			suspendServices.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:OtherPropertiesEditionPartImpl.java

示例5: addUnmapServices

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addUnmapServices() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(unmapServices.getInput(),
			unmapServicesFilters, unmapServicesBusinessFilters, "unmapServices",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
						OtherPropertiesEditionPartImpl.this, SrmViewsRepository.Other.Properties.unmapServices,
						PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			unmapServices.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:OtherPropertiesEditionPartImpl.java

示例6: addTerminateServices

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addTerminateServices() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(terminateServices.getInput(),
			terminateServicesFilters, terminateServicesBusinessFilters, "terminateServices",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
						OtherPropertiesEditionPartForm.this, SrmViewsRepository.Other.Properties.terminateServices,
						PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			terminateServices.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:OtherPropertiesEditionPartForm.java

示例7: addMutualExclusionResources

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addMutualExclusionResources() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(mutualExclusionResources.getInput(),
			mutualExclusionResourcesFilters, mutualExclusionResourcesBusinessFilters, "mutualExclusionResources",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(TimingPropertiesEditionPartImpl.this,
								SrmViewsRepository.Timing.Properties.mutualExclusionResources,
								PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			mutualExclusionResources.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:22,代码来源:TimingPropertiesEditionPartImpl.java

示例8: addMemories

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addMemories() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(memories.getInput(), memoriesFilters,
			memoriesBusinessFilters, "memories", propertiesEditionComponent.getEditingContext().getAdapterFactory(),
			current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
						GeneralPropertiesEditionPartForm.this, SrmViewsRepository.General.Properties.memories,
						PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			memories.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:GeneralPropertiesEditionPartForm.java

示例9: addRInterface

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addRInterface() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(rInterface.getInput(),
			rInterfaceFilters, rInterfaceBusinessFilters, "rInterface",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
						OtherPropertiesEditionPartImpl.this, SrmViewsRepository.Other.Properties.rInterface,
						PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			rInterface.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:OtherPropertiesEditionPartImpl.java

示例10: addRInterface

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addRInterface() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(rInterface.getInput(), rInterfaceFilters, rInterfaceBusinessFilters,
	"rInterface", propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(OtherPropertiesEditionPartImpl.this, GrmViewsRepository.Other.OtherProperties.rInterface,
					PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			rInterface.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:OtherPropertiesEditionPartImpl.java

示例11: addPInterface

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addPInterface() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(pInterface.getInput(),
			pInterfaceFilters, pInterfaceBusinessFilters, "pInterface",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
						OtherPropertiesEditionPartImpl.this, HrmViewsRepository.Other.Properties.pInterface,
						PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			pInterface.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:OtherPropertiesEditionPartImpl.java

示例12: addProcessingUnits

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addProcessingUnits() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(processingUnits.getInput(),
			processingUnitsFilters, processingUnitsBusinessFilters, "processingUnits",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartImpl.this,
								GrmViewsRepository.General.Properties.processingUnits,
								PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			processingUnits.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:22,代码来源:GeneralPropertiesEditionPartImpl.java

示例13: addForkServices

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addForkServices() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(forkServices.getInput(),
			forkServicesFilters, forkServicesBusinessFilters, "forkServices",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
						OtherPropertiesEditionPartForm.this, SrmViewsRepository.Other.Properties.forkServices,
						PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			forkServices.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:OtherPropertiesEditionPartForm.java

示例14: addSucces

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addSucces() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(succes.getInput(), succesFilters,
			succesBusinessFilters, "succes", propertiesEditionComponent.getEditingContext().getAdapterFactory(),
			current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
						GeneralPropertiesEditionPartForm.this, GqamViewsRepository.General.Properties.succes,
						PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			succes.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:GeneralPropertiesEditionPartForm.java

示例15: addVirtualProcessingUnit

import org.eclipse.jface.viewers.IStructuredSelection; //导入方法依赖的package包/类
/**
 * 
 */
protected void addVirtualProcessingUnit() {
	TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(virtualProcessingUnit.getInput(),
			virtualProcessingUnitFilters, virtualProcessingUnitBusinessFilters, "virtualProcessingUnit",
			propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) {
		@Override
		public void process(IStructuredSelection selection) {
			for (Iterator<?> iter = selection.iterator(); iter.hasNext();) {
				EObject elem = (EObject) iter.next();
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartForm.this,
								GrmViewsRepository.General.Properties.virtualProcessingUnit,
								PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
			}
			virtualProcessingUnit.refresh();
		}
	};
	dialog.open();
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:22,代码来源:GeneralPropertiesEditionPartForm.java


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