View | Details | Raw Unified | Return to bug 224409 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/pde/internal/core/schema/Schema.java (-1 / +1 lines)
Lines 668-674 Link Here
668
								element.setTranslatableProperty(processTranslatable(getAttribute(meta, "translatable"))); //$NON-NLS-1$
668
								element.setTranslatableProperty(processTranslatable(getAttribute(meta, "translatable"))); //$NON-NLS-1$
669
								element.setDeprecatedProperty(processDeprecated(getAttribute(meta, "deprecated"))); //$NON-NLS-1$
669
								element.setDeprecatedProperty(processDeprecated(getAttribute(meta, "deprecated"))); //$NON-NLS-1$
670
								if (element instanceof ISchemaRootElement) {
670
								if (element instanceof ISchemaRootElement) {
671
									String depSug = getAttribute(meta, SchemaRootElement.P_DEP_REPLACEMENT);
671
									String depSug = getAttribute(meta, ISchemaRootElement.P_DEP_REPLACEMENT);
672
									((ISchemaRootElement) element).setDeprecatedSuggestion(depSug);
672
									((ISchemaRootElement) element).setDeprecatedSuggestion(depSug);
673
								}
673
								}
674
							}
674
							}
(-)src/org/eclipse/pde/internal/core/schema/SchemaRootElement.java (-2 / +13 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2006 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 16-23 Link Here
16
public class SchemaRootElement extends SchemaElement implements ISchemaRootElement {
16
public class SchemaRootElement extends SchemaElement implements ISchemaRootElement {
17
17
18
	private static final long serialVersionUID = 1L;
18
	private static final long serialVersionUID = 1L;
19
	public static final String P_DEP_REPLACEMENT = "replacement"; //$NON-NLS-1$
19
20
	private String fDeperecatedReplacement;
20
	private String fDeperecatedReplacement;
21
	private boolean fInternal;
21
22
22
	public SchemaRootElement(ISchemaObject parent, String name) {
23
	public SchemaRootElement(ISchemaObject parent, String name) {
23
		super(parent, name);
24
		super(parent, name);
Lines 38-41 Link Here
38
			return null;
39
			return null;
39
		return " " + P_DEP_REPLACEMENT + "=\"" + fDeperecatedReplacement + "\" "; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
40
		return " " + P_DEP_REPLACEMENT + "=\"" + fDeperecatedReplacement + "\" "; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
40
	}
41
	}
42
43
	public boolean isInternal() {
44
		return fInternal;
45
	}
46
47
	public void setInternal(boolean value) {
48
		boolean oldValue = fInternal;
49
		fInternal = value;
50
		getSchema().fireModelObjectChanged(this, P_INTERNAL, Boolean.valueOf(oldValue), Boolean.valueOf(fInternal));
51
	}
41
}
52
}
(-)src/org/eclipse/pde/internal/core/ischema/ISchemaRootElement.java (-1 / +31 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2006 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 12-18 Link Here
12
12
13
public interface ISchemaRootElement extends ISchemaElement {
13
public interface ISchemaRootElement extends ISchemaElement {
14
14
15
	/**
16
	 * Property that indicates if an element has a replacement
17
	 */
18
	public static final String P_DEP_REPLACEMENT = "replacement"; //$NON-NLS-1$
19
20
	/**
21
	 * Property that indicates if an element is internal
22
	 */
23
	public static final String P_INTERNAL = "internal"; //$NON-NLS-1$
24
25
	/**
26
	 * Property that indicates if an element has friends
27
	 */
28
	public static final String P_FRIENDS = "friends"; //$NON-NLS-1$
29
15
	public void setDeprecatedSuggestion(String value);
30
	public void setDeprecatedSuggestion(String value);
16
31
32
	/**
33
	 * Returns a value if the element has a replacement suggestion for its deprecated self.
34
	 */
17
	public String getDeprecatedSuggestion();
35
	public String getDeprecatedSuggestion();
36
37
	/**
38
	 * Returns <samp>true</samp> if the element is internal; <samp>false</samp> otherwise.
39
	 */
40
	public boolean isInternal();
41
42
	/**
43
	 * 
44
	 * @param value
45
	 */
46
	public void setInternal(boolean value);
47
18
}
48
}

Return to bug 224409