Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #3047 by supporting saving consoles to log files
- Loading branch information
1 parent
b8cfde4
commit 459548b
Showing
5 changed files
with
131 additions
and
39 deletions.
There are no files selected for viewing
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
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
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
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
47 changes: 47 additions & 0 deletions
47
ummisco.gama.ui.shared/src/ummisco/gama/ui/views/toolbar/LogExportationController.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/********************************************************************************************* | ||
* | ||
* 'CSVExportationController.java, in plugin ummisco.gama.ui.shared, is part of the source code of the GAMA modeling and | ||
* simulation platform. (v. 1.8.1) | ||
* | ||
* (c) 2007-2020 UMI 209 UMMISCO IRD/UPMC & Partners | ||
* | ||
* Visit https://github.com/gama-platform/gama for license information and developers contact. | ||
* | ||
* | ||
**********************************************************************************************/ | ||
package ummisco.gama.ui.views.toolbar; | ||
|
||
import org.eclipse.swt.SWT; | ||
|
||
import ummisco.gama.ui.resources.GamaIcons; | ||
import ummisco.gama.ui.resources.IGamaIcons; | ||
import ummisco.gama.ui.views.toolbar.IToolbarDecoratedView.LogExportable; | ||
|
||
/** | ||
* Class ZoomController. | ||
* | ||
* @author drogoul | ||
* @since 9 févr. 2015 | ||
* | ||
*/ | ||
public class LogExportationController { | ||
|
||
private final IToolbarDecoratedView.LogExportable view; | ||
|
||
/** | ||
* @param view2 | ||
*/ | ||
public LogExportationController(final LogExportable view2) { | ||
this.view = view2; | ||
} | ||
|
||
/** | ||
* @param tb | ||
*/ | ||
public void install(final GamaToolbar2 tb) { | ||
tb.button(GamaIcons.create(IGamaIcons.DISPLAY_TOOLBAR_CSVEXPORT).getCode(), "Export to log file", | ||
"Export to log file", e -> view.saveAsLog(), SWT.RIGHT); | ||
|
||
} | ||
|
||
} |