buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected boolean isRebuildRequired(File genericJarFile, File weblogicJarFile) { boolean rebuild = false; JarFile genericJar = null; JarFile wlJar = null; File newWLJarFile = null; JarOutputStream newJarStream = null; try { log("Checking if weblogic Jar ...
protected boolean isRebuildRequired(File genericJarFile, File weblogicJarFile) { boolean rebuild = false; JarFile genericJar = null; JarFile wlJar = null; File newWLJarFile = null; JarOutputStream newJarStream = null; try { log("Checking if weblogic Jar ...
protected boolean isRebuildRequired(File genericJarFile, File websphereJarFile) { boolean rebuild = false; JarFile genericJar = null; JarFile wasJar = null; File newwasJarFile = null; JarOutputStream newJarStream = null; try { log("Checking if websphere ...
protected boolean isRebuildRequired(File genericJarFile, File websphereJarFile) { boolean rebuild = false; JarFile genericJar = null; JarFile wasJar = null; File newwasJarFile = null; JarOutputStream newJarStream = null; try { log("Checking if websphere ...
public void execute() throws BuildException { if (destDir != null && !destDir.isDirectory()) { throw new BuildException("destination directory \"" + destDir + "\" does not exist or is not a directory", getLocat...
public void execute() throws BuildException { if (destDir != null && !destDir.isDirectory()) { throw new BuildException("destination directory \"" + destDir + "\" does not exist or is not a directory", getLocat...
public static JspCompilerAdapter getCompiler(String compilerType, Task task) throws BuildException { return getCompiler(compilerType, task, new AntClassLoader(task.getProject(), null)); }
public static JspCompilerAdapter getCompiler(String compilerType, Task task) throws BuildException { return getCompiler(compilerType, task, task.getProject().createClassLoader(null)); }
public static void main (String [] args) { Display display = new Display (); Shell shell = new Shell (display); shell.setLayout(new GridLayout()); final ScrolledComposite sc = new ScrolledComposite(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); sc.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)...
public static void main (String [] args) { Display display = new Display (); Shell shell = new Shell (display); shell.setLayout(new GridLayout()); final ScrolledComposite sc = new ScrolledComposite(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); sc.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)...
protected Map messageModel(final ConversionException e) { final Map model = super.messageModel(); model.put("type", type); final Locale locale = e.getLocale(); if (locale != null) { model.put("locale", locale); } model.put("exception", e.getMessage()); Format format = e.getFormat(); if (format in...
protected Map messageModel(final ConversionException e) { final Map model = super.messageModel(); model.put("type", type); final Locale locale = e.getLocale(); if (locale != null) { model.put("locale", locale); } model.put("exception", e); Format format = e.getFormat(); if (format instanceof Simp...
public static void main( String[] argv) { if (argv.length == 0) { printUsage(); System.exit(1); } try { // get DOM Implementation using DOM Registry System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom.DOMImplementat...
public static void main( String[] argv) { if (argv.length == 0) { printUsage(); System.exit(1); } try { // get DOM Implementation using DOM Registry System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom.DOMImplementat...
protected Embeddor getEmbeddor() throws Exception { if( m_embeddor == null ) { // Need to set the context classloader - The default embeddor uses it Thread.currentThread().setContextClassLoader( getClass().getClassLoader() ); final Logger logger = createLogge...
protected Embeddor getEmbeddor() throws Exception { if( m_embeddor == null ) { // Need to set the context classloader - The default embeddor uses it Thread.currentThread().setContextClassLoader( getClass().getClassLoader() ); final Logger logger = getLogger()...
public CharSequence getDisplayContents() { AddressBookParsedResult result = (AddressBookParsedResult) getResult(); StringBuffer contents = new StringBuffer(); ParsedResult.maybeAppend(result.getNames(), contents); int namesLength = contents.length(); String pronunciation = result.getPronunciation...
public CharSequence getDisplayContents() { AddressBookParsedResult result = (AddressBookParsedResult) getResult(); StringBuffer contents = new StringBuffer(100); ParsedResult.maybeAppend(result.getNames(), contents); int namesLength = contents.length(); String pronunciation = result.getPronunciat...
public CharSequence getDisplayContents() { CalendarParsedResult calResult = (CalendarParsedResult) getResult(); StringBuffer result = new StringBuffer(); ParsedResult.maybeAppend(calResult.getSummary(), result); appendTime(calResult.getStart(), result); // The end can be null if the event has no ...
public CharSequence getDisplayContents() { CalendarParsedResult calResult = (CalendarParsedResult) getResult(); StringBuffer result = new StringBuffer(100); ParsedResult.maybeAppend(calResult.getSummary(), result); appendTime(calResult.getStart(), result); // The end can be null if the event has ...
public CharSequence getDisplayContents() { SMSParsedResult smsResult = (SMSParsedResult) getResult(); StringBuffer contents = new StringBuffer(); String[] rawNumbers = smsResult.getNumbers(); String[] formattedNumbers = new String[rawNumbers.length]; for (int i = 0; i < rawNumbers.length; i++) { ...
public CharSequence getDisplayContents() { SMSParsedResult smsResult = (SMSParsedResult) getResult(); StringBuffer contents = new StringBuffer(50); String[] rawNumbers = smsResult.getNumbers(); String[] formattedNumbers = new String[rawNumbers.length]; for (int i = 0; i < rawNumbers.length; i++) {...
public CharSequence getDisplayContents() { WifiParsedResult wifiResult = (WifiParsedResult) getResult(); StringBuffer contents = new StringBuffer(); String wifiLabel = parent.getString(R.string.wifi_ssid_label); ParsedResult.maybeAppend(wifiLabel + '\n' + wifiResult.getSsid(), contents); String ty...
public CharSequence getDisplayContents() { WifiParsedResult wifiResult = (WifiParsedResult) getResult(); StringBuffer contents = new StringBuffer(50); String wifiLabel = parent.getString(R.string.wifi_ssid_label); ParsedResult.maybeAppend(wifiLabel + '\n' + wifiResult.getSsid(), contents); String ...
public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) { handleChange( (SupplicantState) intent.getParcelableExtra(WifiManager.EXTRA_NEW_STATE), intent.hasExtra(WifiManager.EXTRA_SUPPLICANT_ERROR)); } else i...
public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) { handleChange( (SupplicantState) intent.getParcelableExtra(WifiManager.EXTRA_NEW_STATE), intent.hasExtra(WifiManager.EXTRA_SUPPLICANT_ERROR)); } else i...
protected void onComponentTag(ComponentTag tag) { // must be attached to <input type="checkbox" .../> tag checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); CheckGroup<?> group = this.group; if (group == null) { group = findParent(CheckGroup.class); if (group == n...
protected void onComponentTag(ComponentTag tag) { // must be attached to <input type="checkbox" .../> tag checkComponentTag(tag, "input"); checkComponentTagAttribute(tag, "type", "checkbox"); CheckGroup<?> group = this.group; if (group == null) { group = findParent(CheckGroup.class); if (group == n...
/*public*/ void draw (GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground, int flags) { checkLayout(); computeRuns(gc); if (gc == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); if (gc.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT); if (selectionForegroun...
/*public*/ void draw (GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground, int flags) { checkLayout(); computeRuns(gc); if (gc == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); if (gc.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT); if (selectionForegroun...
public String getStaticLabel() { return super.getStaticLabel() + " HTTPCLient (ALPHA)"; }
public String getStaticLabel() { return super.getStaticLabel() + " HTTPCLient"; }
* public void setName(String name) * { * this.name = name; * } * } * </pre> * * @author Jonathan Locke */ public class Label<V> extends WebComponent<V> {
* public void setName(String name) * { * this.name = name; * } * } * </pre> * * @author Jonathan Locke */ public class Label<T> extends WebComponent<T> {
public String getText () { checkWidget (); return text; } int /*long*/ gtk_button_press_event (int /*long*/ widget, int /*long*/ event) { int /*long*/ result = super.gtk_button_press_event (widget, event); GdkEventButton gdkEvent = new GdkEventButton (); OS.memmove (gdkEvent, event, GdkEventButton.sizeof); if (...
public String getText () { checkWidget (); return text; } int /*long*/ gtk_button_press_event (int /*long*/ widget, int /*long*/ event) { int /*long*/ result = super.gtk_button_press_event (widget, event); GdkEventButton gdkEvent = new GdkEventButton (); OS.memmove (gdkEvent, event, GdkEventButton.sizeof); if (...
public void execute() throws BuildException { File savedDir = dir; String savedAntFile = antFile; Vector locals = new Vector(targets); try { if (newProject == null) { reinit(); } if ((dir == null) && (inheritAll)) { ...
public void execute() throws BuildException { File savedDir = dir; String savedAntFile = antFile; Vector locals = new Vector(targets); try { if (newProject == null) { reinit(); } if ((dir == null) && (inheritAll)) { ...
public Text (Composite parent, int style) { super (parent, checkStyle (style)); if (OS.GTK_VERSION >= OS.VERSION (2, 16, 0)) { if ((style & SWT.SEARCH) != 0) { /* * Ensure that SWT.ICON_CANCEL and ICON_SEARCH are set. * NOTE: ICON_CANCEL has the same value as H_SCROLL and * ICON_SEARCH has the same v...
public Text (Composite parent, int style) { super (parent, checkStyle (style)); if (OS.GTK_VERSION >= OS.VERSION (2, 16, 0)) { if ((style & SWT.SEARCH) != 0) { /* * Ensure that SWT.ICON_CANCEL and ICON_SEARCH are set. * NOTE: ICON_CANCEL has the same value as H_SCROLL and * ICON_SEARCH has the same v...
public final CharSequence encode(final RequestCycle requestCycle, final IRequestTarget requestTarget) { if (requestTarget instanceof IBookmarkablePageRequestTarget) { return encodeRequest(requestCycle, (IBookmarkablePageRequestTarget)requestTarget); } else if (requestTarget instanceof ISharedResourceRe...
public final CharSequence encode(final RequestCycle requestCycle, final IRequestTarget requestTarget, final boolean relativePath) { if (requestTarget instanceof IBookmarkablePageRequestTarget) { return encodeRequest(requestCycle, (IBookmarkablePageRequestTarget)requestTarget); } else if (requestTarget ...
public boolean isEnabled () { checkWidget (); return getEnabled (); } void hookEvents () { super.hookEvents (); int handler = OS.gcnew_SizeChangedEventHandler (jniRef, "HandleSizeChanged"); OS.FrameworkElement_SizeChanged (shellHandle, handler); OS.GCHandle_Free (handler); if ((style & SWT.ON_TOP) != 0) { han...
public boolean isEnabled () { checkWidget (); return getEnabled (); } void hookEvents () { super.hookEvents (); int handler = OS.gcnew_SizeChangedEventHandler (jniRef, "HandleSizeChanged"); OS.FrameworkElement_SizeChanged (shellHandle, handler); OS.GCHandle_Free (handler); if ((style & SWT.ON_TOP) != 0) { han...
public Image getImage () { checkWidget (); if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED); return super.getImage (); }
public Image getImage () { checkWidget (); if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED); return getImage (0); }
private final MarkupStream initializeMarkupStream() { // Save the parent's markup stream to re-assign it at the end MarkupContainer parent = getParent(); // Get the parent's associated markup stream. MarkupContainer parentWithAssociatedMarkup = findParentWithAssociatedMarkup(); MarkupStream markupStream = ...
private final MarkupStream initializeMarkupStream() { // Save the parent's markup stream to re-assign it at the end MarkupContainer parent = getParent(); // Get the parent's associated markup stream. MarkupContainer parentWithAssociatedMarkup = findParentWithAssociatedMarkup(); MarkupStream markupStream = ...
protected void onRender(final MarkupStream markupStream) { // Set page's associated markup stream final MarkupStream associatedMarkupStream = getAssociatedMarkupStream(); setMarkupStream(associatedMarkupStream); // Configure response object with locale and content type configureResponse(); // Render all...
protected void onRender(final MarkupStream markupStream) { // Set page's associated markup stream final MarkupStream associatedMarkupStream = getAssociatedMarkupStream(true); setMarkupStream(associatedMarkupStream); // Configure response object with locale and content type configureResponse(); // Render...
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 = getAssociatedMarkupStream(false); if (markupStream != null) { // The default <body> container. It can be accessed, replaced // and attribute mo...
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 CharSeque...
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 CharSeque...
protected final void onSubmit() { onClick(); } }
public final void onSubmit() { onClick(); } }
public void actionPerformed(ActionEvent event) { boolean forceReloadData = false; final Object eventSource = event.getSource(); if (eventSource == displayButton) { actionMakeGraph(); } else if (eventSource == saveGraph) { saveGraphToFile = true; tr...
public void actionPerformed(ActionEvent event) { boolean forceReloadData = false; final Object eventSource = event.getSource(); if (eventSource == displayButton) { actionMakeGraph(); } else if (eventSource == saveGraph) { saveGraphToFile = true; tr...
public XSDKeyrefTraverser (XSDHandler handler, XSAttributeChecker gAttrCheck) { super(handler, gAttrCheck); } void traverse(Element krElem, XSElementDecl element, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Checking ...
public XSDKeyrefTraverser (XSDHandler handler, XSAttributeChecker gAttrCheck) { super(handler, gAttrCheck); } void traverse(Element krElem, XSElementDecl element, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Checking ...
public XSDUniqueOrKeyTraverser (XSDHandler handler, XSAttributeChecker gAttrCheck) { super(handler, gAttrCheck); } void traverse(Element uElem, XSElementDecl element, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Chec...
public XSDUniqueOrKeyTraverser (XSDHandler handler, XSAttributeChecker gAttrCheck) { super(handler, gAttrCheck); } void traverse(Element uElem, XSElementDecl element, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Chec...
public void onComponentTag(final Component component, final ComponentTag tag) { String expr = tag.getAttributes().getString(WICKET_MESSAGE_ATTRIBUTE_NAME); if (!Strings.isEmpty(expr)) { expr = expr.trim(); String[] attrsAndKeys = expr.split(","); for (int i = 0; i < attrsAndKeys.length; i++) ...
public void onComponentTag(final Component component, final ComponentTag tag) { String expr = tag.getAttributes().getString(WICKET_MESSAGE_ATTRIBUTE_NAME); if (!Strings.isEmpty(expr)) { expr = expr.trim(); String[] attrsAndKeys = expr.split(","); for (int i = 0; i < attrsAndKeys.length; i++) ...
public JNIGeneratorAppUI(JNIGeneratorApp app) { this.app = app; } void cleanup() { } void generateStructsHeader () { StructsGenerator gen = new StructsGenerator(true); gen.setMainClass(app.getMainClass()); gen.setMetaData(app.getMetaData()); gen.setClasses(getSelectedClasses()); gen.generate(); } void generate...
public JNIGeneratorAppUI(JNIGeneratorApp app) { this.app = app; } void cleanup() { } void generateStructsHeader () { StructsGenerator gen = new StructsGenerator(true); gen.setMainClass(app.getMainClass()); gen.setMetaData(app.getMetaData()); gen.setClasses(getSelectedClasses()); gen.generate(); } void generate...
public void setInternalSubset(int doctypeIndex, int subsetIndex) { int chunk = doctypeIndex >> CHUNK_SHIFT; int index = doctypeIndex & CHUNK_MASK; int extraDataIndex = fNodeValue[chunk][index]; int echunk = extraDataIndex >> CHUNK_SHIFT; int eindex = extraDataIndex & ...
public void setInternalSubset(int doctypeIndex, int subsetIndex) { int chunk = doctypeIndex >> CHUNK_SHIFT; int index = doctypeIndex & CHUNK_MASK; int extraDataIndex = fNodeValue[chunk][index]; int echunk = extraDataIndex >> CHUNK_SHIFT; int eindex = extraDataIndex & ...
protected void configureResponse() { super.configureResponse(); final WebResponse response = getWebRequestCycle().getWebResponse(); response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-store, no-cache, max-age=0, must-revalidate"); }
protected void configureResponse() { super.configureResponse(); final WebResponse response = getWebRequestCycle().getWebResponse(); response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache, max-age=0, must-revalidate"); // no-store }
public void setOutputFormat( OutputFormat format ) { if ( format == null ) super.setOutputFormat( new OutputFormat( OutputFormat.Method.TEXT, null, false ) ); else super.setOutputFormat( format ); }
public void setOutputFormat( OutputFormat format ) { if ( format == null ) super.setOutputFormat( new OutputFormat( Method.TEXT, null, false ) ); else super.setOutputFormat( format ); }
public final void setSrcAttribute(final ComponentTag tag) { // If locale has changed from the initial locale used to attach image // resource, then we need to reload the resource in the new locale if ( resourceKind == null && (!Objects.equal(locale, component.getLocale()) || !Objects.equal(style, compo...
public final void setSrcAttribute(final ComponentTag tag) { // If locale has changed from the initial locale used to attach image // resource, then we need to reload the resource in the new locale if ( resourceKind == null && (!Objects.equal(locale, component.getLocale()) || !Objects.equal(style, compo...
protected CharSequence encode(RequestCycle requestCycle, IListenerInterfaceRequestTarget requestTarget) { final RequestListenerInterface rli = requestTarget.getRequestListenerInterface(); // Start string buffer for url final AppendingStringBuffer url = new AppendingStringBuffer(64); url.append(urlPrefix(r...
protected CharSequence encode(RequestCycle requestCycle, IListenerInterfaceRequestTarget requestTarget) { final RequestListenerInterface rli = requestTarget.getRequestListenerInterface(); // Start string buffer for url final AppendingStringBuffer url = new AppendingStringBuffer(64); url.append(urlPrefix(r...
public static void main(String [] args) { String html = "<HTML><HEAD><TITLE>HTML Test</TITLE></HEAD><BODY>"; for (int i = 0; i < 100; i++) html += "<P>This is line "+i+"</P>"; html += "</BODY></HTML>"; Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); ...
public static void main(String [] args) { String html = "<HTML><HEAD><TITLE>HTML Test</TITLE></HEAD><BODY>"; for (int i = 0; i < 100; i++) html += "<P>This is line "+i+"</P>"; html += "</BODY></HTML>"; Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); ...
public static void main(String [] args) { /* Relative links: use the HTML base tag */ String html = "<html><head>"+ "<base href=\"http://www.eclipse.org/swt/\" >"+ "<title>HTML Test</title></head>"+ "<body><a href=\"faq.php\">local link</a></body></html>"; Display display = new Display(); Shell shell = new S...
public static void main(String [] args) { /* Relative links: use the HTML base tag */ String html = "<html><head>"+ "<base href=\"http://www.eclipse.org/swt/\" >"+ "<title>HTML Test</title></head>"+ "<body><a href=\"faq.php\">local link</a></body></html>"; Display display = new Display(); Shell shell = new S...
public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setText("Main Window"); shell.setLayout(new FillLayout()); final Browser browser; try { browser = new Browser(shell, SWT.NONE); } catch (SWTError e) { System.out.println("Count not instantiate Br...
public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setText("Main Window"); shell.setLayout(new FillLayout()); final Browser browser; try { browser = new Browser(shell, SWT.NONE); } catch (SWTError e) { System.out.println("Could not instantiate Br...
public static void main(String [] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); shell.setText("Mozilla"); final Browser browser; try { browser = new Browser(shell, SWT.MOZILLA); } catch (SWTError e) { System.out.println("Count not inst...
public static void main(String [] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); shell.setText("Mozilla"); final Browser browser; try { browser = new Browser(shell, SWT.MOZILLA); } catch (SWTError e) { System.out.println("Could not inst...
String parentText = ""; //$NON-NLS-1$ /******************************************************************************* * 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 * w...
String parentText = ""; //$NON-NLS-1$ /******************************************************************************* * 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 * w...
public void wake () { synchronized (Device.class) { if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED); if (thread == Thread.currentThread ()) return; wakeThread (); } } void wakeThread () { //new pool? NSObject object = new NSObject().alloc().init(); object.performSelectorOnMainThread(OS.sel_release, nul...
public void wake () { synchronized (Device.class) { if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED); if (thread == Thread.currentThread ()) return; wakeThread (); } } void wakeThread () { //new pool? NSObject object = new NSObject().alloc().init(); object.performSelectorOnMainThread(OS.sel_release, nul...
public void testReceiveFile() throws Exception { addProxy("composent.com",3129,"foo\\bar","password"); testReceive(HTTP_RETRIEVE); }
public void testReceiveFile() throws Exception { //addProxy("composent.com",3129,"foo\\bar","password"); testReceive(HTTP_RETRIEVE); }
public void testComponentAttributesNotDoubleEscaped() throws Exception { WicketTester tester = new WicketTester(); tester.startPage(ButtonValuePage.class); String response = tester.getLastResponseAsString(); System.out.println(response); assertTrue("One of the pound entity representations is missing: &pound...
public void testComponentAttributesNotDoubleEscaped() throws Exception { WicketTester tester = new WicketTester(); tester.startPage(ButtonValuePage.class); String response = tester.getLastResponseAsString(); System.out.println(response); assertTrue("One of the pound entity representations is missing: &pound...
import org.aspectj.org.eclipse.jdt.internal.compiler.parser.TerminalTokens; /* ******************************************************************* * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). * All rights reserved. * This program and the accompanying materials are made available * under t...
import org.aspectj.org.eclipse.jdt.internal.compiler.parser.TerminalTokens; /* ******************************************************************* * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). * All rights reserved. * This program and the accompanying materials are made available * under t...
import org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult; /******************************************************************************* * Copyright (c) 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Co...
import org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult; /******************************************************************************* * Copyright (c) 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Co...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int width = 0, height = 0; if ((style & SWT.SEPARATOR) != 0) { if ((style & SWT.HORIZONTAL) != 0) { width = DEFAULT_WIDTH; height = 3; } else { width = 3; height = DEFAULT_HEIGHT; } } else { if (isImage && image !=...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int width = 0, height = 0; if ((style & SWT.SEPARATOR) != 0) { if ((style & SWT.HORIZONTAL) != 0) { width = DEFAULT_WIDTH; height = 3; } else { width = 3; height = DEFAULT_HEIGHT; } } else { if (isImage && image !=...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int width = wHint, height = hHint; if (wHint == SWT.DEFAULT) width = 0x7FFFFFFF; if (hHint == SWT.DEFAULT) height = 0x7FFFFFFF; int [] result = layout (width, height, false); Point extent = new Point (result [1], result [2]); if (w...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); int width = wHint, height = hHint; if (wHint == SWT.DEFAULT) width = 0x7FFFFFFF; if (hHint == SWT.DEFAULT) height = 0x7FFFFFFF; int [] result = layout (width, height, false); Point extent = new Point (result [1], result [2]); if (w...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); forceResize (); int clientX = OS.GTK_WIDGET_X (clientHandle); int clientY = OS.GTK_WIDGET_Y (clientHandle); x -= clientX; y -= clientY; width += clientX + clientX; height += clientX + clientY; return new Rectangle (x, y, width,...
public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget(); forceResize (); int clientX = OS.GTK_WIDGET_X (clientHandle); int clientY = OS.GTK_WIDGET_Y (clientHandle); x -= clientX; y -= clientY; width += clientX + clientX; height += clientX + clientY; return new Rectangle (x, y, width,...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0; if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0; if ((style & SWT.SEPARATOR) != 0) { if ((style & SWT.HORIZONTAL) != 0) { if (wHint == SWT.DEFAULT) wHint = DEFAULT_WIDTH; } el...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0; if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0; if ((style & SWT.SEPARATOR) != 0) { if ((style & SWT.HORIZONTAL) != 0) { if (wHint == SWT.DEFAULT) wHint = DEFAULT_WIDTH; } el...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0; if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0; int width, height; int layoutWidth = layout.getWidth (); //TEMPORARY CODE if (wHint == 0) { layout.setWidth (1); Rectangle rec...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0; if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0; int width, height; int layoutWidth = layout.getWidth (); //TEMPORARY CODE if (wHint == 0) { layout.setWidth (1); Rectangle rec...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0; if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0; int border = getBorderWidth (); int width = border * 2, height = border * 2; if ((style & SWT.HORIZONTAL) != 0) { width += DEFAUL...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget (); if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0; if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0; int border = getBorderWidth (); int width = border * 2, height = border * 2; if ((style & SWT.HORIZONTAL) != 0) { width += DEFAUL...
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0; if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0; Point size = computeNativeSize(handle, wHint, hHint, changed); if ((style & SWT.HORIZONTAL) != 0) { if (wHint == SWT.DEFAULT) size....
public Point computeSize (int wHint, int hHint, boolean changed) { checkWidget(); if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0; if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0; Point size = computeNativeSize(handle, wHint, hHint, changed); if ((style & SWT.HORIZONTAL) != 0) { if (wHint == SWT.DEFAULT) size....
public ToolBar (Composite parent, int style) { super (parent, checkStyle (style)); /* * Ensure that either of HORIZONTAL or VERTICAL is set. * NOTE: HORIZONTAL and VERTICAL have the same values * as H_SCROLL and V_SCROLL so it is necessary to first * clear these bits to avoid scroll bars and then reset * the bit...
public ToolBar (Composite parent, int style) { super (parent, checkStyle (style)); /* * Ensure that either of HORIZONTAL or VERTICAL is set. * NOTE: HORIZONTAL and VERTICAL have the same values * as H_SCROLL and V_SCROLL so it is necessary to first * clear these bits to avoid scroll bars and then reset * the bit...
public static void load(IHeaderResponse response) { response.renderJavascriptReference(getYuiLoader()); }
public static void load(IHeaderResponse response) { response.renderJavaScriptReference(getYuiLoader()); }
public void renderHead(IHeaderResponse response) { response.renderCSSReference(new CompressedResourceReference(DebugBar.class, "wicket-debugbar.css")); response.renderJavascriptReference(new JavaScriptResourceReference(DebugBar.class, "wicket-debugbar.js")); }
public void renderHead(IHeaderResponse response) { response.renderCSSReference(new CompressedResourceReference(DebugBar.class, "wicket-debugbar.css")); response.renderJavaScriptReference(new JavaScriptResourceReference(DebugBar.class, "wicket-debugbar.js")); }
public void renderHead(Component component, IHeaderResponse response) { if (AjaxRequestTarget.get() != null) { final String javascript = "var e = Wicket.$('" + getMarkupId() + "'); if (e != null && typeof(e.parentNode) != 'undefined') e.parentNode.removeChild(e);"; response.renderJavascript(javascript,...
public void renderHead(Component component, IHeaderResponse response) { if (AjaxRequestTarget.get() != null) { final String javascript = "var e = Wicket.$('" + getMarkupId() + "'); if (e != null && typeof(e.parentNode) != 'undefined') e.parentNode.removeChild(e);"; response.renderJavaScript(javascript,...
protected void handleCallbackScript(final IHeaderResponse response, final String callbackScript) { response.renderOnDomReadyJavascript(callbackScript); }
protected void handleCallbackScript(final IHeaderResponse response, final String callbackScript) { response.renderOnDomReadyJavaScript(callbackScript); }
public void renderHead(IHeaderResponse response) { response.renderJavascriptReference(JAVASCRIPT); ResourceReference css = getCSS(); if (css != null) { response.renderCSSReference(css); } }
public void renderHead(IHeaderResponse response) { response.renderJavaScriptReference(JAVASCRIPT); ResourceReference css = getCSS(); if (css != null) { response.renderCSSReference(css); } }
public String getString() { IJavaScriptCompressor compressor = Application.get() .getResourceSettings() .getJavascriptCompressor();
public String getString() { IJavaScriptCompressor compressor = Application.get() .getResourceSettings() .getJavaScriptCompressor();
public void renderHead(IHeaderResponse response) { response.renderCSSReference(new PackageResourceReference(PanelWithHeaderPart.class, "test.css")); response.renderJavascriptReference(new JavaScriptResourceReference( PanelWithHeaderPart.class, "test.js")); }
public void renderHead(IHeaderResponse response) { response.renderCSSReference(new PackageResourceReference(PanelWithHeaderPart.class, "test.css")); response.renderJavaScriptReference(new JavaScriptResourceReference( PanelWithHeaderPart.class, "test.js")); }
public TestElement getReplacement() { if (selectedNode != null) { return selectedNode.createTestElement(); } else { return this; } }
public TestElement getReplacement() { if (selectedNode != null) { return selectedNode.getTestElement(); } else { return this; } }
private void buildNodesModel( JMeterTreeNode node, String parent_name, int level) { String seperator = " > "; if (node != null) { for (int i = 0; i < node.getChildCount(); i++) { StringBuffer name = new StringBuffer(); ...
private void buildNodesModel( JMeterTreeNode node, String parent_name, int level) { String seperator = " > "; if (node != null) { for (int i = 0; i < node.getChildCount(); i++) { StringBuffer name = new StringBuffer(); ...
public void doAction(ActionEvent e) { GuiPackage guiPackage = GuiPackage.getInstance(); if (e.getActionCommand().equals(CLEAR)) { JMeterGUIComponent model = guiPackage.getCurrentGui(); try { ((Clearable) model).clear(); } ...
public void doAction(ActionEvent e) { GuiPackage guiPackage = GuiPackage.getInstance(); if (e.getActionCommand().equals(CLEAR)) { JMeterGUIComponent model = guiPackage.getCurrentGui(); try { ((Clearable) model).clear(); } ...
public static void removeNode(JMeterTreeNode node) { GuiPackage.getInstance().getTreeModel().removeNodeFromParent(node); GuiPackage.getInstance().removeNode(node.createTestElement()); }
public static void removeNode(JMeterTreeNode node) { GuiPackage.getInstance().getTreeModel().removeNodeFromParent(node); GuiPackage.getInstance().removeNode(node.getTestElement()); }
private void buildNodesModel( JMeterTreeNode node, String parent_name, int level) { String seperator = " > "; if (node != null) { for (int i = 0; i < node.getChildCount(); i++) { StringBuffer name = new StringBuffer(); ...
private void buildNodesModel( JMeterTreeNode node, String parent_name, int level) { String seperator = " > "; if (node != null) { for (int i = 0; i < node.getChildCount(); i++) { StringBuffer name = new StringBuffer(); ...
public void m() { System.out.println("m"); } } class C2 {} class C3 extends C2 {} interface I { void m(); } aspect A { declare parents: C2 implements I; // CE can't implement declare parents: C2 extends C3; // CE circular declare parents: C1 extends C1; // CE self } No newline at end of file
public void m() { System.out.println("m"); } } class C2 {} class C3 extends C2 {} interface I { void m(); } aspect A { declare parents: C2 implements I; // CE can't implement declare parents: C2 extends C3; // CE circular declare parents: C1 extends C1; // not considered a CE, just does nothing } No newline ...
public void testDeclareParentsFail() throws IOException { CommandTestCase.checkCompile("src1/ParentsFail.java", new int[] {3, 11, 19, 21}); }
public void testDeclareParentsFail() throws IOException { CommandTestCase.checkCompile("src1/ParentsFail.java", new int[] {3, 11, 19}); }
public String toString() { return fTargetNamespace+","+fName; }
public String toString() { return fTargetNamespace+":"+fName; }
public Task createProperty() { Property p=(Property)p1.createTask("property"); p.setUserProperty(true); properties.addElement( p ); return p; } }
public Property createProperty() { Property p=(Property)p1.createTask("property"); p.setUserProperty(true); properties.addElement( p ); return p; } }
protected void writeHeader(final DataOutputStream out, int msgSize) throws IOException { byte flags = 0; if (funcID == SRVREG) { flags |= 0x40; } if (multicast) { flags |= 0x20; } if (!tcp && msgSize > SLPCore.CONFIG.getMTU()) { flags |= 0x80; } out.write(SLP_VERSION); out.write(funcID); ...
protected void writeHeader(final DataOutputStream out, int msgSize) throws IOException { byte flags = 0; if (funcID == SRVREG) { flags |= 0x40; } if (multicast) { flags |= 0x20; } if (!tcp && msgSize > SLPCore.CONFIG.getMTU()) { flags |= 0x80; } out.write(SLP_VERSION); out.write(funcID); ...
protected IPageSource getPageSource() { if (pageSource != null) { return pageSource; } if (Application.exists()) { return Application.get().getEncoderContext(); } else { throw new IllegalStateException( "No application is bound to current thread. Call setPageSource() to manually assign pa...
protected IPageSource getPageSource() { if (pageSource != null) { return pageSource; } if (Application.exists()) { return Application.get().getMapperContext(); } else { throw new IllegalStateException( "No application is bound to current thread. Call setPageSource() to manually assign pag...
protected IMapperContext getContext() { return Application.get().getEncoderContext(); }
protected IMapperContext getContext() { return Application.get().getMapperContext(); }
public JNIGeneratorAppUI(JNIGeneratorApp app) { this.app = app; } void cleanup() { display.dispose(); } void generateStructsHeader () { StructsGenerator gen = new StructsGenerator(true); gen.setMainClass(app.getMainClass()); gen.setMetaData(app.getMetaData()); gen.setClasses(getSelectedClasses()); gen.generate...
public JNIGeneratorAppUI(JNIGeneratorApp app) { this.app = app; } void cleanup() { display.dispose(); } void generateStructsHeader () { StructsGenerator gen = new StructsGenerator(true); gen.setMainClass(app.getMainClass()); gen.setMetaData(app.getMetaData()); gen.setClasses(getSelectedClasses()); gen.generate...
private static void concatDescriptions(Project project, Target t, StringBuffer description) { if (t == null) { return; } Vector tasks = findElementInTarget(project, t, "description"); if (tasks == null) { return; ...
private static void concatDescriptions(Project project, Target t, StringBuffer description) { if (t == null) { return; } Vector tasks = findElementInTarget(project, t, "description"); if (tasks == null) { return; ...
public void setVisible (boolean visible) { checkWidget(); int /*long*/ topHandle = topHandle(); if ((OS.GTK_WIDGET_VISIBLE (topHandle) == visible)) return; if (visible) { /* * It is possible (but unlikely), that application * code could have disposed the widget in the show * event. If this happens, just re...
public void setVisible (boolean visible) { checkWidget(); int /*long*/ topHandle = topHandle(); if ((OS.GTK_WIDGET_VISIBLE (topHandle) == visible)) return; if (visible) { /* * It is possible (but unlikely), that application * code could have disposed the widget in the show * event. If this happens, just re...
public void putBrokerFactoryAliases(Map aliases); }
public void putBrokerFactoryAliases(Map<String, String> aliases); }
private JPanel createParameterPanel() { argsPanel = new ArgumentsPanel(); return argsPanel; }
private JPanel createParameterPanel() { argsPanel = new ArgumentsPanel(JMeterUtils.getResString("paramtable")); return argsPanel; }
public void connect(ID connectID, IConnectContext connectContext) throws ContainerConnectException { if (connection != null) throw new ContainerConnectException(Messages.IRCRootContainer_Exception_Already_Connected); if (connectID == null) throw new ContainerConnectException(Messages.IRCRootContainer_Excepti...
public void connect(ID connectID, IConnectContext connectContext) throws ContainerConnectException { if (connection != null) throw new ContainerConnectException(Messages.IRCRootContainer_Exception_Already_Connected); if (connectID == null) throw new ContainerConnectException(Messages.IRCRootContainer_Excepti...
protected void create (DeviceData data) { checkSubclass (); checkDisplay(thread = Thread.currentThread (), false); createDisplay (data); register (); if (Default == null) Default = this; } synchronized void createDisplay (DeviceData data) { if (!OS.g_thread_supported ()) { OS.g_thread_init (0); } OS.gtk_set_...
protected void create (DeviceData data) { checkSubclass (); checkDisplay(thread = Thread.currentThread (), false); createDisplay (data); register (); if (Default == null) Default = this; } synchronized void createDisplay (DeviceData data) { if (!OS.g_thread_supported ()) { OS.g_thread_init (0); } OS.gtk_set_...
public int add (Image image) { int index = 0; while (index < images.length) { if (images [index] != null) { if (images [index].isDisposed ()) { OS.g_object_unref (pixbufs [index]); images [index] = null; pixbufs [index] = 0; } } if (images [index] == null) break; index++; } int [] w = new ...
public int add (Image image) { int index = 0; while (index < images.length) { if (images [index] != null) { if (images [index].isDisposed ()) { OS.g_object_unref (pixbufs [index]); images [index] = null; pixbufs [index] = 0; } } if (images [index] == null) break; index++; } int [] w = new ...
IResourceStream find(final Class< ? > clazz, final String pathname); /* * 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 ...
IResourceStream find(final Class< ? > clazz, final String pathname); /* * 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 ...
public void doAction(ActionEvent e) { ActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.CHECK_DIRTY)); if (GuiPackage.getInstance().isDirty()) { int chosenOption = JOptionPane.showConfirmDialog(GuiPackage.getInstance().getMainFrame(), JMeterUtil...
public void doAction(ActionEvent e) { ActionRouter.getInstance().doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.CHECK_DIRTY)); if (GuiPackage.getInstance().isDirty()) { int chosenOption = JOptionPane.showConfirmDialog(GuiPackage.getInstance().getMainFrame(), JMeterUtil...
protected void handleIQEvent(IQEvent evt) { IQ iq = evt.getIQ(); if (iq instanceof RosterPacket) { // Roster packet...report to UI RosterPacket rosterPacket = (RosterPacket) iq; if (rosterPacket.getType() == IQ.Type.SET || rosterPacket.getType() == IQ.Type.RESULT) { for (Iterator i = rosterPacket...
protected void handleIQEvent(IQEvent evt) { IQ iq = evt.getIQ(); if (iq instanceof RosterPacket) { // Roster packet...report to UI RosterPacket rosterPacket = (RosterPacket) iq; if (rosterPacket.getType() == IQ.Type.SET || rosterPacket.getType() == IQ.Type.RESULT) { for (Iterator i = rosterPacket...
public void setToolTipText (String string) { checkWidget(); toolTipText = string; view.setToolTip(NSString.stringWith(string)); }
public void setToolTipText (String string) { checkWidget(); toolTipText = string; view.setToolTip(string != null ? NSString.stringWith(string) : null); }
public void testInheritFilterset() { project.executeTarget("testinheritfilterset"); }
public void testInheritFilterset() { project.executeTarget("testinheritreffilterset"); }
public String filter(String token) { init(); setToken(token); runner.executeScript("<ANT-Filter>"); return getToken(); }
public String filter(String token) { init(); setToken(token); runner.executeScript("ant_filter"); return getToken(); }
public boolean isSelected(File basedir, String filename, File file) { init(); setSelected(true); this.file = file; this.basedir = basedir; this.filename = filename; runner.addBean("basedir", basedir); runner.addBean("filename", filename); runner.addBea...
public boolean isSelected(File basedir, String filename, File file) { init(); setSelected(true); this.file = file; this.basedir = basedir; this.filename = filename; runner.addBean("basedir", basedir); runner.addBean("filename", filename); runner.addBea...
public Object oneTransition (QName elementName, int[] currentState, SubstitutionGroupHandler subGroupHandler){ // error state if (currentState[0] == XSCMValidator.FIRST_ERROR) { currentState[0] = XSCMValidator.SUBSEQUENT_ERROR; return null; } currentState[0]...
public Object oneTransition (QName elementName, int[] currentState, SubstitutionGroupHandler subGroupHandler){ // error state if (currentState[0] < 0) { currentState[0] = XSCMValidator.SUBSEQUENT_ERROR; return null; } currentState[0] = XSCMValidator.FIRST_ER...
public void testIncrementalOption() throws InvalidInputException { AjBuildConfig config = command.genBuildConfig(new String[] { "-incremental" }, messageWriter); assertTrue( "didn't specify source root", outputWriter.getContents().indexOf("specify a source root") != -1); outputWriter.flushBuffer();...
public void testIncrementalOption() throws InvalidInputException { AjBuildConfig config = command.genBuildConfig(new String[] { "-incremental" }, messageWriter); assertTrue( "didn't specify source root", outputWriter.getContents().indexOf("specify a source root") != -1); outputWriter.flushBuffer();...
public HeaderManager getHeaderManager() { HeaderManager manager = new HeaderManager(); Iterator keys = headers.keySet().iterator(); while (keys.hasNext()) { String key = (String) keys.next(); if (!key.equals("proxy-connection") && !key.equals("content-length") && !key.equals("accept-encoding")) { ...
public HeaderManager getHeaderManager() { HeaderManager manager = new HeaderManager(); Iterator keys = headers.keySet().iterator(); while (keys.hasNext()) { String key = (String) keys.next(); if (!key.equals("proxy-connection") && !key.equals("content-length") /*&& !key.equals("accept-encoding")*/) {...
public void create (Composite parent, int style) { delegate = new MozillaDelegate (browser); final Display display = parent.getDisplay (); int /*long*/[] result = new int /*long*/[1]; if (!Initialized) { boolean initLoaded = false; boolean IsXULRunner = false; String greInitialized = System.getProperty (GRE...
public void create (Composite parent, int style) { delegate = new MozillaDelegate (browser); final Display display = parent.getDisplay (); int /*long*/[] result = new int /*long*/[1]; if (!Initialized) { boolean initLoaded = false; boolean IsXULRunner = false; String greInitialized = System.getProperty (GRE...
protected String normalize(Object content, short ws) { if (content == null) return null; // If pattern is not defined, we can skip some of the normalization. // Otherwise we have to normalize the data for correct result of // pattern validation. if ( (fFacetsDefined & FACET_PATTERN ) == 0 ) { short ...
protected String normalize(Object content, short ws) { if (content == null) return null; // If pattern is not defined, we can skip some of the normalization. // Otherwise we have to normalize the data for correct result of // pattern validation. if ( (fFacetsDefined & FACET_PATTERN ) == 0 ) { short ...
* public void dragFinished(DragSourceEvent event) { * // A Move operation has been performed so remove the data * // from the source * if (event.detail == DND.DROP_MOVE) * label.setText(""); * } * }); * </pre></code> * * * <dl> * <dt><b>Styles</b></dt> <dd>DND.DROP_NONE, DND.DROP_COPY, DND.DROP_M...
* public void dragFinished(DragSourceEvent event) { * // A Move operation has been performed so remove the data * // from the source * if (event.detail == DND.DROP_MOVE) * label.setText(""); * } * }); * </pre></code> * * * <dl> * <dt><b>Styles</b></dt> <dd>DND.DROP_NONE, DND.DROP_COPY, DND.DROP_M...
public Sample addSample(SampleResult res) { Sample s = null; synchronized (calculator) { long byteslength = 0; // in case the sampler doesn't return the contents // we see if the bytes was set if (res.getResponseData() == null || res.getResponseData().length == 0) { byteslength = res.getContentLeng...
public Sample addSample(SampleResult res) { Sample s = null; synchronized (calculator) { long byteslength = 0; // in case the sampler doesn't return the contents // we see if the bytes was set if (res.getResponseData() == null || res.getResponseData().length == 0) { byteslength = res.getBytes(); ...
public ContextTypeRegistry getContextTypeRegistry() { if (contextTypeRegistry == null) { contextTypeRegistry = new ContributionContextTypeRegistry(); contextTypeRegistry.addContextType("org.eclipse.internal.xtend.xpand2.editor.context.Default"); } return contextTypeRegistry; }
public ContextTypeRegistry getContextTypeRegistry() { if (contextTypeRegistry == null) { contextTypeRegistry = new ContributionContextTypeRegistry(); contextTypeRegistry.addContextType("org.eclipse.xpand.ui.editor.context.Default"); } return contextTypeRegistry; }
public ScrollBar getVerticalBar () { checkWidget(); return verticalBar; } boolean hooksKeys () { return hooks (SWT.KeyDown) || hooks (SWT.KeyUp) || hooks (SWT.Traverse); } boolean isTrim (NSView view) { if (scrollView != null) { if (scrollView.id == view.id) return true; if (horizontalBar != null && horizonta...
public ScrollBar getVerticalBar () { checkWidget(); return verticalBar; } boolean hooksKeys () { return hooks (SWT.KeyDown) || hooks (SWT.KeyUp) || hooks (SWT.Traverse); } boolean isTrim (NSView view) { if (scrollView != null) { if (scrollView.id == view.id) return true; if (horizontalBar != null && horizonta...
public enum TypeEditor { FileEditor {@Override PropertyEditor getInstance(PropertyDescriptor descriptor) { return new FileEditor(descriptor); }}, PasswordEditor {@Override PropertyEditor getInstance(PropertyDescriptor descriptor) { return new PasswordEditor(); }}, TableEditor {@Override PropertyEdito...
public enum TypeEditor { FileEditor {@Override PropertyEditor getInstance(PropertyDescriptor descriptor) { return new FileEditor(descriptor); }}, PasswordEditor {@Override PropertyEditor getInstance(PropertyDescriptor descriptor) { return new PasswordEditor(); }}, TableEditor {@Override PropertyEdito...