Skip to content

Add support for resource outside of workspace #38

Description

@cleibelt

When a non-workspace file is opened, selection is empty and resource fetched is of wrong type. Often times when debugging, I step into a library file etc. that is not within workspace. I could not figure out how to get this to work.

To reproduce:
File > Open File > Right click on open file > StartExplorer > Start Shell in this Path > error

Event Details:
The current selection is an empty text selection, so the command was invoked for the resource opened in the editor. But the object fetched by event.getApplicationContext().getParent().getVariable("activeEditorInput") is not of expected type IFileEditorInput: org.eclipse.ui.ide.FileStoreEditorInput@6405b6ae

Session Data:
eclipse.buildId=M20120208-0800
java.version=1.6.0_27
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.rcp.product

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions