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.pde.internal.ui.editor.plugin;
11:
12: import org.eclipse.core.resources.IProject;
13: import org.eclipse.pde.core.plugin.IPluginModelBase;
14: import org.eclipse.pde.internal.core.ischema.ISchemaAttribute;
15:
16: public class JavaAttributeValue extends ResourceAttributeValue {
17: private ISchemaAttribute attInfo;
18: private IPluginModelBase model;
19:
20: public JavaAttributeValue(IProject project, IPluginModelBase model,
21: ISchemaAttribute attInfo, String className) {
22: super (project, className);
23: this .attInfo = attInfo;
24: this .model = model;
25: }
26:
27: public ISchemaAttribute getAttributeInfo() {
28: return attInfo;
29: }
30:
31: public IPluginModelBase getModel() {
32: return model;
33: }
34:
35: public String getClassName() {
36: return getStringValue();
37: }
38: }
|