Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment output clear option #3675

Merged
merged 1 commit into from
May 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/chrome/komodo/content/run/runOutputPane.xul
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
tooltiptext="&terminateProcess.tooltiptext;"
oncommand="ko.run.output.kill(-1);"
disabled="true"/>
<toolbarbutton id="runoutput-clear-button"
class="icon-close"
tooltiptext="&clearOutput.tooltiptext;"
oncommand="ko.run.output.clearOutput();" />
</toolbar>
</box>

Expand Down
15 changes: 15 additions & 0 deletions src/chrome/komodo/content/run/runOutputWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,21 @@ this.kill = function RunOutput_Kill(retval)
}
}

/** Clear */
this.clearOutput = function RunOutput_ClearOutput()
{
var descWidget = document.getElementById("runoutput-desc");
var cmdWidget = document.getElementById("runoutput-command");
descWidget.setAttribute("value", "");
cmdWidget.setAttribute("value", "");

// Clear session
if (_gTerminalView && !_gTerminalHandler.active)
{
_gTerminalView.startSession(true);
_gTerminalView.endSession();
}
}

function _SetView(editor, showParsedOutputList)
{
Expand Down
1 change: 1 addition & 0 deletions src/chrome/komodo/locale/en-US/komodo.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<!ENTITY checkForUpdates.label "Check for Updates...">
<!ENTITY checkSyntaxNow.label "Check syntax now">
<!ENTITY cleanLineEndings.label "Clean Line Endings">
<!ENTITY clearOutput.tooltiptext "Clear Output">
<!ENTITY clearSearchHighlighting.label "Clear Highlighting">
<!ENTITY clearWarningErrorSquigglies.label "Clear warning/error squigglies">
<!ENTITY close.label "Close">
Expand Down