Progammitically create a link to a folder [message #283894] |
Wed, 13 April 2005 14:26 |
Steve Jerman 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
|
|
|
Powered by
FUDForum. Page generated in 0.02992 seconds