Multi edit in Menu options [message #1565830] |
Thu, 15 January 2015 09:09  |
Eclipse User |
|
|
|
Hi
I have placed the Multi Edit on Menu options that we get when we right click on the column of the nat table.
It works correctly, my question is:
How shall I grey out the menu option for Multi edit on the basis of whether the cells are editable or not.
I have gone through the code of Nat Table and there is an iterator that calculates the cell Size
for (Iterator<ILayerCell> iterator = editCells.iterator(); iterator.hasNext(); ) {
ILayerCell layerCell = iterator.next();
LabelStack labelStack = layerCell.getConfigLabels();
IEditableRule editableRule = configRegistry.getConfigAttribute(
EditConfigAttributes.CELL_EDITABLE_RULE,
DisplayMode.EDIT, labelStack.getLabels());
if (!editableRule.isEditable(layerCell, configRegistry)) {
iterator.remove();
}
}
But the problem is how can I invoke this before pressing F2 or how can I get to know that the Multi Edit will not be invoked so that on right click I can grey out the Multi Edit option.
Regards
Ambuj
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03970 seconds