[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Is there a recipe to have an RCP use resources but hide all the details.

The project we depend on (xtext) uses the underlying IDE concepts of 
workspace, project and Resource. I have two options:
a) construct the RCP application using the Navigator and introduce some of 
the eclipse-isms into my RCP (workspace,project,resource). Maybe this is 
easy and possible, but past version of our RCP application did not use all 
these things that is why we are looking for a way to hide them from the 
end-user.
b) Hide the eclipse-isms by creating a dummy project and resource behind the 
scenes when we open one of the xtext files so the xtext frameowkr behaves 
correctly, but we do not need to introduce the navigator and eclipse things 
into the product feature set (we just want to open our files using our 
simple IPathEditorInput, not create a project, then create/import file, or 
import things into workspaces, etc).


Option (b) is a bit more appealing since we already have our XML file that 
is essentially a conceptual project and we cannot change this format.
fyi: I already opened a bugzilla report requesting that xtext try and 
separate out the IDE concepts in its framework.

"Daniel Megert" <daniel_megert@xxxxxxxxxx> wrote in message 
news:h8vhrj$oqk$1@xxxxxxxxxxxxxxxxxxxx
> drew wrote:
>> There is a plugin I am using that is currentlly using the IDE resource 
>> and associated IFileEditor input . I want to create these behind the 
>> scenes using a dummy workspace, project that i will utilize inside my RCP 
>> application, but I will not be using the standard resource navigator 
>> supplied by the ide. Anyone have an example of this or a pointer to some 
>> reference code?
> What do you want to achieve in the end?
>
> Dani