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


Java NotificationFilter类代码示例

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


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

示例1: createEditingDomain

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
 * @generated
 */
private TransactionalEditingDomain createEditingDomain() {
	TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory
			.getInstance().createEditingDomain();
	editingDomain
			.setID("org.xtext.example.statemachine.diagram.EditingDomain"); //$NON-NLS-1$
	final NotificationFilter diagramResourceModifiedFilter = NotificationFilter
			.createNotifierFilter(editingDomain.getResourceSet())
			.and(NotificationFilter.createEventTypeFilter(Notification.ADD))
			.and(NotificationFilter.createFeatureFilter(ResourceSet.class,
					ResourceSet.RESOURCE_SET__RESOURCES));
	editingDomain.getResourceSet().eAdapters().add(new Adapter() {

		private Notifier myTarger;

		public Notifier getTarget() {
			return myTarger;
		}

		public boolean isAdapterForType(Object type) {
			return false;
		}

		public void notifyChanged(Notification notification) {
			if (diagramResourceModifiedFilter.matches(notification)) {
				Object value = notification.getNewValue();
				if (value instanceof Resource) {
					((Resource) value).setTrackingModification(true);
				}
			}
		}

		public void setTarget(Notifier newTarget) {
			myTarger = newTarget;
		}

	});

	return editingDomain;
}
 
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:43,代码来源:StatemachineDocumentProvider.java

示例2: ResourceSetModificationListener

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
 * @generated
 */
public ResourceSetModificationListener(ResourceSetInfo info) {
	myInfo = info;
	myModifiedFilter = NotificationFilter
			.createEventTypeFilter(Notification.SET)
			.or(NotificationFilter
					.createEventTypeFilter(Notification.UNSET))
			.and(NotificationFilter.createFeatureFilter(Resource.class,
					Resource.RESOURCE__IS_MODIFIED));
}
 
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:13,代码来源:StatemachineDocumentProvider.java

示例3: ResourceSetModificationListener

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
 * @generated
 */
public ResourceSetModificationListener(ResourceSetInfo info) {
	myInfo = info;
	myModifiedFilter = NotificationFilter.createEventTypeFilter(
			Notification.SET).or(
			NotificationFilter
					.createEventTypeFilter(Notification.UNSET)).and(
			NotificationFilter.createFeatureFilter(Resource.class,
					Resource.RESOURCE__IS_MODIFIED));
}
 
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:13,代码来源:SmcDocumentProvider.java

示例4: createEditingDomain

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
 * @generated
 */
private TransactionalEditingDomain createEditingDomain() {
	TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory
			.getInstance().createEditingDomain();
	editingDomain.setID("edu.thu.ggxx.hellobrazil.diagram.EditingDomain"); //$NON-NLS-1$
	final NotificationFilter diagramResourceModifiedFilter = NotificationFilter
			.createNotifierFilter(editingDomain.getResourceSet())
			.and(NotificationFilter.createEventTypeFilter(Notification.ADD))
			.and(NotificationFilter.createFeatureFilter(ResourceSet.class,
					ResourceSet.RESOURCE_SET__RESOURCES));
	editingDomain.getResourceSet().eAdapters().add(new Adapter() {

		private Notifier myTarger;

		public Notifier getTarget() {
			return myTarger;
		}

		public boolean isAdapterForType(Object type) {
			return false;
		}

		public void notifyChanged(Notification notification) {
			if (diagramResourceModifiedFilter.matches(notification)) {
				Object value = notification.getNewValue();
				if (value instanceof Resource) {
					((Resource) value).setTrackingModification(true);
				}
			}
		}

		public void setTarget(Notifier newTarget) {
			myTarger = newTarget;
		}

	});

	return editingDomain;
}
 
开发者ID:ggxx,项目名称:HelloBrazil,代码行数:42,代码来源:Wc2014DocumentProvider.java

示例5: createEditingDomain

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
 * @generated
 */
private TransactionalEditingDomain createEditingDomain() {
	TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory
			.getInstance().createEditingDomain();
	editingDomain
			.setID("org.eclipse.epsilon.eugenia.bpmn.diagram.EditingDomain"); //$NON-NLS-1$
	final NotificationFilter diagramResourceModifiedFilter = NotificationFilter
			.createNotifierFilter(editingDomain.getResourceSet())
			.and(NotificationFilter.createEventTypeFilter(Notification.ADD))
			.and(NotificationFilter.createFeatureFilter(ResourceSet.class,
					ResourceSet.RESOURCE_SET__RESOURCES));
	editingDomain.getResourceSet().eAdapters().add(new Adapter() {

		private Notifier myTarger;

		public Notifier getTarget() {
			return myTarger;
		}

		public boolean isAdapterForType(Object type) {
			return false;
		}

		public void notifyChanged(Notification notification) {
			if (diagramResourceModifiedFilter.matches(notification)) {
				Object value = notification.getNewValue();
				if (value instanceof Resource) {
					((Resource) value).setTrackingModification(true);
				}
			}
		}

		public void setTarget(Notifier newTarget) {
			myTarger = newTarget;
		}

	});

	return editingDomain;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:43,代码来源:SimpleBPMNDocumentProvider.java

示例6: createEditingDomain

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
* @generated
*/
private TransactionalEditingDomain createEditingDomain() {
	TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory.getInstance().createEditingDomain();
	editingDomain.setID("edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.EditingDomain"); //$NON-NLS-1$
	final NotificationFilter diagramResourceModifiedFilter = NotificationFilter
			.createNotifierFilter(editingDomain.getResourceSet())
			.and(NotificationFilter.createEventTypeFilter(Notification.ADD))
			.and(NotificationFilter.createFeatureFilter(ResourceSet.class, ResourceSet.RESOURCE_SET__RESOURCES));
	editingDomain.getResourceSet().eAdapters().add(new Adapter() {

		private Notifier myTarger;

		public Notifier getTarget() {
			return myTarger;
		}

		public boolean isAdapterForType(Object type) {
			return false;
		}

		public void notifyChanged(Notification notification) {
			if (diagramResourceModifiedFilter.matches(notification)) {
				Object value = notification.getNewValue();
				if (value instanceof Resource) {
					((Resource) value).setTrackingModification(true);
				}
			}
		}

		public void setTarget(Notifier newTarget) {
			myTarger = newTarget;
		}

	});

	return editingDomain;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:40,代码来源:ICSE15_SequenceDiagram_MAVODocumentProvider.java

示例7: ResourceSetModificationListener

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
* @generated
*/
public ResourceSetModificationListener(ResourceSetInfo info) {
	myInfo = info;
	myModifiedFilter = NotificationFilter.createEventTypeFilter(Notification.SET)
			.or(NotificationFilter.createEventTypeFilter(Notification.UNSET))
			.and(NotificationFilter.createFeatureFilter(Resource.class, Resource.RESOURCE__IS_MODIFIED));
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:10,代码来源:ICSE15_SequenceDiagram_MAVODocumentProvider.java

示例8: createEditingDomain

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
 * @generated
 */
private TransactionalEditingDomain createEditingDomain() {
	TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory
			.getInstance().createEditingDomain();
	editingDomain
			.setID("edu.toronto.cs.se.modelepedia.necsis14_classdiagram.diagram.EditingDomain"); //$NON-NLS-1$
	final NotificationFilter diagramResourceModifiedFilter = NotificationFilter
			.createNotifierFilter(editingDomain.getResourceSet())
			.and(NotificationFilter.createEventTypeFilter(Notification.ADD))
			.and(NotificationFilter.createFeatureFilter(ResourceSet.class,
					ResourceSet.RESOURCE_SET__RESOURCES));
	editingDomain.getResourceSet().eAdapters().add(new Adapter() {

		private Notifier myTarger;

		public Notifier getTarget() {
			return myTarger;
		}

		public boolean isAdapterForType(Object type) {
			return false;
		}

		public void notifyChanged(Notification notification) {
			if (diagramResourceModifiedFilter.matches(notification)) {
				Object value = notification.getNewValue();
				if (value instanceof Resource) {
					((Resource) value).setTrackingModification(true);
				}
			}
		}

		public void setTarget(Notifier newTarget) {
			myTarger = newTarget;
		}

	});

	return editingDomain;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:43,代码来源:NECSIS14_ClassDiagramDocumentProvider.java

示例9: createEditingDomain

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
 * @generated
 */
private TransactionalEditingDomain createEditingDomain() {
	TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory
			.getInstance().createEditingDomain();
	editingDomain
			.setID("edu.toronto.cs.se.modelepedia.necsis14_databaseschema.diagram.EditingDomain"); //$NON-NLS-1$
	final NotificationFilter diagramResourceModifiedFilter = NotificationFilter
			.createNotifierFilter(editingDomain.getResourceSet())
			.and(NotificationFilter.createEventTypeFilter(Notification.ADD))
			.and(NotificationFilter.createFeatureFilter(ResourceSet.class,
					ResourceSet.RESOURCE_SET__RESOURCES));
	editingDomain.getResourceSet().eAdapters().add(new Adapter() {

		private Notifier myTarger;

		public Notifier getTarget() {
			return myTarger;
		}

		public boolean isAdapterForType(Object type) {
			return false;
		}

		public void notifyChanged(Notification notification) {
			if (diagramResourceModifiedFilter.matches(notification)) {
				Object value = notification.getNewValue();
				if (value instanceof Resource) {
					((Resource) value).setTrackingModification(true);
				}
			}
		}

		public void setTarget(Notifier newTarget) {
			myTarger = newTarget;
		}

	});

	return editingDomain;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:43,代码来源:NECSIS14_DatabaseSchemaDocumentProvider.java

示例10: createEditingDomain

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
 * @generated
 */
private TransactionalEditingDomain createEditingDomain() {
	TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory.getInstance().createEditingDomain();
	editingDomain.setID("edu.toronto.cs.se.mmint.diagram.EditingDomain"); //$NON-NLS-1$
	final NotificationFilter diagramResourceModifiedFilter = NotificationFilter
		.createNotifierFilter(editingDomain.getResourceSet())
		.and(NotificationFilter.createEventTypeFilter(Notification.ADD))
		.and(NotificationFilter.createFeatureFilter(ResourceSet.class, ResourceSet.RESOURCE_SET__RESOURCES));
	editingDomain.getResourceSet().eAdapters().add(new Adapter() {

		private Notifier myTarger;

		public Notifier getTarget() {
			return myTarger;
		}

		public boolean isAdapterForType(Object type) {
			return false;
		}

		public void notifyChanged(Notification notification) {
			if (diagramResourceModifiedFilter.matches(notification)) {
				Object value = notification.getNewValue();
				if (value instanceof Resource) {
					((Resource) value).setTrackingModification(true);
				}
			}
		}

		public void setTarget(Notifier newTarget) {
			myTarger = newTarget;
		}

	});

	return editingDomain;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:40,代码来源:MIDDocumentProvider.java

示例11: ResourceSetModificationListener

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
 * @generated
 */
public ResourceSetModificationListener(ResourceSetInfo info) {
	myInfo = info;
	myModifiedFilter = NotificationFilter
		.createEventTypeFilter(Notification.SET)
		.or(NotificationFilter.createEventTypeFilter(Notification.UNSET))
		.and(NotificationFilter.createFeatureFilter(Resource.class, Resource.RESOURCE__IS_MODIFIED));
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:11,代码来源:MIDDocumentProvider.java

示例12: createEditingDomain

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
* @generated
*/
private TransactionalEditingDomain createEditingDomain() {
	TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory.getInstance().createEditingDomain();
	editingDomain.setID("edu.toronto.cs.se.mmint.relationship.diagram.EditingDomain"); //$NON-NLS-1$
	final NotificationFilter diagramResourceModifiedFilter = NotificationFilter
			.createNotifierFilter(editingDomain.getResourceSet())
			.and(NotificationFilter.createEventTypeFilter(Notification.ADD))
			.and(NotificationFilter.createFeatureFilter(ResourceSet.class, ResourceSet.RESOURCE_SET__RESOURCES));
	editingDomain.getResourceSet().eAdapters().add(new Adapter() {

		private Notifier myTarger;

		public Notifier getTarget() {
			return myTarger;
		}

		public boolean isAdapterForType(Object type) {
			return false;
		}

		public void notifyChanged(Notification notification) {
			if (diagramResourceModifiedFilter.matches(notification)) {
				Object value = notification.getNewValue();
				if (value instanceof Resource) {
					((Resource) value).setTrackingModification(true);
				}
			}
		}

		public void setTarget(Notifier newTarget) {
			myTarger = newTarget;
		}

	});

	return editingDomain;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:40,代码来源:MIDDocumentProvider.java

示例13: createEditingDomain

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
* @generated
*/
private TransactionalEditingDomain createEditingDomain() {
	TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory.getInstance().createEditingDomain();
	editingDomain.setID("edu.toronto.cs.se.modelepedia.relationaldatabase_mavo.diagram.EditingDomain"); //$NON-NLS-1$
	final NotificationFilter diagramResourceModifiedFilter = NotificationFilter
			.createNotifierFilter(editingDomain.getResourceSet())
			.and(NotificationFilter.createEventTypeFilter(Notification.ADD))
			.and(NotificationFilter.createFeatureFilter(ResourceSet.class, ResourceSet.RESOURCE_SET__RESOURCES));
	editingDomain.getResourceSet().eAdapters().add(new Adapter() {

		private Notifier myTarger;

		public Notifier getTarget() {
			return myTarger;
		}

		public boolean isAdapterForType(Object type) {
			return false;
		}

		public void notifyChanged(Notification notification) {
			if (diagramResourceModifiedFilter.matches(notification)) {
				Object value = notification.getNewValue();
				if (value instanceof Resource) {
					((Resource) value).setTrackingModification(true);
				}
			}
		}

		public void setTarget(Notifier newTarget) {
			myTarger = newTarget;
		}

	});

	return editingDomain;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:40,代码来源:RelationalDatabase_MAVODocumentProvider.java

示例14: createEditingDomain

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
 * @generated
 */
private TransactionalEditingDomain createEditingDomain() {
	TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory
			.getInstance().createEditingDomain();
	editingDomain
			.setID("edu.toronto.cs.se.modelepedia.relationaldatabase.diagram.EditingDomain"); //$NON-NLS-1$
	final NotificationFilter diagramResourceModifiedFilter = NotificationFilter
			.createNotifierFilter(editingDomain.getResourceSet())
			.and(NotificationFilter.createEventTypeFilter(Notification.ADD))
			.and(NotificationFilter.createFeatureFilter(ResourceSet.class,
					ResourceSet.RESOURCE_SET__RESOURCES));
	editingDomain.getResourceSet().eAdapters().add(new Adapter() {

		private Notifier myTarger;

		public Notifier getTarget() {
			return myTarger;
		}

		public boolean isAdapterForType(Object type) {
			return false;
		}

		public void notifyChanged(Notification notification) {
			if (diagramResourceModifiedFilter.matches(notification)) {
				Object value = notification.getNewValue();
				if (value instanceof Resource) {
					((Resource) value).setTrackingModification(true);
				}
			}
		}

		public void setTarget(Notifier newTarget) {
			myTarger = newTarget;
		}

	});

	return editingDomain;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:43,代码来源:RelationalDatabaseDocumentProvider.java

示例15: createEditingDomain

import org.eclipse.emf.transaction.NotificationFilter; //导入依赖的package包/类
/**
* @generated
*/
private TransactionalEditingDomain createEditingDomain() {
	TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory.getInstance().createEditingDomain();
	editingDomain.setID("edu.toronto.cs.se.modelepedia.istar_mavo.diagram.EditingDomain"); //$NON-NLS-1$
	final NotificationFilter diagramResourceModifiedFilter = NotificationFilter
			.createNotifierFilter(editingDomain.getResourceSet())
			.and(NotificationFilter.createEventTypeFilter(Notification.ADD))
			.and(NotificationFilter.createFeatureFilter(ResourceSet.class, ResourceSet.RESOURCE_SET__RESOURCES));
	editingDomain.getResourceSet().eAdapters().add(new Adapter() {

		private Notifier myTarger;

		public Notifier getTarget() {
			return myTarger;
		}

		public boolean isAdapterForType(Object type) {
			return false;
		}

		public void notifyChanged(Notification notification) {
			if (diagramResourceModifiedFilter.matches(notification)) {
				Object value = notification.getNewValue();
				if (value instanceof Resource) {
					((Resource) value).setTrackingModification(true);
				}
			}
		}

		public void setTarget(Notifier newTarget) {
			myTarger = newTarget;
		}

	});

	return editingDomain;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:40,代码来源:IStar_MAVODocumentProvider.java


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