Bug 396024 - [Eclipse Platform Extensions] Should allow the possibility of selecting several files at a time when creating "New linked file"
Summary: [Eclipse Platform Extensions] Should allow the possibility of selecting sever...
Status: CLOSED WONTFIX
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-07 04:37 EST by nguyenntk Mising name CLA
Modified: 2024-05-06 23:12 EDT (History)
8 users (show)

See Also:


Attachments
Patch file for supporting multi-selection linked File (44.70 KB, application/octet-stream)
2012-12-18 23:32 EST, nguyenntk Mising name CLA
idydieng: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nguyenntk Mising name CLA 2012-12-07 04:37:04 EST
= Description =
When using 'new/Linked File', it would be nice to be able to select several files at a time.

= Resolution proposal =
* Modify class org.eclipse.sphinx.emf.workspace.ui.wizards.pages.CreateLinkedResourceGroup:
 - Change style of FileDialog to SWT.MULTI and edit other relevant methods to return list of selected files.
 - The selected files are displayed in "linkTargetField" and separated by ";"
* Modify class org.eclipse.sphinx.emf.workspace.ui.wizards.pages.LinkedFileCreationMainPage
 - Update createNewFile() method to allow create multi linked files
 - Update validatePage() method to validate all selected files and return Error status if having any file is invalid.
* Create new class: PathVariableSelectionDialog on sphinx to support selecting several variable paths because org.eclipse.ui.ide.dialogs.PathVariableSelectionDialog is only support single selection.

I will create a patch file for this solution later.

The Patch file will be coming soon!
Thanks!
Comment 1 nguyenntk Mising name CLA 2012-12-07 04:46:17 EST
And in case the "Link target" does not exist, should return Error status instead of Warning status to prevent creating a new linked resource with an invalid link target.
Comment 2 nguyenntk Mising name CLA 2012-12-18 23:32:07 EST
Created attachment 224904 [details]
Patch file for supporting multi-selection linked File

Attached Patch file for allowing the possibility of selecting several files at a time when creating "New linked file"
Comment 3 Balazs Grill CLA 2024-05-06 23:12:05 EDT
Closed stale issue before migration