]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/browser/StatusTextEvent.java
Remove invalid SHA-256-Digests
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / browser / StatusTextEvent.java
1 /*******************************************************************************
2  * Copyright (c) 2003, 2009 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.browser;
15
16 import org.eclipse.swt.widgets.*;
17 import org.eclipse.swt.events.*;
18
19 /**
20  * A <code>StatusTextEvent</code> is sent by a {@link Browser} to
21  * {@link StatusTextListener}'s when the status text is changed.
22  * The status text is typically displayed in the status bar of
23  * a browser application.
24  *
25  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
26  *
27  * @since 3.0
28  */
29 public class StatusTextEvent extends TypedEvent {
30         /** status text */
31         public String text;
32
33         static final long serialVersionUID = 3258407348371600439L;
34
35 /**
36  * Constructs a new instance of this class.
37  *
38  * @param widget the widget that fired the event
39  *
40  * @since 3.5
41  */
42 public StatusTextEvent(Widget widget) {
43         super(widget);
44 }
45
46 /**
47  * Returns a string containing a concise, human-readable
48  * description of the receiver.
49  *
50  * @return a string representation of the event
51  */
52 @Override
53 public String toString() {
54         String string = super.toString ();
55         return string.substring (0, string.length() - 1) // remove trailing '}'
56                 + " text=" + text
57                 + "}";
58 }
59 }