[218979] Cannot clear align property using Properties view
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/properties/ConfigurablePropertySheetPage.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/properties/ConfigurablePropertySheetPage.java index ca3c0e8..881cb2f 100644 --- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/properties/ConfigurablePropertySheetPage.java +++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/properties/ConfigurablePropertySheetPage.java
@@ -119,17 +119,22 @@ if (fSelectedEntries != null) { Object[] entries = fSelectedEntries; ISelection selection = fInput; + boolean needsRefresh = false; if (selection != null && !selection.isEmpty() && selection instanceof IStructuredSelection) { IPropertySource source = getConfiguration().getPropertySourceProvider(this).getPropertySource(((IStructuredSelection) selection).getFirstElement()); if (source != null && source instanceof IPropertySourceExtension) { for (int i = 0; i < entries.length; i++) { if (entries[i] instanceof IPropertySheetEntry) { IPropertySheetEntry entry = (IPropertySheetEntry) entries[i]; + needsRefresh = true; ((IPropertySourceExtension) source).removeProperty(entry.getDisplayName()); } } } } + if (needsRefresh) { + refresh(); + } } }
diff --git a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/views/properties/XMLPropertySheetConfiguration.java b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/views/properties/XMLPropertySheetConfiguration.java index 41a66f4..a4f3a4e 100644 --- a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/views/properties/XMLPropertySheetConfiguration.java +++ b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/views/properties/XMLPropertySheetConfiguration.java
@@ -141,8 +141,9 @@ fSource = (INodeNotifier) object; fPropertySource = (IPropertySource) fSource.getAdapterFor(IPropertySource.class); if (fPropertySource == null) { - fPropertySource = new XMLPropertySource((INodeNotifier) object){ + fPropertySource = new XMLPropertySource((INodeNotifier) object) { public void setPropertyValue(Object nameObject, Object value) { + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=218979 for (int i = 0; i < fSelectedNotifiers.length; i++) { fSelectedNotifiers[i].removeAdapter(fRefreshAdapter); }