本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}