Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Different behavior between BUILD and eclipse run.
Different behavior between BUILD and eclipse run. [message #1387956] Wed, 25 June 2014 16:50
Thomas Zwickl is currently offline Thomas Zwickl
Messages: 9
Registered: May 2014
Junior Member
Hello together,

I recently have encountered a really strange problem in my RCP application.
But as first some background information about my RCP application.
It's a RCP application based on eclipse 3.x and consists of several perspectives with each containing a few views and editors.

The problem is when I run my application within eclipse via the run product button everything works as expected. When I open my perspective all my views and editors are correctly displayed.
But now comes the strange part when I create a build of my application with Maven and start this application my default perspective opens as normal and also displays all my views and editors as expected. But when I want to open my other perspectives then the perspective opens but don't display either views nor editors. All that I can see is a gray background and that's all.

I defined my perspective in my application as following:

public class ServiceManagerPerspective implements IPerspectiveFactory {
    
    /**
     * The perspective ID as specified in the extension.
     */
    public final static String ID = "****";

    @Override
    public void createInitialLayout(final IPageLayout layout) {
        
        layout.setFixed(true);
        final String editorArea = layout.getEditorArea();
        
        layout.setEditorAreaVisible(true);

        final IFolderLayout serviceManagerFolder = layout.createFolder("ServiceManager", IPageLayout.LEFT, 0.25f, editorArea);
        serviceManagerFolder.addView(NavigationView.ID);
        layout.getViewLayout(NavigationView.ID).setCloseable(false);
    }
}


So what do you think what could cause this strange behavior? I really tried out everything I could think off, but without success.
I can't grasp what's so different between running the application as a build or as a product in eclipse.
Hopefully someone can enlighten me Smile

Best regards,
Thomas
Previous Topic:RCP compilation
Next Topic:Strange workspace switching behaviour under Windows
Goto Forum:
  


Current Time: Fri Jul 25 06:43:24 EDT 2014

Powered by FUDForum. Page generated in 0.01419 seconds