bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void setParagraphAttributes(int offset, int length, AttributeSet attributes, boolean replace) { // FIXME: Implement me. throw new Error("not implemented"); } | public void setParagraphAttributes(int offset, int length, AttributeSet attributes, boolean replace) { // FIXME: Implement me. int index = offset; while (index < offset + length) { AbstractElement par = (AbstractElement) getParagraphElement(index); AttributeContext ctx = getAttributeContext(); i... | 7,963 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,964 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,965 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,966 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,967 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,968 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,969 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicSystem.out.println(g); booleanSystem.out.println(g); moveCursor(MouseEventSystem.out.println(g); e,System.out.println(g); intSystem.out.println(g); pos)System.out.println(g); { ifSystem.out.println(g); (!oia.isKeyBoardLocked())System.out.println(g); { ifSystem.out.println(g); (posSystem.out.println(g); <Syste... | 7,970 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,971 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,972 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,973 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,974 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | 7,975 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | 7,976 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | 7,977 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | 7,978 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,979 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,980 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,981 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,982 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,983 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= ... | 7,984 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,985 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,986 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,987 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,988 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,989 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,990 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,991 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,992 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,993 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,994 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,995 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,996 |
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g... | publicbooleanmoveCursor(MouseEvente,intpos){ if(!oia.isKeyBoardLocked()){ if(pos<0) returnfalse; //becausegetRowColFromPointreturnsoffsetof1,1weneedto //translatetooffset0,0 //pos-=(numCols+1); intg=planes.getWhichGUI(pos); //letscheckforhotspots if(g>=BUTTON_LEFT&&g<=BUTTON_LAST){ StringBufferaid... | 7,997 |
protected void createDefaultRenderers() { //FIXME: Create the renderer object. } | setDefaultRenderer(Boolean.class, new BooleanCellRenderer()); setDefaultRenderer(Number.class, new NumberCellRenderer()); setDefaultRenderer(Double.class, new DoubleCellRenderer()); setDefaultRenderer(Double.class, new FloatCellRenderer()); setDefaultRenderer(Date.class, new DateCellRenderer()); setDefaultRenderer(Icon... | 7,998 |
private void distributeSpill(TableColumn[] cols, int spill) { int MIN = 0; int MAX = 0; int PREF = 0; int[] min = new int[cols.length]; int[] max = new int[cols.length]; int[] pref = new int[cols.length]; for (int i = 0; i < cols.length; ++i) { pref[i] = cols[i].getPreferredWidth(); ... | private void distributeSpill(TableColumn[] cols, int spill) { int MIN = 0; int MAX = 0; int PREF = 0; int[] min = new int[cols.length]; int[] max = new int[cols.length]; int[] pref = new int[cols.length]; for (int i = 0; i < cols.length; ++i) { pref[i] = cols[i].getPreferredWidth(); ... | 7,999 |
private void distributeSpill(TableColumn[] cols, int spill) { int MIN = 0; int MAX = 0; int PREF = 0; int[] min = new int[cols.length]; int[] max = new int[cols.length]; int[] pref = new int[cols.length]; for (int i = 0; i < cols.length; ++i) { pref[i] = cols[i].getPreferredWidth(); ... | private void distributeSpill(TableColumn[] cols, int spill) { int MIN = 0; int MAX = 0; int PREF = 0; int[] min = new int[cols.length]; int[] max = new int[cols.length]; int[] pref = new int[cols.length]; for (int i = 0; i < cols.length; ++i) { pref[i] = cols[i].getPreferredWidth(); ... | 8,000 |
public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int[] pref = new int[ncols]; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) ... | public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int[] pref = new int[ncols]; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) ... | 8,001 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute( StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute( StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag... | 8,004 |
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute( StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag... | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute( StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag... | 8,005 |
static final KDF getInstance(final byte[] K) { int ndx = -1; final byte[] keyMaterial; if (K != null) { keyMaterial = K; ndx = 0; } else { keyMaterial = new byte[AES_BLOCK_SIZE]; ndx = new Random ().nextInt (256); // XXX does this need to be secure? } re... | static final KDF getInstance(final byte[] K) { int ndx = -1; final byte[] keyMaterial; if (K != null) { keyMaterial = K; ndx = 0; } else { keyMaterial = new byte[AES_BLOCK_SIZE]; while (ndx < 1 || ndx > 255) ndx = (byte) nextByte(); // XXX does this need to be s... | 8,007 |
public int getLayer(Component c) { if (! componentToLayer.containsKey (c)) throw new IllegalArgumentException (); return ((Integer) componentToLayer.get(c)).intValue(); } | public int getLayer(Component c) { if (! componentToLayer.containsKey (c)) throw new IllegalArgumentException (); return ((Integer) componentToLayer.get(c)).intValue(); } | 8,009 |
public JPanel() { this(new FlowLayout(), true); } | public JPanel() { this(new FlowLayout(), true); } | 8,010 |
public JPanel() { this(new FlowLayout(), true); } | public JPanel() { this(new FlowLayout(), true); } | 8,011 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJPanel(); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJPanel(); return accessibleContext; } | 8,012 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJPanel(); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJPanel(); return accessibleContext; } | 8,013 |
public PanelUI getUI() { return (PanelUI) ui; } | public PanelUI getUI() { return (PanelUI) ui; } | 8,014 |
protected String paramString() { return "JPanel"; } | protected String paramString() { return "JPanel"; } | 8,015 |
protected String paramString() { return "JPanel"; } | protected String paramString() { return "JPanel"; } | 8,016 |
public void setUI(PanelUI ui) { super.setUI(ui); } | public void setUI(PanelUI ui) { super.setUI(ui); } | 8,017 |
public void updateUI() { setUI((PanelUI) UIManager.getUI(this)); } | public void updateUI() { setUI((PanelUI) UIManager.getUI(this)); } | 8,018 |
protected void fireSessionJump(int dir) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { SessionJumpListener target = (SessionJumpListener)listeners.elementAt(i); jumpEvent.setJumpDirection(dir); target.onSessionJu... | protected void fireSessionJump(int dir) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { SessionJumpListener target = (SessionJumpListener)listeners.elementAt(i); jumpEvent.setJumpDirection(dir); target.onSessionJu... | 8,019 |
protected void fireSessionJump(int dir) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { SessionJumpListener target = (SessionJumpListener)listeners.elementAt(i); jumpEvent.setJumpDirection(dir); target.onSessionJu... | protected void fireSessionJump(int dir) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { SessionJumpListener target = (SessionJumpListener)listeners.elementAt(i); jumpEvent.setJumpDirection(dir); target.onSessionJu... | 8,020 |
private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false); setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(true); loadProps(); screen = new Screen5250(this,defaultProps); this.addComponentListener(this); if (!defaultP... | private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false); setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(true); loadProps(); screen = new Screen5250(this,defaultProps); this.addComponentListener(this); if (!defaultP... | 8,021 |
protected final void setRubberBand(TNRubberBand newValue) { rubberband = newValue; } | protected final void setRubberBand(TNRubberBand newValue) { rubberband = newValue; } | 8,022 |
public void stateChanged(ChangeEvent e) { // FIXME: It seems that this class is not used anywhere } | public void stateChanged(ChangeEvent e) { // FIXME: It seems that this class is not used anywhere } | 8,023 |
public void mouseEntered(MouseEvent e) { /* When mouse enters menu item, it should be considered selected if (i) if this menu is a submenu in some other menu (ii) or if this menu is in a menu bar and some other menu in a menu bar was just selected and has its popup menu visible. ... | public void mouseEntered(MouseEvent e) { /* When mouse enters menu item, it should be considered selected if (i) if this menu is a submenu in some other menu (ii) or if this menu is in a menu bar and some other menu in a menu bar was just selected and has its popup menu visible. ... | 8,024 |
public void mousePressed(MouseEvent e) { MenuSelectionManager manager = MenuSelectionManager.defaultManager(); JMenu menu = (JMenu) menuItem; manager.processMouseEvent(e); // Menu should be displayed when the menu is pressed only if // it is top-level menu if (menu.isTopLevel... | public void mousePressed(MouseEvent e) { MenuSelectionManager manager = MenuSelectionManager.defaultManager(); JMenu menu = (JMenu) menuItem; manager.processMouseEvent(e); // Menu should be displayed when the menu is pressed only if // it is top-level menu if (menu.isTopLevel... | 8,025 |
public void mousePressed(MouseEvent e) { MenuSelectionManager manager = MenuSelectionManager.defaultManager(); JMenu menu = (JMenu) menuItem; manager.processMouseEvent(e); // Menu should be displayed when the menu is pressed only if // it is top-level menu if (menu.isTopLevel... | public void mousePressed(MouseEvent e) { MenuSelectionManager manager = MenuSelectionManager.defaultManager(); JMenu menu = (JMenu) menuItem; manager.processMouseEvent(e); // Menu should be displayed when the menu is pressed only if // it is top-level menu if (menu.isTopLevel... | 8,026 |
protected ChangeListener createChangeListener(JComponent c) { return new ChangeHandler(); } | protected ChangeListener createChangeListener(JComponent c) { return new ChangeHandler((JMenu) c, this); } | 8,027 |
public void run () { boolean keepTrucking = true; while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; ... | public void run () { boolean keepTrucking = true; while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; ... | 8,028 |
public void run () { boolean keepTrucking = true; while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; ... | public void run () { boolean keepTrucking = true; while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; ... | 8,029 |
public void run () { boolean keepTrucking = true; while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; ... | public void run () { boolean keepTrucking = true; while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; ... | 8,030 |
public void changedUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Element el = getElement(); DocumentEvent.ElementChange ec = ev.getChange(el); if (ec != null) updateChildren(ec, ev, vf); forwardUpdate(ec, ev, shape, vf); updateLayout(ec, ev, shape); } | public void changedUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Element el = getElement(); DocumentEvent.ElementChange ec = ev.getChange(el); if (ec != null) { if (! updateChildren(ec, ev, vf)) ec = null; } forwardUpdate(ec, ev, shape, vf); updateLayout(ec, ev, shape); } | 8,031 |
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = get... | protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int startIndex = getViewIndex(startOffset, Position.Bias.Backward)... | 8,033 |
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = get... | protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = get... | 8,034 |
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = get... | protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = get... | 8,035 |
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = get... | protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = get... | 8,036 |
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = get... | protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = get... | 8,037 |
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = get... | protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); int startIndex = get... | 8,038 |
public void removeUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Element el = getElement(); DocumentEvent.ElementChange ec = ev.getChange(el); if (ec != null) updateChildren(ec, ev, vf); forwardUpdate(ec, ev, shape, vf); updateLayout(ec, ev, shape); } | public void removeUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Element el = getElement(); DocumentEvent.ElementChange ec = ev.getChange(el); if (ec != null) { if (! updateChildren(ec, ev, vf)) ec = null; } forwardUpdate(ec, ev, shape, vf); updateLayout(ec, ev, shape); } | 8,039 |
public int getIntData (Locator locator) throws NoDataException { int longIndex = getLongArrayIndex(locator); int shortIndex = getShortArrayIndex(locator); try { if (java.lang.reflect.Array.getByte(longDataArray.get(longIndex), shortIndex) !=1) throw new NoDataException();... | public int getIntData (Locator locator) throws NoDataException { int longIndex = getLongArrayIndex(locator); int shortIndex = getShortArrayIndex(locator); try { if (java.lang.reflect.Array.getByte(longDataArray.get(longIndex), shortIndex) !=1) throw new NoDataException();... | 8,040 |
public long getLongData (Locator locator) throws NoDataException { int longIndex = getLongArrayIndex(locator); int shortIndex = getShortArrayIndex(locator); try { if (java.lang.reflect.Array.getByte(longDataArray.get(longIndex), shortIndex) !=1) throw new NoDataException()... | public long getLongData (Locator locator) throws NoDataException { int longIndex = getLongArrayIndex(locator); int shortIndex = getShortArrayIndex(locator); try { if (java.lang.reflect.Array.getByte(longDataArray.get(longIndex), shortIndex) !=1) throw new NoDataException()... | 8,041 |
public short getShortData (Locator locator) throws NoDataException { int longIndex = getLongArrayIndex(locator); int shortIndex = getShortArrayIndex(locator); try { if (java.lang.reflect.Array.getByte(longDataArray.get(longIndex), shortIndex) !=1) throw new NoDataException... | public short getShortData (Locator locator) throws NoDataException { int longIndex = getLongArrayIndex(locator); int shortIndex = getShortArrayIndex(locator); try { if (java.lang.reflect.Array.getByte(longDataArray.get(longIndex), shortIndex) !=1) throw new NoDataException... | 8,042 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | if (isShowing ()) { if (isShowing ()) { protectedif (isShowing ()) { voidif (isShowing ()) { addImpl(Componentif (isShowing ()) { comp,if (isShowing ()) { Objectif (isShowing ()) { constraints,if (isShowing ()) { intif (isShowing ()) { index)if (isShowing ()) { if (isShowing ()) { {if (isShowing ()) { if (i... | 8,043 |
public void remove(int index) { synchronized (getTreeLock ()) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); ... | if (isShowing ()) { if (isShowing ()) { publicif (isShowing ()) { voidif (isShowing ()) { remove(intif (isShowing ()) { index)if (isShowing ()) { if (isShowing ()) { {if (isShowing ()) { if (isShowing ()) { if (isShowing ()) { if (isShowing ()) { synchronizedif (isShowing ()) { (getTreeLockif (isShowing ())... | 8,045 |
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame awtFrame) { super(toolkit, awtFrame, new SwingFrame(awtFrame)); jComponent.initialize(this); SwingToolkit.copyAwtProperties(awtFrame, this.jComponent); jComponent.getContentPane().setLayout(new SwingFrameLayout(this)); ... | public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame awtFrame) { super(toolkit, awtFrame, new SwingFrame(awtFrame)); jComponent.initialize(this); SwingToolkit.copyAwtProperties(awtFrame, this.jComponent); jComponent.getContentPane().setLayout(new SwingContainerLayout(this))... | 8,047 |
public void clear() { synchronized (lock) { vector.clear(); lock.notify(); } } | public void clear() { synchronized (lock) { vector.clear(); lock.notifyAll(); } } | 8,048 |
public Object get() throws InterruptedException { synchronized (lock) { // wait until there is something to read while (isEmpty()) lock.wait(); /** * @todo here is the throttling code to look at * * just something here to try. OK it works but we nee... | public Object get() throws InterruptedException { synchronized (lock) { // wait until there is something to read while (isEmpty()) { lock.wait(); /** * @todo here is the throttling code to look at * * just something here to try. OK it works but we n... | 8,049 |
public void put(Object o) { synchronized (lock) { vector.addElement(o);// if (vector.size() > 5)// System.out.println(vector.size()); // tell waiting threads to wake up lock.notify(); } } | public void put(Object o) { synchronized (lock) { vector.addElement(o);// if (vector.size() > 5)// System.out.println(vector.size()); // tell waiting threads to wake up lock.notifyAll(); } } | 8,051 |
void visitParameter(Parameter p); | void visitParameter(Parameter p); | 8,052 |
String visitValue(String s, boolean last, int tokenType); | String visitValue(String s, boolean last, int tokenType); | 8,053 |
String getCompletedLine() { return line; } | String getCompletedLine() { return line; } | 8,054 |
public void visitParameter(Parameter p) { this.param = p; String s = p.getName(); if( !Parameter.ANONYMOUS.equals(s) ) { line += "-" + s + " "; } } | public void visitParameter(Parameter p) { this.param = p; String s = p.getName(); if( !Parameter.ANONYMOUS.equals(s) ) { line += "-" + s + " "; } } | 8,055 |
public String visitValue(String s, boolean last, int tokenType) { String result = ""; if (last) { // we're not yet at the end of the command line // token to be completed result = param.complete(s); line += result; } else { result = ((tokenType & CommandLine.STRING) != 0 ? CommandLine.escape(s, ... | public String visitValue(String s, boolean last, int tokenType) { String result = ""; if (last) { // we're not yet at the end of the command line // token to be completed result = param.complete(s); line += result; } else { result = ((tokenType & CommandLine.STRING) != 0 ? CommandLine.escape(s, ... | 8,056 |
void finishParameter() { if( param == null ) return; if( valued || !param.hasArgument() ) result.put(param, null); // mark it as "set" if( param.hasArgument() ) { Argument arg = param.getArgument(); result.put(arg, arg.getValues()); } param = null; valued = false; } | void finishParameter() { if( param == null ) return; if( valued || !param.hasArgument() ) result.put(param, null); // mark it as "set" if( param.hasArgument() ) { Argument arg = param.getArgument(); result.put(arg, arg.getValues()); } param = null; valued = false; } | 8,057 |
void finishParameter() { if( param == null ) return; if( valued || !param.hasArgument() ) result.put(param, null); // mark it as "set" if( param.hasArgument() ) { Argument arg = param.getArgument(); result.put(arg, arg.getValues()); } param = null; valued = false; } | void finishParameter() { if( param == null ) return; if( valued || !param.hasArgument() ) result.put(param, null); // mark it as "set" if( param.hasArgument() ) { Argument arg = param.getArgument(); result.put(arg, arg.getValues()); } param = null; valued = false; } | 8,058 |
Map getArgumentMap() { finishParameter(); return result; } | Map getArgumentMap() { finishParameter(); return result; } | 8,059 |
public void visitParameter(Parameter p) { finishParameter(); this.param = p; } | public void visitParameter(Parameter p) { finishParameter(); this.param = p; } | 8,060 |
public String visitValue(String s, boolean last, int tokenType) { if( last && "".equals(s) ) return null; valued = true; return s; } | public String visitValue(String s, boolean last, int tokenType) { if( last && "".equals(s) ) return null; valued = true; return s; } | 8,061 |
public Syntax(String description, Parameter[] params) { this.description = description; this.params = params; } | public Syntax(String description, Parameter[] params) { this.description = description; this.params = params; } | 8,062 |
private void clearArguments() { for (int i = 0; i < params.length; i++) if (params[i].hasArgument()) params[i].getArgument().clear(); } | private void clearArguments() { for (int i = 0; i < params.length; i++) if (params[i].hasArgument()) params[i].getArgument().clear(); } | 8,063 |
public String complete(CommandLine partial) throws CompletionException { CompletionVisitor visitor = new CompletionVisitor(); try { visitCommandLine(partial, visitor); } catch(SyntaxError ex) { throw new CompletionException(ex.getMessage()); } return visitor.getCompletedLine(); } | public String complete(CommandLine partial) throws CompletionException { CompletionVisitor visitor = new CompletionVisitor(); try { visitCommandLine(partial, visitor); } catch(SyntaxError ex) { throw new CompletionException(ex.getMessage()); } return visitor.getCompletedLine(); } | 8,064 |
public String getDescription() { return description; } | public String getDescription() { return description; } | 8,065 |
public Parameter[] getParams() { return params; } | public Parameter[] getParams() { return params; } | 8,066 |
synchronized ParsedArguments parse(String[] args) throws SyntaxError { if (params.length == 0) { if( args.length == 0 ) return new ParsedArguments(new HashMap()); throw new SyntaxError("Syntax takes no parameter"); } CommandLine cmdLine = new CommandLine(args); ParseVisitor visitor = new ParseVisitor(); vi... | synchronized ParsedArguments parse(String[] args) throws SyntaxError { if (params.length == 0) { if( args.length == 0 ) return new ParsedArguments(new HashMap()); throw new SyntaxError("Syntax takes no parameter"); } CommandLine cmdLine = new CommandLine(args); ParseVisitor visitor = new ParseVisitor(); vi... | 8,067 |
synchronized ParsedArguments parse(String[] args) throws SyntaxError { if (params.length == 0) { if( args.length == 0 ) return new ParsedArguments(new HashMap()); throw new SyntaxError("Syntax takes no parameter"); } CommandLine cmdLine = new CommandLine(args); ParseVisitor visitor = new ParseVisitor(); vi... | synchronized ParsedArguments parse(String[] args) throws SyntaxError { if (params.length == 0) { if( args.length == 0 ) return new ParsedArguments(new HashMap()); throw new SyntaxError("Syntax takes no parameter"); } CommandLine cmdLine = new CommandLine(args); ParseVisitor visitor = new ParseVisitor(); vi... | 8,068 |
synchronized ParsedArguments parse(String[] args) throws SyntaxError { if (params.length == 0) { if( args.length == 0 ) return new ParsedArguments(new HashMap()); throw new SyntaxError("Syntax takes no parameter"); } CommandLine cmdLine = new CommandLine(args); ParseVisitor visitor = new ParseVisitor(); vi... | synchronized ParsedArguments parse(String[] args) throws SyntaxError { if (params.length == 0) { if( args.length == 0 ) return new ParsedArguments(new HashMap()); throw new SyntaxError("Syntax takes no parameter"); } CommandLine cmdLine = new CommandLine(args); ParseVisitor visitor = new ParseVisitor(); vi... | 8,069 |
private synchronized void visitCommandLine(CommandLine cmdLine, CommandLineVisitor visitor) { clearArguments(); Parameter param = null; do { String s = ""; if( cmdLine.hasNext() ) s = cmdLine.next(); // TODO: it didn't handle correctly the parameters starting with "-" /*if (s.startsWit... | private synchronized void visitCommandLine(CommandLine cmdLine, CommandLineVisitor visitor) { clearArguments(); Parameter param = null; do { String s = ""; if( cmdLine.hasNext() ) s = cmdLine.next(); // TODO: it didn't handle correctly the parameters starting with "-" /*if (s.startsWit... | 8,070 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.