Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 557d7cef24423c85ff4d14fbc7ecd516f69bfc41 (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
40
41
42
43
44
/*******************************************************************************
 * Copyright (c) 2010 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.ua.tests.help.other;

import org.eclipse.core.expressions.IEvaluationContext;
import org.eclipse.help.ICriterionValueDefinition;
import org.eclipse.help.IUAElement;

public class UserCriterionValueDefinition implements ICriterionValueDefinition {

	private String id;
	private String name;
	
	public UserCriterionValueDefinition(String id, String name) {
		this.id = id;
		this.name = name;
	}
	
	public boolean isEnabled(IEvaluationContext context) {
		return true;
	}

	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public IUAElement[] getChildren() {
        return new IUAElement[0];
	}

}

Back to the top