Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Implementing folder/files as derived
Implementing folder/files as derived [message #895873] Mon, 16 July 2012 12:03 Go to next message
Latha Shankara is currently offline Latha ShankaraFriend
Messages: 33
Registered: June 2012
Member
Hi,

I am quite new to Eclipse plugin development. I would like to know how a folder/file can be made as derived.

I have read that IResource.setDerived(boolean value) can be used for the same however it is deprecated and there is an overloaded method IResource.setDerived(boolean value, IProgressMonitor monitor).

I did go through some posts but found not very helpful for me.

But I am not very sure how I could use it. If I could get a code snippet from which i could get to know more/understand would be great!

Thanks for any help,
Latha
Re: Implementing folder/files as derived [message #895888 is a reply to message #895873] Mon, 16 July 2012 12:48 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You use org.eclipse.core.resources.IResource.setDerived(boolean, IProgressMonitor).

If you're marking a lot of resources or if it's a long-running operation, you can schedule a org.eclipse.core.runtime.jobs.Job (it will pass in a progress monitor).

You can also just call it with setDerived(true, null);

PW


Previous Topic:Have functional but non-updatable platform
Next Topic:shared install: private plug-ins not showing up
Goto Forum:
  


Current Time: Thu Apr 25 09:45:54 GMT 2024

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

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

Back to the top