Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] linked resources

Sorry for the stupid question about "Description", just a description appeared at UI.
We can implement linked ressources in code like below:
 IProject project = workspace.getProject("Project");//assume this exists
   IFolder link = project.getFolder("Link");
   IPath location = new Path("TEMP/folder");
   if (workspace.validateLinkLocation(location).isOK()) {
      link.createLink(location, IResource.NONE, null);
   } else {
      //invalid location, throw an exception or warn user
   }
As i've my plugin which developed basing on cdt, and It's impossible to take a nature to a project having c nature, 
anyone can help me? :S
thanks
flo


From: josieenfrance@xxxxxxxxxxx
To: cdt-dev@xxxxxxxxxxx
Subject: RE: [cdt-dev] linked resources
Date: Fri, 12 Mar 2010 17:33:49 +0800

In fact, i've defined a project type and a configuration with extension org.,eclipse.cdt.managedbuilder.builddefinitions, I've seen, in the configuration, there is a option "description".
And I tried to create a c project with cdt and 2 link file, then in ".project" file, i got :
<linkedResources>
<link>
<name>link</name>
<type>2</type>
<location>A:/xxx/_base</location>
</link>
<link>
<name>link2</name>
<type>2</type>
<location>A:/xxx/_src</location>
</link>
</linkedResources>
So can we define the linked ressources with the option "Description"?
 

From: josieenfrance@xxxxxxxxxxx
To: cdt-dev@xxxxxxxxxxx
Date: Fri, 12 Mar 2010 16:31:01 +0800
Subject: [cdt-dev] linked resources

Hi all,
   I'm creatint a plug-in cdt, it is for creating a classic c project but with some specific configurations. As there are some files in a fix location that I need in all 
c projets, I want to use linked resources, is possible to realize that using extensions? which one? 

thanks, flo 


Hotmail : un service de messagerie gratuit, fiable et complet Profitez-en


Hotmail : une messagerie fiable avec une protection anti-spam performante Inscrivez-vous


Hotmail : une messagerie fiable avec une protection anti-spam performante Inscrivez-vous

Back to the top