

def setFeature(self, arg):
    'Displays a Feature(Set) or displays a Feature(Set) matching the\n        given path, or the main view if no matching Feature(Set) is found.\n\n        @param arg:\n                   Either the Feature(Set) to show or the path of the\n                   Feature(Set) to show\n        '
    if isinstance(arg, basestring):
        path = arg
        f = FeatureSet.FEATURES.getFeature(path)
        self.setFeature(f)
    else:
        f = arg
        if (f == FeatureSet.FEATURES):
            f = None
        self._currentFeature.setValue(f)
        fragment = (f.getFragmentName() if (f is not None) else '')
        self._uriFragmentUtility.setFragment(fragment, False)
        self._breadcrumbs.setPath(self._app.getFullPathFor(f))
        self._previousSample.setEnabled((f is not None))
        self._nextSample.setEnabled((not self._app._allFeatures.isLastId(f)))
        self.updateFeatureList(self._currentList)
        self.setCaption((((f.getName() + ': ') if (f is not None) else '') + self._TITLE))

dataset/ETHPy150Open rwl/muntjac/muntjac/demo/sampler/SamplerApplication.py SamplerWindow.setFeature/original