public PreviewPatchPage2(WorkspacePatcher patcher, CompareConfiguration configuration) { super(PREVIEWPATCHPAGE_NAME, PatchMessages.PreviewPatchPage_title, null); setDescription(PatchMessages.PreviewPatchPage2_8); Assert.isNotNull(patcher); Assert.isNotNull(configuration); this.fPatcher = patcher; this.fConfiguration = configuration; this.fConfiguration.addPropertyChangeListener(new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(CompareConfiguration.IGNORE_WHITESPACE)){ rebuildTree(); } } }); }
public PreviewPatchPage2(WorkspacePatcher patcher, CompareConfiguration configuration) { super(PREVIEWPATCHPAGE_NAME, PatchMessages.PreviewPatchPage_title, null); setDescription(PatchMessages.PreviewPatchPage2_8); Assert.isNotNull(patcher); Assert.isNotNull(configuration); this.fPatcher = patcher; this.fConfiguration = configuration; this.fConfiguration.addPropertyChangeListener(event -> { if (event.getProperty().equals(CompareConfiguration.IGNORE_WHITESPACE)){ rebuildTree(); } }); }
public ModelCompareEditorInput(ModelSynchronizeParticipant participant, ICompareInput input, IWorkbenchPage page, ISynchronizePageConfiguration synchronizeConfiguration) { super(createCompareConfiguration(synchronizeConfiguration), page); this.synchronizeConfiguration = synchronizeConfiguration; Assert.isNotNull(participant); Assert.isNotNull(input); this.participant = participant; this.input = input; contextListener = new ICacheListener() { public void cacheDisposed(ICache cache) { closeEditor(true); } }; getCompareConfiguration().addPropertyChangeListener(this); setTitle(NLS.bind(TeamUIMessages.SyncInfoCompareInput_title, new String[] { input.getName() })); }
public ModelCompareEditorInput(ModelSynchronizeParticipant participant, ICompareInput input, IWorkbenchPage page, ISynchronizePageConfiguration synchronizeConfiguration) { super(createCompareConfiguration(synchronizeConfiguration), page); this.synchronizeConfiguration = synchronizeConfiguration; Assert.isNotNull(participant); Assert.isNotNull(input); this.participant = participant; this.input = input; contextListener = cache -> closeEditor(true); getCompareConfiguration().addPropertyChangeListener(this); setTitle(NLS.bind(TeamUIMessages.SyncInfoCompareInput_title, new String[] { input.getName() })); }
public void setCompareConfiguration(CompareConfiguration cc) { if (fCompareConfiguration != null) fCompareConfiguration.removePropertyChangeListener(this); fCompareConfiguration= cc; if (fCompareConfiguration != null) fCompareConfiguration.addPropertyChangeListener(this); setChecked(Utilities.getBoolean(fCompareConfiguration, fPropertyKey, false)); }
public void setCompareConfiguration(CompareConfiguration cc) { if (fCompareConfiguration != null) fCompareConfiguration.removePropertyChangeListener(this); fCompareConfiguration = cc; if (fCompareConfiguration != null) fCompareConfiguration.addPropertyChangeListener(this); setChecked(getProperty()); }
public void setCompareConfiguration(CompareConfiguration cc) { if (fCompareConfiguration != null) fCompareConfiguration.removePropertyChangeListener(this); fCompareConfiguration= cc; if (fCompareConfiguration != null) fCompareConfiguration.addPropertyChangeListener(this); setChecked(Utilities.getBoolean(fCompareConfiguration, fPropertyKey, false)); }
fCompareConfiguration.addPropertyChangeListener(fPropertyChangeListener); fPreferenceChangeListener = event -> { if (event.getProperty().equals(ComparePreferencePage.SWAPPED)) {
fCompareConfiguration.addPropertyChangeListener(fPropertyChangeListener);
fCompareConfiguration.addPropertyChangeListener(fPropertyChangeListener);
if (fCompareConfiguration != null) { fPropertyChangeListener = event -> propertyChange(event); fCompareConfiguration.addPropertyChangeListener(fPropertyChangeListener);