Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Adapting IEditorInput to ICElement

Title: Adapting IEditorInput  to ICElement
Hi,

I’m investigating bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=287057 and have found a problem with this bit of code in CLaunchConfigurationTab.getContext :

   
    IEditorPart part = page.getActiveEditor();
        if (part != null) {
            IEditorInput input = part.getEditorInput();
            return (ICElement)input.getAdapter(ICElement.class);
        }

The problem is that there is no adapter available to get an ICElement from IEditorInput. I looked through a bit of CVS history and can’t find one from the past. Before I add one or do this some other way I wanted to check to see if anyone know more about this.

Thanks - Ken

Back to the top