Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » IWorkbenchHelpSystem can't injection(IWorkbenchHelpSystem can't injection )
icon5.gif  IWorkbenchHelpSystem can't injection [message #1760240] Tue, 25 April 2017 07:06
ben ben is currently offline ben benFriend
Messages: 1
Registered: April 2017
Junior Member
I think that I can add helpsystem to my RCPApplication,but it throw err;
How can I remove this error?
Eclipse4.6.1

-------------------------------------------------------------------------------------------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_121
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product HelpTest.product -clearPersistedState
Command-line arguments: -product HelpTest.product -data D:\EclipseWorkspace\RCPWTest/../runtime-HelpTest.product -dev file:D:/EclipseWorkspace/RCPWTest/.metadata/.plugins/org.eclipse.pde.core/HelpTest.product/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog -clearPersistedState

!ENTRY org.eclipse.e4.ui.workbench 4 0 2017-04-25 14:30:33.399
!MESSAGE Unable to create class 'helptest.parts.View1Part' from bundle '99'
!STACK 0
org.eclipse.e4.core.di.InjectionException: Unable to process "View1Part.helpSystem": no actual value was found for the argument "IWorkbenchHelpSystem".
at org.eclipse.e4.core.internal.di.InjectorImpl.reportUnresolvedArgument(InjectorImpl.java:452)
at org.eclipse.e4.core.internal.di.InjectorImpl.resolveRequestorArgs(InjectorImpl.java:443)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:140)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:375)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:294)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
-------------------------------------------------------------------------------------------------------------------------------
<plugin>
<extension id="product" point="org.eclipse.core.runtime.products">
<product name="HelpTest" application="org.eclipse.e4.ui.workbench.swt.E4Application">
<property name="applicationCSS" value="platform:/plugin/HelpTest/css/default.css"> </property>
<property name="appName" value="HelpTest"> </property>
</product>
</extension>
<extension point="org.eclipse.help.toc"> <toc file="toc.xml" primary="true"> </toc> </extension>
<extension point="org.eclipse.help.contexts"> <contexts file="xyzContexts.xml"/></extension>
</plugin>
-------------------------------------------------------------------------------------------------------------------------------
Require-Bundle:
org.eclipse.help.ui;bundle-version="4.0.200",
org.eclipse.help.webapp;bundle-version="3.8.0",
org.eclipse.equinox.http.jetty;bundle-version="3.3.0"
-------------------------------------------------------------------------------------------------------------------------------
public class View1Part {
private Text text;
@Inject IWorkbenchHelpSystem helpSystem;
@Inject
public View1Part() {}
@PostConstruct
public void postConstruct(Composite parent) {
parent.setLayout(new GridLayout(1, false));
}
}
  • Attachment: HelpTest.rar
    (Size: 13.83KB, Downloaded 138 times)
Previous Topic:MCompositePart creation with EPartService.createPart()?
Next Topic:Word wrap missing in 4.7?
Goto Forum:
  


Current Time: Thu Sep 26 04:45:08 GMT 2024

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

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

Back to the top