Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-dev] Can't hide view or override view ID anymore

I'vemanaged to hide all unused views except 'org.locationtech.udig.catalog.ui.Search'.
It can't be hidden with:
        <!-- Filters Search View -->
        <activityPatternBinding
            activityId="c.h.a.theActivity"
            pattern="org\.locationtech\.udig\.catalog\.ui.*\.Search">
        </activityPatternBinding>
or even with all views deletion:
        <!-- Filters Search View -->
        <activityPatternBinding
            activityId="c.h.a.theActivity"
            pattern=".*">
        </activityPatternBinding>

Can be hidden with code: 'page.hideView(page.findView("org.locationtech.udig.catalog.ui.Search"));' written in UDIGWorkbenchWindowAdvisor.postWindowOpen() method
But there will be exception:
org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)
at org.eclipse.swt.SWT.error(SWT.java:4441)
at org.eclipse.swt.SWT.error(SWT.java:4356)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.locationtech.udig.internal.ui.UDIGApplication.start(UDIGApplication.java:132)
        ... [local code stack]

Is there another way to hide this view after Workbench start?

2016-06-22 14:00 GMT+03:00 Іван В <ivanvydai@xxxxxxxxx>:
Hello colleagues,

In our project based on uDig 1.2.2 there are functional that overrides few standard Eclipse/uDig views (e.g. 'Layers', 'Search', 'Information').
Previously it was working well using same view ID to override, but on Luna and uDig 2.0.0 it can't be done anymore.
It simply adds additional view instead of overriding old one and shows the old one af before.

Also I can't hide unused views by setting visible='false' attribute.
E.g. like:
    <extension         
         point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension targetID="org.locationtech.udig.ui.mapPerspective">
         <view id="org.locationtech.udig.catalog.ui.CatalogView"
               relationship="stack"
               visible="false"/>
         <view id="org.locationtech.udig.catalog.ui.Search"
               relationship="stack"
               visible="false"/>
      </perspectiveExtension>
    </extension>

Is anyone faced those issues?

Best regards,
--
Ivan Vydai
Skype: d3m0n1c_ua



--
Ivan Vydai
Skype: d3m0n1c_ua

Back to the top