buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public String toString() { StringBuffer tostring = new StringBuffer(); tostring.append("[").append(Classes.simpleName(getClass())); tostring.append(" message=[").append(message); tostring.append("], keys=["); if (keys != null) { Iterator<String> i = keys.iterator(); while (i.hasNext()) { to...
public String toString() { StringBuilder tostring = new StringBuilder(); tostring.append("[").append(Classes.simpleName(getClass())); tostring.append(" message=[").append(message); tostring.append("], keys=["); if (keys != null) { Iterator<String> i = keys.iterator(); while (i.hasNext()) { ...
private static final String quote(String s) { int slashEIndex = s.indexOf("\\E"); if (slashEIndex == -1) { return "\\Q" + s + "\\E"; } StringBuffer sb = new StringBuffer(s.length() * 2); sb.append("\\Q"); slashEIndex = 0; int current = 0; while ((slashEIndex = s.indexOf("\\E", current)) != -1) ...
private static final String quote(String s) { int slashEIndex = s.indexOf("\\E"); if (slashEIndex == -1) { return "\\Q" + s + "\\E"; } StringBuilder sb = new StringBuilder(s.length() * 2); sb.append("\\Q"); slashEIndex = 0; int current = 0; while ((slashEIndex = s.indexOf("\\E", current)) != -1)...
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { StringBuffer str = new StringBuffer(); str.append("intParam: ").append(intParam).append("<br/>"); str.append("integerParam: ").append(integerParam.toString()).append("<br/>"); str.append("long1Param: ").append(long1Param).ap...
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { StringBuilder str = new StringBuilder(); str.append("intParam: ").append(intParam).append("<br/>"); str.append("integerParam: ").append(integerParam.toString()).append("<br/>"); str.append("long1Param: ").append(long1Param)....
private static Vector jrePackages; static { // Determine the Java version by looking at available classes // java.lang.CharSequence was introduced in JDK 1.4 // java.lang.StrictMath was introduced in JDK 1.3 // java.lang.ThreadLocal was introduced in JDK 1.2 // java.la...
private static Vector jrePackages; static { // Determine the Java version by looking at available classes // java.lang.CharSequence was introduced in JDK 1.4 // java.lang.StrictMath was introduced in JDK 1.3 // java.lang.ThreadLocal was introduced in JDK 1.2 // java.la...
public long delay() { long delay = 0; BSFManager mgr = null; try { mgr = getManager(); Object o = evalFileOrScript(mgr); if (o == null) { log.warn("Script did not return a value"); return 0; } delay =...
public long delay() { long delay = 0; BSFManager mgr = null; try { mgr = getManager(); Object o = evalFileOrScript(mgr); if (o == null) { log.warn("Script did not return a value"); return 0; } delay =...
public String getStaticLabel() { return JMeterUtils.getResString("foreach_controller_title") +" (BETA)"; }
public String getStaticLabel() { return JMeterUtils.getResString("foreach_controller_title"); }
public void initializeProperties(String filename); }
void initializeProperties(String filename); /* * 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 under the Apache Lice...
public String getClasspath() { //XXX // AMC - added in path separator since absence was causing // build failures with invalid classpath // AMC - subsequently added value of "aspectjrt.path property so that // when testing with a non-development jar the version tests find the right one. ...
public String getClasspath() { //XXX // AMC - added in path separator since absence was causing // build failures with invalid classpath // AMC - subsequently added value of "aspectjrt.path property so that // when testing with a non-development jar the version tests find the right one. ...
private synchronized void checkNamespace(String componentName) { String uri = ProjectHelper.extractUriFromComponentName(componentName); if ("".equals(uri)) { uri = ProjectHelper.ANT_CORE_URI; } if (!uri.startsWith(ProjectHelper.ANTLIB_URI)) { return; // namesp...
private synchronized void checkNamespace(String componentName) { String uri = ProjectHelper.extractUriFromComponentName(componentName); if ("".equals(uri)) { uri = ProjectHelper.ANT_CORE_URI; } if (!uri.startsWith(ProjectHelper.ANTLIB_URI)) { return; // namesp...
public void evaluateInternal(XpandExecutionContext ctx) { Object o = getTarget().evaluate(ctx); if (o == null) o = new ArrayList<Object>(); if (!(o instanceof Collection)) throw new EvaluationException("Collection expected!", getTarget(), ctx); final Collection<?> col = (Collection<?>) o; final String...
public void evaluateInternal(XpandExecutionContext ctx) { Object o = getTarget().evaluate(ctx); if (o == null) o = new ArrayList<Object>(); if (!(o instanceof Collection<?>)) throw new EvaluationException("Collection expected!", getTarget(), ctx); final Collection<?> col = (Collection<?>) o; final Str...
public boolean isInstance(final Object o) { return o instanceof Set; }
public boolean isInstance(final Object o) { return o instanceof Set<?>; }
public OpenJPAEntityManager createEntityManager(Map props) { if (props == null) props = Collections.EMPTY_MAP; else if (!props.isEmpty()) props = new HashMap(props); OpenJPAConfiguration conf = getConfiguration(); String user = (String) props.remo...
public OpenJPAEntityManager createEntityManager(Map props) { if (props == null) props = Collections.EMPTY_MAP; else if (!props.isEmpty()) props = new HashMap(props); OpenJPAConfiguration conf = getConfiguration(); String user = (String) props.remo...
OutputStream out, String message); /* * Copyright 2006 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
OutputStream out, String message); /* * Copyright 2006 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException ...
public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException ...
package org.apache.wicket.extensions.markup.html.tree.table; /* * 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...
package org.apache.wicket.extensions.markup.html.tree.table; /* * 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...
public synchronized void initClient() { this.PUB = new Publisher(this.getUseJNDIPropertiesAsBoolean(), this.getJNDIInitialContextFactory(), this .getProviderUrl(), this.getConnectionFactory(), this.getTopic(), this.getUseAuth(), this.getUsername(), this.getPassword()); ...
public synchronized void initClient() { this.PUB = new Publisher(this.getUseJNDIPropertiesAsBoolean(), this.getJNDIInitialContextFactory(), this .getProviderUrl(), this.getConnectionFactory(), this.getTopic(), this.isUseAuth(), this.getUsername(), this.getPassword()); ...
private String name; @OneToOne(cascade = CascadeType.ALL) @JoinColumn(name = "entityc_id", referencedColumnName = "entityc_id",
private String name; @OneToOne(cascade = CascadeType.ALL, optional = false) @JoinColumn(name = "entityc_id", referencedColumnName = "entityc_id",
private String name; @OneToOne(cascade = CascadeType.ALL) @JoinColumn(name = "entityd_id", referencedColumnName = "entityd_id",
private String name; @OneToOne(cascade = CascadeType.ALL, optional = false) @JoinColumn(name = "entityd_id", referencedColumnName = "entityd_id",
public void testCloneObject() { Object cloneMe = new Object(); try { Objects.cloneModel(cloneMe); fail("Exception expected"); } catch (RuntimeException e) { assertTrue(true); } }
public void testCloneObject() { Object cloneMe = new Object(); try { Objects.cloneModel((Serializable)cloneMe); fail("Exception expected"); } catch (RuntimeException e) { assertTrue(true); } }
public static Receiver createReceiver(ConnectionFactory factory, Destination receiveQueue, String principal, String credentials, boolean useResMsgIdAsCorrelId) throws JMSException { Receiver receiver = new Receiver(factory, receiveQueue, principal, credentials, useResMsgIdAsCorrelId)...
public static Receiver createReceiver(ConnectionFactory factory, Destination receiveQueue, String principal, String credentials, boolean useResMsgIdAsCorrelId) throws JMSException { Receiver receiver = new Receiver(factory, receiveQueue, principal, credentials, useResMsgIdAsCorrelId)...
private final String getBeanNameOfClass(final ApplicationContext ctx, final Class<?> clazz) { // get the list of all possible matching beans List<String> names = new ArrayList<String>( Arrays.asList(BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ctx, clazz))); // filter out beans that are not candidate...
private final String getBeanNameOfClass(final ApplicationContext ctx, final Class<?> clazz) { // get the list of all possible matching beans List<String> names = new ArrayList<String>( Arrays.asList(BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ctx, clazz))); // filter out beans that are not candidate...
public static void iterateChildrenByDisplayStyle(StyleSheet styleSheet, Set<String> displayStyles, VEXElement element, int startOffset, int end...
public static void iterateChildrenByDisplayStyle(StyleSheet styleSheet, Set<String> displayStyles, VEXElement element, int startOffset, int end...
public URL getBaseUrl() { try { return this.getProject().getLocation().toFile().toURL(); } catch (MalformedURLException e) { throw new RuntimeException(Messages .getString("PluginProject.malformedUrl"), e); //$NON-NLS-1$ } }
public URL getBaseUrl() { try { return this.getProject().getLocation().toFile().toURI().toURL(); } catch (MalformedURLException e) { throw new RuntimeException(Messages .getString("PluginProject.malformedUrl"), e); //$NON-NLS-1$ } }
protected void loadInput() { if (this.vexWidget != null) { this.vexEditorListeners.fireEvent( "documentUnloaded", new VexEditorMultiPageEvent(this)); //$NON-NLS-1$ } this.loaded = false; IEditorInput input = this.getEditorInput(); try { long start = System.currentTimeMillis(); IPath inputP...
protected void loadInput() { if (this.vexWidget != null) { this.vexEditorListeners.fireEvent( "documentUnloaded", new VexEditorMultiPageEvent(this)); //$NON-NLS-1$ } this.loaded = false; IEditorInput input = this.getEditorInput(); try { long start = System.currentTimeMillis(); IPath inputP...
protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); String url = tag.getAttributes().getString("src"); url = url + ((url.indexOf("?") >= 0) ? "&" : "?"); url = url + "wicket:rand=" + Math.random(); tag.put("src", url); }
protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); String url = tag.getAttributes().getString("src"); url = url + ((url.indexOf("?") >= 0) ? "&" : "?"); url = url + "wicket:antiCache=" + Math.random(); tag.put("src", url); }
public static PrinterData getDefaultPrinterData() { printerList = new PrinterData [1]; if (OS.GTK_VERSION < OS.VERSION (2, 10, 0)) { return printerList[0]; } Callback printerCallback = new Callback(Printer.class, "GtkPrinterFunc_Default", 2); //$NON-NLS-1$ int /*long*/ GtkPrinterFunc_Default = printerCallback.ge...
public static PrinterData getDefaultPrinterData() { printerList = new PrinterData [1]; if (OS.GTK_VERSION < OS.VERSION (2, 10, 0)) { return null; } Callback printerCallback = new Callback(Printer.class, "GtkPrinterFunc_Default", 2); //$NON-NLS-1$ int /*long*/ GtkPrinterFunc_Default = printerCallback.getAddress()...
public void cut () { checkWidget (); if (entryHandle != 0) OS.gtk_editable_cut_clipboard (entryHandle); } void deregister () { super.deregister (); if (buttonHandle != 0) display.removeWidget (buttonHandle); if (entryHandle != 0) display.removeWidget (entryHandle); if (listHandle != 0) display.removeWidget (list...
public void cut () { checkWidget (); if (entryHandle != 0) OS.gtk_editable_cut_clipboard (entryHandle); } void deregister () { super.deregister (); if (buttonHandle != 0) display.removeWidget (buttonHandle); if (entryHandle != 0) display.removeWidget (entryHandle); if (listHandle != 0) display.removeWidget (list...
public void setHeader(final String name, final String value) { List l = new ArrayList(1); l.add(value); headers.put(name, value); }
public void setHeader(final String name, final String value) { List l = new ArrayList(1); l.add(value); headers.put(name, l); }
public final void replaceAttibuteValue(final Component component, final ComponentTag tag) { if (isEnabled()) { final ValueMap attributes = tag.getAttributes(); final Object replacementValue = getReplacementOrNull(component); if (VALUELESS_ATTRIBUTE_ADD.equals(replacementValue)) { attributes.put(a...
public final void replaceAttibuteValue(final Component component, final ComponentTag tag) { if (isEnabled()) { final ValueMap<String, CharSequence> attributes = tag.getAttributes(); final Object replacementValue = getReplacementOrNull(component); if (VALUELESS_ATTRIBUTE_ADD.equals(replacementValue)) ...
private String getTriggerJavaScript() { Form form = getForm(); StringBuffer sb = new StringBuffer(100); sb.append("document.getElementById('"); sb.append(form.getHiddenFieldId()); sb.append("').name=\'"); sb.append(getInputName()); sb.append("';"); sb.append("var f=document.getElementById('"); sb.a...
private String getTriggerJavaScript() { Form form = getForm(); StringBuffer sb = new StringBuffer(100); sb.append("document.getElementById('"); sb.append(form.getHiddenFieldId(Form.HIDDEN_FIELD_FAKE_SUBMIT)); sb.append("').name=\'"); sb.append(getInputName()); sb.append("';"); sb.append("var f=docume...
public static void copyFile(File sourceFile, File destFile, FilterSet filterSet, boolean overwrite, boolean preserveLastModified) throws IOException { if (overwrite || !destFile.exists() || destFile.lastModified() < sourceFile.lastModified()) { ...
public static void copyFile(File sourceFile, File destFile, FilterSet filterSet, boolean overwrite, boolean preserveLastModified) throws IOException { if (overwrite || !destFile.exists() || destFile.lastModified() < sourceFile.lastModified()) { ...
public Composite (Composite parent, int style) { super (parent, style); } Control [] _getChildren () { NSArray views = contentView().subviews(); int count = views.count(); Control [] children = new Control [count]; int j = 0; for (int i=0; i<count; i++){ int tag = new NSView(views.objectAtIndex(i)).tag(); if...
public Composite (Composite parent, int style) { super (parent, style); } Control [] _getChildren () { NSArray views = contentView().subviews(); int count = views.count(); Control [] children = new Control [count]; int j = 0; for (int i=0; i<count; i++){ int tag = new NSView(views.objectAtIndex(i)).tag(); if...
public void setCursor (Cursor cursor) { checkWidget(); if (cursor != null && cursor.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); this.cursor = cursor; //TODO null view.addCursorRect(view.frame(), cursor.handle); }
public void setCursor (Cursor cursor) { checkWidget(); if (cursor != null && cursor.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); this.cursor = cursor; //TODO null // view.addCursorRect(view.frame(), cursor.handle); }
public TreeItem [] getSelection () { checkWidget (); // int [] count = new int [1]; // if (OS.GetDataBrowserItemCount (handle, OS.kDataBrowserNoItem, true, OS.kDataBrowserItemIsSelected, count) != OS.noErr) { // error (SWT.ERROR_CANNOT_GET_COUNT); // } // TreeItem [] result = new TreeItem [count[0]]; // if (count[0] ...
public TreeItem [] getSelection () { checkWidget (); // int [] count = new int [1]; // if (OS.GetDataBrowserItemCount (handle, OS.kDataBrowserNoItem, true, OS.kDataBrowserItemIsSelected, count) != OS.noErr) { // error (SWT.ERROR_CANNOT_GET_COUNT); // } // TreeItem [] result = new TreeItem [count[0]]; // if (count[0] ...
if (DEBUG) print("new AccessibleObject: " + handle + " control=" + accessible.control + " lw=" + isLightweight); /******************************************************************************* * Copyright (c) 2000, 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials ...
if (DEBUG) print("new AccessibleObject: " + handle + " control=" + accessible.control + " lw=" + isLightweight); /******************************************************************************* * Copyright (c) 2000, 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials ...
package wicket.util.license; /* * 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 under the Apache License, Version 2....
package wicket.util.license; /* * 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 under the Apache License, Version 2....
public void onClick() { setResponsePage(StatefulPage.class); } }; }
public void onClick() { getRequestCycle().setResponsePage(StatefulPage.class); } }; }
package wicket.util.license; /* * 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 under the Apache License, Version 2....
package wicket.util.license; /* * 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 under the Apache License, Version 2....
public void removeAll () { checkWidget (); for (int i=0; i<items.length; i++) { TreeItem item = items [i]; if (item != null && !item.isDisposed ()) item.release (false); } items = new TreeItem[4]; /* * Bug in GTK. In version 2.3.2, when the property fixed-height-mode * is set and there are items in the list...
public void removeAll () { checkWidget (); for (int i=0; i<items.length; i++) { TreeItem item = items [i]; if (item != null && !item.isDisposed ()) item.release (false); } items = new TreeItem[4]; /* * Bug in GTK. In version 2.3.2, when the property fixed-height-mode * is set and there are items in the list...
public int internal_new_GC (GCData data) { checkWidget(); int window = OS.GetControlOwner (handle); int port = data != null ? data.port : 0; if (port == 0) port = OS.GetWindowPort (window); int context; int [] buffer = new int [1]; boolean isPaint = OS.HIVIEW && data != null && data.paintEvent != 0; if (isPain...
public int internal_new_GC (GCData data) { checkWidget(); int window = OS.GetControlOwner (handle); int port = data != null ? data.port : 0; if (port == 0) port = OS.GetWindowPort (window); int context; int [] buffer = new int [1]; boolean isPaint = OS.HIVIEW && data != null && data.paintEvent != 0; if (isPain...
public static final int MAX_PATH = 260; /* Get the Windows version and the flags */ static { /* * Try the UNICODE version of GetVersionEx first * and then the ANSI version. The UNICODE version * is present on all versions of Windows but is not * implemented on Win95/98/ME. * * NOTE: The value of OS...
public static final int MAX_PATH = 260; /* Get the Windows version and the flags */ static { /* * Try the UNICODE version of GetVersionEx first * and then the ANSI version. The UNICODE version * is present on all versions of Windows but is not * implemented on Win95/98/ME. * * NOTE: The value of OS...
public Iterator getEmbeddedResourceURLs(byte[] html, URL baseUrl, URLCollection urls) { Perl5Matcher matcher = JMeterUtils.getMatcher(); PatternMatcherInput input = localInput.get(); // TODO: find a way to avoid the cost of creating a String here -- // probably a new PatternMatcherI...
public Iterator<URL> getEmbeddedResourceURLs(byte[] html, URL baseUrl, URLCollection urls) { Perl5Matcher matcher = JMeterUtils.getMatcher(); PatternMatcherInput input = localInput.get(); // TODO: find a way to avoid the cost of creating a String here -- // probably a new PatternMat...
public void testMappedSuperXMLConstraint() { OpenJPAEntityManagerFactorySPI emf = (OpenJPAEntityManagerFactorySPI) OpenJPAPersistence.createEntityManagerFactory( "XMLConstraintPU", "org/apache/openjpa/integration/validation/persistence.xml"); assertNotNull(em...
public void testMappedSuperXMLConstraint() { OpenJPAEntityManagerFactorySPI emf = (OpenJPAEntityManagerFactorySPI) OpenJPAPersistence.createEntityManagerFactory( "XMLConstraintPU", "org/apache/openjpa/integration/validation/persistence.xml"); assertNotNull(em...
protected IStatus run(IProgressMonitor monitor) { return start.start(monitor); }
protected IStatus run(IProgressMonitor monitor) { return start.startup(monitor); }
public IStatus start(IProgressMonitor monitor); }
public IStatus startup(IProgressMonitor monitor); }
public URL getPuRootUrl() { return _puRootUrl; } }
public URL getPersistenceUnitRootUrl() { return _puRootUrl; } }
protected Set<String> parsePersistentTypeNames(ClassLoader loader) throws IOException { ClassArgParser cparser = newClassArgParser(); String[] clss; Set<String> names = new HashSet<String>(); if (files != null) { File file; for (Iterator itr = files.it...
protected Set<String> parsePersistentTypeNames(ClassLoader loader) throws IOException { ClassArgParser cparser = newClassArgParser(); String[] clss; Set<String> names = new HashSet<String>(); if (files != null) { File file; for (Iterator itr = files.it...
private int maxEffectiveTotalRangeChoice() { int max = 0, one; if (fParticleCount > 0) { max = fParticles[0].minEffectiveTotalRange(); if (max == SchemaSymbols.OCCURRENCE_UNBOUNDED) return SchemaSymbols.OCCURRENCE_UNBOUNDED; } for (int i = 1; ...
private int maxEffectiveTotalRangeChoice() { int max = 0, one; if (fParticleCount > 0) { max = fParticles[0].maxEffectiveTotalRange(); if (max == SchemaSymbols.OCCURRENCE_UNBOUNDED) return SchemaSymbols.OCCURRENCE_UNBOUNDED; } for (int i = 1; ...
int type = SWT.IMAGE_OS2_BMP; /******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which acc...
int type = SWT.IMAGE_OS2_BMP; /******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which acc...
public void testPreloadBasic() { OpenJPAEntityManagerFactorySPI emf = null; try { emf = createNamedEMF(PU_NAME, "openjpa.MetaDataRepository", "Preload=true,NoLock=true"); MetaDataRepository mdr = emf.getConfiguration().getMetaDataRepositoryInstance(); // Check th...
public void testPreloadBasic() { OpenJPAEntityManagerFactorySPI emf = null; try { emf = createNamedEMF(PU_NAME, "openjpa.MetaDataRepository", "Preload=true"); MetaDataRepository mdr = emf.getConfiguration().getMetaDataRepositoryInstance(); // Check that there is ...
private void addResource(Resource r, String name, String prefix, ZipOutputStream zOut, int mode, ZipFile zf, File fromArchive) throws IOException { if (zf != null) { ZipEntry ze = zf.getEntry(r.getName()); if (ze != ...
private void addResource(Resource r, String name, String prefix, ZipOutputStream zOut, int mode, ZipFile zf, File fromArchive) throws IOException { if (zf != null) { ZipEntry ze = zf.getEntry(r.getName()); if (ze != ...
private void setEntry(ZipEntry e) { if (e == null) { setExists(false); return; } setName(e.getName()); setExists(true); setLastModified(e.getTime()); setDirectory(e.isDirectory()); setSize(e.getSize()); setMode(e.getUnixMode());...
private void setEntry(ZipEntry e) { if (e == null) { setExists(false); return; } setName(e.getName()); setExists(true); setLastModified(e.getTime()); setDirectory(e.isDirectory()); setSize(e.getSize()); setMode(e.getUnixMode());...
public static void main(String[] args) { Display display = new Display (); Shell shell = new Shell (display); shell.setLayout (new FillLayout ()); Table table = new Table (shell, SWT.BORDER | SWT.MULTI); table.setLinesVisible (true); for (int i=0; i<3; i++) { TableColumn column = new TableColumn(table, SWT.NONE...
public static void main(String[] args) { Display display = new Display (); Shell shell = new Shell (display); shell.setLayout (new FillLayout ()); Table table = new Table (shell, SWT.BORDER | SWT.MULTI); table.setLinesVisible (true); for (int i=0; i<3; i++) { TableColumn column = new TableColumn(table, SWT.NONE...
public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout (new FillLayout ()); Table table = new Table (shell, SWT.BORDER); table.setHeaderVisible (true); table.setLinesVisible(true); for (int i=0; i<2; i++) { TableColumn column = new T...
public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout (new FillLayout ()); Table table = new Table (shell, SWT.BORDER); table.setHeaderVisible (true); table.setLinesVisible(true); for (int i=0; i<2; i++) { new TableColumn (table, SW...
public void handleEvent (Event e) { Tracker tracker = new Tracker (shell, 0); tracker.setRectangles (new Rectangle [] { new Rectangle (e.x, e.y, 100, 100), }); tracker.open (); } }); while (!shell.isDisposed()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); }
public void handleEvent (Event e) { Tracker tracker = new Tracker (shell, SWT.NONE); tracker.setRectangles (new Rectangle [] { new Rectangle (e.x, e.y, 100, 100), }); tracker.open (); } }); while (!shell.isDisposed()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); }...
public void run () { if (table.isDisposed ()) return; TableItem item = new TableItem (table, SWT.NULL); item.setText ("Table Item " + index [0]); item.setImage (image); } }); } } }; thread.start (); shell.setSize (200, 200); shell.open (); while (!shell.isDisposed ()) { ...
public void run () { if (table.isDisposed ()) return; TableItem item = new TableItem (table, SWT.NONE); item.setText ("Table Item " + index [0]); item.setImage (image); } }); } } }; thread.start (); shell.setSize (200, 200); shell.open (); while (!shell.isDisposed ()) { ...
public static void main (String [] args) { Display display = new Display (); final Shell shell = new Shell (display); final TabFolder tabFolder = new TabFolder (shell, SWT.BORDER); for (int i=0; i<6; i++) { TabItem item = new TabItem (tabFolder, SWT.NULL); item.setText ("TabItem " + i); Button button = new Bu...
public static void main (String [] args) { Display display = new Display (); final Shell shell = new Shell (display); final TabFolder tabFolder = new TabFolder (shell, SWT.BORDER); for (int i=0; i<6; i++) { TabItem item = new TabItem (tabFolder, SWT.NONE); item.setText ("TabItem " + i); Button button = new Bu...
public void modifyText(ModifyEvent e) { Text text = (Text)editor.getEditor(); editor.getItem().setText(EDITABLECOLUMN, text.getText()); } }); newEditor.selectAll(); newEditor.setFocus(); editor.setEditor(newEditor, item, EDITABLECOLUMN); } }); shell.setSize(300, 300); shell.open(); ...
public void modifyText(ModifyEvent me) { Text text = (Text)editor.getEditor(); editor.getItem().setText(EDITABLECOLUMN, text.getText()); } }); newEditor.selectAll(); newEditor.setFocus(); editor.setEditor(newEditor, item, EDITABLECOLUMN); } }); shell.setSize(300, 300); shell.open(); ...
public static void main (String [] args) { Display display = new Display (); Shell shell = new Shell (display); shell.setLayout (new RowLayout ()); Label label = new Label (shell, SWT.NULL); GC gc = new GC (label); Point size = gc.textExtent ("Hello"); gc.dispose (); label.setText ("Hello -> " + size); shell.p...
public static void main (String [] args) { Display display = new Display (); Shell shell = new Shell (display); shell.setLayout (new RowLayout ()); Label label = new Label (shell, SWT.NONE); GC gc = new GC (label); Point size = gc.textExtent ("Hello"); gc.dispose (); label.setText ("Hello -> " + size); shell.p...
public void initialize(DataCacheManager mgr) { super.initialize(mgr); conf.getRemoteCommitEventManager().addListener(this); }
public void initialize(DataCacheManager mgr) { super.initialize(mgr); conf.getRemoteCommitEventManager().addInternalListener(this); }
private static void zipDir(final File dir, final ZipOutputStream out, final String path, final boolean recursive) throws IOException { if (!dir.isDirectory()) { throw new IllegalArgumentException("Not a directory: " + dir); } String[] files = dir.list(); int BUFFER = 2048; BufferedInputStream origi...
private static void zipDir(final File dir, final ZipOutputStream out, final String path, final boolean recursive) throws IOException { if (!dir.isDirectory()) { throw new IllegalArgumentException("Not a directory: " + dir); } String[] files = dir.list(); int BUFFER = 2048; BufferedInputStream origi...
public void detach(RequestCycle requestCycle) { if (page != null) { page.internalDetach(); } }
public void detach(RequestCycle requestCycle) { if (page != null) { page.detach(); } }
public void detach(RequestCycle requestCycle) { page.internalDetach(); }
public void detach(RequestCycle requestCycle) { page.detach(); }
public Page getTestPage() { return page; } }); // Setup the request. It should be a IMultipartWebRequest RequestCycle requestCycle = tester.createRequestCycle(); MockHttpServletRequest servletRequest = tester.getServletRequest(); servletRequest.setMethod("POST"); servletRequest.setParameter("f...
public Page getTestPage() { return page; } }); // Setup the request. It should be a IMultipartWebRequest RequestCycle requestCycle = tester.createRequestCycle(); MockHttpServletRequest servletRequest = tester.getServletRequest(); servletRequest.setMethod("POST"); servletRequest.setParameter("f...
protected final void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); tag.put("size", Math.min(maxRows, getValues().size())); }
protected final void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); tag.put("size", Math.min(maxRows, getChoices().size())); }
public void load(FormComponent component) { final Cookie cookie = getCookie(component); if (cookie != null) { final String value = cookie.getValue(); if (value != null) { // Assign the retrieved/persisted value to the component component.setValue(value); } } }
public void load(FormComponent component) { final Cookie cookie = getCookie(component); if (cookie != null) { final String value = cookie.getValue(); if (value != null) { // Assign the retrieved/persisted value to the component component.setModelValue(value); } } }
public static boolean isTrue(final String s) throws StringValueConversionException { if (s != null) { if (s.equalsIgnoreCase("true")) { return true; } if (s.equalsIgnoreCase("false")) { return false; } if (s.equalsIgnoreCase("on") || s.equalsIgnoreCase("yes") || s.equalsIgnoreCase("...
public static boolean isTrue(final String s) throws StringValueConversionException { if (s != null) { if (s.equalsIgnoreCase("true")) { return true; } if (s.equalsIgnoreCase("false")) { return false; } if (s.equalsIgnoreCase("on") || s.equalsIgnoreCase("yes") || s.equalsIgnoreCase("...
public void testTree() throws RecognitionException { test("org/eclipse/xpand3/parser/node2ast/test.tree"); }
public void testTree() throws RecognitionException { test("org/eclipse/xpand3/parser/node2ast/test.ttst"); }
public void clearAll (boolean all) { checkWidget (); parent.clearAll (this, all); } void clearSelection () { NSOutlineView widget = (NSOutlineView) parent.view; int row = widget.rowForItem (handle); if (widget.isRowSelected(row)) widget.deselectRow (row); if (items != null && expanded) { for (int i = 0; i < it...
public void clearAll (boolean all) { checkWidget (); parent.clearAll (this, all); } void clearSelection () { NSOutlineView widget = (NSOutlineView) parent.view; int /*long*/ row = widget.rowForItem (handle); if (widget.isRowSelected(row)) widget.deselectRow (row); if (items != null && expanded) { for (int i = ...
public void addVerifyListener (VerifyListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); TypedListener typedListener = new TypedListener (listener); addListener (SWT.Verify, typedListener); } int /*long*/ callWindowProc (int /*long*/ hwnd, int msg, int /*long*/ wParam, int /...
public void addVerifyListener (VerifyListener listener) { checkWidget (); if (listener == null) error (SWT.ERROR_NULL_ARGUMENT); TypedListener typedListener = new TypedListener (listener); addListener (SWT.Verify, typedListener); } int /*long*/ callWindowProc (int /*long*/ hwnd, int msg, int /*long*/ wParam, int /...
private final IModel getRootModel(final IModel model) { IModel nestedModelObject = model; while (true) { final IModel next = ((IModel)nestedModelObject).getNestedModel(); if (next == null) { break; } if (nestedModelObject == next) { throw new WicketRuntimeException("Model for " + neste...
private final IModel getRootModel(final IModel model) { IModel nestedModelObject = model; while (true) { final IModel next = nestedModelObject.getNestedModel(); if (next == null) { break; } if (nestedModelObject == next) { throw new WicketRuntimeException("Model for " + nestedModelObje...
public final Object visitChildren(final Class clazz, final IVisitor visitor) { // Iterate through children of this container for (int i = 0; i < children_size(); i++) { // Get next child component final Component child = (Component)children_get(i); Object value = null; // Is the child of the cor...
public final Object visitChildren(final Class clazz, final IVisitor visitor) { // Iterate through children of this container for (int i = 0; i < children_size(); i++) { // Get next child component final Component child = children_get(i); Object value = null; // Is the child of the correct class ...
private void commonInit() { // Add a Body container if the associated markup contains a <body> tag // get markup stream gracefully MarkupStream markupStream = getApplication().getMarkupCache().getMarkupStream(this, false); if (markupStream != null) { // The default <body> container. It can be accessed, r...
private void commonInit() { // Add a Body container if the associated markup contains a <body> tag // get markup stream gracefully MarkupStream markupStream = getApplication().getMarkupCache().getMarkupStream(this, false); if (markupStream != null) { // The default <body> container. It can be accessed, r...
protected void appendPageParameters(StringBuffer url, PageParameters parameters) { if (parameters != null) { Iterator entries = parameters.entrySet().iterator(); while (entries.hasNext()) { Map.Entry entry = (Entry)entries.next(); if(entry.getValue()!=null) { String escapedValue = url...
protected void appendPageParameters(StringBuffer url, PageParameters parameters) { if (parameters != null) { Iterator entries = parameters.entrySet().iterator(); while (entries.hasNext()) { Map.Entry entry = (Entry)entries.next(); if(entry.getValue()!=null) { String escapedValue = url...
public void setParameterForNextRequest(String componentPath, Object value) { if (getLastRenderedPage() == null) { Assert.fail("before using this method, at least one page has to be rendered"); } Component c = (Component)getComponentFromLastRenderedPage(componentPath); if (c == null) { Assert.fail("...
public void setParameterForNextRequest(String componentPath, Object value) { if (getLastRenderedPage() == null) { Assert.fail("before using this method, at least one page has to be rendered"); } Component c = getComponentFromLastRenderedPage(componentPath); if (c == null) { Assert.fail("component "...
public String toString() { final StringBuffer buffer = (StringBuffer)new StringBuffer(); for (final Iterator iterator = entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry)iterator.next(); buffer.append(entry.getKey() + " = \"" + entry.getValue() + "\""); if (iterator.hasNext()) ...
public String toString() { final StringBuffer buffer = new StringBuffer(); for (final Iterator iterator = entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry)iterator.next(); buffer.append(entry.getKey() + " = \"" + entry.getValue() + "\""); if (iterator.hasNext()) { buffe...
protected static final String GRAMMAR_POOL = Constants.XERCES_PROPERTY_PREFIX + Constants.GRAMMAR_POOL_PROPERTY;
protected static final String GRAMMAR_POOL = Constants.XERCES_PROPERTY_PREFIX + Constants.XMLGRAMMAR_POOL_PROPERTY;
public Antidote(AppContext context) { setLayout(new BorderLayout()); _context = context; // Add the various modules to the editing area. JSplitPane splitter = new JSplitPane(); splitter.add(JSplitPane.LEFT, populateModules("left")); splitter.add(JSplitPane.RIGHT, po...
public Antidote(AppContext context) { setLayout(new BorderLayout()); _context = context; // Add the various modules to the editing area. JSplitPane splitter = new JSplitPane(); splitter.add(JSplitPane.LEFT, populateModules("left")); splitter.add(JSplitPane.RIGHT, po...
public static void main(String[] args) { XMLHelper.init(); try { JFrame f = new JFrame("Antidote"); AppContext context = new AppContext(f); EventResponder resp = new EventResponder(context); Antidote gui = new Antidote(context); f.setDefa...
public static void main(String[] args) { XMLHelper.init(); try { JFrame f = new JFrame("Antidote"); AppContext context = new AppContext(f); EventResponder resp = new EventResponder(context); Antidote gui = new Antidote(context); f.setDefa...
public static void addFileMenu(JPopupMenu menu) { addSeparator(menu); menu.add(makeMenuItem(JMeterUtils.getResString("open"),// $NON-NLS-1$ "Open", ActionNames.OPEN));// $NON-NLS-1$ menu.add(makeMenuItem(JMeterUtils.getResString("menu_merge"),// $NON-NLS-1$ "Merge", ActionNa...
public static void addFileMenu(JPopupMenu menu) { addSeparator(menu); menu.add(makeMenuItem(JMeterUtils.getResString("open"),// $NON-NLS-1$ "Open", ActionNames.OPEN));// $NON-NLS-1$ menu.add(makeMenuItem(JMeterUtils.getResString("menu_merge"),// $NON-NLS-1$ "Merge", ActionNa...
public Table(String name, List object, int rowsPerPage) { this(name, castToSerializable(object), rowsPerPage); }
public Table(String name, List object, int rowsPerPage) { this(name, (Serializable)object, rowsPerPage); }
private List<MemberValuePair> getMemberValuePairs(AST ast, Class<? extends Annotation> annotationClass) { List<MemberValuePair> memberValuePairs = new ArrayList<MemberValuePair>(); Method[] declaredMethods = annotationClass.getDeclaredMethods(); for (Method method : decl...
private List<MemberValuePair> getMemberValuePairs(AST ast, Class<? extends Annotation> annotationClass) { List<MemberValuePair> memberValuePairs = new ArrayList<MemberValuePair>(); Method[] declaredMethods = annotationClass.getDeclaredMethods(); for (Method method : decl...
public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { IStatus status = Status.OK_STATUS; WSDL2JavaPersistentContext context = CXFCorePlugin.getDefault().getWSDL2JavaContext(); model.setCxfRuntimeVersion(context.getCxfRuntimeVersion()); model.setCx...
public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { IStatus status = Status.OK_STATUS; WSDL2JavaPersistentContext context = CXFCorePlugin.getDefault().getWSDL2JavaContext(); model.setCxfRuntimeVersion(context.getCxfRuntimeVersion()); model.setCx...
protected String getLocalName(IType type, IMethod method) { try { IAnnotation annotation = AnnotationUtils.getAnnotation(method, WebMethod.class); if (annotation != null) { String operationName = AnnotationUtils.getStringValue(annotation, OPERATION_NAME); ...
protected String getLocalName(IType type, IMethod method) { try { IAnnotation annotation = AnnotationUtils.getAnnotation(WebMethod.class, method); if (annotation != null) { String operationName = AnnotationUtils.getStringValue(annotation, OPERATION_NAME); ...
public Object[] getElements(Object inputElement) { if (inputElement != null) { return AnnotationsManager.getAnnotations(inputElement); } return new Object[] {}; }
public Object[] getElements(Object inputElement) { if (inputElement != null) { return AnnotationsManager.getAnnotations(inputElement).toArray(); } return new Object[] {}; }
public void testAddAnnotationToPackage() { try { assertNotNull(annotation); assertEquals(XmlSchema.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IPackageDeclaration myPackage = source.getPackageDeclaration(getPackageName()); assertNotN...
public void testAddAnnotationToPackage() { try { assertNotNull(annotation); assertEquals(XmlSchema.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IPackageDeclaration myPackage = source.getPackageDeclaration(getPackageName()); assertNotN...
public void testRemoveAnnotationFromPackage() { try { assertNotNull(annotation); assertEquals(XmlSchema.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IPackageDeclaration myPackage = source.getPackageDeclaration(getPackageName()); asser...
public void testRemoveAnnotationFromPackage() { try { assertNotNull(annotation); assertEquals(XmlSchema.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IPackageDeclaration myPackage = source.getPackageDeclaration(getPackageName()); asser...
public void testAddAnnotationToField() { try { assertNotNull(annotation); assertEquals(WebServiceRef.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IField field = source.findPrimaryType().getField("service"); assertNotNull(field); ...
public void testAddAnnotationToField() { try { assertNotNull(annotation); assertEquals(WebServiceRef.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IField field = source.findPrimaryType().getField("service"); assertNotNull(field); ...
public void testAddAnnotationToMethodParameter() { try { assertNotNull(annotation); assertEquals(WebParam.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IMethod method = source.findPrimaryType().getMethod("add", new String[] { "I", "I" }); ...
public void testAddAnnotationToMethodParameter() { try { assertNotNull(annotation); assertEquals(WebParam.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IMethod method = source.findPrimaryType().getMethod("add", new String[] { "I", "I" }); ...
public void testAddAnnotationToMethod() { try { assertNotNull(annotation); assertEquals(WebMethod.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IMethod method = source.findPrimaryType().getMethod("add", new String[] { "I", "I" }); ass...
public void testAddAnnotationToMethod() { try { assertNotNull(annotation); assertEquals(WebMethod.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IMethod method = source.findPrimaryType().getMethod("add", new String[] { "I", "I" }); ass...
public void testAddAnnotationToType() { try { assertNotNull(annotation); assertEquals(WebService.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); textFileChange.addEdit(AnnotationUtils.createAddImportTextEdit(source.findPrimaryType(), WebService.cla...
public void testAddAnnotationToType() { try { assertNotNull(annotation); assertEquals(WebService.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); textFileChange.addEdit(AnnotationUtils.createAddImportTextEdit(source.findPrimaryType(), WebService.cla...
public void testRemoveAnnotationFromField() { try { assertNotNull(annotation); assertEquals(WebServiceRef.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IField field = source.findPrimaryType().getField("service"); assertNotNull(field);...
public void testRemoveAnnotationFromField() { try { assertNotNull(annotation); assertEquals(WebServiceRef.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IField field = source.findPrimaryType().getField("service"); assertNotNull(field);...
public void testRemoveAnnotationFromMethodParameter() { try { assertNotNull(annotation); assertEquals(WebParam.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IMethod method = source.findPrimaryType().getMethod("add", new String[] { "I", "I" }); ...
public void testRemoveAnnotationFromMethodParameter() { try { assertNotNull(annotation); assertEquals(WebParam.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IMethod method = source.findPrimaryType().getMethod("add", new String[] { "I", "I" }); ...
public void testRemoveAnnotationFromMethod() { try { assertNotNull(annotation); assertEquals(WebMethod.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IMethod method = source.findPrimaryType().getMethod("add", new String[] { "I", "I" }); ...
public void testRemoveAnnotationFromMethod() { try { assertNotNull(annotation); assertEquals(WebMethod.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); IMethod method = source.findPrimaryType().getMethod("add", new String[] { "I", "I" }); ...
public void testRemoveAnnotationFromType() { try { assertNotNull(annotation); assertEquals(WebService.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); assertTrue(AnnotationUtils.isAnnotationPresent(source, AnnotationUtils.getAnnotationName(annotatio...
public void testRemoveAnnotationFromType() { try { assertNotNull(annotation); assertEquals(WebService.class.getSimpleName(), AnnotationUtils.getAnnotationName(annotation)); assertTrue(AnnotationUtils.isAnnotationPresent(source, AnnotationUtils.getAnnotationName(annotatio...
public void layout (Control [] changed) { checkWidget (); if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<changed.length; i++) { Control control = changed [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); bool...
public void layout (Control [] changed) { checkWidget (); if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<changed.length; i++) { Control control = changed [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); bool...
public void create (Composite parent, int style) { delegate = new MozillaDelegate (browser); Display display = parent.getDisplay (); int /*long*/[] result = new int /*long*/[1]; if (!Initialized) { boolean initLoaded = false; boolean IsXULRunner = false; String greInitialized = System.getProperty (GRE_INITI...
public void create (Composite parent, int style) { delegate = new MozillaDelegate (browser); Display display = parent.getDisplay (); int /*long*/[] result = new int /*long*/[1]; if (!Initialized) { boolean initLoaded = false; boolean IsXULRunner = false; String greInitialized = System.getProperty (GRE_INITI...
protected void doGet(HttpClient client, String url) throws Exception { GetMethod method = new GetMethod(url); method.setFollowRedirects(true); try { int code = client.executeMethod(method); if (code != 200) { log.error("ERROR! code: " + code); log.error(Streams.readString(method.getResponseBodyAsS...
protected void doGet(HttpClient client, String url) throws Exception { GetMethod method = new GetMethod(url); method.setFollowRedirects(true); try { int code = client.executeMethod(method); if (code != 200) { log.error("ERROR! code: " + code); log.error(Streams.readString(method.getResponseBodyAsS...
public void update(); }
public void updateValidationFeedback(); }
public void copy () { checkWidget (); OS.gtk_editable_copy_clipboard (handle); } void createHandle (int index) { state |= HANDLE | MENU; fixedHandle = OS.g_object_new (display.gtk_fixed_get_type (), 0); if (fixedHandle == 0) error (SWT.ERROR_NO_HANDLES); OS.gtk_fixed_set_has_window (fixedHandle, true); int /*l...
public void copy () { checkWidget (); OS.gtk_editable_copy_clipboard (handle); } void createHandle (int index) { state |= HANDLE | MENU; fixedHandle = OS.g_object_new (display.gtk_fixed_get_type (), 0); if (fixedHandle == 0) error (SWT.ERROR_NO_HANDLES); OS.gtk_fixed_set_has_window (fixedHandle, true); int /*l...