Author: dazarov
Date: 2010-04-20 10:37:39 -0400 (Tue, 20 Apr 2010)
New Revision: 21556
Modified:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/edit/LinkEditPart.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6088
Modified:
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/edit/LinkEditPart.java
===================================================================
---
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/edit/LinkEditPart.java 2010-04-20
14:17:30 UTC (rev 21555)
+++
branches/jbosstools-3.1.x/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/editor/edit/LinkEditPart.java 2010-04-20
14:37:39 UTC (rev 21556)
@@ -131,7 +131,7 @@
conn.add(pathLabel, pathLocator);
String text = ""; //$NON-NLS-1$
- if (getLink().getJSFModel().getOptions().showShortcutPath())
+ if (getLink().getJSFModel().getOptions().showShortcutPath() &&
getLink().getToGroup() != null)
text = getLink().getToGroup().getVisiblePath();
shortcutLabel = new GEFLabel(text, FigureFactory.normalColor);
if (getLink().getJSFModel().getOptions().showShortcutIcon())
@@ -220,7 +220,7 @@
public void linkChange(ILink source) {
pathLabel.setText(getLink().getLinkName());
- if (getLinkModel().getJSFModel().getOptions().showShortcutPath())
+ if (getLinkModel().getJSFModel().getOptions().showShortcutPath() &&
getLink().getToGroup() != null)
shortcutLabel.setText(getLink().getToGroup().getVisiblePath());
else
shortcutLabel.setText(""); //$NON-NLS-1$