buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public SharedObjectTypeDescription getDescriptionByName(String name) throws SharedObjectCreateException { trace("getDescriptionByName(" + name + ")"); //$NON-NLS-1$ //$NON-NLS-2$ SharedObjectTypeDescription res = getDescription0(name); if (res == null) { //throw new SharedObjectCreateException(Messages.Shared...
public SharedObjectTypeDescription getDescriptionByName(String name) throws SharedObjectCreateException { trace("getDescriptionByName(" + name + ")"); //$NON-NLS-1$ //$NON-NLS-2$ SharedObjectTypeDescription res = getDescription0(name); if (res == null) { //throw new SharedObjectCreateException(Messages.Shared...
public String open () { int dialog = OS.gcnew_FolderBrowserDialog (); if (dialog == 0) error (SWT.ERROR_NO_HANDLES); int messagePtr = parent.createDotNetString (message, false); OS.FolderBrowserDialog_Description (dialog, messagePtr); OS.GCHandle_Free (messagePtr); //TODO: filter path... String result = null; i...
public String open () { int dialog = OS.gcnew_FolderBrowserDialog (); if (dialog == 0) error (SWT.ERROR_NO_HANDLES); int messagePtr = parent.createDotNetString (message, false); OS.FolderBrowserDialog_Description (dialog, messagePtr); OS.GCHandle_Free (messagePtr); //TODO: filter path... String result = null; i...
public void addNode(Object node, HashTree subTree) { Iterator iter = subTree.list().iterator(); while (iter.hasNext()) { Object item = iter.next(); if (item instanceof ThreadGroup) { log.info("num threads = " + ((ThreadGroup) item).getNumThreads()); ...
public void addNode(Object node, HashTree subTree) { Iterator<?> iter = subTree.list().iterator(); while (iter.hasNext()) { Object item = iter.next(); if (item instanceof ThreadGroup) { log.info("num threads = " + ((ThreadGroup) item).getNumThreads()); ...
public void setVariables(Map vars); }
public void setVariables(Map<String, String> vars); }
public void doAction(ActionEvent e) { GuiPackage guiPackage = GuiPackage.getInstance(); final String actionCommand = e.getActionCommand(); if (actionCommand.equals(ActionNames.CLEAR)) { JMeterGUIComponent guiComp = guiPackage.getCurrentGui(); if (guiComp instanceof Cl...
public void doAction(ActionEvent e) { GuiPackage guiPackage = GuiPackage.getInstance(); final String actionCommand = e.getActionCommand(); if (actionCommand.equals(ActionNames.CLEAR)) { JMeterGUIComponent guiComp = guiPackage.getCurrentGui(); if (guiComp instanceof Cl...
public void modifyTestElement(TestElement args) { stopTableEditing(); LDAPArguments arguments = null; if (args instanceof LDAPArguments) { arguments = (LDAPArguments) args; arguments.clear(); Iterator<LDAPArgument> modelData = tableModel.iterator(); ...
public void modifyTestElement(TestElement args) { stopTableEditing(); LDAPArguments arguments = null; if (args instanceof LDAPArguments) { arguments = (LDAPArguments) args; arguments.clear(); Iterator<LDAPArgument> modelData = (Iterator<LDAPArgument>) tabl...
public void testFunction() throws Exception { JMeterContext jmctx = JMeterContextService.getContext(); Map<?, ?> variables = new HashMap<Object, Object>(); ReplaceStringWithFunctions transformer = new ReplaceStringWithFunctions(new CompoundVariable(), variables); ...
public void testFunction() throws Exception { JMeterContext jmctx = JMeterContextService.getContext(); Map<String, String> variables = new HashMap<String, String>(); ReplaceStringWithFunctions transformer = new ReplaceStringWithFunctions(new CompoundVariable(), variables); ...
public void test_ConstructorLorg_eclipse_swt_graphics_DeviceLorg_eclipse_swt_graphics_ImageDataLorg_eclipse_swt_graphics_ImageData() { final int COUNT = 4000; // 5000 causes an error Image[] images = new Image[COUNT]; String name = getPath(imageFilenames[0] + "." + imageFormats[0]); FileInputStream inStream = nul...
public void test_ConstructorLorg_eclipse_swt_graphics_DeviceLorg_eclipse_swt_graphics_ImageDataLorg_eclipse_swt_graphics_ImageData() { final int COUNT = 4000; // 5000 causes an error Image[] images = new Image[COUNT]; String name = getPath(imageFilenames[0] + "." + imageFormats[0]); FileInputStream inStream = nul...
public BitMatrix sampleGrid(BitMatrix image, int dimension, PerspectiveTransform transform) throws NotFoundException { throw new UnsupportedOperationException(); }
public BitMatrix sampleGrid(BitMatrix image, int dimension, PerspectiveTransform transform) throws NotFoundException { throw new IllegalStateException(); // Can't use UnsupportedOperationException }
public void onClick() { if (getPageParameters().size() == 2) { throw new WicketRuntimeException("wanted exception"); } } }); }
public void onClick() { if (getPageParameters().getNamedParameterKeys().size() == 2) { throw new WicketRuntimeException("wanted exception"); } } }); }
public void modifyTestElement(TestElement el) { GuiUtils.stopTableEditing(excludeTable); GuiUtils.stopTableEditing(includeTable); configureTestElement(el); if (el instanceof ProxyControl) { model = (ProxyControl) el; model.setPort(portField.getText()); ...
public void modifyTestElement(TestElement el) { GuiUtils.stopTableEditing(excludeTable); GuiUtils.stopTableEditing(includeTable); configureTestElement(el); if (el instanceof ProxyControl) { model = (ProxyControl) el; model.setPort(portField.getText()); ...
protected void displayMessage(IMessage message) { ISourceLocation loc = message.getISourceLocation(); Ajde.getDefault().getEditorManager().showSourceLine(loc, true); // show dialog with stack trace if thrown Throwable thrown = message.getThrown(); if (null != thrown) { ...
protected void displayMessage(IMessage message) { ISourceLocation loc = message.getISourceLocation(); BrowserManager.getDefault().getEditorManager().showSourceLine(loc, true); // show dialog with stack trace if thrown Throwable thrown = message.getThrown(); if (null != thrown...
public static Map getLinesToAspectMap(String sourceFilePath) { Map annotationsMap = StructureModelManager.INSTANCE.getInlineAnnotations( sourceFilePath, true, true); Map aspectMap = new HashMap(); Set keys = annotationsMap.keySet(); for (Iterator it = keys.iterator(); it.hasNext();) { Objec...
public static Map getLinesToAspectMap(String sourceFilePath) { Map annotationsMap = StructureModelManager.getDefault().getInlineAnnotations( sourceFilePath, true, true); Map aspectMap = new HashMap(); Set keys = annotationsMap.keySet(); for (Iterator it = keys.iterator(); it.hasNext();) { O...
public void setActiveNode(StructureViewNode node, int lineOffset) { if (node == null) return; if (!(node.getStructureNode() instanceof ProgramElementNode)) return; ProgramElementNode pNode = (ProgramElementNode)node.getStructureNode(); treeManager.highlightNode(pNode); if (pNode.getSourceLocation() != nul...
public void setActiveNode(StructureViewNode node, int lineOffset) { if (node == null) return; if (!(node.getStructureNode() instanceof ProgramElementNode)) return; ProgramElementNode pNode = (ProgramElementNode)node.getStructureNode(); treeManager.highlightNode(pNode); if (pNode.getSourceLocation() != nul...
public void run () { browser.traverse (SWT.TRAVERSE_TAB_PREVIOUS); } }); return XPCOM.NS_OK; } /* nsIContextMenuListener */ int OnShowContextMenu (int aContextFlags, int /*long*/ aEvent, int /*long*/ aNode) { if (awaitingNavigate) return XPCOM.NS_OK; nsIDOMEvent domEvent = new nsIDOMEvent (aEvent); ...
public void run () { browser.traverse (SWT.TRAVERSE_TAB_PREVIOUS); } }); return XPCOM.NS_OK; } /* nsIContextMenuListener */ int OnShowContextMenu (int aContextFlags, int /*long*/ aEvent, int /*long*/ aNode) { if (awaitingNavigate) return XPCOM.NS_OK; nsIDOMEvent domEvent = new nsIDOMEvent (aEvent); ...
public QueryStatistics<FinderQuery<K,V,R>> getStatistics(); }
public QueryStatistics<K> getStatistics(); }
private static final String RUN_METHOD = "run";
protected IExceptionHandler getExceptionHandler() { return exceptionHandler; } }
public void onActivate(IBreadCrumbParticipant previous) { this.reattach(); }
public void onActivate(IBreadCrumbParticipant previous) { this.reAttach(); }
protected void addItems(Iterator items) { while (items.hasNext()) { ((Item)items.next()).reattach(); } }
protected void addItems(Iterator items) { while (items.hasNext()) { ((Item)items.next()).reAttach(); } }
public final void setSelectedTab(int index) { if (index < 0 || index >= tabs.size()) { throw new IndexOutOfBoundsException(); } setModelObject(new Integer(index)); ITab tab = (ITab)tabs.get(index); Panel panel = tab.getPanel(this, TAB_PANEL_ID); if (panel == null) { throw new WicketRuntimeEx...
public final void setSelectedTab(int index) { if (index < 0 || index >= tabs.size()) { throw new IndexOutOfBoundsException(); } setModelObject(new Integer(index)); ITab tab = (ITab)tabs.get(index); Panel panel = tab.getPanel(this, TAB_PANEL_ID); if (panel == null) { throw new WicketRuntimeEx...
public static NodeList listChildNodes(Node parent, NodeFilter filter, boolean recurse) { NodeListImpl matches = new NodeListImpl(); NodeList children = parent.getChildNodes(); if (children != null) { final int len = children.getLength(); for (int i = 0; i < len; i++) ...
public static NodeList listChildNodes(Node parent, NodeFilter filter, boolean recurse) { NodeListImpl matches = new NodeListImpl(); NodeList children = parent.getChildNodes(); if (children != null) { final int len = children.getLength(); for (int i = 0; i < len; i++) ...
public void close (WindowEvent event) { shell.close (); } }); } else { WindowEvent event = new WindowEvent (src); event.display = src.getDisplay (); event.widget = src; event.required = true; for (int i = 0; i < src.webBrowser.openWindowListeners.length; i++) { src.webBrowser.openWindowListene...
public void close (WindowEvent event) { shell.close (); } }); } else { WindowEvent event = new WindowEvent (src); event.display = src.getDisplay (); event.widget = src; event.required = true; for (int i = 0; i < src.webBrowser.openWindowListeners.length; i++) { src.webBrowser.openWindowListene...
protected final void runExecute(Execute exe) throws IOException { int err = -1; // assume the worst err = exe.execute(); //test for and handle a forced process death if (exe.killedProcess()) { log("Timeout: killed the sub-process", Project.MSG_WARN); } m...
protected final void runExecute(Execute exe) throws IOException { int err = -1; // assume the worst err = exe.execute(); //test for and handle a forced process death if (exe.killedProcess()) { log("Timeout: killed the sub-process", Project.MSG_WARN); } m...
protected boolean renameFile(File sourceFile, File destFile, boolean filtering, boolean overwrite) throws IOException, BuildException { boolean renamed = true; if ((getFilterSets() != null && getFilterSets().size() > 0) || (getFilterChains() != n...
protected boolean renameFile(File sourceFile, File destFile, boolean filtering, boolean overwrite) throws IOException, BuildException { boolean renamed = true; if ((getFilterSets() != null && getFilterSets().size() > 0) || (getFilterChains() != n...
public void execute() throws BuildException { if (baseDir == null) { throw new BuildException("base attribute must be set!", location); } if (!baseDir.exists()) { throw new BuildException("base does not exist!", location); } if (verify) { ...
public void execute() throws BuildException { if (baseDir == null) { throw new BuildException("base attribute must be set!", location); } if (!baseDir.exists()) { throw new BuildException("base does not exist!", location); } if (verify) { ...
public boolean execute() throws BuildException { attributes.log("Using external javac compiler", Project.MSG_VERBOSE); Commandline cmd = new Commandline(); cmd.setExecutable(getJavac().getJavacExecutable()); setupModernJavacCommandlineSwitches(cmd); int firstFileName = cmd.s...
public boolean execute() throws BuildException { attributes.log("Using external javac compiler", Project.MSG_VERBOSE); Commandline cmd = new Commandline(); cmd.setExecutable(getJavac().getJavacExecutable()); setupModernJavacCommandlineSwitches(cmd); int firstFileName = assum...
public Task createTask( String taskType ) throws TaskException { Class c = (Class)taskClassDefinitions.get( taskType ); if( c == null ) return null; try { Object o = c.newInstance(); Task task = null; if( o instanceof Task ...
public Task createTask( String taskType ) throws TaskException { Class c = (Class)taskClassDefinitions.get( taskType ); if( c == null ) return null; try { Object o = c.newInstance(); Task task = null; if( o instanceof Task ...
protected final void runExecute( Execute exe ) throws IOException, TaskException { int err = -1;// assume the worst err = exe.execute(); //test for and handle a forced process death if( exe.killedProcess() ) { log( "Timeout: killed the sub-process", P...
protected final void runExecute( Execute exe ) throws IOException, TaskException { int err = -1;// assume the worst err = exe.execute(); //test for and handle a forced process death if( exe.killedProcess() ) { log( "Timeout: killed the sub-process", P...
public final void addRedefinedGroupDecl(XSGroupDecl derived, XSGroupDecl base) { if (fRGCount == fRedefinedGroupDecls.length) // double array size each time. fRedefinedGroupDecls = resize(fRedefinedGroupDecls, fRGCount << 2); fRedefinedGroupDecls[fRGCount++] = derived; ...
public final void addRedefinedGroupDecl(XSGroupDecl derived, XSGroupDecl base) { if (fRGCount == fRedefinedGroupDecls.length) // double array size each time. fRedefinedGroupDecls = resize(fRedefinedGroupDecls, fRGCount << 1); fRedefinedGroupDecls[fRGCount++] = derived; ...
public XSParticleDecl fParticle = null; } // class XSWildcardDecl
public XSParticleDecl fParticle = null; } // class XSGroupDecl
public DeclaredType getBuiltinTypeForJavaClass(Class<?> cls) { if (List.class.isAssignableFrom (cls)) return types.get(LIST); if (Set.class.isAssignableFrom(cls)) return types.get(SET); if (Collection.class.isAssignableFrom(cls)) return types.get(COLLECTION); ...
public DeclaredType getBuiltinTypeForJavaClass(Class<?> cls) { if (List.class.isAssignableFrom (cls)) return types.get(LIST); if (Set.class.isAssignableFrom(cls)) return types.get(SET); if (Collection.class.isAssignableFrom(cls)) return types.get(COLLECTION); ...
public void onSubmit() { // Form validation successful. Display message showing edited model. info("Saved model " + getRootModel()); } }
public void onSubmit() { // Form validation successful. Display message showing edited model. info("Saved model " + getRootModelObject()); } }
public final void onSubmit() { final RequestCycle cycle = getRequestCycle(); PageParameters parameters = new PageParameters(); final Book book = (Book)getRootModel(); parameters.put("id", new Long(book.getId())); cycle.setPage(getPageFactory().newPage(BookDetails.class, parameters)); cycle.setRedi...
public final void onSubmit() { final RequestCycle cycle = getRequestCycle(); PageParameters parameters = new PageParameters(); final Book book = (Book)getRootModelObject(); parameters.put("id", new Long(book.getId())); cycle.setPage(getPageFactory().newPage(BookDetails.class, parameters)); cycle.s...
public void setRequestToComponent(final Component component) { parameters.put("component", component.getPath()); parameters.put("revision", "" + component.getPage().getRevisionNumber()); Class c = null; if (component instanceof IRedirectListener) { c = IRedire...
public void setRequestToComponent(final Component component) { parameters.put("component", component.getPath()); parameters.put("version", "" + component.getPage().getCurrentVersionNumber()); Class c = null; if (component instanceof IRedirectListener) { c = IR...
private boolean validateDocument(String document, int expectedLinkClickCount) { HtmlDocumentValidator validator = new HtmlDocumentValidator(); Tag html = new Tag("html"); Tag head = new Tag("head"); html.addExpectedChild(head); Tag title = new Tag("title"); head.addEx...
private boolean validateDocument(String document, int expectedLinkClickCount) { HtmlDocumentValidator validator = new HtmlDocumentValidator(); Tag html = new Tag("html"); Tag head = new Tag("head"); html.addExpectedChild(head); Tag title = new Tag("title"); head.addEx...
private static final int // direct / true color formats with arbitrary masks & shifts TYPE_GENERIC_8 = 0, TYPE_GENERIC_16_MSB = 1, TYPE_GENERIC_16_LSB = 2, TYPE_GENERIC_24 = 3, TYPE_GENERIC_32_MSB = 4, TYPE_GENERIC_32_LSB = 5, // palette indexed color formats TYPE_INDEX_8 = 6, TYPE_INDEX_4 = 7, TYPE_INDEX_2 ...
private static final int // direct / true color formats with arbitrary masks & shifts TYPE_GENERIC_8 = 0, TYPE_GENERIC_16_MSB = 1, TYPE_GENERIC_16_LSB = 2, TYPE_GENERIC_24 = 3, TYPE_GENERIC_32_MSB = 4, TYPE_GENERIC_32_LSB = 5, // palette indexed color formats TYPE_INDEX_8 = 6, TYPE_INDEX_4 = 7, TYPE_INDEX_2 ...
protected void addProperties(Properties props) { resolveAllProperties(props); Enumeration e = props.keys(); while (e.hasMoreElements()) { String name = (String) e.nextElement(); String value = (String) props.getProperty(name); String v = project.replacePr...
protected void addProperties(Properties props) { resolveAllProperties(props); Enumeration e = props.keys(); while (e.hasMoreElements()) { String name = (String) e.nextElement(); String value = props.getProperty(name); String v = project.replaceProperties(...
protected void scanDir(File srcDir, String files[]) { long now = System.currentTimeMillis(); for (int i = 0; i < files.length; i++) { File srcFile = new File(srcDir, files[i]); if (files[i].endsWith(".java")) { String filePath = srcFile.getPath(); ...
protected void scanDir(File srcDir, String files[]) { long now = System.currentTimeMillis(); for (int i = 0; i < files.length; i++) { File srcFile = new File(srcDir, files[i]); if (files[i].endsWith(".java")) { String filePath = srcFile.getPath(); ...
private void setConnectionHeaders(HttpMethod method, URL u, HeaderManager headerManager, CacheManager cacheManager) { // Set all the headers from the HeaderManager if (headerManager != null) { CollectionProperty headers = headerManager.getHeaders(); if (headers != null) { ...
private void setConnectionHeaders(HttpMethod method, URL u, HeaderManager headerManager, CacheManager cacheManager) { // Set all the headers from the HeaderManager if (headerManager != null) { CollectionProperty headers = headerManager.getHeaders(); if (headers != null) { ...
private void setConnectionHeaders(HttpRequestBase request, URL url, HeaderManager headerManager, CacheManager cacheManager) { if (headerManager != null) { CollectionProperty headers = headerManager.getHeaders(); if (headers != null) { PropertyIterator i = headers.iter...
private void setConnectionHeaders(HttpRequestBase request, URL url, HeaderManager headerManager, CacheManager cacheManager) { if (headerManager != null) { CollectionProperty headers = headerManager.getHeaders(); if (headers != null) { PropertyIterator i = headers.iter...
public Object component(Component component) { if (component.isVisible()) { component.renderHead(header); return CONTINUE_TRAVERSAL; } else { return CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } } }); } // revert to old response RequestCycle.get().setR...
public Object component(Component component) { if (component.isVisible()) { component.renderHead(header); return CONTINUE_TRAVERSAL; } else { return CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } } }); } // revert to old response RequestCycle.get().setR...
public void run() { // Check which HTTPSampler class we should use String httpSamplerName = target.getSamplerTypeName(); HttpRequestHdr request = new HttpRequestHdr(httpSamplerName); SampleResult result = null; HeaderManager headers = null; HTTPSamplerBase sampler = ...
public void run() { // Check which HTTPSampler class we should use String httpSamplerName = target.getSamplerTypeName(); HttpRequestHdr request = new HttpRequestHdr(httpSamplerName); SampleResult result = null; HeaderManager headers = null; HTTPSamplerBase sampler = ...
private static Map weavingAdaptors = new WeakHashMap(); static WeavingAdaptor getWeaver(ClassLoader loader, IWeavingContext weavingContext) { ExplicitlyInitializedClassLoaderWeavingAdaptor adaptor = null; synchronized(weavingAdaptors) { adaptor = (ExplicitlyIniti...
private static Map weavingAdaptors = new WeakHashMap(); static WeavingAdaptor getWeaver(ClassLoader loader, IWeavingContext weavingContext) { ExplicitlyInitializedClassLoaderWeavingAdaptor adaptor = null; synchronized(weavingAdaptors) { adaptor = (ExplicitlyIniti...
private static final String REGEXP = "<(?:" + "!--.*?-->" + "|BASE" + SEP + "HREF" + VALUE + "|(?:IMG|SCRIPT|FRAME|IFRAME|BGSOUND)" + SEP + "SRC" + VALUE + "|APPLET" + SEP + "CODE(?:BASE)?" + VALUE + "|(?:EMBED|OBJECT)" + SEP + "(?:SRC|CODEBASE)" + VALUE...
private static final String REGEXP = "<(?:" + "!--.*?-->" + "|BASE" + SEP + "HREF" + VALUE + "|(?:IMG|SCRIPT|FRAME|IFRAME|BGSOUND)" + SEP + "SRC" + VALUE + "|APPLET" + SEP + "CODE(?:BASE)?" + VALUE + "|(?:EMBED|OBJECT)" + SEP + "(?:SRC|CODEBASE|DATA)" + ...
public Class getPageClass() { return Guess.class; } })); } }
public Class getIdentity() { return Guess.class; } })); } }
public GC(Drawable drawable, int style) { if (drawable == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); GCData data = new GCData (); data.style = checkStyle(style); int hDC = drawable.internal_new_GC(data); Device device = data.device; if (device == null) device = Device.getDevice(); if (device == null) SWT.error(SW...
public GC(Drawable drawable, int style) { if (drawable == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); GCData data = new GCData (); data.style = checkStyle(style); int hDC = drawable.internal_new_GC(data); Device device = data.device; if (device == null) device = Device.getDevice(); if (device == null) SWT.error(SW...
publicId = ownerDocument.getNodeValue(fNodeIndex); systemId = ownerDocument.getNodeURI(fNodeIndex); int extraDataIndex = ownerDocument.getNodeExtra(fNodeIndex); ownerDocument.getNodeType(extraDataIndex); notationName = ownerDocument.getNodeName(extraDataIndex); //...
publicId = ownerDocument.getNodeValue(fNodeIndex); systemId = ownerDocument.getNodeURI(fNodeIndex); int extraDataIndex = ownerDocument.getNodeExtra(fNodeIndex); ownerDocument.getNodeType(extraDataIndex); notationName = ownerDocument.getNodeName(extraDataIndex); //...
public Iterator iterator(int first, int count) { SortParam sp = (SortParam)getSort(); return getContactsDB().find(first, count, sp.getProperty(), sp.isAscending()).iterator(); }
public Iterator iterator(int first, int count) { SortParam sp = getSort(); return getContactsDB().find(first, count, sp.getProperty(), sp.isAscending()).iterator(); }
public static void main(String[] args) { Properties cmdArguments = new Properties(); for (int i = 0; i < args.length; i += 2) // put arguments (if any) in // cmdArguments { if (i + 1 < args.length) { String key = args[i]; String val = args[i + 1]; log.info("using arg: " + key + " == " + val)...
public static void main(String[] args) { Properties cmdArguments = new Properties(); for (int i = 0; i < args.length; i += 2) // put arguments (if any) in // cmdArguments { if (i + 1 < args.length) { String key = args[i]; String val = args[i + 1]; log.info("using arg: " + key + " == " + val)...
protected void update() { List touchedPages = (List)Session.touchedPages.get(); Session.touchedPages.set(null); if (touchedPages != null) { for (int i = 0; i < touchedPages.size(); i++) { Page page = (Page)touchedPages.get(i); page.getPageMap().put(page); } } // If state is dirty if (d...
protected void cleanupRenderedFeedbackMessages() { int size = feedbackMessages.size(); feedbackMessages.clearRendered(); // the session is dirty when the list of feedback messages was changed if (size != feedbackMessages.size()) { dirty(); } } /** * @param page * The page to add to d...
public boolean attemptToModifySuperCalls(BcelClassWeaver weaver,LazyClassGen newParentTarget, ResolvedType newParent) { String currentParent = newParentTarget.getSuperClassname(); List mgs = newParentTarget.getMethodGens(); // Look for ctors to modify for (Iterator iter = mgs.i...
public boolean attemptToModifySuperCalls(BcelClassWeaver weaver,LazyClassGen newParentTarget, ResolvedType newParent) { String currentParent = newParentTarget.getSuperClassname(); List mgs = newParentTarget.getMethodGens(); // Look for ctors to modify for (Iterator iter = mgs.i...
public void handleEvent(Event event) { handleHorizontalScroll(event); } }); } } void internalRedrawRange(int start, int length) { if (length <= 0) return; int end = start + length; int startLine = content.getLineAtOffset(start); int endLine = content.getLineAtOffset(end); int partialBottomIndex = getP...
public void handleEvent(Event event) { handleHorizontalScroll(event); } }); } } void internalRedrawRange(int start, int length) { if (length <= 0) return; int end = start + length; int startLine = content.getLineAtOffset(start); int endLine = content.getLineAtOffset(end); int partialBottomIndex = getP...
public Object getObject(Component component) { if (resources.isEmpty()) { PackageName name = PackageName.forClass(page); ClassLoader loader = page.getClassLoader(); String path = Strings.replaceAll(name.getName(), ".", "/"); try { // gives the urls for each place where the package ...
public Object getObject(Component component) { if (resources.isEmpty()) { PackageName name = PackageName.forClass(page); ClassLoader loader = page.getClassLoader(); String path = Strings.replaceAll(name.getName(), ".", "/").toString(); try { // gives the urls for each place where the ...
protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { replaceComponentTagBody(markupStream, openTag, smartLink(getModelObjectAsString())); } /** * Replace all email and URL addresses * * @param text * Text to be modified * @return Modified Text *...
protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { replaceComponentTagBody(markupStream, openTag, smartLink(getModelObjectAsString())); } /** * Replace all email and URL addresses * * @param text * Text to be modified * @return Modified Text *...
protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { final String body = Strings.toMultilineMarkup(getModelObjectAsString()); replaceComponentTagBody(markupStream, openTag, SmartLinkLabel.smartLink(body)); }
protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { final CharSequence body = Strings.toMultilineMarkup(getModelObjectAsString()); replaceComponentTagBody(markupStream, openTag, SmartLinkLabel.smartLink(body)); }
public String getString(final String key, final Component component, final IModel model, final Locale locale, final String style, final String defaultValue) throws MissingResourceException { final List searchStack; final String path; if (component != null) { searchStack = getComponentStack(component)...
public String getString(final String key, final Component component, final IModel model, final Locale locale, final String style, final String defaultValue) throws MissingResourceException { final List searchStack; final String path; if (component != null) { searchStack = getComponentStack(component)...
private final void renderNext(final MarkupStream markupStream) { // Get the current markup element final MarkupElement element = markupStream.get(); // If it a tag like <wicket..> or <span wicket:id="..." > if ((element instanceof ComponentTag) && !markupStream.atCloseTag()) { // Get element as tag f...
private final void renderNext(final MarkupStream markupStream) { // Get the current markup element final MarkupElement element = markupStream.get(); // If it a tag like <wicket..> or <span wicket:id="..." > if ((element instanceof ComponentTag) && !markupStream.atCloseTag()) { // Get element as tag f...
protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { final String body = Strings.toMultilineMarkup(getModelObjectAsString()); replaceComponentTagBody(markupStream, openTag, body); }
protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { final CharSequence body = Strings.toMultilineMarkup(getModelObjectAsString()); replaceComponentTagBody(markupStream, openTag, body); }
protected final void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); final String value = getValue(); if (value != null) { try { if (Strings.isTrue(value)) { tag.put("checked", "checked"); } else {...
protected final void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); final String value = getValue(); if (value != null) { try { if (Strings.isTrue(value)) { tag.put("checked", "checked"); } else {...
protected void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "select"); // Should a roundtrip be made (have onSelectionChanged called) when the selection changed? if (wantOnSelectionChangedNotifications()) { // url that points to this components IOnChangeListener method final String...
protected void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "select"); // Should a roundtrip be made (have onSelectionChanged called) when the selection changed? if (wantOnSelectionChangedNotifications()) { // url that points to this components IOnChangeListener method final CharSe...
protected void onComponentTag(final ComponentTag tag) { // must be attached to <input type="radio" .../> tag checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "radio"); RadioGroup group = (RadioGroup)findParent(RadioGroup.class); String path = getPath(); if (group == null) { ...
protected void onComponentTag(final ComponentTag tag) { // must be attached to <input type="radio" .../> tag checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "radio"); RadioGroup group = (RadioGroup)findParent(RadioGroup.class); String path = getPath(); if (group == null) { ...
public void save(final FormComponent component) { final String name = component.getPageRelativePath(); final String value = component.getValue(); Cookie cookie = getCookie(component); if (cookie == null) { cookie = new Cookie(name, value == null ? "" : value); } else { cookie.setValue(value);...
public void save(final FormComponent component) { final String name = component.getPageRelativePath(); final String value = component.getValue(); Cookie cookie = getCookie(component); if (cookie == null) { cookie = new Cookie(name, value == null ? "" : value); } else { cookie.setValue(value =...
protected String getURL() { if (pageMapName != null && getPopupSettings() != null) { throw new IllegalStateException("You cannot specify popup settings and a page map"); } if (getPopupSettings() != null) { return urlFor(getPopupSettings().getPageMap(), pageClass, parameters); } else { return...
protected CharSequence getURL() { if (pageMapName != null && getPopupSettings() != null) { throw new IllegalStateException("You cannot specify popup settings and a page map"); } if (getPopupSettings() != null) { return urlFor(getPopupSettings().getPageMap(), pageClass, parameters); } else { ...
protected void onRender(final MarkupStream markupStream) { // Get mutable copy of next tag final ComponentTag tag = markupStream.getTag().mutable(); // Must be an img tag checkComponentTag(tag, "img"); // Set map name to path tag.put("usemap", "#" + getPath()); // Write out the tag renderComponentT...
protected void onRender(final MarkupStream markupStream) { // Get mutable copy of next tag final ComponentTag tag = markupStream.getTag().mutable(); // Must be an img tag checkComponentTag(tag, "img"); // Set map name to path tag.put("usemap", "#" + getPath()); // Write out the tag renderComponentT...
protected final String getURL() { if (resourceReference != null) { // TODO should we have support for locale changes when the // resource reference (or resource??) is set manually.. // We should get a new resource reference for the current locale then // that points to the same resource but with anot...
protected final CharSequence getURL() { if (resourceReference != null) { // TODO should we have support for locale changes when the // resource reference (or resource??) is set manually.. // We should get a new resource reference for the current locale then // that points to the same resource but wit...
public WebRequestCrawlerSave(final HttpServletRequest request) { super(request); queryString = request.getQueryString(); this.path = request.getPathInfo(); if (this.path == null) { return; } if (this.path.startsWith("/") && this.path.endsWith(".wic")) { String path = this.path.substring(1, th...
public WebRequestCrawlerSave(final HttpServletRequest request) { super(request); queryString = request.getQueryString(); this.path = request.getPathInfo(); if (this.path == null) { return; } if (this.path.startsWith("/") && this.path.endsWith(".wic")) { CharSequence path = this.path.substring...
CharSequence encode(RequestCycle requestCycle, IRequestTarget requestTarget); /* * $Id$ $Revision: * 1.1 $ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance ...
CharSequence encode(RequestCycle requestCycle, IRequestTarget requestTarget); /* * $Id$ $Revision: * 1.1 $ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance ...
public void respond(RequestCycle requestCycle) { if (pageClass != null) { if (requestCycle.getRedirect()) { IRequestCycleProcessor processor = requestCycle.getProcessor(); String redirectUrl = processor.getRequestCodingStrategy().encode(requestCycle,this); requestCycle.getResponse().redirect(red...
public void respond(RequestCycle requestCycle) { if (pageClass != null) { if (requestCycle.getRedirect()) { IRequestCycleProcessor processor = requestCycle.getProcessor(); String redirectUrl = processor.getRequestCodingStrategy().encode(requestCycle,this).toString(); requestCycle.getResponse().r...
private static ObjectAndGetSetter getObjectAndGetSetter(final String expression, final Object object, boolean tryToCreateNull) { final String expressionBracketsSeperated = Strings.replaceAll(expression, "[", ".["); int index = expressionBracketsSeperated.indexOf('.'); int lastIndex = 0; Object value = obje...
private static ObjectAndGetSetter getObjectAndGetSetter(final String expression, final Object object, boolean tryToCreateNull) { final String expressionBracketsSeperated = Strings.replaceAll(expression, "[", ".[").toString(); int index = expressionBracketsSeperated.indexOf('.'); int lastIndex = 0; Object v...
protected boolean wantOnSelectionChangedNotifications() { return true; } }; form.add(dropDown); MockPage page = new MockPage(); page.add(form); application.setupRequestAndResponse(); RequestCycle cycle = application.createRequestCycle(); page.urlFor(IRedirectListener.INTERFACE); cycle....
protected boolean wantOnSelectionChangedNotifications() { return true; } }; form.add(dropDown); MockPage page = new MockPage(); page.add(form); application.setupRequestAndResponse(); RequestCycle cycle = application.createRequestCycle(); page.urlFor(IRedirectListener.INTERFACE); cycle....
protected void executedBehavior(final Class pageClass, final AbstractAjaxBehavior behavior, final String filename) throws Exception { assertNotNull(behavior); System.out.println("=== " + pageClass.getName() + " : " + behavior.toString() + " ==="); application.setupRequestAndResponse(); WebRequestCycl...
protected void executedBehavior(final Class pageClass, final AbstractAjaxBehavior behavior, final String filename) throws Exception { assertNotNull(behavior); System.out.println("=== " + pageClass.getName() + " : " + behavior.toString() + " ==="); application.setupRequestAndResponse(); WebRequestCycl...
public void testRenderHomePage_2() throws Exception { executeTest(SimpleTestPage.class, "SimpleTestPageExpectedResult.html"); application.setupRequestAndResponse(); WebRequestCycle cycle = application.createRequestCycle(); Page page = application.getLastRenderedPage(); String url = ((SimpleTe...
public void testRenderHomePage_2() throws Exception { executeTest(SimpleTestPage.class, "SimpleTestPageExpectedResult.html"); application.setupRequestAndResponse(); WebRequestCycle cycle = application.createRequestCycle(); Page page = application.getLastRenderedPage(); String url = ((SimpleTe...
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { StringBuffer str = new StringBuffer(); str.append("intParam: " + intParam + "<br/>"); str.append("integerParam: " + integerParam.toString() + "<br/>"); str.append("long1Param: " + long1Param + "<br/>"); str.a...
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { StringBuffer str = new StringBuffer(); str.append("intParam: " + intParam + "<br/>"); str.append("integerParam: " + integerParam.toString() + "<br/>"); str.append("long1Param: " + long1Param + "<br/>"); str.a...
protected void onSubmit() { login(get("username").getModelObjectAsString()); } }); form.add(textField = new TextField("username", new Model())); }
protected void onSubmit() { login(get("username").getModelObjectAsString().toString()); } }); form.add(textField = new TextField("username", new Model())); }
public Object getObject(Component component) { String url = getPage().urlFor(CSS.getPath()); return url; }; }; WebMarkupContainer css = new WebMarkupContainer("css"); css.add(new AttributeModifier("href", true, hrefReplacement)); addToHeader(css); }
public Object getObject(Component component) { String url = getPage().urlFor(CSS.getPath()); return url; }; }; WebMarkupContainer css = new WebMarkupContainer("css"); css.add(new AttributeModifier("href", true, hrefReplacement)); add(css); }
public HeaderSectionPanel_2(final String id) { super(id); addToHeader(new ExternalLink("cssHref", "myStyle.css")); }
public HeaderSectionPanel_2(final String id) { super(id); add(new ExternalLink("cssHref", "myStyle.css")); }
import org.apache.tools.ant.util.mappers.FileNameMapper; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ pack...
import org.apache.tools.ant.util.mappers.FileNameMapper; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ pack...
package org.apache.tools.ant.util.mappers; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache...
package org.apache.tools.ant.util.mappers; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache...
public Object component(final Component component) { // If form component is using form model if (component.sameRootModel(Page.this)) { component.modelChanged(); } return IVisitor.CONTINUE_TRAVERSAL; } }); }
public Object component(final Component component) { // If form component is using form model if (component.sameInnermostModel(Page.this)) { component.modelChanged(); } return IVisitor.CONTINUE_TRAVERSAL; } }); }
public void onFormComponent(final FormComponent formComponent) { // If form component is using form model if (formComponent.sameRootModel(Form.this)) { formComponent.modelChanged(); } } }); }
public void onFormComponent(final FormComponent formComponent) { // If form component is using form model if (formComponent.sameInnermostModel(Form.this)) { formComponent.modelChanged(); } } }); }
INestedModelContainer wrapOnAssignment(Component component); /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You unde...
INestedModelContainer wrapOnAssignment(Component component); /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You unde...
INestedModelContainer wrapOnInheritance(Component component); /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You und...
INestedModelContainer wrapOnInheritance(Component component); /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You und...
public boolean resolve(final MarkupContainer container, final MarkupStream markupStream, final ComponentTag tag) { // It must be <head> if ("_header".equals(tag.getId())) { if (container.get(tag.getId()) == null) { HtmlHeaderContainer header = new HtmlHeaderContainer(); container.au...
public boolean resolve(final MarkupContainer container, final MarkupStream markupStream, final ComponentTag tag) { // It must be <head> if ("_header".equals(tag.getId())) { if (container.get(tag.getId()) == null) { HtmlHeaderContainer header = new HtmlHeaderContainer(); container.au...
public EclipseSourceType(ReferenceType resolvedTypeX, EclipseFactory factory, SourceTypeBinding binding, TypeDeclaration declaration, CompilationUnitDeclaration unit) { super(resolvedTypeX, true); this.factory = factory; this.binding = binding; this.declaration = declaration; this.unit = uni...
public EclipseSourceType(ReferenceType resolvedTypeX, EclipseFactory factory, SourceTypeBinding binding, TypeDeclaration declaration, CompilationUnitDeclaration unit) { super(resolvedTypeX, true); this.factory = factory; this.binding = binding; this.declaration = declaration; this.unit = uni...
protected void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "select"); // Should a roundtrip be made (have onSelectionChanged called) when the // selection changed? if (wantOnSelectionChangedNotifications()) { // we do not want relative URL here, because it will be used by // Form#...
protected void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, "select"); // Should a roundtrip be made (have onSelectionChanged called) when the // selection changed? if (wantOnSelectionChangedNotifications()) { // we do not want relative URL here, because it will be used by // Form#...
public String getText (int columnIndex) { checkWidget (); int validColumnCount = Math.max (1, parent.columns.length); if (!(0 <= columnIndex && columnIndex < validColumnCount)) return ""; //$NON-NLS-1$ if (columnIndex == 0) return getText (); if (texts [columnIndex] == null) return ""; //$NON-NLS-1$ return texts ...
public String getText (int columnIndex) { checkWidget (); int validColumnCount = Math.max (1, parent.columns.length); if (!(0 <= columnIndex && columnIndex < validColumnCount)) return ""; //$NON-NLS-1$ if (columnIndex == 0) return getText (); if (texts [columnIndex] == null) return ""; //$NON-NLS-1$ return texts ...
// public int compare (Object object1, Object object2) { // TableItem item1 = (TableItem) object1, item2 = (TableItem) object2; // if (sortDirection == SWT.UP || sortDirection == SWT.NONE) { // return item1.getText (index).compareTo (item2.getText (index)); // } else { // return item2.getText (index).compa...
// public int compare (Object object1, Object object2) { // TableItem item1 = (TableItem) object1, item2 = (TableItem) object2; // if (sortDirection == SWT.UP || sortDirection == SWT.NONE) { // return item1.getText (index).compareTo (item2.getText (index)); // } else { // return item2.getText (index).compa...
public void handleEvent(Event event) { switch(event.type) { case SWT.MeasureItem: { if (event.index == 1 || event.index == 2) { event.width = extent.x/2; event.height = extent.y; } break; } case SWT.PaintItem: { if (event.index == 1 || event.index == 2) { int off...
public void handleEvent(Event event) { switch(event.type) { case SWT.MeasureItem: { if (event.index == 1 || event.index == 2) { event.width = extent.x/2; event.height = Math.max(event.height, extent.y + 2); } break; } case SWT.PaintItem: { if (event.index == 1 || event...
public void execute() throws TaskException { preconditions(); scan(); if( dirty ) { // turn off assertions if we're using controlfile, unless they are not explicitly set. boolean useControlFile = ( controlFile != null ) && controlFile.exists(); ...
public void execute() throws TaskException { preconditions(); scan(); if( dirty ) { // turn off assertions if we're using controlfile, unless they are not explicitly set. boolean useControlFile = ( controlFile != null ) && controlFile.exists(); ...
public String[][] getTableData(List data) { return null; }
public String[][] getTableData(List data) { return new String[0][0]; }
protected boolean resolveComponent(final RequestCycle cycle, final MarkupStream markupStream, final ComponentTag tag) { // If it's a [body] tag if (!tag.getComponentName().equals("[body]") && !(markupStream.atOpenCloseTag("body") && (tag instanceof ComponentWicketTag))) { return false; } ...
protected boolean resolveComponent(final RequestCycle cycle, final MarkupStream markupStream, final ComponentTag tag) { // If it's a [body] tag if (!tag.getComponentName().equals("[body]") && !(markupStream.atOpenCloseTag("body") && (tag instanceof ComponentWicketTag))) { return false; } ...
protected final void handleRender(final RequestCycle cycle) { // Render the tag that included this html compoment final MarkupStream markupStream = findMarkupStream(); if (!markupStream.atOpenCloseTag()) { markupStream.throwMarkupException( "A pan...
protected final void handleRender(final RequestCycle cycle) { // Render the tag that included this html compoment final MarkupStream markupStream = findMarkupStream(); if (!markupStream.atOpenCloseTag()) { markupStream.throwMarkupException( "A pan...
public void wake () { synchronized (Device.class) { if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED); if (thread == Thread.currentThread ()) return; wakeThread (); } } void wakeThread () { NSObject object = new NSObject().alloc().init(); object.performSelectorOnMainThread(OS.sel_release, null, false); } ...
public void wake () { synchronized (Device.class) { if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED); if (thread == Thread.currentThread ()) return; wakeThread (); } } void wakeThread () { NSObject object = new NSObject().alloc().init(); object.performSelectorOnMainThread(OS.sel_release, null, false); } ...
public void execute() throws TaskException { // first off, make sure that we've got a srcdir if( ( cls == null ) && ( classes.size() == 0 ) ) { throw new TaskException( "class attribute must be set!" ); } if( ( cls != null ) && ( classes.size() > 0 )...
public void execute() throws TaskException { // first off, make sure that we've got a srcdir if( ( cls == null ) && ( classes.size() == 0 ) ) { throw new TaskException( "class attribute must be set!" ); } if( ( cls != null ) && ( classes.size() > 0 )...
private static void trace(String msg) { Trace.trace(Activator.getDefault(), msg); }
private static void trace(String msg) { Trace.trace(Activator.PLUGIN_ID, msg); }
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { final AppendingStringBuffer buffer = new AppendingStringBuffer(128); Iterator options = getOptionsIterator(); IChoiceRenderer renderer = getPalette().getChoiceRenderer(); while (options.hasNext()) { final Object choice ...
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { final AppendingStringBuffer buffer = new AppendingStringBuffer(128); Iterator options = getOptionsIterator(); IChoiceRenderer renderer = getPalette().getChoiceRenderer(); while (options.hasNext()) { final Object choice ...
public final MarkupElement nextTag() throws ParseException { // Get next tag. Null, if no more tag available final ComponentTag tag = (ComponentTag)getParent().nextTag(); if (tag == null) { return tag; } // Only xml tags not already identified as Wicket components will be // considered for autolinki...
public final MarkupElement nextTag() throws ParseException { // Get next tag. Null, if no more tag available final ComponentTag tag = (ComponentTag)getParent().nextTag(); if (tag == null) { return tag; } // Only xml tags not already identified as Wicket components will be // considered for autolinki...
public void redirect(String url) { if (!redirect) { if (httpServletResponse != null) { // encode to make sure no caller forgot this url = httpServletResponse.encodeRedirectURL(url).toString(); try { if (httpServletResponse.isCommitted()) { log.error("Unable to redirect to: " ...
public void redirect(String url) { if (!redirect) { if (httpServletResponse != null) { // encode to make sure no caller forgot this url = httpServletResponse.encodeRedirectURL(url); try { if (httpServletResponse.isCommitted()) { log.error("Unable to redirect to: " + url + ...
private void writeRequest(String message, HttpURLConnection httpConn) throws IOException { OutputStream out = httpConn.getOutputStream(); out.write(message.toString().getBytes()); out.close(); }
private void writeRequest(String message, HttpURLConnection httpConn) throws IOException { OutputStream out = httpConn.getOutputStream(); out.write(message.getBytes()); out.close(); }
public void testAttr(org.w3c.dom.Document document) { Node node; Attr attributeNode, attribute2; String compare; boolean T = true; boolean F = false; boolean OK = true; // For debugging***** println("\n testAttr's outputs:\n"); Attr testAttribute = document.createAttribute("testAttribute"); testAtt...
public void testAttr(org.w3c.dom.Document document) { Node node; Attr attributeNode, attribute2; String compare; boolean T = true; boolean F = false; boolean OK = true; // For debugging***** println("\n testAttr's outputs:\n"); Attr testAttribute = document.createAttribute("testAttribute"); testAtt...