Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Position to IFile after project creation
Position to IFile after project creation [message #481963] Mon, 24 August 2009 21:28 Go to next message
Tom Cx is currently offline Tom CxFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I've create a new project wizard which extends the INewWizard.
I've been able to create the project and a specific file for that kind
of project.

When the wizard is finished everything is created and the corresponding
editor is opened. However in the package explorer and/or resource
(navigator) the project (in the navigator the project isn't shown in
"open" state and the underlying resources can't be seen)) is selected
after creation.

How can I position to the file created in the project? It sound more
logic to me that if this file is opened in the editor the selected
resource is also this file and not the project.

Tnx in advance for the answers !

Kind regards,
Tom
Re: Position to IFile after project creation [message #482092 is a reply to message #481963] Tue, 25 August 2009 10:42 Go to previous messageGo to next message
Tom Cx is currently offline Tom CxFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

Found a possible solution here, don't know if this is a good method to use

Regards,
Tom

tcdmail wrote:
> Hi,
>
> I've create a new project wizard which extends the INewWizard.
> I've been able to create the project and a specific file for that kind
> of project.
>
> When the wizard is finished everything is created and the corresponding
> editor is opened. However in the package explorer and/or resource
> (navigator) the project (in the navigator the project isn't shown in
> "open" state and the underlying resources can't be seen)) is selected
> after creation.
>
> How can I position to the file created in the project? It sound more
> logic to me that if this file is opened in the editor the selected
> resource is also this file and not the project.
>
> Tnx in advance for the answers !
>
> Kind regards,
> Tom
Re: Position to IFile after project creation [message #482093 is a reply to message #482092] Tue, 25 August 2009 10:44 Go to previous message
Tom Cx is currently offline Tom CxFriend
Messages: 13
Registered: July 2009
Junior Member
Possible solution can be found at :
http://dev.eclipse.org/newslists/news.eclipse.platform/msg41 935.html

tcdmail wrote:
> Hi,
>
> Found a possible solution here, don't know if this is a good method to use
>
> Regards,
> Tom
>
> tcdmail wrote:
>> Hi,
>>
>> I've create a new project wizard which extends the INewWizard.
>> I've been able to create the project and a specific file for that kind
>> of project.
>>
>> When the wizard is finished everything is created and the
>> corresponding editor is opened. However in the package explorer and/or
>> resource (navigator) the project (in the navigator the project isn't
>> shown in "open" state and the underlying resources can't be seen)) is
>> selected after creation.
>>
>> How can I position to the file created in the project? It sound more
>> logic to me that if this file is opened in the editor the selected
>> resource is also this file and not the project.
>>
>> Tnx in advance for the answers !
>>
>> Kind regards,
>> Tom
Previous Topic:Contributing a submenu using org.eclipse.ui.menus extension point
Next Topic:Customize Workspace Selection Dialog
Goto Forum:
  


Current Time: Fri Apr 19 22:56:13 GMT 2024

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

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

Back to the top