Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 81746

Summary: [Import/Export] ImportOperation should not have special case for TarFileStructureProvider
Product: [Eclipse Project] Platform Reporter: Nick Edgar <n.a.edgar>
Component: IDEAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P5 CC: billy.biggs
Version: 3.0Keywords: api, helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard: stalebug

Description Nick Edgar CLA 2004-12-21 12:53:24 EST
build I20041221

ImportOperation.importFile has:

            if (provider instanceof TarFileStructureProvider) {
            	try {
            		targetResource.setResourceAttributes(((TarFileStructureProvider)
provider).getResourceAttributes(fileObject));
            	} catch (CoreException e) {
            		errorTable.add(e.getStatus());
            	}
            }

It's not good form to have the API class ImportOperation, which is trying to be
a generic operation, include special-case code for a particular kind of
IImportStructureProvider.

It would be better to define an API interface
IImportStructureProviderWithAttributes that has the getResourceAttributes(Object
element), then have TarFileStructuredProvider implement it.

This will also allow any new importers that come along to also provide attributes.
Comment 1 Susan McCourt CLA 2009-07-15 12:11:15 EDT
"As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009"
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:13:35 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 3 Eclipse Genie CLA 2021-09-20 15:47:15 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.