rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
kc = new KeyConfigure(me.getParentView((Session)this),null,vt.getCodePage());
kc = new KeyConfigure(parent,null,vt.getCodePage());
private void mapMeKeys() { KeyConfigure kc; if (macros.isMacrosExist()) { String[] macrosList = macros.getMacroList(); kc = new KeyConfigure(me.getParentView((Session)this),macrosList,vt.getCodePage()); } else kc = new KeyConfigure(me.getParentView((Session)this),null,vt.g...
me.getParentView((Session)this),
parent,
private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.g...
if (tree.getLeadSelectionPath() == null || (tree.getLeadSelectionPath().getLastPathComponent()).equals(val))
if (hasFocus)
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafI...
MenuBar() {
public MenuBar() {
MenuBar(){ if (GraphicsEnvironment.isHeadless()) throw new HeadlessException ();}
add(Menu menu) {
public synchronized Menu add(Menu menu) {
add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { menu.addNotify(); } return(menu);}
{
add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { menu.addNotify(); } return(menu);}
}
add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { menu.addNotify(); } return(menu);}
return(menu); }
return menu; }
add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { menu.addNotify(); } return(menu);}
countMenus() { return menus.size () + (getHelpMenu () == null ? 0 : 1); }
public int countMenus() { return menus.size() + (getHelpMenu() == null ? 0 : 1); }
countMenus(){ return menus.size () + (getHelpMenu () == null ? 0 : 1);}
deleteShortcut(MenuShortcut shortcut) {
public void deleteShortcut(MenuShortcut shortcut) {
deleteShortcut(MenuShortcut shortcut){ MenuItem it; // This is a slow implementation, but it probably doesn't matter. while ((it = getShortcutMenuItem (shortcut)) != null) it.deleteShortcut ();}
getHelpMenu() { return(helpMenu); }
public Menu getHelpMenu() { return helpMenu; }
getHelpMenu(){ return(helpMenu);}
getMenu(int index) { return((Menu)menus.elementAt(index)); }
public Menu getMenu(int index) { return (Menu) menus.elementAt(index); }
getMenu(int index){ return((Menu)menus.elementAt(index));}
getMenuCount() { return countMenus (); }
public int getMenuCount() { return countMenus(); }
getMenuCount(){ return countMenus ();}
getShortcutMenuItem(MenuShortcut shortcut) {
public MenuItem getShortcutMenuItem(MenuShortcut shortcut) {
getShortcutMenuItem(MenuShortcut shortcut){ Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu menu = (Menu)e.nextElement(); MenuShortcut s = menu.getShortcut(); if ((s != null) && (s.equals(shortcut))) return(menu); } return(null);}
if ((s != null) && (s.equals(shortcut))) return(menu);
if ((s != null) && s.equals(shortcut)) return menu;
getShortcutMenuItem(MenuShortcut shortcut){ Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu menu = (Menu)e.nextElement(); MenuShortcut s = menu.getShortcut(); if ((s != null) && (s.equals(shortcut))) return(menu); } return(null);}
return(null); }
return null; }
getShortcutMenuItem(MenuShortcut shortcut){ Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu menu = (Menu)e.nextElement(); MenuShortcut s = menu.getShortcut(); if ((s != null) && (s.equals(shortcut))) return(menu); } return(null);}
setHelpMenu(Menu menu) {
public synchronized void setHelpMenu(Menu menu) {
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHe...
MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null)
MenuBarPeer myPeer = (MenuBarPeer) getPeer (); if (myPeer != null)
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHe...
peer.addHelpMenu (menu);
myPeer.addHelpMenu(menu); }
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHe...
}
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHe...
shortcuts() {
public synchronized Enumeration shortcuts() {
shortcuts(){ Vector shortcuts = new Vector(); Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu menu = (Menu)e.nextElement(); if (menu.getShortcut() != null) shortcuts.addElement(menu.getShortcut()); } return(shortcuts.elements());}
return(shortcuts.elements()); }
return shortcuts.elements(); }
shortcuts(){ Vector shortcuts = new Vector(); Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu menu = (Menu)e.nextElement(); if (menu.getShortcut() != null) shortcuts.addElement(menu.getShortcut()); } return(shortcuts.elements());}
final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (!f.isStatic()) { list.add(f); } } return list;
if (jnodeType != null) { final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (!f.isStatic()) { list.add(f); } } return list; } else { return new ArrayList(0); }
private static List getInstanceFields(VmType jnodeType) { final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (!f.isStatic()) { list.a...
final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (f.isStatic()) { list.add(f); } } return list;
if (jnodeType != null) { final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (f.isStatic()) { list.add(f); } } return list; } else { return new ArrayList(0); }
private static List getStaticFields(VmType jnodeType) { final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (f.isStatic()) { list.add(...
List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1);
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter =...
Iterator iter = strValueList.iterator(); while (iter.hasNext())
String valueListId = (String) CurrentValueListParameter.get("valueListId"); if (valueListId != null) { if (ValueListObj.containsKey(valueListId)) Log.warnln("More than one valueList node with valueListId=\""+valueListId+"\", using latest node." ); ValueListObj.put(valueListId, strValueList); } String valueListI...
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter =...
String valueString = (String) iter.next();
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter =...
Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue);
List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1);
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter =...
Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext())
Iterator iter = strValueList.iterator(); while (iter.hasNext())
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter =...
ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj);
String valueString = (String) iter.next(); Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); }
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter =...
}
} else if( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); Value newvalue = new Value(valueString); LastParameterObject.addValue(newvalue); Iterator groupIter = CurrentValueGroupList.iterator(); while (gr...
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter =...
ArrayList values = getValueListNodeValues();
ArrayList values = null; String valueListIdRef = (String) CurrentValueListParameter.get("valueListIdRef"); if (valueListIdRef != null) { if (ValueListObj.containsKey(valueListIdRef)) {
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli...
ArrayList refValueListObj = (ArrayList) ValueListObj.get(valueListIdRef); values = (ArrayList) refValueListObj.clone(); } else { Log.warnln("Error: Reader got an valueList with ValueListIdRef=\""+valueListIdRef+"\" but no previous valueList has that id! Ignoring add valueList request."); return; } } else { values = ...
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli...
String parentNodeName = getParentNodeName();
String parentNodeName = getParentNodeName(XDFNodeName.VALUEGROUP);
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter.clear(); // 2. populate ValueListparameters from attribute list CurrentValueListParameter = attribListToHashtable(attrs); // 3. populate ValueListpa...
algOid = new OID(params.getAlgorithm());
algName = params.getAlgorithm (); algOid = getOid (algName);
public EncryptedPrivateKeyInfo(AlgorithmParameters params, byte[] encryptedData) throws IllegalArgumentException, NoSuchAlgorithmException { if (encryptedData.length == 0) { throw new IllegalArgumentException("0-length encryptedData"); } this.params = params;...
algId.add(DERReader.read(params.getEncoded()));
algId.add (DERReader.read (params.getEncoded())); } else { algId.add (new DERValue (DER.NULL, null));
private void encode() throws IOException { List algId = new ArrayList(2); algId.add(new DERValue(DER.OBJECT_IDENTIFIER, algOid)); getAlgParameters(); if (params != null) { algId.add(DERReader.read(params.getEncoded())); } List epki = new ArrayList(2); epki.add(new DERValue(DER.CONS...
public final void init(byte[]params) throws IOException
public final void init(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException
public final void init(byte[]params) throws IOException { paramSpi.engineInit(params); }
paramSpi.engineInit(params);
paramSpi.engineInit(paramSpec);
public final void init(byte[]params) throws IOException { paramSpi.engineInit(params); }
GPR regs[] = { X86Register.EAX, X86Register.EBX, X86Register.ECX, X86Register.EDX, X86Register.ESI }; for (GPR reg1 : regs) { os.writeIDIV_EAX(reg1); } if (true) { return; }
private final static void testCode32(X86Assembler os) throws UnresolvedObjectRefException { final Label label = new Label("label"); os.writeADD(X86Register.EDX, X86Register.EAX); os.setObjectRef(label); os.writeNOP(); os.writeLOOP(label); os.writeTEST_AL(0xff); os.writeTEST(X86Register.EBX, 0xABCD1234); os.wri...
for (int i = 0; i < FIELD_COUNT; i++) {
int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000; int[] temp...
public final void clear() { isTimeSet = false; areFieldsSet = false; for (int i = 0; i < FIELD_COUNT; i++) { isSet[i] = false; fields[i] = 0; } }
fields[i] = 0; }
isSet[ZONE_OFFSET] = isSet[DST_OFFSET] = true;
public final void clear() { isTimeSet = false; areFieldsSet = false; for (int i = 0; i < FIELD_COUNT; i++) { isSet[i] = false; fields[i] = 0; } }
case YEAR: case MONTH: case DATE:
case MONTH: isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_YEAR] = false; break; case DAY_OF_MONTH: isSet[YEAR] = true; isSet[MONTH] = true; isSet[WEEK_OF_MONTH] = true; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEEK_IN_MONTH] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_YEAR] = false; break; case WEEK_OF_MONTH: isSet[...
public void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR: case MONTH: case DATE: isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[D...
isSet[AM_PM] = true;
public void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR: case MONTH: case DATE: isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[D...
JLabel c = (JLabel) e.getSource(); c.revalidate(); c.repaint();
public void propertyChange(PropertyChangeEvent e) { JLabel c = (JLabel) e.getSource(); c.revalidate(); c.repaint(); }
super.swapComponents (curr, targ);
if (curr == 0) super.swapComponents(curr, targ); else while (curr > 0) super.swapComponents (curr, --curr);
public void setPosition(Component c, int position) { int layer = getLayer (c); int[] range = layerToRange(new Integer(layer)); if (range[0] == range[1]) throw new IllegalArgumentException (); int top = range[0]; int bot = range[1]; if (position == -1) position = (bot - top) - 1; int ta...
return add_value(null, null, a_flags);
return add_value(null, new gnuAny(), a_flags);
public NamedValue add(int a_flags) { return add_value(null, null, a_flags); }
return add_value(a_name, null, a_flags);
return add_value(a_name, new gnuAny(), a_flags);
public NamedValue add_item(String a_name, int a_flags) { return add_value(a_name, null, a_flags); }
public InvalidDriverException(String s) { super(s);
public InvalidDriverException() { super();
public InvalidDriverException(String s) { super(s); }
reportHeader(out);
reportHeader(out, "Class", "Target", "Merge status");
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs ...
reportMissing(out, vmFile.getReportName(), "vm", 0);
reportMissing(out, vmFile.getReportName(), "vm", new Flags());
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs ...
int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) {
Flags rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc.asInt() & ~FLAGS_MASK) {
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs ...
.getTarget(), diffFileName, rc & FLAGS_MASK);
.getTarget(), diffFileName, rc.mask(FLAGS_MASK));
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs ...
if ((rc & FLAG_VM_SPECIFIC) != 0) {
if (rc.isSet(FLAG_VM_SPECIFIC)) {
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs ...
if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) {
if (rc.isSet(FLAG_CLASSPATH_BUGFIX)) {
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs ...
if ((rc & FLAG_NATIVE) != 0) {
if (rc.isSet(FLAG_NATIVE)) {
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs ...
if ((rc & FLAG_JNODE) != 0) {
if (rc.isSet(FLAG_JNODE)) {
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs ...
reportClasspathBugs(outBugs, vmFile.getReportName(), vmFile .getTarget(), rc);
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs ...
+ " local classpath bugfixes<br/>");
+ " local <a href=\"classpath-bugfix.html\">classpath bugfixes</a><br/>");
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs ...
reportFooter(outBugs); outBugs.flush(); outBugs.close();
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs ...
protected int getFlags(String code) { int flags = 0; if (code.indexOf("native") >= 0) { flags |= FLAG_NATIVE; } if (code.toLowerCase().indexOf("jnode") >= 0) { flags |= FLAG_JNODE; } if (code.indexOf(vmSpecificTag) >= 0) { flags |= FLAG_VM_SPECIFIC; } if (code.indexOf(classpathBugfixTag) >= 0) { flags |= FLAG_CLASSPATH...
protected Flags getFlags(String code) { final Flags flags = new Flags(); getFlags(code, flags);
protected int getFlags(String code) { int flags = 0; if (code.indexOf("native") >= 0) { flags |= FLAG_NATIVE; } if (code.toLowerCase().indexOf("jnode") >= 0) { flags |= FLAG_JNODE; } if (code.indexOf(vmSpecificTag) >= 0) { flags |= FLAG_VM_S...
protected void reportFlags(PrintWriter out, int flags) {
protected void reportFlags(PrintWriter out, Flags flags) {
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC...
if ((flags & FLAG_TARGET_DIFF) != 0) {
if (flags.isSet(FLAG_TARGET_DIFF)) {
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC...
if ((flags & FLAG_VM_SPECIFIC) != 0) {
if (flags.isSet(FLAG_VM_SPECIFIC)) {
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC...
if ((flags & FLAG_CLASSPATH_BUGFIX) != 0) {
if (flags.isSet(FLAG_CLASSPATH_BUGFIX)) {
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC...
if ((flags & FLAG_NATIVE) != 0) {
if (flags.isSet(FLAG_NATIVE)) {
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC...
if ((flags & FLAG_JNODE) != 0) {
if (flags.isSet(FLAG_JNODE)) {
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC...
protected void reportHeader(PrintWriter out) {
protected void reportHeader(PrintWriter out, String... headers) {
protected void reportHeader(PrintWriter out) { out.println("<html>"); out.println("<title>Classpath compare</title>"); out.println("<style type='text/css'>"); out.println(".classpath-only { background-color: #FFFFAA; }"); out.println(".vm-only { background-color: #C...
out.println("<th align='left'>Class</th>"); out.println("<th align='left'>Target</th>"); out.println("<th align='left'>Merge status</th>");
for(String header : headers) { out.println("<th align='left'>"+header+"</th>"); }
protected void reportHeader(PrintWriter out) { out.println("<html>"); out.println("<title>Classpath compare</title>"); out.println("<style type='text/css'>"); out.println(".classpath-only { background-color: #FFFFAA; }"); out.println(".vm-only { background-color: #C...
String existsIn, int flags) {
String existsIn, Flags flags) {
protected void reportMissing(PrintWriter out, String fname, String existsIn, int flags) { out.println("<tr class='" + existsIn + "-only'>"); out.println("<td>" + fname + "</td>"); out.println("<td>&nbsp;</td>"); out.println("<td>Exists only in " + existsIn); reportFlags...
String target, String diffFileName, int flags) { out.println("<tr class='" + flagsToStyleClass(flags) + "'>");
String target, String diffFileName, Flags flags) { out.println("<tr class='" + flagsToStyleClass(flags.asInt()) + "'>");
protected void reportNeedsMerge(PrintWriter out, String fname, String target, String diffFileName, int flags) { out.println("<tr class='" + flagsToStyleClass(flags) + "'>"); out.println("<td>" + fname + "</td>"); if (target.equals(TargetedFileSet.DEFAULT_TARGET)) { target ...
String diffFileName, int flags) {
String diffFileName, Flags flags) {
protected void reportPackageDiff(PrintWriter out, String pkg, String diffFileName, int flags) { out.println("<tr class='needsmerge'>"); out.println("<td>" + pkg + "</td>"); out.println("<td>&nbsp;</td>"); out.println("<td><a href='" + diffFileName + "'>diff</a>"); repor...
protected int runDiff(SourceFile vmFile, SourceFile cpFile,
protected Flags runDiff(SourceFile vmFile, SourceFile cpFile,
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
final String[] cmd = { "diff", "-b",
final String[] cmd = { "diff", "-E", "-w", "-B", "-N",
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
int flags = getFlags(diffStr);
Flags flags = getFlags(diffStr);
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
flags |= FLAG_TARGET_DIFF;
flags.set(FLAG_TARGET_DIFF);
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
return flags | NEEDS_MERGE;
flags.set(NEEDS_MERGE); return flags;
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
return NO_CHANGE;
return new Flags(NO_CHANGE);
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
log.warn("In constructor: ", e);
if (log == null) System.out.println(e.getMessage()); else log.warn("In constructor: ", e);
public void init() { try { jbInit(); } catch(Exception e) { log.warn("In constructor: ", e); } }
if (isSpecified("-L")) LangTool.init(parseLocale(getParameter("-L"))); else LangTool.init();
private void jbInit() throws Exception { this.setSize(new Dimension(400,300)); Properties sesProps = new Properties(); log.info(" We have loaded a new one"); // Start loading properties - Host must exist sesProps.put(SESSION_HOST,getParameter("host")); if (isSpecified("-e")) ses...
rawSchemeSpecificPart = getURIGroup(matcher, SCHEME_SPEC_PART_GROUP);
rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPart = unquote(rawSchemeSpecificPart); if (!isOpaque()) {
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = getURIGroup(matcher, SCHEME_SPEC_PART_GROUP); rawAuthori...
rawPath = getURIGroup(matcher, PATH_GROUP);
rawPath = matcher.group(PATH_GROUP);
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = getURIGroup(matcher, SCHEME_SPEC_PART_GROUP); rawAuthori...
schemeSpecificPart = unquote(rawSchemeSpecificPart);
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = getURIGroup(matcher, SCHEME_SPEC_PART_GROUP); rawAuthori...
+ (getRawAuthority() == null ? "" : " + (getRawPath() == null ? "" : getRawPath()) + (getRawQuery() == null ? "" : "?" + getRawQuery())
+ getRawSchemeSpecificPart()
public String toString() { return (getScheme() == null ? "" : getScheme() + ":") + (getRawAuthority() == null ? "" : "//" + getRawAuthority()) + (getRawPath() == null ? "" : getRawPath()) + (getRawQuery() == null ? "" : "?" + getRawQuery()) + (getRawFragment() == null ? "" ...
super("JFrame");
super("");
public JFrame() { super("JFrame"); frameInit(); }
return close_action;
return closeAction;
public int getDefaultCloseOperation() { return close_action; }
return "JFrame";
StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",defaultCloseOperation="); sb.append(SwingUtilities.convertWindowConstantToString( getDefaultCloseOperation())); sb.append(",rootPane="); if (rootPane != null) sb.append(rootPane); sb.append(",rootPaneCheckingEnabled=").append(rootPaneCheckingEnabled);...
protected String paramString() { return "JFrame"; }
switch (close_action)
switch (closeAction)
protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: { switch (close_action) { case EXIT_ON_CLOSE: { System.exit(0); break; } case DISPOSE_ON_CLOSE: { dispose(); break; } case...
throw new IllegalArgumentException("defaultCloseOperation must be EXIT_ON_CLOSE, HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or DO_NOTHING_ON_CLOSE");
throw new IllegalArgumentException("operation must be EXIT_ON_CLOSE, " + "HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or DO_NOTHING_ON_CLOSE");
public void setDefaultCloseOperation(int operation) { SecurityManager sm = System.getSecurityManager(); if (sm != null && operation == EXIT_ON_CLOSE) sm.checkExit(0); if (operation != EXIT_ON_CLOSE && operation != DISPOSE_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DO_NOTHING_ON_CLOSE...
close_action = operation;
closeAction = operation;
public void setDefaultCloseOperation(int operation) { SecurityManager sm = System.getSecurityManager(); if (sm != null && operation == EXIT_ON_CLOSE) sm.checkExit(0); if (operation != EXIT_ON_CLOSE && operation != DISPOSE_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DO_NOTHING_ON_CLOSE...
boolean result = false; switch (numChildren)
boolean result = true; for (int i = 0; i < numChildren; ++i)
public boolean isOptimizedDrawingEnabled() { int numChildren = getComponentCount(); boolean result = false; // We implement a heuristic here in order to return a quick result: // - For 0 or 1 children it is clear that they do not overlap, return true. // - For 2 children we check their bounding rectan...
case 0: case 1: result = true;
Component c1 = getComponent(i); if (! c1.isVisible()) continue; Rectangle r1 = c1.getBounds(); if (r1.isEmpty()) continue; for (int j = i + 1; j < numChildren; ++j) { Component c2 = getComponent(j); if (! c2.isVisible()) continue; Rectangle r2 = c2.getBounds(); if (r2.isEmpty()) continue; if (r1.intersects(r2)) { resu...
public boolean isOptimizedDrawingEnabled() { int numChildren = getComponentCount(); boolean result = false; // We implement a heuristic here in order to return a quick result: // - For 0 or 1 children it is clear that they do not overlap, return true. // - For 2 children we check their bounding rectan...
case 2: Rectangle r1 = getComponent(0).getBounds(); Rectangle r2 = getComponent(1).getBounds(); result = !r1.intersects(r2);
} if (result == false)
public boolean isOptimizedDrawingEnabled() { int numChildren = getComponentCount(); boolean result = false; // We implement a heuristic here in order to return a quick result: // - For 0 or 1 children it is clear that they do not overlap, return true. // - For 2 children we check their bounding rectan...
default: result = false;
}
public boolean isOptimizedDrawingEnabled() { int numChildren = getComponentCount(); boolean result = false; // We implement a heuristic here in order to return a quick result: // - For 0 or 1 children it is clear that they do not overlap, return true. // - For 2 children we check their bounding rectan...
addCompileHighOptLevel("java.lang.isolate");
protected void setupCompileHighOptLevelPackages() { addCompileHighOptLevel("java.io"); addCompileHighOptLevel("java.lang"); addCompileHighOptLevel("java.lang.ref"); addCompileHighOptLevel("java.lang.reflect"); addCompileHighOptLevel("java.net"); addCompileHighOptLevel("java...
alwaysEmpty = (min == 0 && max == 0);
RETokenRepeated(int subIndex, REToken token, int min, int max) { super(subIndex); this.token = token; this.min = min; this.max = max; alwaysEmpty = (min == 0 && max == 0); }
for (REMatch m = recurrent; m != null; m = m.next) { m.matchFlags &= ~REMatch.MF_FIND_ALL; }
private static REMatch findDoables(REToken tk, CharIndexed input, REMatch mymatch) { REMatch.REMatchList doables = new REMatch.REMatchList(); // try next repeat at all possible positions for (REMatch current = mymatch; current != null; current = current.next) { REMatch recurrent = (REMatch) current...
REMatch newMatch = mymatch;
boolean match(CharIndexed input, REMatch mymatch) { // Possible positions for the next repeat to match at REMatch newMatch = mymatch; // {0} needs some special treatment. if (alwaysEmpty) { REMatch result = matchRest(input, newMatch); if (result != null) { mymatch.assignFrom(result); return true; } el...
if (alwaysEmpty) { REMatch result = matchRest(input, newMatch); if (result != null) { mymatch.assignFrom(result);
boolean stopMatchingIfSatisfied = (mymatch.matchFlags & REMatch.MF_FIND_ALL) == 0; REMatch newMatch = matchMinimum(input, mymatch); if (newMatch == null) return false; int[] visited = initVisited(); for (REMatch m = newMatch; m != null; m = m.next) { visited = addVisited(m.index, visited); } int max1 = decreaseMax(...
boolean match(CharIndexed input, REMatch mymatch) { // Possible positions for the next repeat to match at REMatch newMatch = mymatch; // {0} needs some special treatment. if (alwaysEmpty) { REMatch result = matchRest(input, newMatch); if (result != null) { mymatch.assignFrom(result); return true; } el...
else {
boolean match(CharIndexed input, REMatch mymatch) { // Possible positions for the next repeat to match at REMatch newMatch = mymatch; // {0} needs some special treatment. if (alwaysEmpty) { REMatch result = matchRest(input, newMatch); if (result != null) { mymatch.assignFrom(result); return true; } el...
} int numRepeats = 0; REMatch doables; int lastIndex = mymatch.index; boolean emptyMatchFound = false; while (numRepeats < min) { doables = findDoables(token, input, newMatch); if (doables == null) return false; newMatch = doables; ++numRepeats; if (newMatch.empty) { numRepeats = min; emptyMatchFound = true...
boolean match(CharIndexed input, REMatch mymatch) { // Possible positions for the next repeat to match at REMatch newMatch = mymatch; // {0} needs some special treatment. if (alwaysEmpty) { REMatch result = matchRest(input, newMatch); if (result != null) { mymatch.assignFrom(result); return true; } el...