if(!editorID.equals(ComponenteditorPlugin.ComponentEditorID)) {
if(!editorID.equals(EditorsPlugin.ComponentEditorID)) {
	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 ComponentEditorInput) {			IWorkbenchPart workbenchPart = editorReference.getPart(true);			if(workbenchPart == null) {				return false;			}			ComponentEditor componentEditor = (ComponentEditor)workbenchPart;			ComponentEditorInput componentEditorInput = componentEditor.getComponentEditorInput();			return componentEditorInput.equals(editorInput);		}		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 (!ComponenteditorPlugin.getDefault().canHandleExtension(extension)) {			return false;		}//		IEditorInput editorReferenceEditorInput = null;		//expensive: call it as late as possible		IWorkbenchPart workbenchPart = editorReference.getPart(true);		if(workbenchPart == null) {			return false;		}		ComponentEditor componentEditor = (ComponentEditor)workbenchPart;		ComponentEditorInput componentEditorInput = componentEditor.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)) {				switch (i) {				case 0:					componentEditor.switchToJava();					break;				case 1:					componentEditor.switchToHtml();					break;				case 2:					componentEditor.switchToWod();					break;				case 3:					componentEditor.switchToApi();					break;				default:					break;				}				return true;			}					}		return false;	}