No image icons or names in the resource navigator in a RCP product [message #464125] |
Mon, 26 February 2007 08:35  |
Eclipse User |
|
|
|
Originally posted by: zivzeira.yahoo.com
Hello,
I'm working with Eclipse 3.1.2 (Build id: M20060118-1600) on a product
development.
When I create a project with some content in the following way:
IProject project = super.getNewProject();
IFolder folder = project.getFolder("folder1");
folder.create(true, true, null);
folder.getFolder(new Path("subFolder).create(true, true, null);
IFile file = project.getFile(new Path(fileName));
.....
Everything work fine as i run the product as an org.eclipse.sdk.ide product.
But when I am running the product as his product configuration the resource
navigator doesn't show the project name or his simple project image icon or
his sub content (and their image icons).
The package explorer shows the sub content branches but without the sub
folders and project names and their images.
The package explorer shows do show the files naming and their images icons
(maybe since the image are loaded by the product).
when creating java project the product fail with the following exception:
org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:149)
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:125)
at
org.eclipse.jdt.ui.JavaElementImageDescriptor.<init>(JavaElementImageDescriptor.java:88)
at
org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProv ider.getJavaImageDescriptor(JavaElementImageProvider.java:15 1)
at
org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProv ider.computeDescriptor(JavaElementImageProvider.java:111)
at
org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProv ider.getImageLabel(JavaElementImageProvider.java:92)
at
org.eclipse.jdt.internal.ui.viewsupport.JavaUILabelProvider. getImage(JavaUILabelProvider.java:138)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage .DialogPackageExplorer$PackageLabelProvider.getImage(DialogP ackageExplorer.java:221)
at
org.eclipse.jface.viewers.DecoratingLabelProvider.getImage(D ecoratingLabelProvider.java:82)
at
org.eclipse.jface.viewers.DecoratingLabelProvider.updateLabe l(DecoratingLabelProvider.java:212)
at
org.eclipse.jface.viewers.StructuredViewer.buildLabel(Struct uredViewer.java:1855)
at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer .java:228)
at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeR unnable.run
.........
Thanks in advance :)
|
|
|
|
Having problems running a RCP product [message #464140 is a reply to message #464139] |
Mon, 26 February 2007 14:06  |
Eclipse User |
|
|
|
Originally posted by: zivzeira.yahoo.com
Let me rephrase...
The following refers to an attempt to create a product (RCP).
I am having problems when I open a NEW project (no matter whether a simple
project or a custom project).
It actually occurs when I run the RCP in debug mode when I configure the
"Eclipse application" --> "Program To Run" --> "Run a product" to run my
RCP.
When I activate the Navigator view (as can be seen on the attached file) it
presents a faulty result.
The same is with the Package Explorer view.
Any help would be appreciated.
Thanks in advance,
Ziv.
> "Ziv Zeira" <zivzeira@yahoo.com> wrote in message
> news:erunab$bbh$1@utils.eclipse.org...
>> Hello,
>> I'm working with Eclipse 3.1.2 (Build id: M20060118-1600) on a product
>> development.
>>
>>
>>
>> When I create a project with some content in the following way:
>>
>> IProject project = super.getNewProject();
>>
>> IFolder folder = project.getFolder("folder1");
>> folder.create(true, true, null);
>>
>> folder.getFolder(new Path("subFolder).create(true, true, null);
>> IFile file = project.getFile(new Path(fileName));
>>
>> .....
>>
>>
>>
>> Everything work fine as i run the product as an org.eclipse.sdk.ide
>> product.
>>
>> But when I am running the product as his product configuration the
>> resource
>> navigator doesn't show the project name or his simple project image icon
>> or
>> his sub content (and their image icons).
>>
>> The package explorer shows the sub content branches but without the sub
>> folders and project names and their images.
>>
>> The package explorer shows do show the files naming and their images
>> icons
>> (maybe since the image are loaded by the product).
>>
>>
>>
>> when creating java project the product fail with the following exception:
>>
>>
>>
>> org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
>> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:149)
>> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:125)
>> at
>> org.eclipse.jdt.ui.JavaElementImageDescriptor.<init>(JavaElementImageDescriptor.java:88)
>> at
>> org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProv ider.getJavaImageDescriptor(JavaElementImageProvider.java:15 1)
>> at
>> org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProv ider.computeDescriptor(JavaElementImageProvider.java:111)
>> at
>> org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProv ider.getImageLabel(JavaElementImageProvider.java:92)
>> at
>> org.eclipse.jdt.internal.ui.viewsupport.JavaUILabelProvider. getImage(JavaUILabelProvider.java:138)
>> at
>> org.eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage .DialogPackageExplorer$PackageLabelProvider.getImage(DialogP ackageExplorer.java:221)
>> at
>> org.eclipse.jface.viewers.DecoratingLabelProvider.getImage(D ecoratingLabelProvider.java:82)
>> at
>> org.eclipse.jface.viewers.DecoratingLabelProvider.updateLabe l(DecoratingLabelProvider.java:212)
>> at
>> org.eclipse.jface.viewers.StructuredViewer.buildLabel(Struct uredViewer.java:1855)
>> at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer .java:228)
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeR unnable.run
>>
>> ........
>>
>>
>>
>> Thanks in advance :)
>>
>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02851 seconds