Help with Resource "Navigation" View [message #257268] |
Tue, 27 May 2008 18:46  |
Eclipse User |
|
|
|
Hi Everyone..
I am Perl programmer recently started working on Eclipse..Ur help is much
appreciated.
What I have done is, created an eclipse GUI skeleton...(Please see below
for the code in perspective.Java)
Then I added "Multi-page editor file" sample wizard to eclipse application
("file->other" It also has "General->file,project,folder,etc")
When I created a new project or Multi-page editor file, I am not able to
see it in the resource "Navigator" view as a tree. Its only showing as:
"--|" , where "|" should be newly created project name..
My task is to simply create a wizard to select file from hard disk, then
"performFinish" completed - it should show on resource navigator view..
I am struggling to get this done for past 2 days searching google,eclipse
tutorials - but no help..
Any ideas where I have done wrong? or any useful material??
---------------------
String editorArea = layout.getEditorArea();
// Top left: Resource Navigator view and Bookmarks view placeholder
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT,
0.25f, editorArea);
topLeft.addView(IPageLayout.ID_RES_NAV);
topLeft.addView(IPageLayout.ID_BOOKMARKS);
// Bottom left: Outline view and Property Sheet view
IFolderLayout bottomLeft = layout.createFolder("bottomLeft",
IPageLayout.BOTTOM, 0.50f,"topLeft");
bottomLeft.addView(IPageLayout.ID_OUTLINE);
bottomLeft.addView(IPageLayout.ID_PROP_SHEET);
// Bottom right: Task List view
layout.addView(IPageLayout.ID_TASK_LIST, IPageLayout.BOTTOM, 0.66f,
editorArea);
--------
Thanks for ur time n help
Dushi
|
|
|
Re: Help with Resource "Navigation" View [message #258156 is a reply to message #257268] |
Thu, 12 June 2008 01:14   |
Eclipse User |
|
|
|
Originally posted by: annamalai.ancitconsulting.com
I hope you trying to do this in a RCP application. And in an RCP application
ResourceNavigator doesnt work by default u need to include a few lines of
code in your workbench advisor.
It needs the ImageRegistry to be available with the requirement images that
is available inside a class called as IDEWorkbenchAdvisor ...
Do let me kno if this is what you are doing and i would be able to tell you
the steps in more detail.
Refer to these links ...
http://www.eclipsepowered.org/eclipse/forums/m91910591.html
http://www.eclipse.org/newsportal/article.php?id=25067&g roup=eclipse.platform
Regards
Malai
"Dushi" <dushidushy@yahoo.co.in> wrote in message
news:b4ce90ab0a0294c1cc39d5c4c52ceeba$1@www.eclipse.org...
> Hi Everyone..
>
> I am Perl programmer recently started working on Eclipse..Ur help is much
> appreciated.
>
> What I have done is, created an eclipse GUI skeleton...(Please see below
> for the code in perspective.Java)
>
> Then I added "Multi-page editor file" sample wizard to eclipse application
> ("file->other" It also has "General->file,project,folder,etc")
>
> When I created a new project or Multi-page editor file, I am not able to
> see it in the resource "Navigator" view as a tree. Its only showing as:
> "--|" , where "|" should be newly created project name..
>
> My task is to simply create a wizard to select file from hard disk, then
> "performFinish" completed - it should show on resource navigator view..
> I am struggling to get this done for past 2 days searching google,eclipse
> tutorials - but no help..
> Any ideas where I have done wrong? or any useful material??
>
> ---------------------
> String editorArea = layout.getEditorArea();
> // Top left: Resource Navigator view and Bookmarks view placeholder
> IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT,
> 0.25f, editorArea);
> topLeft.addView(IPageLayout.ID_RES_NAV);
> topLeft.addView(IPageLayout.ID_BOOKMARKS);
>
> // Bottom left: Outline view and Property Sheet view
> IFolderLayout bottomLeft = layout.createFolder("bottomLeft",
> IPageLayout.BOTTOM, 0.50f,"topLeft");
> bottomLeft.addView(IPageLayout.ID_OUTLINE);
> bottomLeft.addView(IPageLayout.ID_PROP_SHEET);
>
> // Bottom right: Task List view
> layout.addView(IPageLayout.ID_TASK_LIST, IPageLayout.BOTTOM, 0.66f,
> editorArea);
>
> --------
>
> Thanks for ur time n help
>
> Dushi
>
|
|
|
Re: Help with Resource "Navigation" View [message #258457 is a reply to message #258156] |
Fri, 13 June 2008 08:58  |
Eclipse User |
|
|
|
I cant help with your problem except to say that I have a somewhat similar
problem so maybe we can help each other? I think what happens with eclipse
is that a previous project interferes with a new project and the toolchain
choice seems to go and the binaries are lost.
There are many eclipse tutorials available online from the help icon on
the eclipse platform.
Brian.
My problem:
1.Ive just downloaded
eclipse-cpp-europa-winter-win32, mingw
I compiled and ran the intro."Hello
World" prog. ok.
However, when I try to build and run
it again as the same program,
I get the following error :
**** Internal Builder is used for
build ****
gcc -O0 -g3 -Wall -c
-fmessage-length=0 -osrc\helloworld.o
\src\helloworld.c
gcc: installation problem, cannot
exec `cc1': No such file or directory
Build error occurred, build is
stopped
Time consumed: 125 ms.
2.repeat the process with new name
Hello World 2: error:"Nothing to
build"
3.repeat with Hello World3 same result
More information:
Also as I try and work thro. other
projects they seem to get mixed up with
each
other, and the runs fail.
Error messages are "launch failed no
binaries" etc.
Is there a way of clearing failed
projects from the platform completely?
I have printed out several tutorials
but they dont ans. this.
I may say that eclipse came as a breath
of fresh air after the useless Borland
C++ compiler and the worse Microsoft
Net framework 3.5 and vis C++ x 86!
However there are still problems.
Is this a problem with MinGW, not
Eclipse?
Or Windows xp with the MinGW compiler?
-------
Further Comment #2 From Brian Southey
2008-06-13
When I started using eclipse I had a
choice of toolchain:
cygwin or MinGW.
The eclipse tutorial said to use cygwin
and not MinGW.
My prog. ran successfully.
When I tried again the cygwin tool was
"not available on this platform" so I
had to select MinGW.
From then on all seven of my projects
have either failed to launch or given
the
cc1 error.
I joined the MinGW user mailing list
and within 2 days had received 140
emails
from them about problems with their
MinGW!!!
I had to close the link but before this
I did NOT get any help with MY problem.
All of this seems to indicate that
MinGW is very difficult to use.
Can I uninstall Mingw and eclipse and
unzip the zip version of eclipse?
Brian.
|
|
|
Powered by
FUDForum. Page generated in 0.30408 seconds