📄 selectionstate.java
字号:
package org.python.pydev.refactoring.codegenerator.generateproperties.request;
public class SelectionState {
public final static int GETTER = 1;
public final static int SETTER = 2;
public final static int DELETE = 4;
public final static int DOCSTRING = 8;
private int flags = 0;
public void addSelection(int type) {
flags |= type;
}
public void removeSelection(int type) {
flags &= ~type;
}
public boolean isGetter() {
return (flags & GETTER) == GETTER;
}
public boolean isSetter() {
return (flags & SETTER) == SETTER;
}
public boolean isDelete() {
return (flags & DELETE) == DELETE;
}
public boolean isDocstring() {
return (flags & DOCSTRING) == DOCSTRING;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -