本文整理汇总了Java中org.eclipse.jface.viewers.TableViewer.refresh方法的典型用法代码示例。如果您正苦于以下问题:Java TableViewer.refresh方法的具体用法?Java TableViewer.refresh怎么用?Java TableViewer.refresh使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.viewers.TableViewer
的用法示例。
在下文中一共展示了TableViewer.refresh方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: operationOutputTableAddButton
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void operationOutputTableAddButton(
final MappingSheetRow mappingSheetRow,
final TableViewer operationOutputtableViewer) {
FilterProperties f = new FilterProperties();
f.setPropertyname("");
if (!mappingSheetRow.getOutputList().contains(f)) {
mappingSheetRow.getOutputList().add(f);
operationOutputtableViewer.refresh();
int i = mappingSheetRow.getOutputList().size() == 0 ? mappingSheetRow.getOutputList().size()
: mappingSheetRow.getOutputList().size() - 1;
operationalOutputFieldTableViewer.editElement(operationOutputtableViewer.getElementAt(i), 0);
component.setLatestChangesInSchema(false);
}
}
示例2: addNewProperty
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void addNewProperty(TableViewer tv, String fieldName) {
if (isPropertyAlreadyExists(fieldName))
return;
isAnyUpdatePerformed = true;
FilterProperties filter = new FilterProperties();
if (fieldName == null)
fieldName = "";
if (propertyList.size() != 0) {
if (!validate())
return;
filter.setPropertyname(fieldName); //$NON-NLS-1$
propertyList.add(filter);
tv.refresh();
targetTableViewer.editElement(
targetTableViewer.getElementAt(propertyList.size() - 1), 0);
} else {
filter.setPropertyname(fieldName);//$NON-NLS-1$
propertyList.add(filter);
tv.refresh();
targetTableViewer.editElement(targetTableViewer.getElementAt(0), 0);
}
}
示例3: loadProperties
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void loadProperties(TableViewer tv) {
if (fieldNameList != null && !fieldNameList.isEmpty()) {
for (String key : fieldNameList) {
FilterProperties filter = new FilterProperties();
if (validateBeforeLoad(key)) {
filter.setPropertyname(key);
propertyList.add(filter);
}
}
tv.refresh();
} else {
logger.debug("LodProperties :: Empty Map");
}
}
示例4: addNewProperty
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void addNewProperty(TableViewer tabViewer) {
isAnyUpdatePerformed = true;
RuntimeProperties property = new RuntimeProperties();
if (propertyList.size() != 0) {
if (!validate()) {
return;
}
property.setPropertyName("");
property.setPropertyValue("");
propertyList.add(property);
tabViewer.refresh();
tableViewer.editElement(tableViewer.getElementAt(propertyList.size() - 1), 0);
} else {
property.setPropertyName("");
property.setPropertyValue("");
propertyList.add(property);
tabViewer.refresh();
tableViewer.editElement(tableViewer.getElementAt(0), 0);
}
}
示例5: addNewProperty
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
public void addNewProperty(TableViewer tv, String fieldName) {
if (isPropertyAlreadyExists(fieldName))
return;
isAnyUpdatePerformed = true;
FilterProperties filter = new FilterProperties();
if (fieldName == null)
fieldName = "";
if (propertyList.size() != 0) {
if (!validate())
return;
filter.setPropertyname(fieldName); //$NON-NLS-1$
propertyList.add(filter);
tv.refresh();
targetTableViewer.editElement(targetTableViewer.getElementAt(propertyList.size() - 1), 0);
} else {
filter.setPropertyname(fieldName);//$NON-NLS-1$
propertyList.add(filter);
tv.refresh();
targetTableViewer.editElement(targetTableViewer.getElementAt(0), 0);
}
}
示例6: addNewProperty
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void addNewProperty(TableViewer tv, String fieldName) {
if (isPropertyAlreadyExists(fieldName))
return;
isAnyUpdatePerformed = true;
FilterProperties filter = new FilterProperties();
if (fieldName == null)
fieldName = "";
if (propertyList.size() != 0) {
if (!validate())
return;
filter.setPropertyname(fieldName); //$NON-NLS-1$
propertyList.add(filter);
tv.refresh();
targetTableViewer.editElement(targetTableViewer.getElementAt(propertyList.size() - 1), 0);
} else {
filter.setPropertyname(fieldName);//$NON-NLS-1$
propertyList.add(filter);
tv.refresh();
targetTableViewer.editElement(targetTableViewer.getElementAt(0), 0);
}
}
示例7: addNewProperty
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void addNewProperty(TableViewer tv, String fieldName) {
if (isPropertyAlreadyExists(fieldName))
return ;
isAnyUpdatePerformed = true;
SecondaryColumnKeysInformation p = new SecondaryColumnKeysInformation();
if (fieldName == null)
fieldName = "";
if (propertyList.size() != 0) {
if (!validate())
return;
p.setColumnName(fieldName); //$NON-NLS-1$
p.setSortOrder(Constants.ASCENDING_SORT_ORDER); //$NON-NLS-1$
propertyList.add(p);
tv.refresh();
targetTableViewer.editElement(targetTableViewer.getElementAt(propertyList.size() - 1), 0);
} else {
p.setColumnName(fieldName); //$NON-NLS-1$
p.setSortOrder(Constants.ASCENDING_SORT_ORDER); //$NON-NLS-1$
propertyList.add(p);
tv.refresh();
targetTableViewer.editElement(targetTableViewer.getElementAt(0), 0);
}
}
示例8: getAddAtEndListener
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
/**
* Gets the adds-at-the-end listener.
*
* @param tableViewer
* the table viewer
* @param conditionList
* the condition list
* @param dummyList
* the dummy list
* @return the adds the at end listener
*/
public SelectionAdapter getAddAtEndListener(final TableViewer tableViewer, final List<Condition> conditionList,
final List<Condition> dummyList) {
return new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
conditionList.add(conditionList.size(), new Condition());
dummyList.clear();
dummyList.addAll(cloneList(conditionList));
tableViewer.refresh();
}
};
}
示例9: moveRowUp
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void moveRowUp( TableViewer parameterTableViewer ){
Table table = parameterTableViewer.getTable();
int[] indexes = table.getSelectionIndices();
for (int index : indexes) {
if (index > 0) {
Collections.swap((List<Parameter>) parameters, index,
index - 1);
parameterTableViewer.refresh();
}
}
}
示例10: moveRowDown
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void moveRowDown(TableViewer parameterTableViewer){
Table table = parameterTableViewer.getTable();
int[] indexes = table.getSelectionIndices();
for (int i = indexes.length - 1; i > -1; i--) {
if (indexes[i] < parameters.size() - 1) {
Collections.swap((List<Parameter>) parameters,
indexes[i], indexes[i] + 1);
parameterTableViewer.refresh();
}
}
}
示例11: createDefaultSchema
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
@Override
public void createDefaultSchema(List grids, TableViewer tableViewer, Label errorLabel) {
int rowSequence = getRowSequence();
FixedWidthGridRow fixedGrid = new FixedWidthGridRow();
fixedGrid.setFieldName("DefaultField" + rowSequence++);
fixedGrid.setDateFormat("");
fixedGrid.setPrecision("");
fixedGrid.setScale("");
fixedGrid.setScaleType(Integer.valueOf(Constants.DEFAULT_INDEX_VALUE_FOR_COMBOBOX));
fixedGrid.setScaleTypeValue(getScaleTypeValue()[Integer.valueOf(Constants.DEFAULT_INDEX_VALUE_FOR_COMBOBOX)]);
fixedGrid.setDataType(Integer.valueOf(Constants.DEFAULT_INDEX_VALUE_FOR_COMBOBOX));
fixedGrid.setDataTypeValue(getDataTypeValue()[Integer.valueOf(Constants.DEFAULT_INDEX_VALUE_FOR_COMBOBOX)]);
fixedGrid.setLength("");
fixedGrid.setDescription("");
int numberOfRows=grids.size();
do{
if(!grids.contains(fixedGrid)){
grids.add(fixedGrid);
tableViewer.setInput(grids);
tableViewer.refresh();
tableViewer.editElement(tableViewer.getElementAt(grids.size() == 0 ? grids.size() : grids.size() - 1), 0);
break;
}
fixedGrid.setFieldName("DefaultField" + rowSequence++);
numberOfRows--;
}while(numberOfRows>=-1);
}
示例12: createDefaultSchema
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
@Override
public void createDefaultSchema(List grids, TableViewer tableViewer,
Label errorLabel) {
int rowSequence = getRowSequence();
MixedSchemeGridRow mixedSchemeGridRow = new MixedSchemeGridRow();
mixedSchemeGridRow.setFieldName("DefaultField" + rowSequence++);
mixedSchemeGridRow.setDateFormat("");
mixedSchemeGridRow.setPrecision("");
mixedSchemeGridRow.setScale("");
mixedSchemeGridRow.setScaleType(Integer.valueOf(Constants.DEFAULT_INDEX_VALUE_FOR_COMBOBOX));
mixedSchemeGridRow.setScaleTypeValue(getScaleTypeValue()[Integer.valueOf(Constants.DEFAULT_INDEX_VALUE_FOR_COMBOBOX)]);
mixedSchemeGridRow.setDataType(Integer.valueOf(Constants.DEFAULT_INDEX_VALUE_FOR_COMBOBOX));
mixedSchemeGridRow.setDataTypeValue(getDataTypeValue()[Integer.valueOf(Constants.DEFAULT_INDEX_VALUE_FOR_COMBOBOX)]);
mixedSchemeGridRow.setLength("");
mixedSchemeGridRow.setDescription("");
mixedSchemeGridRow.setDelimiter(PIPE_DELIMITER);
int numberOfRows=grids.size();
do{
if(!grids.contains(mixedSchemeGridRow)){
grids.add(mixedSchemeGridRow);
tableViewer.setInput(grids);
tableViewer.refresh();
tableViewer.editElement(tableViewer.getElementAt(grids.size() == 0 ? grids.size() : grids.size() - 1), 0);
break;
}
mixedSchemeGridRow.setFieldName("DefaultField" + rowSequence++);
numberOfRows--;
}while(numberOfRows>=-1);
}
示例13: joinOutputProperty
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void joinOutputProperty(TableViewer viewer, String sourceFieldValue) {
String outputFieldValue = null;
if (sourceFieldValue == null) {
sourceFieldValue = "";
outputFieldValue = "";
} else {
outputFieldValue = sourceFieldValue.split("\\.")[1];
}
LookupMapProperty property = new LookupMapProperty();
if (joinOutputList.size() != 0) {
if (!validateOutputSchema(outputFieldValue, sourceFieldValue))
return;
property.setSource_Field(sourceFieldValue);
property.setOutput_Field(outputFieldValue);
joinOutputList.add(property);
viewer.refresh();
viewer.editElement(property,
0);
} else {
property.setSource_Field(sourceFieldValue);
property.setOutput_Field(outputFieldValue);
joinOutputList.add(property);
viewer.refresh();
viewer.editElement(property, 0);
}
}
示例14: addNewRow
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void addNewRow(TableViewer nameValueTableViewer){
NameValueProperty nameValueProperty = new NameValueProperty();
nameValueProperty.setPropertyName("");
nameValueProperty.setPropertyValue("");
if (!operationClassProperty.getNameValuePropertyList().contains(nameValueProperty)) {
operationClassProperty.getNameValuePropertyList().add(nameValueProperty);
nameValueTableViewer.refresh();
nameValueTableViewer.editElement(nameValueTableViewer.getElementAt(operationClassProperty.getNameValuePropertyList().size() - 1), 0);
applyButton.setEnabled(true);
}
}
示例15: operationInputTableAddButton
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void operationInputTableAddButton(
MappingSheetRow mappingSheetRow,
TableViewer tableViewer) {
FilterProperties filterProperties = new FilterProperties();
filterProperties.setPropertyname("");
if (!mappingSheetRow.getInputFields().contains(filterProperties)) {
mappingSheetRow.getInputFields().add(filterProperties);
tableViewer.refresh();
int i = mappingSheetRow.getInputFields().size() == 0 ? mappingSheetRow.getInputFields().size()
: mappingSheetRow.getInputFields().size() - 1;
tableViewer.editElement(tableViewer.getElementAt(i), 0);
}
}