for (int i = 0; i < editors.length; ++i)
{
if (editors[i].getEditor(false) instanceof AbstractTextEditor && editors[i].getEditor(false).getEditorInput() instanceof FileEditorInput)
{
if (((ITextEditor)editors[i].getEditor(false)).getDocumentProvider() instanceof TextFileDocumentProvider &&
((FileEditorInput) editors[i].getEditor(false).getEditorInput()).getFile().getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")) != null &&
((FileEditorInput) editors[i].getEditor(false).getEditorInput()).getFile().getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")).equals("true"))
{
if (!((TextFileDocumentProvider)((ITextEditor)editors[i].getEditor(false)).getDocumentProvider()).isConnectedToXCDE(editors[i].getEditor(false).getEditorInput()))
{
((TextFileDocumentProvider)((ITextEditor)editors[i].getEditor(false)).getDocumentProvider()).connectToXCDE(editors[i].getEditor(false).getEditorInput());
}
}
else if (((ITextEditor)editors[i].getEditor(false)).getDocumentProvider() instanceof TextFileDocumentProvider &&
((FileEditorInput) editors[i].getEditor(false).getEditorInput()).getFile().getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")) == null ||
(((FileEditorInput) editors[i].getEditor(false).getEditorInput()).getFile().getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")) != null &&
((FileEditorInput) editors[i].getEditor(false).getEditorInput()).getFile().getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")).equals("false")))
{
if (((TextFileDocumentProvider)((ITextEditor)editors[i].getEditor(false)).getDocumentProvider()).isConnectedToXCDE(editors[i].getEditor(false).getEditorInput()))
{
_undrawCaretColouring((ITextEditor)editors[i].getEditor(false));
((TextFileDocumentProvider)((ITextEditor)editors[i].getEditor(false)).getDocumentProvider()).disconnectFromXCDE(editors[i].getEditor(false).getEditorInput());