1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.framework.ui.skynet.widgets.xchange;
import org.eclipse.nebula.widgets.xviewer.XViewer;
import org.eclipse.nebula.widgets.xviewer.XViewerColumn;
import org.eclipse.nebula.widgets.xviewer.XViewerColumn.SortDataType;
import org.eclipse.nebula.widgets.xviewer.XViewerSorter;
import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.SkynetXViewerFactory;
import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.ArtifactTypeColumn;
import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.GuidColumn;
import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.HierarchyIndexColumn;
import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.HridColumn;
import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.LastModifiedByColumn;
import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.LastModifiedDateColumn;
import org.eclipse.swt.SWT;
/**
* @author Donald G. Dunne
*/
public class ChangeXViewerFactory extends SkynetXViewerFactory {
public final static XViewerColumn Name = new XViewerColumn("framework.change.artifactNames", "Artifact name(s)",
250, SWT.LEFT, true, SortDataType.String, false, null);
public final static XViewerColumn Item_Type = new XViewerColumn("framework.change.itemType", "Item Type", 100,
SWT.LEFT, true, SortDataType.String, false, null);
public final static XViewerColumn Item_Kind = new XViewerColumn("framework.change.itemKind", "Item Kind", 70,
SWT.LEFT, true, SortDataType.String, false, null);
public final static XViewerColumn Change_Type = new XViewerColumn("framework.change.changeType", "Change Type", 50,
SWT.LEFT, true, SortDataType.String, false, null);
public final static XViewerColumn Is_Value = new XViewerColumn("framework.change.isValue", "Is Value", 150,
SWT.LEFT, true, SortDataType.String, false, null);
public final static XViewerColumn Was_Value = new XViewerColumn("framework.change.wasValue", "Was Value", 150,
SWT.LEFT, true, SortDataType.String, false, null);
public final static XViewerColumn paraNumber = new XViewerColumn("attribute.Paragraph Number",
CoreAttributeTypes.ParagraphNumber.getName(), 50, SWT.LEFT, false, SortDataType.Paragraph_Number, false, null);
public final static String NAMESPACE = "osee.skynet.gui.ChangeXViewer";
public ChangeXViewerFactory() {
super(NAMESPACE);
registerColumns(Name, Item_Type, Item_Kind, Change_Type, Is_Value, Was_Value, paraNumber);
registerColumns(HierarchyIndexColumn.getInstance());
registerColumns(new HridColumn());
registerColumns(new GuidColumn(false));
registerColumns(new ArtifactTypeColumn("framework.change.artifactType"));
registerColumns(new LastModifiedDateColumn(false));
registerColumns(new LastModifiedByColumn(false));
registerAllAttributeColumns();
}
@Override
public XViewerSorter createNewXSorter(XViewer xViewer) {
return new XViewerSorter(xViewer);
}
}
|