Lines 11-16
Link Here
|
11 |
|
11 |
|
12 |
import java.util.Collection; |
12 |
import java.util.Collection; |
13 |
import java.util.Iterator; |
13 |
import java.util.Iterator; |
|
|
14 |
import org.eclipse.jpt.core.MappingKeys; |
14 |
import org.eclipse.jpt.core.context.AttributeMapping; |
15 |
import org.eclipse.jpt.core.context.AttributeMapping; |
15 |
import org.eclipse.jpt.core.context.PersistentAttribute; |
16 |
import org.eclipse.jpt.core.context.PersistentAttribute; |
16 |
import org.eclipse.jpt.ui.JpaPlatformUi; |
17 |
import org.eclipse.jpt.ui.JpaPlatformUi; |
Lines 110-118
Link Here
|
110 |
public String labelText() { |
111 |
public String labelText() { |
111 |
String mappingKey = subject().getMappingKey(); |
112 |
String mappingKey = subject().getMappingKey(); |
112 |
|
113 |
|
113 |
if (mappingKey != null) { |
114 |
if (mappingKey != MappingKeys.NULL_ATTRIBUTE_MAPPING_KEY) { |
114 |
return JptUiMessages.MapAsComposite_mappedAttributeText; |
115 |
return JptUiMessages.MapAsComposite_mappedAttributeText; |
115 |
} |
116 |
} |
|
|
117 |
if (subject().isVirtual()) { |
118 |
return JptUiMessages.MapAsComposite_virtualAttributeText; |
119 |
} |
116 |
|
120 |
|
117 |
return JptUiMessages.MapAsComposite_unmappedAttributeText; |
121 |
return JptUiMessages.MapAsComposite_unmappedAttributeText; |
118 |
} |
122 |
} |