Lines 48-53
Link Here
|
48 |
import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException; |
48 |
import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException; |
49 |
import org.netbeans.modules.j2ee.dd.api.web.SessionConfig; |
49 |
import org.netbeans.modules.j2ee.dd.api.web.SessionConfig; |
50 |
import org.netbeans.modules.j2ee.dd.api.web.WebApp; |
50 |
import org.netbeans.modules.j2ee.dd.api.web.WebApp; |
|
|
51 |
import org.netbeans.modules.j2ee.dd.api.web.WebFragment; |
51 |
import org.netbeans.modules.j2ee.ddloaders.web.DDDataObject; |
52 |
import org.netbeans.modules.j2ee.ddloaders.web.DDDataObject; |
52 |
import org.netbeans.modules.xml.multiview.Utils; |
53 |
import org.netbeans.modules.xml.multiview.Utils; |
53 |
import org.netbeans.modules.xml.multiview.Error; |
54 |
import org.netbeans.modules.xml.multiview.Error; |
Lines 59-66
Link Here
|
59 |
* @author Petr Slechta |
60 |
* @author Petr Slechta |
60 |
*/ |
61 |
*/ |
61 |
public class OverviewPanel extends SectionInnerPanel implements java.awt.event.ItemListener { |
62 |
public class OverviewPanel extends SectionInnerPanel implements java.awt.event.ItemListener { |
62 |
private DDDataObject dObj; |
63 |
private final DDDataObject dObj; |
63 |
private WebApp webApp; |
64 |
private final WebApp webApp; |
64 |
|
65 |
|
65 |
public OverviewPanel(SectionView sectionView, DDDataObject dObj) { |
66 |
public OverviewPanel(SectionView sectionView, DDDataObject dObj) { |
66 |
super(sectionView); |
67 |
super(sectionView); |
Lines 86-95
Link Here
|
86 |
addValidatee(stTF); |
87 |
addValidatee(stTF); |
87 |
|
88 |
|
88 |
BigDecimal ver = new BigDecimal(webApp.getVersion()); |
89 |
BigDecimal ver = new BigDecimal(webApp.getVersion()); |
89 |
boolean jee6 = ver.compareTo(new BigDecimal(3.0)) >= 0; |
90 |
boolean showNameElement = (ver.compareTo(new BigDecimal(3.0)) >= 0) && |
90 |
jLabel2.setVisible(jee6); |
91 |
(webApp instanceof WebFragment);//JavaEE6 and in web-fragment |
91 |
tfName.setVisible(jee6); |
92 |
jLabel2.setVisible(showNameElement); |
92 |
if (jee6) { |
93 |
tfName.setVisible(showNameElement); |
|
|
94 |
if (showNameElement) { |
93 |
tfName.setText(getXmlNames()); |
95 |
tfName.setText(getXmlNames()); |
94 |
addModifier(tfName); |
96 |
addModifier(tfName); |
95 |
} |
97 |
} |