[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] How to add PropertySheet to RCP application?

Hi,

In my RCP application, I want to use the PropertySheet, first, I wrote the following code in my Perspective class:

public void createInitialLayout(IPageLayout layout) {
		layout.setEditorAreaVisible(true);
		IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.29f, layout.getEditorArea());
		right.addView("org.eclipse.ui.views.properties.PropertySheet");

	}

when it launchs, an exception occurs:
Exception in org.eclipse.ui.internal.FolderLayout.addView(String): org.eclipse.ui.PartInitException: View descriptor not found: org.eclipse.ui.views.properties.PropertySheet
Reason:
Exception in org.eclipse.ui.internal.FolderLayout.addView(String): org.eclipse.ui.PartInitException: View descriptor not found: org.eclipse.ui.views.properties.PropertySheet

So, I think I need to declare that I need the org.eclipse.ui.views, so, I add it in the dependencies page and try again, but this time it even can not launch.

I guess I should declare the views extension in the extensions page, so I did, but in vain.

I am confusing, how to use the propertySheet?

Thanks. Robin