Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Progammitically create a link to a folder
Progammitically create a link to a folder [message #283894] Wed, 13 April 2005 14:26
Steve Jerman is currently offline Steve JermanFriend
Messages: 26
Registered: July 2009
Junior Member
Hello Folks,

well I'm stumped this time. I want to create a user project that has
links to some folders in the plugin. Now I can create a linked folder,
but I can't see any of the contents. If I do the same thing manually
with the new Folder wizard, the contents appear. What do I need to do?

Here is the code I am using:

projectHandle.create(monitor);
projectHandle.open(monitor);
IFolder model = projectHandle.getFolder("model");
URL modelURL = Plugin.getDefault().find(new Path("model"));
model.createLink(new Path(Platform.asLocalURL(modelURL).getFile()),0,
monitor);
model.touch(monitor);
model.setReadOnly(true);
model.refreshLocal(IResource.DEPTH_INFINITE,monitor);

As you can see I tried a few things...

Steve
Previous Topic:scheduling rules and multiple projects
Next Topic:inverse or dark color scheme for all windows/views
Goto Forum:
  


Current Time: Thu Apr 25 23:34:08 GMT 2024

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

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

Back to the top