Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: aa683b44e6c475c31837e9fa2cc7887c42a44fcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*******************************************************************************
 * Copyright (c) 2013 Wind River Systems, Inc. and others. All rights reserved.
 * This program and the accompanying materials are made available under the terms
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tcf.te.ui.notifications.interfaces;

import org.eclipse.tcf.te.runtime.events.NotifyEvent;
import org.eclipse.ui.forms.widgets.FormText;
import org.eclipse.ui.forms.widgets.FormToolkit;


/**
 * Interface to be implemented by notification form text factory delegates.
 */
public interface IFormTextFactoryDelegate {

	/**
	 * Populate the given form text widget based on the given notification event.
	 * <p>
	 * See {@link FormText} for details.
	 *
	 * @param toolkit The form toolkit. Must not be <code>null</code>.
	 * @param widget The form text widget. Must not be <code>null</code>.
	 * @param event The notification event. Must not be <code>null</code>.
	 */
	public void populateFormText(FormToolkit toolkit, FormText widget, NotifyEvent event);

	/**
	 * Returns the delay in milliseconds until to auto-close the notification popup.
	 *
	 * @return The delay in milliseconds or <code>-1</code> to apply the default delay.
	 */
	public long getNotificationCloseDelay();
}

Back to the top