score:2

considering:

:

public static iworkbench getworkbench() {
    if (workbench.getinstance() == null) {
        // app forgot to call createandrunworkbench beforehand
        throw new illegalstateexception(workbenchmessages.platformui_noworkbench);
    }
    return workbench.getinstance();
}

it could be possible that createandrunworkbench() wasn't called at the time of the invocation of your plugin (called like in this tutorial).


Related Query

More Query from same tag