This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# License: LGPL | |
# | |
# Copyright: Brainwy Software | |
def overrides(method): | |
''' | |
This is just an 'annotation' method to say that some method is overridden. | |
It also checks that the method name is the same. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if False: | |
from org.python.pydev.editor import PyEdit #@UnresolvedImport | |
cmd = 'command string' | |
editor = PyEdit | |
systemGlobals = {} | |
if cmd == 'onCreateActions': | |
assert editor is not None | |
MySurroundAction = systemGlobals.get('MySurroundAction') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Script to check debugger speed. | |
2 breakpoints should be added (at comments below), then | |
run to initial breakpoint (first stop), then continue | |
execution to the second breakpoint and see the total time. | |
''' | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scope_to_color_name: { | |
#All types of strings map to the string color | |
doubleQuotedString: string, | |
multiLineContext2: string, | |
multiLineContext1: string, | |
singleLineContext: string, | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author: Fabio Zadrozny | |
* @licenes: EPL | |
**/ | |
package com.brainwy.liclipse.theme.e4; | |
import org.eclipse.e4.ui.css.core.dom.properties.ICSSPropertyHandler; | |
import org.eclipse.e4.ui.css.core.engine.CSSEngine; | |
import org.eclipse.e4.ui.css.swt.dom.ControlElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pstats | |
import sys | |
import subprocess | |
import os | |
try: | |
import cProfile as profile | |
except ImportError: | |
import profile | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def overrides(method): | |
def wrapper(func): | |
if func.__name__ != method.__name__: | |
msg = "Wrong @override: %r expected, but overwriting %r." | |
msg = msg % (func.__name__, method.__name__) | |
raise AssertionError(msg) | |
if func.__doc__ is None: | |
func.__doc__ = method.__doc__ |