public void dispose() { if (pcl != null && support != null) { support.removePropertyChangeListener(pcl); pcl = null; } if (mpcl != null && fWizardModel != null) { fWizardModel.removePropertyChangeListener(mpcl); mpcl = null; } super.dispose(); }
public Composite fillGeneralOption(Composite generalTabContent) { GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; layout.numColumns = 3; generalTabContent.setLayout(layout); XModel model = getXModel(); if (model == null) model = XModelFactory.getDefaultInstance(); support.init(model.getRoot(), data); Control c = support.createControl(generalTabContent); pcl = new PCL(); support.addPropertyChangeListener(pcl); fWizardModel = getSpecificWizard().getWizardModel(); mpcl = new MPCL(); fWizardModel.addPropertyChangeListener(mpcl); GridData data = new GridData(GridData.FILL_HORIZONTAL); data.horizontalSpan = 3; c.setLayoutData(data); data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); generalTabContent.setLayoutData(data); Label properties = new Label(generalTabContent, SWT.NONE); properties.setText(JsfUIMessages.DataTableWizardPage_Properties); data = new GridData(GridData.FILL_HORIZONTAL); data.horizontalSpan = 3; properties.setLayoutData(data); propertyListEditor.setObject(propertyListObject); Control propertiesTable = propertyListEditor.createControl(generalTabContent); data = new GridData(GridData.FILL_BOTH); data.horizontalSpan = 3; propertiesTable.setLayoutData(data); return generalTabContent; }
public void setTagAttributesValues() { support.store(); fWizardModel.setAttributeValue("value", data.getValue("value")); // $NON-NLS-1$ //$NON-NLS-2$ fWizardModel.setAttributeValue("var", data.getValue("var")); // $NON-NLS-1$ //$NON-NLS-2$ }