本文整理汇总了Java中org.eclipse.gef.requests.DirectEditRequest.getCellEditor方法的典型用法代码示例。如果您正苦于以下问题:Java DirectEditRequest.getCellEditor方法的具体用法?Java DirectEditRequest.getCellEditor怎么用?Java DirectEditRequest.getCellEditor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.gef.requests.DirectEditRequest
的用法示例。
在下文中一共展示了DirectEditRequest.getCellEditor方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: revertOldEditValue
import org.eclipse.gef.requests.DirectEditRequest; //导入方法依赖的package包/类
/**
* @param request
* reverts to the old value.
*/
protected void revertOldEditValue(DirectEditRequest request) {
CellEditor cellEditor = request.getCellEditor();
cellEditor.setValue(oldValue);
CommentEditPart lblPart = (CommentEditPart) getHost();
lblPart.revertNameChange();
}
示例2: storeOldEditValue
import org.eclipse.gef.requests.DirectEditRequest; //导入方法依赖的package包/类
/**
* @param request
* Saves the initial text value so that if the user's changes are not committed then
*/
protected void storeOldEditValue(DirectEditRequest request) {
CellEditor cellEditor = request.getCellEditor();
oldValue = (String) cellEditor.getValue();
oldValue = oldValue.trim();
}
示例3: revertOldEditValue
import org.eclipse.gef.requests.DirectEditRequest; //导入方法依赖的package包/类
/**
* @param request
* reverts to the old value.
*/
protected void revertOldEditValue(DirectEditRequest request) {
CellEditor cellEditor = request.getCellEditor();
cellEditor.setValue(oldValue);
GrlNodeEditPart lblPart = (GrlNodeEditPart) getHost();
lblPart.revertNameChange();
}
示例4: revertOldEditValue
import org.eclipse.gef.requests.DirectEditRequest; //导入方法依赖的package包/类
/**
* @param request
* reverts to the old value.
*/
protected void revertOldEditValue(DirectEditRequest request) {
CellEditor cellEditor = request.getCellEditor();
cellEditor.setValue(oldValue);
LabelEditPart lblPart = (LabelEditPart) getHost();
lblPart.revertNameChange();
}
示例5: storeOldEditValue
import org.eclipse.gef.requests.DirectEditRequest; //导入方法依赖的package包/类
/**
* @param request
* Saves the initial text value so that if the user's changes are not committed then
*/
protected void storeOldEditValue(DirectEditRequest request) {
CellEditor cellEditor = request.getCellEditor();
oldValue = (String) cellEditor.getValue();
}