Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [Common navigator] - Weird warning/error messages on startup
[Common navigator] - Weird warning/error messages on startup [message #674573] Fri, 27 May 2011 11:43 Go to next message
Timotei D is currently offline Timotei DFriend
Messages: 89
Registered: March 2010
Member
Hello!
I'm creating a plugin. When I start the product from within the eclipse, I can decide whether to clean the previous product's workspace or not.

If I clean it, it works fine.
If I start the second time the product without cleaning the workspace I get this:

!ENTRY org.eclipse.ui 4 4 2011-05-27 14:37:29.983
!MESSAGE Unable to find element factory: org.wesnoth.navigator.WesnothProjectsExplorer

!ENTRY org.eclipse.ui 4 4 2011-05-27 14:37:29.990
!MESSAGE Unable to restore page - cannot instantiate input factory: org.wesnoth.navigator.WesnothProjectsExplorer

!ENTRY org.eclipse.ui 4 4 2011-05-27 14:37:29.992
!MESSAGE Unable to restore page - cannot instantiate input element: org.wesnoth.navigator.WesnothProjectsExplorer

!ENTRY org.eclipse.ui 4 0 2011-05-27 14:37:32.109
!MESSAGE Problems occurred restoring workbench.
!SUBENTRY 1 unknown 0 0 2011-05-27 14:37:32.109
!MESSAGE OK
!SUBENTRY 1 unknown 0 0 2011-05-27 14:37:32.109
!MESSAGE OK
!SUBENTRY 1 unknown 0 0 2011-05-27 14:37:32.110
!MESSAGE OK
!SUBENTRY 1 unknown 0 0 2011-05-27 14:37:32.110
!MESSAGE OK
!SUBENTRY 1 org.eclipse.ui 4 0 2011-05-27 14:37:32.110
!MESSAGE Unable to restore perspective: Workspace - Wesnoth.
!SUBENTRY 1 org.eclipse.ui 4 0 2011-05-27 14:37:32.111
!MESSAGE Unable to restore perspective: Workspace - Wesnoth.
!SUBENTRY 1 unknown 0 0 2011-05-27 14:37:32.112
!MESSAGE OK


My projects explorer class contents is here: http://pastebin.com/Vs0ne7pU

Part of plugin.xml that is relevant to this:

   <extension
         point="org.eclipse.ui.views">

      <category
            name="Wesnoth"
            id="org.wesnoth.views">
      </category>
      <view
            category="org.wesnoth.views"
            class="org.wesnoth.navigator.WesnothProjectsExplorer"
            icon="icons/wesnoth-icon_16.png"
            id="org.wesnoth.navigator.WesnothProjectsExplorer"
            name="Wesnoth Projects">
      </view>
   </extension>
   <extension
         point="org.eclipse.ui.navigator.navigatorContent">
      <commonFilter
            activeByDefault="true"
            id="org.wesnoth.navigator.filters.hideAutoLinkedProject"
            name="Hide Autolinked CFG Projects">
         <filterExpression>
            <or>
               <adapt
                     type="org.eclipse.core.resources.IProject">
                  <test
                        property="org.eclipse.core.resources.name"
                        value="_AutoLinked_CFGExternalFiles_">
                  </test>
               </adapt>
            </or></filterExpression>
      </commonFilter>
      <navigatorContent
            activeByDefault="true"
            id="org.wesnoth.navigator.wmlProjectDataCore"
            name="Core"
            priority="highest">
         <triggerPoints>
            <or>
               <and>
                  <instanceof
                        value="org.eclipse.core.resources.IProject">
                  </instanceof></and>
            </or></triggerPoints>
      </navigatorContent>
      <commonFilter
            activeByDefault="true"
            id="org.wesnoth.navigator.filters.buildxml"
            name="Hide build.xml">
         <filterExpression>
            <or>
               <adapt
                     type="org.eclipse.core.resources.IFile">
                  <test
                        property="org.eclipse.core.resources.name"
                        value="build.xml">
                  </test>
               </adapt>
            </or>
         </filterExpression>
      </commonFilter>
   </extension>
   <extension
         point="org.eclipse.ui.navigator.viewer">
      <viewer
            viewerId="org.wesnoth.navigator.WesnothProjectsExplorer">
      </viewer>
      <viewerContentBinding
            viewerId="org.wesnoth.navigator.WesnothProjectsExplorer">
         <includes>
            <contentExtension
                  pattern="org.eclipse.ui.navigator.resourceContent">
            </contentExtension>
            <contentExtension
                  pattern="org.eclipse.ui.navigator.resources.filters.*">
            </contentExtension>
            <contentExtension
                  pattern="org.wesnoth.navigator.filters.*">
            </contentExtension>
         </includes>
      </viewerContentBinding>
      <viewerActionBinding
            viewerId="org.wesnoth.navigator.WesnothProjectsExplorer">
         <includes>
            <actionExtension
                  pattern="org.eclipse.ui.navigator.resources.*">
            </actionExtension>
         </includes>
      </viewerActionBinding>
   </extension>


Could anyone tell me what could be the problem?

Thanks,
Timo
Re: [Common navigator] - Weird warning/error messages on startup [message #674593 is a reply to message #674573] Fri, 27 May 2011 13:36 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I see that it's complaining about element input/element factories, and you implemented an element factory. Did you provide the extension for it as well? See the javadoc for org.eclipse.ui.IElementFactory.

PW


Re: [Common navigator] - Weird warning/error messages on startup [message #689787 is a reply to message #674593] Tue, 28 June 2011 11:16 Go to previous message
Timotei D is currently offline Timotei DFriend
Messages: 89
Registered: March 2010
Member
Hi!

It seems that the setting:
 <navigatorContent
            activeByDefault="true"
            id="org.wesnoth.navigator.wmlProjectDataCore"
            name="Core"
            priority="highest">
         <triggerPoints>
            <or>
               <and>
                  <instanceof
                        value="org.eclipse.core.resources.IProject">
                  </instanceof></and>
            </or></triggerPoints>
      </navigatorContent>


Was the problem. I've deleted it and I don't get anymore the warnings. Smile
Previous Topic:How to set a preference page at first place ?
Next Topic:How to read preferences
Goto Forum:
  


Current Time: Sat Nov 29 03:55:47 GMT 2014

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

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