1/*******************************************************************************
2 * Copyright (c) 2011 Google, Inc.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 *    Google, Inc. - initial API and implementation
10 *******************************************************************************/
11package org.eclipse.wb.internal.core.model.property.editor;
12
13import org.eclipse.wb.internal.core.utils.binding.editors.controls.DefaultControlActionsManager;
14
15import org.eclipse.swt.widgets.Text;
16
17/**
18 * Manager for installing/unistalling global handlers for {@link Text} actions commands.
19 *
20 * @author mitin_aa
21 * @author sablin_aa
22 * @coverage core.model.property.editor
23 */
24public final class TextControlActionsManager extends DefaultControlActionsManager {
25  private final Text m_text;
26
27  ////////////////////////////////////////////////////////////////////////////
28  //
29  // Constructor
30  //
31  ////////////////////////////////////////////////////////////////////////////
32  public TextControlActionsManager(final Text text) {
33    super(text);
34    m_text = text;
35  }
36
37  ////////////////////////////////////////////////////////////////////////////
38  //
39  // Handlers
40  //
41  ////////////////////////////////////////////////////////////////////////////
42  @Override
43  protected void selectAllExecuted() {
44    m_text.selectAll();
45  }
46}
47