Did I find the right examples for you? yes no

All Samples(11)  |  Call(11)  |  Derive(0)  |  Import(0)

src/m/a/MavensMate-SublimeText-HEAD/mavensmate.py   MavensMate-SublimeText(Download)
    def is_enabled(command):
        return util.is_apex_class_file()
 
#displays unit test dialog
class GenerateApexTestCoverageReportCommand(sublime_plugin.WindowCommand):
    def is_visible(self):
        return util.is_apex_class_file()
 
    def is_enabled(self):
        return util.is_apex_test_file()
    def is_visible(self, files):
        if files != None and type(files) is list and len(files) > 0:
            for f in files:
                if util.is_apex_class_file(f): 
                    return True
    def is_visible(self):
        return util.is_apex_class_file()
 
    def is_enabled(self):
        if util.is_apex_webservice_file(): 
    def is_visible(self, files):
        if files != None and type(files) is list and len(files) > 0:
            for f in files:
                if util.is_apex_class_file(f): 
                    return True