Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to create a "project container" in IDE v.4.6?: (9 Items)
   
How to create a "project container" in IDE v.4.6?  
I want to group several projects together in the Projects Explorer,
but can't figure how to do this in IDE v.4.6.

In Visual C++ we can create "solution folder"
containing several projects, for example

App1
Libs
  lib1
  lib2
Tests
   test1
   test2

"Libs" and "Tests" are folders.

Is this possible in Eclipse?

Also, when I create a new QNX project, it suggests the default location
in the workspace root. I want to place the new project in sub-folder,
but then the IDE prompts for the full path. It does not seem to allow
select location relative to the workspace?

Where the IDE stores paths of projects?

Thanks for any idea,

- S
Re: How to create a "project container" in IDE v.4.6?  
Groupping you can do using Working Sets. Project Explorer view menu -> Configure Working Sets...
Then you switch to show working sets instead of project on top level.

I am not sure what are talking about selection relative to workspace - it has to be full path, but it can be anywhere in
 workspace (I think...)

On 27/10/10 04:52 PM, Saul A wrote:
> I want to group several projects together in the Projects Explorer,
> but can't figure how to do this in IDE v.4.6.
> 
> In Visual C++ we can create "solution folder"
> containing several projects, for example
> 
> App1
> Libs
>   lib1
>   lib2
> Tests
>    test1
>    test2
> 
> "Libs" and "Tests" are folders.
> 
> Is this possible in Eclipse?
> 
> Also, when I create a new QNX project, it suggests the default location
> in the workspace root. I want to place the new project in sub-folder,
> but then the IDE prompts for the full path. It does not seem to allow
> select location relative to the workspace?
> 
> Where the IDE stores paths of projects?
> 
> Thanks for any idea,
> 
> - S
> 
> 
> 
> _______________________________________________
> 
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post72720
> 
RE: How to create a "project container" in IDE v.4.6?  
Use "working set" to group project. See this Eclipse help page for
working set:
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc
.user/concepts/cworkset.htm

The new project wizard is common for all Eclipse project, not QNX
project specific. If you create a simple Eclipse project its location is
also default to the workspace root. The "Browse..." button does not use
workspace resource but file system resource that's why you need to use
the full path.

IDE store paths to projects in the workspace metadata. You don't want to
manipulate the metadata manually.

-----Original Message-----
From: Saul A [mailto:community-noreply@qnx.com] 
Sent: Wednesday, October 27, 2010 4:53 PM
To: momenticsgs-community
Subject: How to create a "project container" in IDE v.4.6?

I want to group several projects together in the Projects Explorer,
but can't figure how to do this in IDE v.4.6.

In Visual C++ we can create "solution folder"
containing several projects, for example

App1
Libs
  lib1
  lib2
Tests
   test1
   test2

"Libs" and "Tests" are folders.

Is this possible in Eclipse?

Also, when I create a new QNX project, it suggests the default location
in the workspace root. I want to place the new project in sub-folder,
but then the IDE prompts for the full path. It does not seem to allow
select location relative to the workspace?

Where the IDE stores paths of projects?

Thanks for any idea,

- S
Re: RE: How to create a "project container" in IDE v.4.6?  
Thank you, Andy.
The working set feature is useful, albeit not quite what I wanted.

About absolute paths: I need  all paths in the workspace be relative to the workspace root. Otherwice the project cannot
 be copied to other machine where the path to workspace is different. How people cope with this issue?

My apologes for n00b questions, it is my first project with the QNX IDE.

Regards,
- S.
RE: RE: How to create a "project container" in IDE v.4.6?  
You don't want to copy the projects from their file system because there are project metadata you won't be able to copy.
 If you need to transfer projects you can "export" them to an archive file, transfer the archive file to another machine
, and "import" them to another workspace. The "export" and "import" will handle the path conversion.


-----Original Message-----
From: Saul A [mailto:community-noreply@qnx.com]
Sent: Wed 27/10/2010 8:01 PM
To: momenticsgs-community
Subject: Re: RE: How to create a "project container" in  IDE v.4.6?
 
Thank you, Andy.
The working set feature is useful, albeit not quite what I wanted.

About absolute paths: I need  all paths in the workspace be relative to the workspace root. Otherwice the project cannot
 be copied to other machine where the path to workspace is different. How people cope with this issue?

My apologes for n00b questions, it is my first project with the QNX IDE.

Regards,
- S.




_______________________________________________

QNX Momentics Getting Started
http://community.qnx.com/sf/go/post72733


Attachment: Text winmail.dat 3.01 KB
Re: How to create a "project container" in IDE v.4.6?  
You cannot share "workspace/.metadata" folder, you can only shared 
projects itself. We use source control for that, you can
check in project with .project file, and later other developer can check 
it out from eclipse and project will be created automatically.
To check out few projects at the same time we use feature called 
"project team set". What version control you are using?

Btw what is wrong with working sets for grouping?

On 27/10/2010 8:01 PM, Saul A wrote:
> Thank you, Andy.
> The working set feature is useful, albeit not quite what I wanted.
>
> About absolute paths: I need  all paths in the workspace be relative to the workspace root. Otherwice the project 
cannot be copied to other machine where the path to workspace is different. How people cope with this issue?
>
> My apologes for n00b questions, it is my first project with the QNX IDE.
>
> Regards,
> - S.
>
>
>
>
> _______________________________________________
>
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post72733
>
>    
Re: How to create a "project container" in IDE v.4.6?  
Working sets do not look and work like subfolders in Visual Studio solution.
On the other hand, in VS you cannot select a subfolder and build it.
Need just to get used to Eclipse... 

We currently use subversion (latest Tortoise); planning to move to git or mercurial.

From the links below, it seems that backing up the Eclipse metadata and absolute paths are common problems:

http://stackoverflow.com/questions/1366953/which-eclipse-project-workspace-files-should-be-added-to-source-control

http://stackoverflow.com/questions/717247/how-to-transfer-eclipse-workspace-and-project-from-windows-to-linux-and-mac

http://stackoverflow.com/questions/950476/how-to-recover-corrupted-eclipse-workspace

I've found that the absolute paths are saved in common.mk.
Replaced them to relative, using the Eclipse(?) macros; it works
and seems to survive editing project properties.

Then, it may be indeed easier just to recreate the workspace and 
re-import all projects, as the valuable data is contained
only in QNX makefiles and .project & .cproject ?

Regards,
S.
RE: How to create a "project container" in IDE v.4.6?  
A trial-and-true practice is never copy the whole workspace. Not only the machine specific settings (like path) are not 
share-able, but also the workspace metadata is not warranted to be identical in between different version of IDEs.

As you said in your last sentence, the project data can be shared. The "export" and "import" functions ensure project 
data is preserved and that's exactly what you need. 

Why not check-in your projects to ease the multi-site, multi-user development?

-----Original Message-----
From: Saul A [mailto:community-noreply@qnx.com]
Sent: Fri 29/10/2010 11:29 PM
To: momenticsgs-community
Subject: Re: How to create a "project container" in  IDE v.4.6?
 
Working sets do not look and work like subfolders in Visual Studio solution.
On the other hand, in VS you cannot select a subfolder and build it.
Need just to get used to Eclipse... 

We currently use subversion (latest Tortoise); planning to move to git or mercurial.

From the links below, it seems that backing up the Eclipse metadata and absolute paths are common problems:

http://stackoverflow.com/questions/1366953/which-eclipse-project-workspace-files-should-be-added-to-source-control

http://stackoverflow.com/questions/717247/how-to-transfer-eclipse-workspace-and-project-from-windows-to-linux-and-mac

http://stackoverflow.com/questions/950476/how-to-recover-corrupted-eclipse-workspace

I've found that the absolute paths are saved in common.mk.
Replaced them to relative, using the Eclipse(?) macros; it works
and seems to survive editing project properties.

Then, it may be indeed easier just to recreate the workspace and 
re-import all projects, as the valuable data is contained
only in QNX makefiles and .project & .cproject ?

Regards,
S.



Attachment: Text winmail.dat 3.47 KB
Re: RE: How to create a "project container" in IDE v.4.6?  
Thanks, this is exactly what I did: checked in the Eclipse .project, .cproject files, and all QNX .mk and Makefiles in 
all subdirs of all projects.
Changed all absolute paths in .mk files to macros and env. variables.

Now, the  hard part - explain to the customer how to recreate the workspace :)

- S.