private BulkEditorQuery lastQuery = null;
- private BulkEditorE4Composite bulkEditorComposite;
+ private BulkEditorComposite bulkEditorComposite;
@Inject
public BulkEditor() {
@PostConstruct
public void createPartControl(Composite parent, IEclipseContext context) {
- bulkEditorComposite = new BulkEditorE4Composite(this, parent, SWT.NONE);
+ bulkEditorComposite = new BulkEditorComposite(this, parent, SWT.NONE);
ContextInjectionFactory.inject(bulkEditorComposite, context);
}
* @author pplitzner
* @since Sep 8, 2017
*/
-public class BulkEditorE4Composite extends Composite {
+public class BulkEditorComposite extends Composite {
public static final String LABEL_CANDIDATE = "LABEL_CANDIDATE"; //$NON-NLS-1$
public static final String LABEL_CANDIDATE_ICON = "LABEL_CANDIDATE_ICON"; //$NON-NLS-1$
private IEventBroker eventBroker;
- public BulkEditorE4Composite(BulkEditor bulkEditor, Composite parent, int style) {
+ public BulkEditorComposite(BulkEditor bulkEditor, Composite parent, int style) {
super(parent, style);
parent.setLayout(new GridLayout());
this.bulkEditor = bulkEditor;
}
CdmBase rowObject = dataProvider.getRowObject(rowPosition);
if(input.getMergeCandidates().contains(rowObject)){
- configLabels.addLabel(BulkEditorE4Composite.LABEL_CANDIDATE);
+ configLabels.addLabel(BulkEditorComposite.LABEL_CANDIDATE);
if(columnPosition==0){
- configLabels.addLabel(BulkEditorE4Composite.LABEL_CANDIDATE_ICON);
+ configLabels.addLabel(BulkEditorComposite.LABEL_CANDIDATE_ICON);
}
}
else if(input.getMergeTarget()==rowObject){
- configLabels.addLabel(BulkEditorE4Composite.LABEL_TARGET);
+ configLabels.addLabel(BulkEditorComposite.LABEL_TARGET);
if(columnPosition==0){
- configLabels.addLabel(BulkEditorE4Composite.LABEL_TARGET_ICON);
+ configLabels.addLabel(BulkEditorComposite.LABEL_TARGET_ICON);
}
}
}
CellConfigAttributes.CELL_STYLE,
candidateCellStyle,
DisplayMode.NORMAL,
- BulkEditorE4Composite.LABEL_CANDIDATE);
+ BulkEditorComposite.LABEL_CANDIDATE);
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_PAINTER,
new CellPainterDecorator(
new ImagePainter(ImageResources.getImage(ImageResources.ACTIVE_DELETE_ICON)),
false),
DisplayMode.NORMAL,
- BulkEditorE4Composite.LABEL_CANDIDATE_ICON);
+ BulkEditorComposite.LABEL_CANDIDATE_ICON);
//deduplication target style
Style targetCellStyle = new Style();
ColorResources.getColor(Resources.COLOR_BULK_EDITOR_TARGET));
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_STYLE, targetCellStyle,
- DisplayMode.NORMAL, BulkEditorE4Composite.LABEL_TARGET);
+ DisplayMode.NORMAL, BulkEditorComposite.LABEL_TARGET);
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_PAINTER,
new CellPainterDecorator(
new ImagePainter(ImageResources.getImage(ImageResources.IMPORT)),
false),
DisplayMode.NORMAL,
- BulkEditorE4Composite.LABEL_TARGET_ICON);
+ BulkEditorComposite.LABEL_TARGET_ICON);
}
}
\ No newline at end of file
public class BulkEditorPropertyAccessor implements IColumnPropertyAccessor<CdmBase> {
private AbstractBulkEditorInput<CdmBase> input;
- private BulkEditorE4Composite bulkEditorComposite;
+ private BulkEditorComposite bulkEditorComposite;
- public BulkEditorPropertyAccessor(BulkEditorE4Composite bulkEditorComposite, AbstractBulkEditorInput<CdmBase> input) {
+ public BulkEditorPropertyAccessor(BulkEditorComposite bulkEditorComposite, AbstractBulkEditorInput<CdmBase> input) {
super();
this.input = input;
this.bulkEditorComposite = bulkEditorComposite;
private static final String DEFAULT_TEXT = String.format(Messages.BulkEditorSearchE4_WILDCARD, SearchManager.WILDCARD);
- private final BulkEditorE4Composite editor;
+ private final BulkEditorComposite editor;
private DisplayPersistenceDialogCommandHandler displayPersistenceDialogCommandHandler;
public Object ORDER_BY = new Object();
- public BulkEditorSearch(BulkEditorE4Composite editor, Composite parent, int style) {
+ public BulkEditorSearch(BulkEditorComposite editor, Composite parent, int style) {
this.editor = editor;
createControl(parent, style);
int row = this.natTable.getRowPositionByY(event.y);
LabelStack configLabels = natTable.getConfigLabelsByPosition(col, row);
- if(configLabels.hasLabel(BulkEditorE4Composite.LABEL_TARGET)){
+ if(configLabels.hasLabel(BulkEditorComposite.LABEL_TARGET)){
return Messages.BulkEditorTooltip_TARGET;
}
- else if(configLabels.hasLabel(BulkEditorE4Composite.LABEL_CANDIDATE)){
+ else if(configLabels.hasLabel(BulkEditorComposite.LABEL_CANDIDATE)){
return Messages.BulkEditorTooltip_CANDIDATE;
}
int colIndex = this.natTable.getColumnIndexByPosition(col);
int row = this.natTable.getRowPositionByY(event.y);
LabelStack configLabels = natTable.getConfigLabelsByPosition(col, row);
- if(configLabels.hasLabel(BulkEditorE4Composite.LABEL_CANDIDATE)
- || configLabels.hasLabel(BulkEditorE4Composite.LABEL_TARGET)){
+ if(configLabels.hasLabel(BulkEditorComposite.LABEL_CANDIDATE)
+ || configLabels.hasLabel(BulkEditorComposite.LABEL_TARGET)){
return true;
}
*/
final class CellSelectionListener extends E4SelectionListener<CdmBase> {
- private BulkEditorE4Composite bulkEditor;
+ private BulkEditorComposite bulkEditor;
public CellSelectionListener(
ESelectionService service,
SelectionLayer selectionLayer,
IRowDataProvider<CdmBase> rowDataProvider,
- BulkEditorE4Composite bulkEditor) {
+ BulkEditorComposite bulkEditor) {
super(service, selectionLayer, rowDataProvider);
this.bulkEditor = bulkEditor;
}