This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 262652 - Export facet content to project
Summary: Export facet content to project
Status: CLOSED FIXED
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: Core (show other bugs)
Version: 0.4.5   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Jim Strawn CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-27 15:15 EST by Eric Dillon CLA
Modified: 2012-02-21 10:23 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Dillon CLA 2009-01-27 15:15:35 EST
The goal is to allow users to export the content of a facet to a project. 
We’ll consider the recipient project has already been created for now. 
The wizard should be an “Export wizard, to appear in the Tigerstripe Category”. 
As such, it will be available from a right-click anywhere in the Explorer. If right-click happens on a facet file, it should be picked up and pre-populated as the originating facet in the wizard. 
The Wizard would have:
The name of the source project. 
the name of the facet (which needs to belong to the source project, or else the facet can’t be resolved) 
the name of the recipient (target) project 
a checkbox to let the use choose to “Include referenced projects”, i.e if the content of referenced projects should be exported too (meaning that the content of the facet should be computed including referenced projects) 
a Finish button :-). 
If the initial right-click was on a project and/or facet, the source project and facets should be pre-populated.

The logic should be kept away from the wizard code (i.e. Wizard in ui.base plugin next to other wizards, logic in .base plugin internal)
The logic should to do following, once the source/targets/options have been captured from the wizard:
in a runnable (similar to other wizards). 
apply facet to source project. Look in the code for action for “set as Active facet” in ui. 
query content thru Artifact Manager Session on that project (with or without dependencies based on options) 
for each artifact, create the same artifact in the target project (i.e. Clone + add to target ArtifactManagerSession). Call “doSave()” on that artifact then which should create it on disk.
Comment 1 Chris Hartley CLA 2009-02-04 20:37:33 EST
Should we allow headless operation as well ?
Comment 2 Eric Dillon CLA 2009-06-01 18:49:56 EDT
Hi Jim,

isn't that all complete? Should this be resolved?

Eric
Comment 3 Navid Mehregani CLA 2012-02-21 10:23:49 EST
This is already implemented under Export > Tigerstripe > Facet Scoped Model