Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjechoi2006-06-16 03:45:56 -0400
committerjechoi2006-06-16 03:45:56 -0400
commitc9ef711eb4f3abab018bd70c4056b54e42b48723 (patch)
treeb79837059869ef7256256c6a80100ba27118ce73
parent90ecbb3a4e688c3fdaf5071d8c467a58703be2e2 (diff)
downloadwebtools.jsf-c9ef711eb4f3abab018bd70c4056b54e42b48723.tar.gz
webtools.jsf-c9ef711eb4f3abab018bd70c4056b54e42b48723.tar.xz
webtools.jsf-c9ef711eb4f3abab018bd70c4056b54e42b48723.zip
Bug Fix for 147180
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/properties/GeneralViewSectionDescriptor.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/properties/GeneralViewSectionDescriptor.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/properties/GeneralViewSectionDescriptor.java
index b6c625256..51e42532c 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/properties/GeneralViewSectionDescriptor.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/pageflow/properties/GeneralViewSectionDescriptor.java
@@ -14,12 +14,12 @@ package org.eclipse.jst.jsf.facesconfig.ui.pageflow.properties;
import java.util.List;
-import org.eclipse.jface.text.TextSelection;
+import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jst.jsf.facesconfig.ui.pageflow.editpart.PageflowLinkEditPart;
import org.eclipse.jst.jsf.facesconfig.ui.pageflow.editpart.PageflowElementEditPart;
import org.eclipse.jst.jsf.facesconfig.ui.pageflow.editpart.PageflowElementTreeEditPart;
+import org.eclipse.jst.jsf.facesconfig.ui.pageflow.editpart.PageflowLinkEditPart;
import org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.PageflowLink;
import org.eclipse.jst.jsf.facesconfig.ui.pageflow.util.PageflowValidation;
import org.eclipse.ui.IWorkbenchPart;
@@ -103,7 +103,8 @@ public class GeneralViewSectionDescriptor implements ISectionDescriptor {
|| object instanceof PageflowElementTreeEditPart) {
return true;
} else if (object instanceof PageflowLinkEditPart) {
- PageflowLink pfLink = (PageflowLink) ((PageflowLinkEditPart) object).getModel();
+ PageflowLink pfLink = (PageflowLink) ((PageflowLinkEditPart) object)
+ .getModel();
if (PageflowValidation.getInstance().isValidLinkForProperty(
pfLink)) {
return true;
@@ -111,7 +112,7 @@ public class GeneralViewSectionDescriptor implements ISectionDescriptor {
} else {
return true;
}
- } else if (selection instanceof TextSelection) {
+ } else if (selection instanceof ITextSelection) {
return true;
}
@@ -128,8 +129,6 @@ public class GeneralViewSectionDescriptor implements ISectionDescriptor {
}
public int getEnablesFor() {
- // TODO Auto-generated method stub
return ENABLES_FOR_ANY;
}
-
}

Back to the top