ComponentEditorInput componentEditorInput = ((ComponentEditorPart)workbenchPart).getComponentEditorInput();
ComponentEditor componentEditor = (ComponentEditor)workbenchPart; ComponentEditorInput componentEditorInput = componentEditor.getComponentEditorInput();
	public boolean matches(IEditorReference editorReference,			IEditorInput editorInput) {		String editorID = editorReference.getId();		if(editorID == null) {			return false;		}		if(!editorID.equals(ComponenteditorPlugin.ComponentEditorID)) {			return false;		}		if (!(editorInput instanceof FileEditorInput)) {			return false;		}		IFile inputFile = ResourceUtil.getFile(editorInput);		if (inputFile == null) {			return false;		}		String extension = inputFile.getFileExtension();		if (extension == null) {			return false;		}		if (!("java".equalsIgnoreCase(extension)				|| "wod".equalsIgnoreCase(extension)				|| "html".equalsIgnoreCase(extension)				|| "woo".equalsIgnoreCase(extension)				|| "api".equalsIgnoreCase(extension) || "tiff"				.equalsIgnoreCase(extension))) {			return false;		}//		IEditorInput editorReferenceEditorInput = null;		//expensive: call it as late as possible		IWorkbenchPart workbenchPart = editorReference.getPart(true);		if(workbenchPart == null) {			return false;		}		ComponentEditorInput componentEditorInput = ((ComponentEditorPart)workbenchPart).getComponentEditorInput();//		if(editorReferenceEditorInput == null) {//			return false;//		}//		if(!(editorReferenceEditorInput instanceof ComponentEditorInput)) {//			return false;//		}//		ComponentEditorInput componentEditorInput = (ComponentEditorInput)editorReferenceEditorInput;		IEditorInput[] editorInputArray = componentEditorInput.getInput();		for (int i = 0; i < editorInputArray.length; i++) {			IFile inputFileFromEditor = ResourceUtil.getFile(editorInputArray[i]);			if(inputFileFromEditor == null) {				continue;			}			if(inputFileFromEditor.equals(inputFile)) {				return true;			}					}		return false;	}