Author: scabanovich
Date: 2009-07-30 12:12:55 -0400 (Thu, 30 Jul 2009)
New Revision: 16908
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editors/dnd/composite/TagAttributesComposite.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4683
Improved handling processors and page contexts.
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editors/dnd/composite/TagAttributesComposite.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editors/dnd/composite/TagAttributesComposite.java 2009-07-30
15:58:47 UTC (rev 16907)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editors/dnd/composite/TagAttributesComposite.java 2009-07-30
16:12:55 UTC (rev 16908)
@@ -54,7 +54,7 @@
*
*/
-public class TagAttributesComposite extends Composite implements PropertyChangeListener,
SelectionListener{
+public class TagAttributesComposite extends Composite implements PropertyChangeListener,
SelectionListener {
private IDropWizardModel fWizardModel;
private TableViewer tableViewer = null;
private boolean fFiltered = false;
@@ -376,6 +376,10 @@
if(tableViewer.isCellEditorActive()) return;
if(IDropWizardModel.TAG_PROPOSAL.equals(evt.getPropertyName())) {
tableViewer.setInput(new Object());
+ AttributeDescriptorValueProvider valueProvider =
fWizardModel.getDropData().getValueProvider();
+ if(valueProvider != null) {
+ valueProvider.initContext(context);
+ }
} else {
tableViewer.refresh();
}