Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] Hiding view using activity

Hi,

I am trying to hide a view using activity on Eclipse Oxygen.1a but it still appears. However, it is absent in Window > Show View.

I am trying following simple activity.

    <extension
          point="org.eclipse.ui.activities">
       <activity
             id="com.my.plugin.hide.myView"
             name="Hide my view">
       </activity>
       <activityPatternBinding
             activityId="com.my.plugin.hide.myView"
             isEqualityPattern="true"
             pattern="com.my.plugin/com.my.plugin.ui.myView">
       </activityPatternBinding>
    </extension>

But if I create activity like below, it works on eclipse 3.8 but not on Oxygen, instead view opens with error part and exception in it.

       <activity
             id="com.my.plugin.hide.myView"
             name="Hide my view">
          <enabledWhen>
             <with
                   variable="activeWorkbenchWindow">
             </with>
          </enabledWhen>
       </activity>

Following is the first stack of exception.
java.lang.Exception
at org.eclipse.ui.internal.ViewReference.createErrorPart(ViewReference.java:112)

Am I doing something wrong?

Regards,
Umair Sair

Back to the top