本文整理汇总了Java中org.eclipse.xtext.resource.IResourceDescription.Event方法的典型用法代码示例。如果您正苦于以下问题:Java IResourceDescription.Event方法的具体用法?Java IResourceDescription.Event怎么用?Java IResourceDescription.Event使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.xtext.resource.IResourceDescription
的用法示例。
在下文中一共展示了IResourceDescription.Event方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: scheduleUpdateEditorJob
import org.eclipse.xtext.resource.IResourceDescription; //导入方法依赖的package包/类
@Override
public void scheduleUpdateEditorJob(final IResourceDescription.Event event) {
N4JSUpdateEditorStateJob job = updateEditorStateJob;
if (job == null) {
job = createUpdateEditorJob();
updateEditorStateJob = job;
}
job.scheduleFor(event);
}
示例2: notifyListeners
import org.eclipse.xtext.resource.IResourceDescription; //导入方法依赖的package包/类
/**
* @since 2.5
*/
@Override
public void notifyListeners(IResourceDescription.Event event) {
if (event == null)
throw new IllegalArgumentException("event may not be null");
for(IResourceDescription.Event.Listener listener: listenerList) {
listener.descriptionsChanged(event);
}
}
示例3: descriptionsChanged
import org.eclipse.xtext.resource.IResourceDescription; //导入方法依赖的package包/类
@Override
public void descriptionsChanged(IResourceDescription.Event event) {
if (uriToDescription != null) {
for(IResourceDescription.Delta delta: event.getDeltas()) {
URI uri = delta.getUri();
if (hasResourceDescription(uri) || uriToDescription.get(uri) != null) {
if (delta.getNew() != null)
uriToDescription.put(uri, delta.getNew());
else
uriToDescription.remove(uri);
}
}
}
}
示例4: descriptionsChanged
import org.eclipse.xtext.resource.IResourceDescription; //导入方法依赖的package包/类
@Override
public void descriptionsChanged(final IResourceDescription.Event event) {
for (Delta delta : event.getDeltas()) {
IResourceDescription newDesc = delta.getNew();
if (newDesc == null) {
dirtyResources.remove(delta.getUri());
} else {
dirtyResources.add(delta.getUri());
}
}
dirtyDescriptionsChanged(event);
}
示例5: scheduleFor
import org.eclipse.xtext.resource.IResourceDescription; //导入方法依赖的package包/类
@Override
protected void scheduleFor(IResourceDescription.Event event) {
super.scheduleFor(event);
}