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?