Temporary fix for WE bug
diff --git a/we/jwt-we/src/org/eclipse/jwt/we/internal/ActionBarContributor.java b/we/jwt-we/src/org/eclipse/jwt/we/internal/ActionBarContributor.java
index 19a7de8..7fef18f 100644
--- a/we/jwt-we/src/org/eclipse/jwt/we/internal/ActionBarContributor.java
+++ b/we/jwt-we/src/org/eclipse/jwt/we/internal/ActionBarContributor.java
@@ -532,7 +532,10 @@
// the group where the actions should be put
ToolBarContributionItem zoomGroup = (ToolBarContributionItem) coolBarManager
.find("org.eclipse.jwt.we.zoomBar"); //$NON-NLS-1$
-
+
+ if (zoomGroup == null)
+ return;
+
// add zoom combo to toolbar
String[] zoomStrings = new String[]
{ ZoomManager.FIT_ALL, ZoomManager.FIT_HEIGHT, ZoomManager.FIT_WIDTH };
diff --git a/we/jwt-we/src/org/eclipse/jwt/we/misc/views/Views.java b/we/jwt-we/src/org/eclipse/jwt/we/misc/views/Views.java
index 0c69291..e61d4ee 100644
--- a/we/jwt-we/src/org/eclipse/jwt/we/misc/views/Views.java
+++ b/we/jwt-we/src/org/eclipse/jwt/we/misc/views/Views.java
@@ -546,6 +546,8 @@
*/
public void refreshViewsState(final WEEditor weeditor)
{
+ if (weeditor != null && weeditor.getSite() == null)
+ return;
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable()
{
@@ -608,6 +610,7 @@
// get the editoractionbars
SubActionBars2 actionBars = null;
+
if (weEditor.getSite() instanceof IViewSite)
{
actionBars = (SubActionBars2) ((IViewSite) weEditor.getSite())