Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ private void registerCompareTableCellStyle(
final IConfigRegistry configRegistry) {
final ICellPainter lineBorderDecorator = new LineBorderDecorator(
defaultCellPainter,
new BorderStyle(1, new Color(COMPARE_CELL_BORDER_COLOR),
LineStyleEnum.SOLID));
getCompareTableBorderStyle(LineStyleEnum.SOLID));
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_PAINTER, lineBorderDecorator,
DisplayMode.NORMAL,
Expand All @@ -128,9 +127,7 @@ private void registerCompareTableRowStyle(
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_PAINTER,
new CustomLineBorderDecorator(defaultCellPainter,
new BorderStyle(1,
new Color(
COMPARE_CELL_BORDER_COLOR),
getCompareTableBorderStyle(
LineStyleEnum.SOLID)),
DisplayMode.NORMAL, label);
});
Expand All @@ -140,13 +137,17 @@ private void registerGuidChangedRowStyle(
final IConfigRegistry configRegistry) {
final CustomLineBorderDecorator customLineBorderDecorator = new CustomLineBorderDecorator(
defaultCellPainter,
new BorderStyle(1, new Color(COMPARE_CELL_BORDER_COLOR),
LineStyleEnum.DASHED));
getCompareTableBorderStyle(LineStyleEnum.DASHED));
configRegistry.registerConfigAttribute(
CellConfigAttributes.CELL_PAINTER, customLineBorderDecorator,
DisplayMode.NORMAL,
ToolboxConstants.TABLE_COMPARE_CHANGED_GUID_ROW_CELL_LABEL);
}

private static BorderStyle getCompareTableBorderStyle(
final LineStyleEnum lineStyle) {
return new BorderStyle(1, new Color(COMPARE_CELL_BORDER_COLOR),
lineStyle);
}

private void registerTopologicalTableCellStyle(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ http://www.eclipse.org/legal/epl-v20.html
</fo:block>
</xsl:template>

<xsl:variable name="compare-content-border-style" select="'0.3mm solid #0066FF'" />
<xsl:variable name="compare-content-border-style" select="'0.5mm solid #0066FF'" />
<xsl:template name="CompareCellContentStyle">
<xsl:choose>
<xsl:when test="CompareProjectContent">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.eclipse.set.model.tablemodel.CellContent;
import org.eclipse.set.model.tablemodel.ColumnDescriptor;
import org.eclipse.set.model.tablemodel.CompareStateCellContent;
import org.eclipse.set.model.tablemodel.CompareTableCellContent;
import org.eclipse.set.model.tablemodel.RowMergeMode;
import org.eclipse.set.model.tablemodel.StringCellContent;
import org.eclipse.set.model.tablemodel.TableRow;
Expand Down Expand Up @@ -140,6 +141,24 @@ private static boolean shouldReplaceValue(final CellContent cellContentA,
}
yield true;
}
case final CompareTableCellContent compareTableCellContentA -> {
if (compareTableCellContentA.getMainPlanCellContent() == null) {
yield false;
}
yield switch (cellContentB) {
case final CompareTableCellContent compareTableCellContentB -> compareTableCellContentB
.getMainPlanCellContent() != null
&& shouldReplaceValue(
compareTableCellContentA
.getMainPlanCellContent(),
compareTableCellContentB
.getMainPlanCellContent());

default -> shouldReplaceValue(
compareTableCellContentA.getMainPlanCellContent(),
cellContentB);
};
}
default -> false;
};
}
Expand Down
Loading