1 11 package org.eclipse.team.internal.ui.synchronize; 12 13 import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration; 14 15 18 public class HierarchicalModelManager extends SynchronizeModelManager { 19 20 public HierarchicalModelManager(ISynchronizePageConfiguration configuration) { 21 super(configuration); 22 } 23 24 27 protected ISynchronizeModelProviderDescriptor[] getSupportedModelProviders() { 28 return new ISynchronizeModelProviderDescriptor[] { 29 new FlatModelProvider.FlatModelProviderDescriptor(), 30 new HierarchicalModelProvider.HierarchicalModelProviderDescriptor(), 31 new CompressedFoldersModelProvider.CompressedFolderModelProviderDescriptor() }; 32 } 33 34 37 protected ISynchronizeModelProvider createModelProvider(String id) { 38 if(id == null) { 39 id = getDefaultProviderId(); 40 } 41 if (id.endsWith(FlatModelProvider.FlatModelProviderDescriptor.ID)) { 42 return new FlatModelProvider(getConfiguration(), getSyncInfoSet()); 43 } else if(id.endsWith(CompressedFoldersModelProvider.CompressedFolderModelProviderDescriptor.ID)) { 44 return new CompressedFoldersModelProvider(getConfiguration(), getSyncInfoSet()); 45 } else { 46 return new HierarchicalModelProvider(getConfiguration(), getSyncInfoSet()); 47 } 48 } 49 } 50 | Popular Tags |