How to use the etch.setScheduler function in etch

To help you get started, we’ve selected a few etch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jsmecham / atom-terminal-tab / lib / terminal-view.js View on Github external
this.disposables = new CompositeDisposable();
    this.session = session;

    // Load the Fit Addon
    this.fitAddon = new FitAddon();
    this.session.xterm.loadAddon(this.fitAddon);
    this.disposables.add(this.fitAddon);

    //
    // Observe the Session to know when it is destroyed so that we can
    // clean up our state (i.e. remove event observers).
    //
    this.session.onDidDestroy(this.destroy.bind(this));

    // TODO: Documentation says this should be set for Atom... Research!
    etch.setScheduler(atom.views);
    etch.initialize(this);

    this.observeResizeEvents();
  }
github TypeStrong / atom-typescript / dist / main / atomts.js View on Github external
async function activate(state) {
    const pns = atom.packages.getAvailablePackageNames();
    const packagesProvidingUIServices = ["atom-ide-ui", "linter", "nuclide"];
    if (!packagesProvidingUIServices.some(p => pns.includes(p))) {
        // tslint:disable-next-line:no-unsafe-any
        await require("atom-package-deps").install("atom-typescript", true);
    }
    // tslint:disable-next-line:no-unsafe-any
    require("etch").setScheduler(atom.views);
    // tslint:disable-next-line:no-shadowed-variable
    const { PluginManager } = require("./pluginManager");
    pluginManager = new PluginManager(state);
}
exports.activate = activate;
github appcelerator / atom-appcelerator-titanium / lib / ui / toolbar.jsx View on Github external
/** @babel */
/** @jsx etch.dom */

import { CompositeDisposable } from 'atom';
import { platform } from 'os';
import { remote } from 'electron';
import etch from 'etch';
import Appc from '../appc';
import Project from '../project';
import Button from './button.jsx';
import Select from './select.jsx';
import Hud from './hud.jsx';
import Utils from '../utils';

etch.setScheduler(atom.views);

/**
 * Toolbar
 */
export default class Toolbar {

	/**
	 * Constructor
	 */
	constructor() {
		this.targets = {};
		this.targetOptions = [ { value: '', text: '', disabled: true } ];
		this.state = {
			buildCommand: (Project.isTitaniumApp) ?  'run' : 'build',
			buildCommandName: (Project.isTitaniumApp) ? 'Run' : 'Build',
			platform: (platform() === 'darwin') ? 'ios' : 'android',
github platformio / platformio-atom-ide / lib / view.js View on Github external
static setScheduler(scheduler) {
    etch.setScheduler(scheduler);
  }
github akonwi / git-plus / lib / main.ts View on Github external
initialize(_state) {
    etch.setScheduler(atom.views);
    gitPlus = new GitPlusPackage();
  }
};
github danielbrodin / atom-project-manager / lib / views / EditView.js View on Github external
/** @babel */
/** @jsx etch.dom */

import { CompositeDisposable } from 'atom';
import etch from 'etch';
import changeCase from 'change-case';
import path from 'path';
import { EDIT_URI } from './view-uri';
import manager from '../Manager';
import Project from '../models/Project';

const disposables = new CompositeDisposable();

etch.setScheduler(atom.views);

export default class EditView {
  constructor(props, children) {
    this.props = props;
    this.children = children;
    etch.initialize(this);

    this.storeFocusedElement();

    this.element.addEventListener('click', (event) => {
      if (event.target === this.refs.save) {
        this.saveProject();
      }
    });

    disposables.add(atom.commands.add(this.element, {
github atom / atom / src / text-editor-component.js View on Github external
static setScheduler (scheduler) {
    etch.setScheduler(scheduler)
  }
github joefitzgerald / go-plus / lib / etch-component.js View on Github external
static setScheduler(scheduler: any) {
    etch.setScheduler(scheduler)
  }
github atom / atom-select-list / src / select-list-view.js View on Github external
static setScheduler (scheduler) {
    etch.setScheduler(scheduler)
  }

etch

Perform virtual DOM updates based on changes to a data model.

MIT
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis