Author: mareshkau
Date: 2008-10-29 07:56:36 -0400 (Wed, 29 Oct 2008)
New Revision: 11276
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java
Log:
JBIDE-3030 fix
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java 2008-10-29
11:49:48 UTC (rev 11275)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/ElService.java 2008-10-29
11:56:36 UTC (rev 11276)
@@ -141,6 +141,10 @@
*/
public boolean isCloneableNode(VpePageContext pageContext,Node sourceNode) {
boolean rst = false;
+ // fix for JBIDE-3030
+ if(pageContext.getVisualBuilder().getCurrentIncludeInfo()==null) {
+ return rst;
+ }
final IFile file =
pageContext.getVisualBuilder().getCurrentIncludeInfo().getFile();
if (((this.isAvailable(file) && this.isAvailableForNode(sourceNode,
file))) || isInResourcesBundle(pageContext, sourceNode)){
Show replies by date