Skip to content

Commit

Permalink
beautiful helper panel!
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Zinggeler authored and Florian Zinggeler committed Nov 16, 2013
1 parent 9957823 commit 8342958
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UnrealScriptIDEData.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def print_to_panel(view, text, b_overwrite=True):
panel_edit = panel.begin_edit()
panel.insert(panel_edit, panel.size(), text)
panel.end_edit(panel_edit)
panel.set_syntax_file(view.settings().get('syntax'))
if not b_overwrite:
panel.show(panel.size())
view.window().run_command("show_panel", {"panel": "output.UnrealScriptAutocomplete_panel"})
Expand Down Expand Up @@ -212,6 +213,8 @@ def get_class(self, name):

# returns the class with the given filename
def get_class_from_filename(self, filename):
if isinstance(filename, ClassReference):
return filename
for _class in self._classes:
if _class.file_name().lower() == filename.lower():
return _class
Expand Down

0 comments on commit 8342958

Please sign in to comment.