Eclipse Common Navigator Framework in RCP Applications » RCP Navigator Example (updated)

RCP Navigator Example (updated)
rcpcnf.zip

10 Responses to “RCP Navigator Example (updated)”

  1. John Emerson Says:

    I understand that this has been reported before, however I wonder if the problem has cropped up again under 322.

    I have tried rcpcnf.zip with Eclipse 322 on both Windows (JRE 1.5.0_11) & MacOS (JRE 1.5.0_06). In both cases I saw the same behavior reported by Jef Gearhart. New projects don’t show up unless their parent directory exists at runtime, for example, runtime-rcpCNF.product. The same is true when a product is exported via the product export wizard.

    I would appreciate any help in this regard. Thanks in advance,
    John Emerson

  2. M Eken Says:

    I’ve just tried the example and everything seems fine. I can create new projects and they’re visible immediately. However, the next time I start up the application I see the following on my console

    !ENTRY org.eclipse.core.resources 2 10035 2007-03-16 10:02:41.359
    !MESSAGE A workspace crash was detected. The previous session did not exit normally.

    This is quite reproducible (clear workspace, create project, restart application, and it happens), do you have any idea why it happens?

    Note that you have to turn on the logging (-consoleLog option) to see this message.

  3. M Eken Says:

    Well, should’ve consulted bugzilla first. Apparently, this is a known issue, see
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=118420

  4. M Eken Says:

    I’ve also noticed that the keyboard shortcuts don’t work in the example. Even though the copy, paste, delete etc. actions are available (through the context menu), their shortcuts don’t work. Any ideas?

  5. M Eken Says:

    Found the issue, I had to register the actions in my ApplicationActionBarAdvisor.makeActions, then the shortcuts work

    protected void makeActions(IWorkbenchWindow window) {
    copyAction = ActionFactory.COPY.create(window);
    register(copyAction);
    pasteAction = ActionFactory.PASTE.create(window);
    register(pasteAction);
    deleteAction = ActionFactory.DELETE.create(window);
    register(deleteAction);
    ….

  6. Kevin McGuire Says:

    In 3.3 build N20070510 Vista, I dropped the example in and ran it as a rcpCNF.product. Everything came up ok but new projects would not show up in the navigator.

    I ran it as a platform.ide.product and it worked. Curiously, running it as a rcpCNF.product thereafter also worked, so presumably there was something left in workspace state that made the difference.

  7. Biju Says:

    Hi

    I am facing a problem , that is in my rcp application, after creating the projects if I close and reopen the Navigator, a fresh navigator view is shown. I am not able to see the projects created earlier in it..

    Any Idea to solve this.

    Thanks

    Biju

  8. Oleg Rostanin Says:

    Hello,

    many thanks for yor code.

  9. Thomas S. Says:

    Hello Thanks for this great information – it took a long time to figure out what went wrong – in my RCP – THANKS !

    /TS

  10. fstyle.de » Blog Archive » Using the Eclipse Common Navigator Framework in RCP Says:

    [...] http://www.cpuidle.de/blog/?attachment_id=50 [...]

Leave a Reply