blob: 98095d6d5f34eb7a9b53a13458ade2b5ab2ca92b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2019 Xored Software Inc and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Xored Software Inc - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.rcptt.tesla.ecl.model;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Double Click Text</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.rcptt.tesla.ecl.model.DoubleClickText#getPosition <em>Position</em>}</li>
* <li>{@link org.eclipse.rcptt.tesla.ecl.model.DoubleClickText#getButton <em>Button</em>}</li>
* </ul>
*
* @see org.eclipse.rcptt.tesla.ecl.model.TeslaPackage#getDoubleClickText()
* @model annotation="http://www.eclipse.org/ecl/docs description='&lt;p&gt;Double-clicks on editbox to set cursor position and/or selection. More verbosely, it does the following:&lt;/p&gt;\r\n&lt;ol&gt;\r\n &lt;li&gt;Sets focus to editbox if not yet focused&lt;/li&gt;\r\n &lt;li&gt;Sends double-click event&lt;/li&gt;\r\n&lt;/ol&gt;\r\n&lt;p&gt;\r\n &lt;code&gt;position&lt;/code&gt; argument have different form depending on editbox kind:\r\n &lt;ul&gt;\r\n &lt;li&gt;For single line editboxes &amp;ndash; 1-based indices in text (e.g. &lt;code&gt;1&lt;/code&gt;, &lt;code&gt;5&lt;/code&gt;)&lt;/li&gt;\r\n &lt;li&gt;For multi line editboxes &amp;ndash; 1-based line and colum indices separated by colon (e.g &lt;code&gt;1:32&lt;/code&gt;, &lt;code&gt;30:1&lt;/code&gt;).&lt;/li&gt;\r\n &lt;/ul&gt;\r\n&lt;/p&gt;' returns='input item' example='with [get-editbox -after [get-label \"Project name:\"]] {\n set-text Project1\n double-click-text 9 1\n }'"
* @generated
*/
public interface DoubleClickText extends ControlCommand {
/**
* Returns the value of the '<em><b>Position</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Position</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Position</em>' attribute.
* @see #setPosition(String)
* @see org.eclipse.rcptt.tesla.ecl.model.TeslaPackage#getDoubleClickText_Position()
* @model required="true"
* annotation="http://www.eclipse.org/ecl/docs description='Cursor location where the double-click will occur.'"
* @generated
*/
String getPosition();
/**
* Sets the value of the '{@link org.eclipse.rcptt.tesla.ecl.model.DoubleClickText#getPosition <em>Position</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Position</em>' attribute.
* @see #getPosition()
* @generated
*/
void setPosition(String value);
/**
* Returns the value of the '<em><b>Button</b></em>' attribute.
* The default value is <code>"left"</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Button</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Button</em>' attribute.
* @see #setButton(String)
* @see org.eclipse.rcptt.tesla.ecl.model.TeslaPackage#getDoubleClickText_Button()
* @model default="left"
* annotation="http://www.eclipse.org/ecl/docs description='Mouse button: left, right or middle.'"
* @generated
*/
String getButton();
/**
* Sets the value of the '{@link org.eclipse.rcptt.tesla.ecl.model.DoubleClickText#getButton <em>Button</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Button</em>' attribute.
* @see #getButton()
* @generated
*/
void setButton(String value);
} // DoubleClickText