Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Unexpected "Unable to find view with id" errors
Unexpected "Unable to find view with id" errors [message #755149] Mon, 07 November 2011 14:26 Go to next message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
This is my perspective:
package ru.microdigital.cms.plugins.other.test.framework.ui;

import org.eclipse.ui.IPageLayout;

public class TestFrameworkPerspective implements IPerspectiveFactory {
	public void createInitialLayout(IPageLayout layout) {
		layout.addView("ru.microdigital.cms.plugins.other.test.framework.ui.bundles.ModelsTreeView", IPageLayout.LEFT, 0.33f, IPageLayout.ID_EDITOR_AREA);
		layout.addView("org.eclipse.ui.console.ConsoleView", IPageLayout.BOTTOM, 0.6f, IPageLayout.ID_EDITOR_AREA);
		layout.addView("org.eclipse.ui.views.PropertySheet", IPageLayout.RIGHT, 0.6f, IPageLayout.ID_EDITOR_AREA);
	}
}

When starting the program, I get warning messages:
!ENTRY org.eclipse.ui 4 4 2011-11-07 18:23:30.835
!MESSAGE Unable to find view with id: org.eclipse.ui.console.ConsoleView, when creating perspective ru.microdigital.cms.plugins.other.test.framework.ui.perspective

!ENTRY org.eclipse.ui 4 4 2011-11-07 18:23:30.842
!MESSAGE Unable to find view with id: org.eclipse.ui.views.PropertySheet, when creating perspective ru.microdigital.cms.plugins.other.test.framework.ui.perspective

and the views don't show up. However, org.eclipse.ui.views and org.eclipse.ui.console, which provide these views, are both in my main UI plugin's dependencies, and there are no messages about failing to resolve them. What could be going wrong here?
Re: Unexpected "Unable to find view with id" errors [message #755227 is a reply to message #755149] Mon, 07 November 2011 18:20 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Could you check that they're in your launch config as well, and do a quick check with the OSGi console (ss)? Although you're right, if your main UI plugin had a require-bundle on those bundles, unless they were optional it should have killed them as well.

PW


Re: Unexpected "Unable to find view with id" errors [message #755345 is a reply to message #755227] Tue, 08 November 2011 08:35 Go to previous messageGo to next message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
My launch config contains only one feature, which contains both of them. In OSGi console they are both <<LAZY>> at startup (main plugin is ACTIVE, of course), and `start`ing them doesn't give any error messages.

[Updated on: Tue, 08 November 2011 08:36]

Report message to a moderator

Re: Unexpected "Unable to find view with id" errors [message #755352 is a reply to message #755345] Tue, 08 November 2011 08:48 Go to previous messageGo to next message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
After terminating the application, deleting workspace data folder, and starting again they are ACTIVE, but the views still don't appear Sad
Re: Unexpected "Unable to find view with id" errors [message #755370 is a reply to message #755352] Tue, 08 November 2011 09:51 Go to previous messageGo to next message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
They are even shown by `pt` command:
osgi> pt -v org.eclipse.ui.views
Extension point: org.eclipse.ui.views [from org.eclipse.ui]

Extension(s):
-------------------
null [from org.eclipse.ui]
   <category>
      name = General
      id = org.eclipse.ui
   </category>
   <view>
      class = org.eclipse.ui.internal.ViewIntroAdapterPart
      category = org.eclipse.ui
      name = Welcome
      id = org.eclipse.ui.internal.introview
   </view>
   <stickyView>
      location = RIGHT
      id = org.eclipse.ui.internal.introview
   </stickyView>

null [from org.eclipse.ui.ide]
   <view>
      name = Progress
      icon = $nl$/icons/full/eview16/pview.gif
      category = org.eclipse.ui
      class = org.eclipse.ui.internal.progress.ProgressView
      id = org.eclipse.ui.views.ProgressView
   </view>
   <view>
      name = Navigator
      icon = $nl$/icons/full/eview16/filenav_nav.gif
      category = org.eclipse.ui
      class = org.eclipse.ui.views.navigator.ResourceNavigator
      id = org.eclipse.ui.views.ResourceNavigator
   </view>
   <view>
      allowMultiple = true
      category = org.eclipse.ui
      class = org.eclipse.ui.internal.views.markers.BookmarksView
      icon = $nl$/icons/full/eview16/bkmrk_nav.gif
      id = org.eclipse.ui.views.BookmarkView
      name = Bookmarks
   </view>
   <view>
      allowMultiple = true
      category = org.eclipse.ui
      class = org.eclipse.ui.internal.views.markers.TasksView
      icon = $nl$/icons/full/eview16/tasks_tsk.gif
      id = org.eclipse.ui.views.TaskList
      name = Tasks
   </view>
   <view>
      allowMultiple = true
      category = org.eclipse.ui
      class = org.eclipse.ui.internal.views.markers.ProblemsView
      icon = $nl$/icons/full/eview16/problems_view.gif
      id = org.eclipse.ui.views.ProblemView
      name = Problems
   </view>
   <view>
      allowMultiple = true
      category = org.eclipse.ui
      class = org.eclipse.ui.internal.views.markers.AllMarkersView
      icon = $nl$/icons/full/eview16/problems_view.gif
      id = org.eclipse.ui.views.AllMarkersView
      name = Markers
   </view>

null [from org.eclipse.m2e.core.ui]
   <category>
      id = org.eclipse.m2e.core.views.repositories
      name = Maven
   </category>
   <view>
      id = org.eclipse.m2e.core.views.MavenRepositoryView
      category = org.eclipse.m2e.core.views.repositories
      class = org.eclipse.m2e.core.ui.internal.views.MavenRepositoryView
      icon = icons/maven_indexes.gif
      name = Maven Repositories
   </view>

null [from org.eclipse.search]
   <view>
      id = org.eclipse.search.SearchResultView
      name = Classic Search
      category = org.eclipse.ui
      class = org.eclipse.search.internal.ui.SearchResultView
      icon = $nl$/icons/full/eview16/searchres.gif
   </view>
   <view>
      name = Search
      icon = $nl$/icons/full/eview16/searchres.gif
      category = org.eclipse.ui
      class = org.eclipse.search2.internal.ui.SearchView
      allowMultiple = true
      id = org.eclipse.search.ui.views.SearchView
   </view>

null [from org.eclipse.team.ui]
   <category>
      name = Team
      id = org.eclipse.team.ui
   </category>
   <view>
      name = Synchronize
      icon = $nl$/icons/full/eview16/synch_synch.gif
      fastViewWidthRatio = 0.25
      category = org.eclipse.team.ui
      allowMultiple = true
      class = org.eclipse.team.internal.ui.synchronize.SynchronizeView
      id = org.eclipse.team.sync.views.SynchronizeView
   </view>
   <view>
      allowMultiple = true
      category = org.eclipse.team.ui
      class = org.eclipse.team.internal.ui.history.GenericHistoryView
      icon = icons/full/eview16/history_view.gif
      id = org.eclipse.team.ui.GenericHistoryView
      name = History
   </view>

null [from org.eclipse.ui.console]
   <view>
      allowMultiple = true
      class = org.eclipse.ui.internal.console.ConsoleView
      icon = $nl$/icons/full/cview16/console_view.gif
      category = org.eclipse.ui
      name = Console
      id = org.eclipse.ui.console.ConsoleView
   </view>

null [from org.eclipse.ui.views]
   <view>
      allowMultiple = true
      category = org.eclipse.ui
      class = org.eclipse.ui.views.properties.PropertySheet
      icon = $nl$/icons/full/eview16/prop_ps.gif
      id = org.eclipse.ui.views.PropertySheet
      name = Properties
   </view>
   <view>
      name = Outline
      icon = $nl$/icons/full/eview16/outline_co.gif
      category = org.eclipse.ui
      class = org.eclipse.ui.views.contentoutline.ContentOutline
      id = org.eclipse.ui.views.ContentOutline
   </view>

null [from ru.microdigital.cms.plugins.other.test.framework.ui]
   <view>
      class = ru.microdigital.cms.plugins.other.test.framework.ui.bundles.ModelsTreeView
      id = ru.microdigital.cms.plugins.other.test.framework.ui.bundles.ModelsTreeView
      name = Drivers and Models
   </view>
Re: Unexpected "Unable to find view with id" errors [message #755384 is a reply to message #755227] Tue, 08 November 2011 10:33 Go to previous message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
The problem was with a wrong activityPatternBinding, which was filtering these views out Embarrassed
Previous Topic:TreeViewer with individual cell control
Next Topic:Problems when deselecting any plugins in target platform
Goto Forum:
  


Current Time: Thu Oct 30 15:18:46 GMT 2014

Powered by FUDForum. Page generated in 0.02722 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software