/* (non-Javadoc) * @see org.eclipse.ui.views.properties.IPropertySource#getPropertyValue(java.lang.Object) */ public Object getPropertyValue(Object id) { if (m_inst.isOrphaned()) { return ""; } if (id.equals("Descrip")) { return m_inst.getDescrip().replace('\n', '/'); } else if (id.equals("GuardCondition")) { return m_inst.getGuardcondition(); } return null; }
/* (non-Javadoc) * @see org.eclipse.ui.views.properties.IPropertySource#getPropertyDescriptors() */ public IPropertyDescriptor[] getPropertyDescriptors() { if (m_inst == null || m_inst.isOrphaned()) return new IPropertyDescriptor[0]; if (m_propertyDescriptors == null || 2 != m_propertyDescriptors.length) { m_propertyDescriptors = new PropertyDescriptor[2]; boolean readonly = false; m_propertyDescriptors[0] = new DescriptionPropertyDescriptor("Descrip", "Fork Join Description", m_inst); m_propertyDescriptors[0].setCategory(BridgepointPropertySheetPage.basicCategoryName); m_propertyDescriptors[1] = new TextPropertyDescriptor("GuardCondition", "Guard Condition"); m_propertyDescriptors[1].setCategory(BridgepointPropertySheetPage.basicCategoryName); } return m_propertyDescriptors; }