예제 #1
0
class SampleCommand(sublimeplugin.Plugin):
	def onModified(self, view):
		""" Run on modified """
		print "Modified"
		lines = view.substr(sublime.Region(0, view.size())).split("\n")
		self.mock = MockFunc("test_func", lines=lines)
		self.mock.play()

	def onLoad(self, view):
		""" Run on Load """
		print "Load"
		self.mock = MockFunc("test_func.py", "test_func")
예제 #2
0
	def onLoad(self, view):
		""" Run on Load """
		print "Load"
		self.mock = MockFunc("test_func.py", "test_func")
예제 #3
0
	def onModified(self, view):
		""" Run on modified """
		print "Modified"
		lines = view.substr(sublime.Region(0, view.size())).split("\n")
		self.mock = MockFunc("test_func", lines=lines)
		self.mock.play()