vmware-archive / scripted

The Scripted code editor
Eclipse Public License 1.0
1.56k stars 166 forks source link

Navigator highlight does not always find new resource DOM nodes after a full navigator reload #246

Open nierajsingh opened 11 years ago

nierajsingh commented 11 years ago

Sometimes when attempting to highlight a new resource in the navigator, for example a newly created or renamed file, after an explorer reload, the postOperation performed after reload, if implemented to attempt to perform a navigator highlight, will still not find the new elements in the document. Setting a setTimeout temporarily serves as a workaround, but a better solution is to wait for the document to be ready before attempting to check for the new element nodes. This is a case in contextmenuprovider.js that uses a setTimeout. This should be replaced with a better solution.