	public PElementPropertySource(IPElement pelement) {
		this.pelement = pelement;
		IAttributeDefinition<?,?,?>[] attrDefs = pelement.getAttributeKeys();
        String[] keys = new String[attrDefs.length];
        for (int i = 0; i < attrDefs.length; i++) {
        	if (attrDefs[i].getDisplay()) {
        		keys[i] = attrDefs[i].getId();
        	}
        }
        for (int i = 0; i < keys.length; ++i) {
            addDescriptor(new PropertyDescriptor(keys[i], attrDefs[i].getName()));
        }
	}

	public PElementPropertySource(IPElement pelement) {
		this.pelement = pelement;
		IAttributeDefinition<?,?,?>[] attrDefs = pelement.getAttributeKeys();
        String[] keys = new String[attrDefs.length];
        for (int i = 0; i < attrDefs.length; i++) {
        	if (attrDefs[i].getDisplay()) {
        		keys[i] = attrDefs[i].getId();
                addDescriptor(new PropertyDescriptor(keys[i], attrDefs[i].getName()));
        	}
        }
	}
