Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CElementPropertySource.java')
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CElementPropertySource.java80
1 files changed, 0 insertions, 80 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CElementPropertySource.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CElementPropertySource.java
deleted file mode 100644
index d8481647422..00000000000
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CElementPropertySource.java
+++ /dev/null
@@ -1,80 +0,0 @@
-package org.eclipse.cdt.internal.ui;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-import org.eclipse.jface.viewers.IBasicPropertyConstants;
-import org.eclipse.ui.views.properties.IPropertyDescriptor;
-import org.eclipse.ui.views.properties.IPropertySource;
-import org.eclipse.ui.views.properties.PropertyDescriptor;
-
-import org.eclipse.cdt.core.model.ICElement;
-import org.eclipse.cdt.ui.*;
-
-public class CElementPropertySource implements IPropertySource {
-
- private final static String LABEL= "CElementProperties.name";
-
- private ICElement fCElement;
-
- // Property Descriptors
- static private IPropertyDescriptor[] fgPropertyDescriptors;
-
- static {
- // resource name
- String displayName= CUIPlugin.getResourceString(LABEL);
- PropertyDescriptor descriptor= new PropertyDescriptor(IBasicPropertyConstants.P_TEXT, displayName);
- descriptor.setAlwaysIncompatible(true);
-
- fgPropertyDescriptors= new IPropertyDescriptor[] { descriptor };
- }
-
- public CElementPropertySource(ICElement elem) {
- fCElement= elem;
- }
-
- /**
- * @see IPropertySource#getPropertyDescriptors
- */
- public IPropertyDescriptor[] getPropertyDescriptors() {
- return fgPropertyDescriptors;
- }
-
- /**
- * @see IPropertySource#getPropertyValue
- */
- public Object getPropertyValue(Object name) {
- if (name.equals(IBasicPropertyConstants.P_TEXT)) {
- return fCElement.getElementName();
- }
- return null;
- }
-
- /**
- * @see IPropertySource#setPropertyValue
- */
- public void setPropertyValue(Object name, Object value) {
- }
-
- /**
- * @see IPropertySource#getEditableValue
- */
- public Object getEditableValue() {
- return null;
- }
-
- /**
- * @see IPropertySource#isPropertySet
- */
- public boolean isPropertySet(Object property) {
- return false;
- }
-
- /**
- * @see IPropertySource#resetPropertyValue
- */
- public void resetPropertyValue(Object property) {
- }
-}

Back to the top