Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Has anyone used a workspace in thier RCP app?
Has anyone used a workspace in thier RCP app? [message #448510] Tue, 25 April 2006 09:51 Go to next message
Martin Holmes is currently offline Martin HolmesFriend
Messages: 79
Registered: July 2009
Member
Hi
I was just wondering if anyone has used a Workspace in their RCP
application?

regards

Martin
Re: Has anyone used a workspace in thier RCP app? [message #448520 is a reply to message #448510] Tue, 25 April 2006 17:31 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Martin Holmes wrote:
> Hi
> I was just wondering if anyone has used a Workspace in their RCP
> application?

If you generate the RCP Mail app from a template, I think it uses a
workspace.

Later,
PW


Re: Has anyone used a workspace in thier RCP app? [message #448524 is a reply to message #448510] Tue, 25 April 2006 20:04 Go to previous messageGo to next message
James E. Ervin is currently offline James E. ErvinFriend
Messages: 9
Registered: July 2009
Junior Member
I have, it maps to the osgi.instance.area property I believe.

James E. Ervin
Re: Has anyone used a workspace in thier RCP app? [message #448547 is a reply to message #448524] Tue, 25 April 2006 21:28 Go to previous messageGo to next message
Amber Beerends is currently offline Amber BeerendsFriend
Messages: 36
Registered: July 2009
Member
Yep. Workspaces in the IDE are different OSGI instances areas. By
default, all instances of an RCP app share an instance are, but you can
specify different ones. It can be set via a command line argument or a
system property.

http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html
has good information about this.

Also, try searching this newsgroup for "workspace". You'll find many
similar questions and some code samples for setting the instance area
programmatically.

James Ervin wrote:
> I have, it maps to the osgi.instance.area property I believe.
>
> James E. Ervin
Re: Has anyone used a workspace in thier RCP app? [message #448580 is a reply to message #448510] Thu, 27 April 2006 10:14 Go to previous messageGo to next message
Martin Holmes is currently offline Martin HolmesFriend
Messages: 79
Registered: July 2009
Member
Thanks for the feedback, I really want to have workspace and the Navigator
View in my RCP application but not all of what the IDE plugin provides.

Martin




"Martin Holmes" <martincanbe@hotmail.com> wrote in message
news:e2krp7$vvn$1@utils.eclipse.org...
> Hi
> I was just wondering if anyone has used a Workspace in their RCP
> application?
>
> regards
>
> Martin
>
>
Re: Has anyone used a workspace in thier RCP app? [message #448601 is a reply to message #448520] Thu, 27 April 2006 15:21 Go to previous messageGo to next message
Martin Holmes is currently offline Martin HolmesFriend
Messages: 79
Registered: July 2009
Member
I have just been checking out the Mail RCP template I see no obvious
references either declaratively or programmatically to workspaces.

If anyone knows of an example RCP that does I would be grateful! (apart from
the ide! :).

Regards

Martin

p.s

I just want a minimal Navigational View with an underlying file system as
the model. I suppose I could pull the IDE apart but I would prefer a simple
example RCP application.



"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:e2lmep$t44$2@utils.eclipse.org...
> Martin Holmes wrote:
> > Hi
> > I was just wondering if anyone has used a Workspace in their RCP
> > application?
>
> If you generate the RCP Mail app from a template, I think it uses a
> workspace.
>
> Later,
> PW
Re: Has anyone used a workspace in thier RCP app? [message #448670 is a reply to message #448601] Thu, 27 April 2006 18:46 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Martin Holmes wrote:
> I have just been checking out the Mail RCP template I see no obvious
> references either declaratively or programmatically to workspaces.
>
> If anyone knows of an example RCP that does I would be grateful! (apart from
> the ide! :).
>

As I found out in another thread, it wasn't available in the mail
template :-) Sorry.

So I have an RCP app based on the mail app template, and I use a
workspace. AFAIK, to use a workspace you just have to depend on
org.eclipse.core.resources.

Then something like this should work:
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IProject proj = root.getProject("org.example.project");
if (!proj.exists()) {
proj.create(null);
}
if (!proj.isOpen()) {
proj.open(null);
}

Depending on how you start up eclipse, you might have to put some
options in your .ini file, like
osgi.instance.area.default=@user.home/myRcpApp

Later,
PW


Re: Has anyone used a workspace in thier RCP app? [message #448744 is a reply to message #448580] Mon, 01 May 2006 14:56 Go to previous message
Eclipse UserFriend
Originally posted by: pabalakr.ifmc.sdps.org

I have created RCP application containing view which allows user to create and display projects from the workspace.
This RCP application doesn't depend on any of the IDE specific plugins.


Thanks
--Rajan.
Previous Topic:Extreme Branding Eclipse RCP
Next Topic:RCP 3.2RC1a - A few problems
Goto Forum:
  


Current Time: Fri Nov 15 01:27:56 GMT 2024

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

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

Back to the top