Author: dazarov
Date: 2009-11-24 11:24:05 -0500 (Tue, 24 Nov 2009)
New Revision: 18808
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamRefactorContributionFactory.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4990
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamRefactorContributionFactory.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamRefactorContributionFactory.java 2009-11-24
16:14:36 UTC (rev 18807)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamRefactorContributionFactory.java 2009-11-24
16:24:05 UTC (rev 18808)
@@ -135,6 +135,10 @@
&& !PROPERTIES_EXT.equalsIgnoreCase(ext))
return;
+ ISeamProject seamProject = SeamCorePlugin.getSeamProject(editorFile.getProject(),
true);
+ if(seamProject == null)
+ return;
+
MenuManager mm = new MenuManager(SeamUIMessages.SEAM_REFACTOR);
mm.setVisible(true);