org.eclipse.ui.activities.ITriggerPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workbench Show documentation
Show all versions of workbench Show documentation
This plug-in contains the bulk of the Workbench implementation, and depends on JFace, SWT, and Core Runtime. It cannot be used independently from org.eclipse.ui. Workbench client plug-ins should not depend directly on this plug-in.
The newest version!
/*******************************************************************************
* Copyright (c) 2004, 2005 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.activities;
/**
* A trigger point represents a place within the Workbench that has the
* potential to enable activities. Instances of this class may be obtained from
* {@link org.eclipse.ui.activities.ITriggerPointManager#getTriggerPoint(String)}.
* Instances of this interface are passed as a parameter to
* {@link org.eclipse.ui.activities.ITriggerPointAdvisor#allow(ITriggerPoint, IIdentifier)}
* and may be used by the advisor to determine policy.
*
* This interface is not intended to be extended or implemented by clients.
*
*
* @see org.eclipse.ui.activities.ITriggerPointAdvisor
* @see org.eclipse.ui.activities.ITriggerPointManager
* @since 3.1
*/
public interface ITriggerPoint {
/**
* The interactive hint key. Value "interactive"
.
*/
public static final String HINT_INTERACTIVE = "interactive"; //$NON-NLS-1$
/**
* Return the id of this trigger point.
*
* @return the id
*/
String getId();
/**
* Return the hint with the given key defined on this trigger point.
*
* @param key the hint key
* @return the hint
*/
String getStringHint(String key);
/**
* Return the hint with the given key defined on this trigger point as
* interpreted as a boolean
.
*
* @param key the hint key
* @return the hint
* @see Boolean#valueOf(java.lang.String)
*/
boolean getBooleanHint(String key);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy