IResourceRuleFactory ruleFactory= ResourcesPlugin.getWorkspace().getRuleFactory(); if (file == null || !file.exists()) return ruleFactory.createRule(file); else return ruleFactory.modifyRule(file);
return computeSchedulingRule(file);
				public ISchedulingRule getSchedulingRule() {					if (info.fElement instanceof IFileEditorInput) {						IFile file= ((IFileEditorInput) info.fElement).getFile();						IResourceRuleFactory ruleFactory= ResourcesPlugin.getWorkspace().getRuleFactory();						if (file == null || !file.exists())							return ruleFactory.createRule(file);						else							return ruleFactory.modifyRule(file);					} else						return null;				}