Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2008-05-09 13:11:34 +0000
committerkmoore2008-05-09 13:11:34 +0000
commitba3f0e9d79d3fae03325c0eb2c93a0ba196f30a1 (patch)
treeec28fff2b34fa879cdc0f3e3ad71b23ea6666a68
parent99bf3e6db865edf74bad8bfb09f41d4d97c0c719 (diff)
downloadwebtools.dali-ba3f0e9d79d3fae03325c0eb2c93a0ba196f30a1.tar.gz
webtools.dali-ba3f0e9d79d3fae03325c0eb2c93a0ba196f30a1.tar.xz
webtools.dali-ba3f0e9d79d3fae03325c0eb2c93a0ba196f30a1.zip
230427 - patch from Pascal - When changing the attribute mapping type in the Details view, the "change mapping link" loses it's highlight
-rw-r--r--jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/MapAsComposite.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/MapAsComposite.java b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/MapAsComposite.java
index b4ec895d87..941b891729 100644
--- a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/MapAsComposite.java
+++ b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/MapAsComposite.java
@@ -66,6 +66,7 @@ import org.eclipse.ui.dialogs.FilteredItemsSelectionDialog;
public abstract class MapAsComposite<T extends Model> extends AbstractPane<T> {
private boolean dragEvent;
+ private boolean enabled;
private Cursor handCursor;
private MappingChangeHandler mappingChangeHandler;
private int mappingTypeLength;
@@ -222,6 +223,7 @@ public abstract class MapAsComposite<T extends Model> extends AbstractPane<T> {
*/
@Override
public void enableWidgets(boolean enabled) {
+ this.enabled = enabled;
super.enableWidgets(enabled);
if (!styledText.isDisposed()) {
@@ -241,7 +243,10 @@ public abstract class MapAsComposite<T extends Model> extends AbstractPane<T> {
*/
@Override
protected void initialize() {
+
super.initialize();
+
+ this.enabled = true;
this.mappingChangeHandler = buildMappingChangeHandler();
}
@@ -330,7 +335,7 @@ public abstract class MapAsComposite<T extends Model> extends AbstractPane<T> {
clearStyleRange();
updateText();
- if (styledText.isEnabled()) {
+ if (enabled) {
updateLinkRange();
}
}

Back to the top