Package com.google.collide.client.workspace

Examples of com.google.collide.client.workspace.Header


    DocOpsSavedNotifier docOpSavedNotifier = new DocOpsSavedNotifier(documentManager, collaborationManager);

    FileTreeModelNetworkController fileNetworkController = FileTreeModelNetworkController.create(fileTreeModel, fileTreeController, workspacePlace);

    final Header header = Header.create(workspaceShellView.getHeaderView(), workspaceShellView, workspacePlace,
      appContext, searchIndex, fileTreeModel);

    final WorkspaceShell shell = WorkspaceShell.create(workspaceShellView, header);
    // Add a HotKey listener for to auto-focus the AwesomeBox.
    /* The GlobalHotKey stuff utilizes the wave signal event stuff which filters alt+enter as an unimportant
     * event. This prevents us from using the GlobalHotKey manager here. Note: This is capturing since the
     * editor likes to nom-nom keys, in the dart re-write lets think about this sort of stuff ahead of time. */
    final EventRemover eventRemover = Elements.getBody().addEventListener(Event.KEYDOWN, new EventListener() {
      @Override
      public void handleEvent(Event evt) {
        KeyboardEvent event = (KeyboardEvent)evt;
        if (event.isAltKey() && event.getKeyCode() == KeyCode.ENTER) {
          appContext.getAwesomeBoxComponentHostModel().revertToDefaultComponent();
          header.getAwesomeBoxComponentHost().show();
        }
      }
    }, true);

    // Track this for removal in cleanup
View Full Code Here

TOP

Related Classes of com.google.collide.client.workspace.Header

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.