This file contains hidden or 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
| // 1 | |
| Composite comp = new Composite(shell, SWT.NONE); | |
| Table table = new Table(comp, SWT.BORDER SWT.V_SCROLL); | |
| table.setHeaderVisible(true); | |
| table.setLinesVisible(true); | |
| // 2 | |
| TableColumn column1 = new TableColumn(table, SWT.NONE); | |
| column1.setText("Column 1"); | |
| TableColumn column2 = new TableColumn(table, SWT.NONE); | |
| column2.setText("Column 2"); |
This file contains hidden or 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
| function activateActivityTracker() { | |
| window.addEventListener("mousemove", userActivityThrottler); | |
| window.addEventListener("scroll", userActivityThrottler); | |
| window.addEventListener("keydown", userActivityThrottler); | |
| window.addEventListener("resize", userActivityThrottler); | |
| } | |
| var userActivityThrottlerTimeout = null | |
| function userActivityThrottler() { |
This file contains hidden or 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
| ;; -*- lexical-binding: t -*- | |
| ;; #################################################################### | |
| ;; # 1. PACKAGE MANAGEMENT (using the built-in `package.el`) | |
| ;; #################################################################### | |
| ;; This section ensures `package.el` is ready and sets up the MELPA | |
| ;; archive, which has the largest collection of Emacs packages. | |
| (require 'package) | |
| (setq package-enable-at-startup nil) |