01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.activities;
11:
12: /**
13: * An instance of this interface represents a binding between two activities.
14: * The relationship can be interpreted as 'activity needs requiredActivity to
15: * be enabled'.
16: * Enablement of the activity requires enablement of the required activity.
17: *
18: * <p>
19: * This interface is not intended to be extended or implemented by clients.
20: * </p>
21: *
22: * @since 3.0
23: * @see IActivity
24: */
25: public interface IActivityRequirementBinding extends Comparable {
26:
27: /**
28: * Returns the identifier of the activity represented in this
29: * binding.
30: *
31: * @return the identifier of the activity represented in this
32: * binding. Guaranteed not to be <code>null</code>.
33: */
34: String getActivityId();
35:
36: /**
37: * Returns the identifier of the required activity represented in this
38: * binding. The enablement of the activity described by {@link #getActivityId()}
39: * requires the enablement of this activity.
40: *
41: * @return the identifier of the required activity represented in this
42: * binding. Guaranteed not to be <code>null</code>.
43: */
44: String getRequiredActivityId();
45: }
|