Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/ResourceMappingHierarchyArea.java')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/ResourceMappingHierarchyArea.java58
1 files changed, 29 insertions, 29 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/ResourceMappingHierarchyArea.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/ResourceMappingHierarchyArea.java
index dc2abf5af..945e99362 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/ResourceMappingHierarchyArea.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/ResourceMappingHierarchyArea.java
@@ -35,14 +35,14 @@ import org.eclipse.ui.navigator.INavigatorContentServiceListener;
public class ResourceMappingHierarchyArea extends DialogArea implements INavigatorContentServiceListener {
private static final String TEAM_NAVIGATOR_CONTENT = "org.eclipse.team.ui.navigatorViewer"; //$NON-NLS-1$
private String description;
- private CommonViewer viewer;
+ private CommonViewer viewer;
private final ISynchronizationScope scope;
private final ISynchronizationContext context;
- public static ResourceMappingHierarchyArea create(ISynchronizationScope scope, ISynchronizationContext context) {
- return new ResourceMappingHierarchyArea(scope, context);
- }
+ public static ResourceMappingHierarchyArea create(ISynchronizationScope scope, ISynchronizationContext context) {
+ return new ResourceMappingHierarchyArea(scope, context);
+ }
private ResourceMappingHierarchyArea(ISynchronizationScope scope, ISynchronizationContext context) {
this.scope = scope;
@@ -51,31 +51,31 @@ public class ResourceMappingHierarchyArea extends DialogArea implements INavigat
@Override
public void createArea(Composite parent) {
- Composite composite = new Composite(parent, SWT.NULL);
- GridLayout layout = new GridLayout(1, false);
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- composite.setLayout(layout);
- composite.setLayoutData(new GridData(GridData.FILL_BOTH));
+ Composite composite = new Composite(parent, SWT.NULL);
+ GridLayout layout = new GridLayout(1, false);
+ layout.marginHeight = 0;
+ layout.marginWidth = 0;
+ composite.setLayout(layout);
+ composite.setLayoutData(new GridData(GridData.FILL_BOTH));
- if (description != null)
- createWrappingLabel(composite, description, 1);
+ if (description != null)
+ createWrappingLabel(composite, description, 1);
- viewer = new CommonViewer(TEAM_NAVIGATOR_CONTENT, composite, SWT.BORDER);
- viewer.setSorter(new CommonViewerSorter());
- viewer.setSorter(new TeamViewerSorter((CommonViewerSorter)viewer.getSorter()));
- viewer.getNavigatorContentService().bindExtensions(TeamUI.getTeamContentProviderManager().getContentProviderIds(scope), true);
- viewer.getNavigatorContentService().getActivationService().activateExtensions(TeamUI.getTeamContentProviderManager().getContentProviderIds(scope), true);
- GridData data = new GridData(GridData.FILL_BOTH);
- data.heightHint = 100;
- data.widthHint = 300;
- viewer.getControl().setLayoutData(data);
- viewer.getNavigatorContentService().addListener(this);
- viewer.setInput(getInitialInput());
- viewer.refresh();
- Object[] objects = getRootModelObjects();
- viewer.setSelection(new StructuredSelection(objects), true);
- }
+ viewer = new CommonViewer(TEAM_NAVIGATOR_CONTENT, composite, SWT.BORDER);
+ viewer.setSorter(new CommonViewerSorter());
+ viewer.setSorter(new TeamViewerSorter((CommonViewerSorter)viewer.getSorter()));
+ viewer.getNavigatorContentService().bindExtensions(TeamUI.getTeamContentProviderManager().getContentProviderIds(scope), true);
+ viewer.getNavigatorContentService().getActivationService().activateExtensions(TeamUI.getTeamContentProviderManager().getContentProviderIds(scope), true);
+ GridData data = new GridData(GridData.FILL_BOTH);
+ data.heightHint = 100;
+ data.widthHint = 300;
+ viewer.getControl().setLayoutData(data);
+ viewer.getNavigatorContentService().addListener(this);
+ viewer.setInput(getInitialInput());
+ viewer.refresh();
+ Object[] objects = getRootModelObjects();
+ viewer.setSelection(new StructuredSelection(objects), true);
+ }
private Object getInitialInput() {
if (context != null)
@@ -96,8 +96,8 @@ public class ResourceMappingHierarchyArea extends DialogArea implements INavigat
}
public void setDescription(String string) {
- description = string;
- }
+ description = string;
+ }
@Override
public void onLoad(INavigatorContentExtension anExtension) {

Back to the top