Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Could not create view
Could not create view [message #715222] Fri, 12 August 2011 19:51 Go to next message
Alex  is currently offline Alex Friend
Messages: 2
Registered: August 2011
Junior Member
Good evening guys and girls,

let's get right into it:

Preface

  • I have a custom RCP application built on top of Eclipse.
  • I also created a separate plug-in which works just fine while running as Eclipse Application
  • The plug-in still works fine when I select the application and add the plug-in in Run Configurations (which means I can see and alter Preferences, as well as I see the the entry for the plug-ins Perspective
  • The problem occurs when I select the Perspective, as all three Views fail to be created
  • I am using Eclipse 3.7 on a Win7 x64 machine


What I've tried so far

  • I double checked the ID's in the Views' .java file, as well es in the Manifest, as well as in the Perspective's class - they are identical (following this topic ID 301875 advice)
  • I cleaned up and rebuilt the applications project (as it was advised here topic ID 309379)
  • I checked the solution that mentioned missing icons or plugin.xml (as seen here topic ID 515455)
  • I also tried the adding Required Plug-ins and validate Plug-ins options


The outcome is still the same. This is the error log, which looks the same for every View (except the class-name of course).
!ENTRY org.eclipse.ui 4 4 2011-08-12 20:55:42.092
!MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView: org.eclipse.ui.PartInitException: Could not create view: de.hundt.kewo.views.SimilaritesView

!ENTRY org.eclipse.ui 4 4 2011-08-12 20:55:42.128
!MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView: org.eclipse.ui.PartInitException: Could not create view: de.hundt.kewo.views.SimilaritesView
!STACK 1
org.eclipse.ui.PartInitException: Could not create view: de.hundt.kewo.views.SimilaritesView
	at org.eclipse.ui.internal.ViewFactory.createView(ViewFactory.java:158)
	at org.eclipse.ui.internal.LayoutHelper.createView(LayoutHelper.java:162)
	at org.eclipse.ui.internal.PageLayout.createView(PageLayout.java:554)
	at org.eclipse.ui.internal.PageLayout.addView(PageLayout.java:416)
	at org.eclipse.ui.internal.PageLayout.addView(PageLayout.java:390)
	at de.hundt.kewo.plugin.ui.perspectives.KEWoPerspectiveFactory.createInitialLayout(KEWoPerspectiveFactory.java:26)
	at org.eclipse.ui.internal.Perspective.loadPredefinedPersp(Perspective.java:816)
	at org.eclipse.ui.internal.Perspective.createPresentation(Perspective.java:270)
	at org.eclipse.ui.internal.Perspective.<init>(Perspective.java:156)
	at org.eclipse.ui.internal.tweaklets.Workbench3xImplementation.createPerspective(Workbench3xImplementation.java:55)
	at org.eclipse.ui.internal.WorkbenchPage.createPerspective(WorkbenchPage.java:1748)
	at org.eclipse.ui.internal.WorkbenchPage.busySetPerspective(WorkbenchPage.java:1108)
	at org.eclipse.ui.internal.WorkbenchPage.access$16(WorkbenchPage.java:1099)
	at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3814)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3812)
	at org.eclipse.ui.handlers.ShowPerspectiveHandler.openPerspective(ShowPerspectiveHandler.java:146)
	at org.eclipse.ui.handlers.ShowPerspectiveHandler.openOther(ShowPerspectiveHandler.java:118)
	at org.eclipse.ui.handlers.ShowPerspectiveHandler.execute(ShowPerspectiveHandler.java:57)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:178)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
	at org.eclipse.ui.actions.PerspectiveMenu.runOther(PerspectiveMenu.java:376)
	at org.eclipse.ui.actions.PerspectiveMenu$3.runWithEvent(PerspectiveMenu.java:130)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at de.dfki.mycbr.gui.Application.start(Application.java:41)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
!SUBENTRY 1 org.eclipse.ui 4 0 2011-08-12 20:55:42.149
!MESSAGE Could not create view: de.hundt.kewo.views.SimilaritesView


Here are both the perspective code from the Application and the Plug-in. The latter one doesn't work.
Application:
public void createInitialLayout(IPageLayout layout) {
		PlatformUI.getWorkbench().getActiveWorkbenchWindow().addPerspectiveListener(new PerspectiveListener());
		
		layout.addView(PROJECT_LIST_VIEW_ID, IPageLayout.LEFT, 0.3f, layout.getEditorArea());
		IViewLayout conceptListViewLayout = layout.getViewLayout(PROJECT_LIST_VIEW_ID);
		conceptListViewLayout.setCloseable(false);

		layout.addView(FUNCTION_LIST_VIEW_ID, IPageLayout.BOTTOM, 0.6f, PROJECT_LIST_VIEW_ID);
		IViewLayout attributeListViewLayout = layout.getViewLayout(FUNCTION_LIST_VIEW_ID);
		attributeListViewLayout.setCloseable(false);
		
		layout.addPerspectiveShortcut(ID);
		layout.addPerspectiveShortcut(CaseBasePerspective.ID);
		
	}


Plugin:
@Override
	public void createInitialLayout(IPageLayout layout) {
		layout.addView(this.FORUM_VIEW_ID, IPageLayout.LEFT, 0.50f,
					layout.getEditorArea());
		
		layout.addView(this.TAXONOMY_VIEW_ID, IPageLayout.RIGHT, 0.50f,
				layout.getEditorArea());
		
		layout.addView(this.SIMILARITY_VIEW_ID, IPageLayout.BOTTOM, 0.3f,
				layout.getEditorArea());
	}


edit: Debug at least showed the point where the exception is thrown. secondaryId and desc where null.
    public IViewReference createView(String id, String secondaryId)
            throws PartInitException {
        IViewDescriptor desc = viewReg.find(id);
        // ensure that the view id is valid
        if (desc == null) {
			throw new PartInitException(NLS.bind(WorkbenchMessages.ViewFactory_couldNotCreate,  id ));
		} ...


Any hunch what I did wrong here is much appreciated.

Cheers,
Alex

PS: replaced the the not-allowed links with just the topics ID to show that I did research here, yet didn't come to any conclusion

[Updated on: Sat, 13 August 2011 09:44]

Report message to a moderator

(no subject) [message #715544 is a reply to message #715222] Sun, 14 August 2011 12:31 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 418
Registered: July 2009
Senior Member
Hi Alexander,

Can you open the views without going in the perspective?

window/show view/etc..

Regards,

Wim

> Good evening guys and girls,
>
> let's get right into it:
>
> Preface
>
> I have a custom RCP application built on top of Eclipse.
> I also created a separate plug-in which works just fine while running as
Eclipse Application
> The plug-in still works fine when I select the application and add the
plug-in in Run Configurations (which means I can see and alter Preferences,
as well as I see the the entry for the plug-ins Perspective
> The problem occurs when I select the Perspective, as all three Views fail
to be created
> I am using Eclipse 3.7 on a Win7 x64 machine
>
>
> What I've tried so far
>
> I double checked the ID's in the Views' .java file, as well es in the
Manifest, as well as in the Perspective's class - they are identical
(following this topic ID 301875 advice)
> I cleaned up and rebuilt the applications project (as it was advised here
topic ID 309379)
> I checked the solution that mentioned missing icons or plugin.xml (as seen
here topic ID 515455)
> I also tried the adding Required Plug-ins and validate Plug-ins options
>
>
> The outcome is still the same. This is the error log, which looks the same
for every View (except the class-name of course).
> !ENTRY org.eclipse.ui 4 4 2011-08-12 20:55:42.092
> !MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView:
org.eclipse.ui.PartInitException: Could not create view:
de.hundt.kewo.views.SimilaritesView
>
> !ENTRY org.eclipse.ui 4 4 2011-08-12 20:55:42.128
> !MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView:
org.eclipse.ui.PartInitException: Could not create view:
de.hundt.kewo.views.SimilaritesView
> !STACK 1
> org.eclipse.ui.PartInitException: Could not create view:
de.hundt.kewo.views.SimilaritesView
> at org.eclipse.ui.internal.ViewFactory.createView(ViewFactory.java:158)
> at org.eclipse.ui.internal.LayoutHelper.createView(LayoutHelper.java:162)
> at org.eclipse.ui.internal.PageLayout.createView(PageLayout.java:554)
> at org.eclipse.ui.internal.PageLayout.addView(PageLayout.java:416)
> at org.eclipse.ui.internal.PageLayout.addView(PageLayout.java:390)
> at
de.hundt.kewo.plugin.ui.perspectives.KEWoPerspectiveFactory.createInitialLayout(KEWoPerspectiveFactory.java:26)
> at
org.eclipse.ui.internal.Perspective.loadPredefinedPersp(Perspective.java:816)
> at
org.eclipse.ui.internal.Perspective.createPresentation(Perspective.java:270)
> at org.eclipse.ui.internal.Perspective.<init>(Perspective.java:156)
> at
org.eclipse.ui.internal.tweaklets.Workbench3xImplementation.createPerspective(Workbench3xImplementation.java:55)
> at
org.eclipse.ui.internal.WorkbenchPage.createPerspective(WorkbenchPage.java:1748)
> at
org.eclipse.ui.internal.WorkbenchPage.busySetPerspective(WorkbenchPage.java:1108)
> at org.eclipse.ui.internal.WorkbenchPage.access$16(WorkbenchPage.java:1099)
> at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3814)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3812)
> at
org.eclipse.ui.handlers.ShowPerspectiveHandler.openPerspective(ShowPerspectiveHandler.java:146)
> at
org.eclipse.ui.handlers.ShowPerspectiveHandler.openOther(ShowPerspectiveHandler.java:118)
> at
org.eclipse.ui.handlers.ShowPerspectiveHandler.execute(ShowPerspectiveHandler.java:57)
> at
org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
> at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
> at
org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:178)
> at
org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
> at
org.eclipse.ui.actions.PerspectiveMenu.runOther(PerspectiveMenu.java:376)
> at
org.eclipse.ui.actions.PerspectiveMenu$3.runWithEvent(PerspectiveMenu.java:130)
> at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
> at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
> at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
> at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at de.dfki.mycbr.gui.Application.start(Application.java:41)
> at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
> at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
> !SUBENTRY 1 org.eclipse.ui 4 0 2011-08-12 20:55:42.149
> !MESSAGE Could not create view: de.hundt.kewo.views.SimilaritesView
>
>
> Here are both the perspective code from the Application and the Plug-in.
The latter one doesn't work.
> Application:
> public void createInitialLayout(IPageLayout layout) {
>
PlatformUI.getWorkbench().getActiveWorkbenchWindow().addPerspectiveListener(new
PerspectiveListener());
>
> layout.addView(PROJECT_LIST_VIEW_ID, IPageLayout.LEFT, 0.3f,
layout.getEditorArea());
> IViewLayout conceptListViewLayout =
layout.getViewLayout(PROJECT_LIST_VIEW_ID);
> conceptListViewLayout.setCloseable(false);
>
> layout.addView(FUNCTION_LIST_VIEW_ID, IPageLayout.BOTTOM, 0.6f,
PROJECT_LIST_VIEW_ID);
> IViewLayout attributeListViewLayout =
layout.getViewLayout(FUNCTION_LIST_VIEW_ID);
> attributeListViewLayout.setCloseable(false);
>
> layout.addPerspectiveShortcut(ID);
> layout.addPerspectiveShortcut(CaseBasePerspective.ID);
>
> }
>
> Plugin:
> @Override
> public void createInitialLayout(IPageLayout layout) {
> layout.addView(this.FORUM_VIEW_ID, IPageLayout.LEFT, 0.50f,
> layout.getEditorArea());
>
> layout.addView(this.TAXONOMY_VIEW_ID, IPageLayout.RIGHT, 0.50f,
> layout.getEditorArea());
>
> layout.addView(this.SIMILARITY_VIEW_ID, IPageLayout.BOTTOM, 0.3f,
> layout.getEditorArea());
> }
>
> Any hunch what I did wrong here is much appreciated.
>
> Cheers,
> Alex
>
> PS: replaced the the not-allowed links with just the topics ID to show that
I did research here, yet didn't come to any conclusion
Re: (no subject) [message #715568 is a reply to message #715544] Sun, 14 August 2011 14:25 Go to previous messageGo to next message
Alex  is currently offline Alex Friend
Messages: 2
Registered: August 2011
Junior Member
Wim Jongman wrote on Sun, 14 August 2011 08:31
Hi Alexander,

Can you open the views without going in the perspective?

window/show view/etc..

Regards,

Wim


Unfortunately not, target application does not offer access to seperate views. All you can do is select perspectives. Sad
Re: Could not create view [message #716866 is a reply to message #715544] Thu, 18 August 2011 15:41 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 418
Registered: July 2009
Senior Member
Also not possible with CTRL+3?


> Hi Alexander,
>
> Can you open the views without going in the perspective?
>
> window/show view/etc..
>
> Regards,
>
> Wim
>
>> Good evening guys and girls,
>>
>> let's get right into it:
>>
>> Preface
>>
>> I have a custom RCP application built on top of Eclipse.
>> I also created a separate plug-in which works just fine while running as
> Eclipse Application
>> The plug-in still works fine when I select the application and add the
> plug-in in Run Configurations (which means I can see and alter Preferences,
> as well as I see the the entry for the plug-ins Perspective
>> The problem occurs when I select the Perspective, as all three Views fail
> to be created
>> I am using Eclipse 3.7 on a Win7 x64 machine
>>
>>
>> What I've tried so far
>>
>> I double checked the ID's in the Views' .java file, as well es in the
> Manifest, as well as in the Perspective's class - they are identical
> (following this topic ID 301875 advice)
>> I cleaned up and rebuilt the applications project (as it was advised here
> topic ID 309379)
>> I checked the solution that mentioned missing icons or plugin.xml (as seen
> here topic ID 515455)
>> I also tried the adding Required Plug-ins and validate Plug-ins options
>>
>>
>> The outcome is still the same. This is the error log, which looks the same
> for every View (except the class-name of course).
>> !ENTRY org.eclipse.ui 4 4 2011-08-12 20:55:42.092
>> !MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView:
> org.eclipse.ui.PartInitException: Could not create view:
> de.hundt.kewo.views.SimilaritesView
>>
>> !ENTRY org.eclipse.ui 4 4 2011-08-12 20:55:42.128
>> !MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView:
> org.eclipse.ui.PartInitException: Could not create view:
> de.hundt.kewo.views.SimilaritesView
>> !STACK 1
>> org.eclipse.ui.PartInitException: Could not create view:
> de.hundt.kewo.views.SimilaritesView
>> at org.eclipse.ui.internal.ViewFactory.createView(ViewFactory.java:158)
>> at org.eclipse.ui.internal.LayoutHelper.createView(LayoutHelper.java:162)
>> at org.eclipse.ui.internal.PageLayout.createView(PageLayout.java:554)
>> at org.eclipse.ui.internal.PageLayout.addView(PageLayout.java:416)
>> at org.eclipse.ui.internal.PageLayout.addView(PageLayout.java:390)
>> at
>
de.hundt.kewo.plugin.ui.perspectives.KEWoPerspectiveFactory.createInitialLayout(KEWoPerspectiveFactory.java:26)
>> at
>
org.eclipse.ui.internal.Perspective.loadPredefinedPersp(Perspective.java:816)
>> at
>
org.eclipse.ui.internal.Perspective.createPresentation(Perspective.java:270)
>> at org.eclipse.ui.internal.Perspective.<init>(Perspective.java:156)
>> at
>
org.eclipse.ui.internal.tweaklets.Workbench3xImplementation.createPerspective(Workbench3xImplementation.java:55)
>> at
>
org.eclipse.ui.internal.WorkbenchPage.createPerspective(WorkbenchPage.java:1748)
>> at
>
org.eclipse.ui.internal.WorkbenchPage.busySetPerspective(WorkbenchPage.java:1108)
>> at
org.eclipse.ui.internal.WorkbenchPage.access$16(WorkbenchPage.java:1099)
>> at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3814)
>> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>> at
>
org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3812)
>> at
>
org.eclipse.ui.handlers.ShowPerspectiveHandler.openPerspective(ShowPerspectiveHandler.java:146)
>> at
>
org.eclipse.ui.handlers.ShowPerspectiveHandler.openOther(ShowPerspectiveHandler.java:118)
>> at
>
org.eclipse.ui.handlers.ShowPerspectiveHandler.execute(ShowPerspectiveHandler.java:57)
>> at
>
org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
>> at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
>> at
>
org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:178)
>> at
>
org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
>> at
> org.eclipse.ui.actions.PerspectiveMenu.runOther(PerspectiveMenu.java:376)
>> at
>
org.eclipse.ui.actions.PerspectiveMenu$3.runWithEvent(PerspectiveMenu.java:130)
>> at
>
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>> at
>
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>> at
>
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
>> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
>> at
>
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>> at de.dfki.mycbr.gui.Application.start(Application.java:41)
>> at
>
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
>> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
>> !SUBENTRY 1 org.eclipse.ui 4 0 2011-08-12 20:55:42.149
>> !MESSAGE Could not create view: de.hundt.kewo.views.SimilaritesView
>>
>>
>> Here are both the perspective code from the Application and the Plug-in.
> The latter one doesn't work.
>> Application:
>> public void createInitialLayout(IPageLayout layout) {
>>
>
PlatformUI.getWorkbench().getActiveWorkbenchWindow().addPerspectiveListener(new
> PerspectiveListener());
>>
>> layout.addView(PROJECT_LIST_VIEW_ID, IPageLayout.LEFT, 0.3f,
> layout.getEditorArea());
>> IViewLayout conceptListViewLayout =
> layout.getViewLayout(PROJECT_LIST_VIEW_ID);
>> conceptListViewLayout.setCloseable(false);
>>
>> layout.addView(FUNCTION_LIST_VIEW_ID, IPageLayout.BOTTOM, 0.6f,
> PROJECT_LIST_VIEW_ID);
>> IViewLayout attributeListViewLayout =
> layout.getViewLayout(FUNCTION_LIST_VIEW_ID);
>> attributeListViewLayout.setCloseable(false);
>>
>> layout.addPerspectiveShortcut(ID);
>> layout.addPerspectiveShortcut(CaseBasePerspective.ID);
>>
>> }
>>
>> Plugin:
>> @Override
>> public void createInitialLayout(IPageLayout layout) {
>> layout.addView(this.FORUM_VIEW_ID, IPageLayout.LEFT, 0.50f,
>> layout.getEditorArea());
>>
>> layout.addView(this.TAXONOMY_VIEW_ID, IPageLayout.RIGHT, 0.50f,
>> layout.getEditorArea());
>>
>> layout.addView(this.SIMILARITY_VIEW_ID, IPageLayout.BOTTOM, 0.3f,
>> layout.getEditorArea());
>> }
>>
>> Any hunch what I did wrong here is much appreciated.
>>
>> Cheers,
>> Alex
>>
>> PS: replaced the the not-allowed links with just the topics ID to show
that
> I did research here, yet didn't come to any conclusion
Previous Topic:Custom listener for close RCP application
Next Topic:Poor performance when drawing a Polyline in an Eclipse View
Goto Forum:
  


Current Time: Mon Dec 22 02:19:54 GMT 2014

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

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