buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private void fetchAuthMechanisms() { List list = new LinkedList(); IDefaultItem serverItem = getCurrentDialogSettings(); if (isPopAccount()) { //user may have changed hostname. use dialog settings instead of //stored settings POP3Store store = new POP3St...
private void fetchAuthMechanisms() { List list = new LinkedList(); IDefaultItem serverItem = getCurrentDialogSettings(); if (isPopAccount()) { //user may have changed hostname. use dialog settings instead of //stored settings POP3Store store = new POP3St...
public IType[] getBuiltClasses(IPath path) { Vector vResult = new Vector(); // try { String extension = path.getFileExtension().toLowerCase(); if (extension.equals("java"/*nonNLS*/) || extension.equals("class"/*nonNLS*/)) { IPath pkgPath = path.removeLastSegments(1); IPackage pkg = fState.getPathMap()...
public IType[] getBuiltClasses(IPath path) { Vector vResult = new Vector(); // try { String extension = path.getFileExtension().toLowerCase(); if (extension.equals("java") || extension.equals("class")) { //$NON-NLS-1$ //$NON-NLS-2$ IPath pkgPath = path.removeLastSegments(1); IPackage pkg = fState.getP...
public TypeBinding resolveType(BlockScope scope) { // implicit this constant = NotAConstant; if (this != ThisImplicit && !checkAccess(scope.methodScope())) return null; return scope.enclosingSourceType(); }
public TypeBinding resolveType(BlockScope scope) { // implicit this constant = NotAConstant; if (this != ThisImplicit && !checkAccess(scope.methodScope())) return null; return this.expressionType = scope.enclosingSourceType(); }
public int beforeBody( Request request, Response response ) { HttpDate date = new HttpDate(System.currentTimeMillis()); response.setHeader("Date", date.toString()); response.setHeader("Status", Integer.toString(response.getStatus())); response.setHeader("Content-Type", response.getContentType()); Strin...
public int beforeBody( Request request, Response response ) { HttpDate date = new HttpDate(System.currentTimeMillis()); response.setHeader("Date", date.toString()); // response.setHeader("Status", Integer.toString(response.getStatus())); response.setHeader("Content-Type", response.getContentType()); S...
protected void toString(int tab, StringBuffer buffer) { buffer.append(this.tabString(tab)); buffer.append("(working copy)\n"); //$NON-NLS-1$ super.toString(tab, buffer); }
protected void toString(int tab, StringBuffer buffer) { buffer.append(this.tabString(tab)); buffer.append("(working copy)\n"/*nonNLS*/); super.toString(tab, buffer); }
public String toString() { return "Member type : "/*nonNLS*/ + new String(sourceName()) + " "/*nonNLS*/ + super.toString(); }
public String toString() { return "Member type : " + new String(sourceName()) + " " + super.toString(); //$NON-NLS-2$ //$NON-NLS-1$ }
protected void notifyModelChanged(MElementEvent mee) { // TODO: Change the project dirty flag outside this package // using an event listener. // TODO: post an event of some type. // // Should this be a property change event? // if (mee.getAddedValue() != null || mee.getRemovedValue() != null || !mee...
protected void notifyModelChanged(MElementEvent mee) { // TODO: Change the project dirty flag outside this package // using an event listener. // TODO: post an event of some type. // // Should this be a property change event? // if (mee.getAddedValue() != null || mee.getRemovedValue() != null || mee....
public void invoke( RunData data, ValveContext context ) throws IOException, TurbineException { Long start = (Long)data.getRequest().getAttribute(KEY); if (start == null) { data.getRequest() .setAttribute(KEY, new Long(System.currentTimeMillis())); ...
public void invoke( RunData data, ValveContext context ) throws IOException, TurbineException { Long start = (Long)data.getRequest().getAttribute(KEY); if (start == null) { data.getRequest() .setAttribute(KEY, new Long(System.currentTimeMillis())); ...
private void initDefaultInterceptors() { // Explicitely set up all the interceptors we need. // The order is important ( like in apache hooks, it's a chain !) // no AutoSetup ! // set workdir, engine header, auth Servlet, error servlet, loader WebXmlReader webXmlI=new WebXmlReader(); webXmlI.setValidate( ...
private void initDefaultInterceptors() { // Explicitely set up all the interceptors we need. // The order is important ( like in apache hooks, it's a chain !) // no AutoSetup ! // set workdir, engine header, auth Servlet, error servlet, loader WebXmlReader webXmlI=new WebXmlReader(); webXmlI.setValidate( ...
public void loadOptionsFromXml(IMailbox folder) { XmlElement parent = getConfigNode(folder); IDefaultItem item = new DefaultItem(parent); TableController tableController = ((TableController)((TableViewOwner) getMediator()).getTableController()); TableView view = tableController.getView(); // should we re-...
public void loadOptionsFromXml(IMailbox folder) { XmlElement parent = getConfigNode(folder); IDefaultItem item = new DefaultItem(parent); TableController tableController = ((TableController)((TableViewOwner) getMediator()).getTableController()); TableView view = tableController.getView(); // should we re-...
public SyntheticFieldBinding addSyntheticFieldForSwitchEnum(char[] fieldName, String key) { if (synthetics == null) synthetics = new HashMap[4]; if (synthetics[FIELD_EMUL] == null) synthetics[FIELD_EMUL] = new HashMap(5); SyntheticFieldBinding synthField = (SyntheticFieldBinding) synthetics[FIELD_EMUL].get(key)...
public SyntheticFieldBinding addSyntheticFieldForSwitchEnum(char[] fieldName, String key) { if (synthetics == null) synthetics = new HashMap[4]; if (synthetics[FIELD_EMUL] == null) synthetics[FIELD_EMUL] = new HashMap(5); SyntheticFieldBinding synthField = (SyntheticFieldBinding) synthetics[FIELD_EMUL].get(key)...
private void initialize() { nameField = new UMLTextField2(new UMLModelElementNameDocument()); stereotypeBox = new UMLComboBox2(stereotypeComboBoxModel, ActionSetModelElementStereotype.SINGLETON); namespaceComboBox = new UMLComboBox2(namespaceComboBoxModel, ActionSetModelElementNamespace.SING...
private void initialize() { nameField = new UMLTextField2(new UMLModelElementNameDocument()); stereotypeBox = new UMLComboBox2(stereotypeComboBoxModel, ActionSetModelElementStereotype.SINGLETON); namespaceComboBox = new UMLComboBox2(namespaceComboBoxModel, ActionSetModelElementNamespace.SING...
public void discardJobs(String jobFamily) { if (VERBOSE) JobManager.verbose("DISCARD background job family - " + jobFamily); //$NON-NLS-1$ boolean wasEnabled = isEnabled(); try { IJob currentJob; // cancel current job if it belongs to the given family synchronized(this){ currentJob = this.cur...
public void discardJobs(String jobFamily) { if (VERBOSE) JobManager.verbose("DISCARD background job family - " + jobFamily); //$NON-NLS-1$ boolean wasEnabled = isEnabled(); try { IJob currentJob; // cancel current job if it belongs to the given family synchronized(this){ currentJob = this.cur...
public void valueChanged(ListSelectionEvent lse) { if (lse.getValueIsAdjusting()) return; Object src = lse.getSource(); if (src != _table.getSelectionModel()) { System.out.println("src = " + src); return; } //System.out.println("got valueChanged from " + src); int row = lse.getFirs...
public void valueChanged(ListSelectionEvent lse) { if (lse.getValueIsAdjusting()) return; Object src = lse.getSource(); if (src != _table.getSelectionModel()) { System.out.println("src = " + src); return; } //System.out.println("got valueChanged from " + src); int row = _table.getS...
public String toString() { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < size; i++) { buffer.append(elements[i]).append("\n"/*nonNLS*/); } return buffer.toString(); }
public String toString() { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < size; i++) { buffer.append(elements[i]).append("\n"); //$NON-NLS-1$ } return buffer.toString(); }
public int match(MessageSend node, MatchingNodeSet nodeSet) { if (!this.pattern.findReferences) return IMPOSSIBLE_MATCH; if (!matchesName(this.pattern.selector, node.selector)) return IMPOSSIBLE_MATCH; if (this.pattern.parameterSimpleNames != null && this.pattern.shouldCountParameter()) { int length = this.patter...
public int match(MessageSend node, MatchingNodeSet nodeSet) { if (!this.pattern.findReferences) return IMPOSSIBLE_MATCH; if (!matchesName(this.pattern.selector, node.selector)) return IMPOSSIBLE_MATCH; if (this.pattern.parameterSimpleNames != null && (this.pattern.shouldCountParameter() || ((node.bits & ASTNode.Ins...
protected void executeOperation() throws JavaModelException { // open the working copy now to ensure contents are that of the current state of this element CompilationUnit workingCopy = getWorkingCopy(); JavaModelManager.getJavaModelManager().getPerWorkingCopyInfo(workingCopy, this.path, true/*create if needed*...
protected void executeOperation() throws JavaModelException { // open the working copy now to ensure contents are that of the current state of this element CompilationUnit workingCopy = getWorkingCopy(); JavaModelManager.getJavaModelManager().getPerWorkingCopyInfo(workingCopy, this.path, true/*create if needed*...
protected char[] getClassName() { return CharOperation.concat(CODE_SNIPPET_CLASS_NAME_PREFIX, Integer.toString(this.context.CODE_SNIPPET_COUNTER + 1).toCharArray()); } /** * @see Evaluator. */ Compiler getCompiler(ICompilerRequestor requestor) { Compiler compiler = null; if (!DEVELOPMENT_MODE) { // If we are not...
protected char[] getClassName() { return CharOperation.concat(CODE_SNIPPET_CLASS_NAME_PREFIX, Integer.toString(this.context.CODE_SNIPPET_COUNTER + 1).toCharArray()); } /** * @see Evaluator. */ Compiler getCompiler(ICompilerRequestor requestor) { Compiler compiler = null; if (!DEVELOPMENT_MODE) { // If we are not...
public String toString() { return "Unresolved type "/*nonNLS*/ + ((compoundName != null) ? CharOperation.toString(compoundName) : "UNNAMED"/*nonNLS*/); }
public String toString() { return "Unresolved type " + ((compoundName != null) ? CharOperation.toString(compoundName) : "UNNAMED"); //$NON-NLS-1$ //$NON-NLS-2$ }
package org.apache.log4j.spi; /** Copyright (c) 2000, Ceki Gulcu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
package org.apache.log4j.spi; /** Copyright (c) 2000, Ceki Gulcu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
public static boolean isValidFolderNameForPackage(String folderName) { return folderName.indexOf('.') == -1; }
public static boolean isValidFolderNameForPackage(String folderName) { return JavaConventions.validateIdentifier(folderName).isOK(); }
public String toString() { return getDeclaringClass().getName() + "." + getName(); //$NON-NLS-1$ }
public String toString() { return getDeclaringClass().getName() + "."/*nonNLS*/ + getName(); }
public static void main(String[] args) { Layout layout = new MyPatternLayout("[counter=%.10#] - %m%n"); Category cat = Category.getInstance("some.cat"); cat.addAppender(new FileAppender(layout, System.out)); cat.debug("Hello, log"); cat.info("Hello again..."); }
public static void main(String[] args) { Layout layout = new MyPatternLayout("[counter=%.10#] - %m%n"); Category cat = Category.getInstance("some.cat"); cat.addAppender(new ConsoleAppender(layout, ConsoleAppender.SYSTEM_OUT)); cat.debug("Hello, log"); cat.info("Hello again..."); }
private void hideView(Perspective persp, IViewReference ref) { // Hide the part. persp.hideView(ref); // If the part is no longer reference then dispose it. boolean exists = viewFactory.hasView(ref.getId()); if (!exists) { firePartClosed(ref); disposePart(ref); activationList.remove(ref); /* ...
private void hideView(Perspective persp, IViewReference ref) { // Hide the part. persp.hideView(ref); // If the part is no longer reference then dispose it. boolean exists = viewFactory.hasView(ref.getId()); if (!exists) { firePartClosed(ref); disposePart(ref); activationList.remove(ref); /* ...
private void checkCompilerArgs(String[] args) { for (int i = 0; i < args.length; i++) { if (args[i].charAt(0) == '@') { try { char[] content = Util.getFileCharContent(new File(args[i].substring(1)), null); int offset = 0; int prefixLength = ADAPTER_PREFIX.length; while ((offset = CharOpera...
private void checkCompilerArgs(String[] args) { for (int i = 0; i < args.length; i++) { if (args[i].charAt(0) == '@') { try { char[] content = Util.getFileCharContent(new File(args[i].substring(1)), null); int offset = 0; int prefixLength = ADAPTER_PREFIX.length; while ((offset = CharOpera...
public ICompilationUnit getCompilationUnit() { return ((JavaElement)getParent()).getCompilationUnit(); }
public ICompilationUnit getCompilationUnit() { return (ICompilationUnit) getAncestor(COMPILATION_UNIT); }
public void testRepeatedNegative() { try { Test test= new RepeatedTest(fSuite, -1); } catch (IllegalArgumentException e) { return; } fail("Should throw an IllegalArgumentException"); }
public void testRepeatedNegative() { try { new RepeatedTest(fSuite, -1); } catch (IllegalArgumentException e) { return; } fail("Should throw an IllegalArgumentException"); }
private void getProblemsForPath(IPath path, Vector vResults) { for (Enumeration e = fState.getProblemReporter().getProblemKeys(); e.hasMoreElements();) { SourceEntry sEntry = (SourceEntry)e.nextElement(); IPath sEntryPath = sEntry.getPath(); if (path.isPrefixOf(sEntryPath)) { String extension = sEntryPath.get...
private void getProblemsForPath(IPath path, Vector vResults) { for (Enumeration e = fState.getProblemReporter().getProblemKeys(); e.hasMoreElements();) { SourceEntry sEntry = (SourceEntry)e.nextElement(); IPath sEntryPath = sEntry.getPath(); if (path.isPrefixOf(sEntryPath)) { String extension = sEntryPath.get...
public String individualToString(){ return "Switch flow context"; //$NON-NLS-1$ }
public String individualToString(){ return "Switch flow context"/*nonNLS*/; }
protected Initializer(JavaElement parent, int count) { super(parent, ""); //$NON-NLS-1$ // 0 is not valid: this first occurrence is occurrence 1. if (count <= 0) throw new IllegalArgumentException(); this.occurrenceCount = count; }
protected Initializer(JavaElement parent, int count) { super(parent); // 0 is not valid: this first occurrence is occurrence 1. if (count <= 0) throw new IllegalArgumentException(); this.occurrenceCount = count; }
package org.eclipse.ui.commands; /******************************************************************************* * Copyright (c) 2000, 2003 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...
package org.eclipse.ui.commands; /******************************************************************************* * Copyright (c) 2000, 2003 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...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; if (!checkAccess(scope.methodScope())) return null; SourceTypeBinding enclosingTb = scope.enclosingSourceType(); if (scope.isJavaLangObject(enclosingTb)) { scope.problemReporter().cannotUseSuperInJavaLangObject(this); return null; } ...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; if (!checkAccess(scope.methodScope())) return null; SourceTypeBinding enclosingTb = scope.enclosingSourceType(); if (scope.isJavaLangObject(enclosingTb)) { scope.problemReporter().cannotUseSuperInJavaLangObject(this); return null; } ...
private Map data; TypeMap() { data = new HashMap(3); }
private Map data; TypeMap() { data = new HashMap(2); }
public static final String DEFAULT_PACKAGE_NAME = ""; //$NON-NLS-1$ /** * Returns whether this fragment contains at least one Java resource. */ boolean containsJavaResources() throws JavaModelException; /** * Creates and returns a compilation unit in this package fragment * with the specified name and contents. N...
public static final String DEFAULT_PACKAGE_NAME = ""/*nonNLS*/; /** * Returns whether this fragment contains at least one Java resource. */ boolean containsJavaResources() throws JavaModelException; /** * Creates and returns a compilation unit in this package fragment * with the specified name and contents. No ve...
public CERTRecord(Name _name, short _dclass, int _ttl, int _certType, int _keyTag, int _alg, byte [] _cert) { super(_name, Type.CERT, _dclass, _ttl); certType = (short) _certType; keyTag = (short) _keyTag; alg = (byte) _alg; cert = _cert; } CERTRecord(Name _name, short _dclass, int _ttl, int length, D...
public CERTRecord(Name _name, short _dclass, int _ttl, int _certType, int _keyTag, int _alg, byte [] _cert) { super(_name, Type.CERT, _dclass, _ttl); certType = (short) _certType; keyTag = (short) _keyTag; alg = (byte) _alg; cert = _cert; } CERTRecord(Name _name, short _dclass, int _ttl, int length, D...
public Constant resolveCase( BlockScope scope, TypeBinding switchExpressionType, SwitchStatement switchStatement) { scope.switchCase = this; // record entering in a switch case block if (constantExpression == null) { // remember the default case into the associated switch statement if (switch...
public Constant resolveCase( BlockScope scope, TypeBinding switchExpressionType, SwitchStatement switchStatement) { scope.switchCase = this; // record entering in a switch case block if (constantExpression == null) { // remember the default case into the associated switch statement if (switch...
public void view(MessageFolder folder, Object uid, MailFrameMediator mediator) throws Exception { MimePart bodyPart = null; InputStream bodyStream; MimeTree mimePartTree = folder.getMimePartTree(uid); XmlElement html = MailInterface.config.getMainFrameOptionsConfig() .getRoot().getElement("/options/ht...
public void view(MessageFolder folder, Object uid, MailFrameMediator mediator) throws Exception { MimePart bodyPart = null; InputStream bodyStream; MimeTree mimePartTree = folder.getMimePartTree(uid); XmlElement html = MailInterface.config.getMainFrameOptionsConfig() .getRoot().getElement("/options/ht...
private RGB getLightenedColor(RGB sample) { //Group 1 if(valuesInRange(sample, 180, 255) >= 2) return sample; //Group 2 if(valuesInRange(sample, 100, 179) >= 2) return ColorUtil.blend(white, sample, 30); //Group 3 if(valuesInRange(sample, 0, 99) >= 2) return ColorUtil.blend(white, sample, 60...
private RGB getLightenedColor(RGB sample) { //Group 1 if(valuesInRange(sample, 180, 255) >= 2) return sample; //Group 2 if(valuesInRange(sample, 100, 179) >= 2) return ColorUtil.blend(white, sample, 40); //Group 3 if(valuesInRange(sample, 0, 99) >= 2) return ColorUtil.blend(white, sample, 60...
public static CompilationUnit parseCompilationUnit(char[] source) { if (source == null) { throw new IllegalArgumentException(); } CompilationUnitDeclaration compilationUnitDeclaration = CompilationUnitResolver.parse(source); ASTConverter converter = new ASTConverter(false); AST ast = new AST(); ast...
public static CompilationUnit parseCompilationUnit(char[] source) { if (source == null) { throw new IllegalArgumentException(); } CompilationUnitDeclaration compilationUnitDeclaration = CompilationUnitResolver.parse(source, JavaCore.getOptions()); // no better custom options ASTConverter converter = ne...
protected IType getFocusType() { return this.scope instanceof HierarchyScope ? ((HierarchyScope)this.scope).focusType : null; } public IBinaryType getBinaryInfo(org.eclipse.jdt.internal.core.ClassFile classFile, IResource resource) throws CoreException { BinaryType binaryType = (BinaryType)classFile.getType(); ...
protected IType getFocusType() { return this.scope instanceof HierarchyScope ? ((HierarchyScope)this.scope).focusType : null; } public IBinaryType getBinaryInfo(org.eclipse.jdt.internal.core.ClassFile classFile, IResource resource) throws CoreException { BinaryType binaryType = (BinaryType)classFile.getType(); ...
public Name getTypeName() { if (this.typeName == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.typeName == null) { preLazyInit(); this.typeName = new SimpleName(this.ast); postLazyInit(this.typeName, internalTypeNameProperty()); } } } retu...
public Name getTypeName() { if (this.typeName == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.typeName == null) { preLazyInit(); this.typeName = new SimpleName(this.ast); postLazyInit(this.typeName, internalTypeNameProperty()); } } } return t...
public void addPlugin(XmlElement pluginElement) { // plugin wasn't correctly loaded if (pluginElement == null) return; String category = pluginElement.getAttribute("category"); if (category == null) { // this plugin doesn't define a category to which it belongs category = "Uncategorized"; } Plu...
public void addPlugin(XmlElement pluginElement) { // plugin wasn't correctly loaded if (pluginElement == null) return; String category = pluginElement.getAttribute("category"); if (category == null) { // this plugin doesn't define a category to which it belongs category = "Uncategorized"; } Plu...
public synchronized void setWriter(Writer writer) { reset(); this.qw = new QuietWriter(writer, errorHandler); //this.tp = new TracerPrintWriter(qw); writeHeader(); } /** Actual writing occurs here. <p>Most subclasses of <code>FileAppender</code> will need to override this met...
public synchronized void setWriter(Writer writer) { reset(); this.qw = new QuietWriter(writer, errorHandler); //this.tp = new TracerPrintWriter(qw); writeHeader(); } /** Actual writing occurs here. <p>Most subclasses of <code>WriterAppender</code> will need to override this m...
package org.eclipse.ui.commands; /******************************************************************************* * Copyright (c) 2000, 2003 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...
package org.eclipse.ui.commands; /******************************************************************************* * Copyright (c) 2000, 2003 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...
public static Object getValue(ITheme targetTheme, String propertyId, Class propertyType) { if (propertyType.isAssignableFrom(String.class)) { return targetTheme.getString(propertyId); } if (propertyType.isAssignableFrom(Color.class)) { Color result = targetT...
public static Object getValue(ITheme targetTheme, String propertyId, Class propertyType) { if (propertyType.isAssignableFrom(String.class)) { return targetTheme.getString(propertyId); } if (propertyType.isAssignableFrom(Color.class)) { Color result = targetT...
protected EvaluationResult[] evaluationResultsForCompilationProblems(CompilationResult result, char[] cuSource) { // Break down the problems and group them by ids in evaluation results IProblem[] problems = result.getProblems(); HashMap resultsByIDs = new HashMap(5); for (int i = 0; i < problems.length; i++) { ad...
protected EvaluationResult[] evaluationResultsForCompilationProblems(CompilationResult result, char[] cuSource) { // Break down the problems and group them by ids in evaluation results IProblem[] problems = result.getAllProblems(); HashMap resultsByIDs = new HashMap(5); for (int i = 0; i < problems.length; i++) { ...
public String toStringExpression() { /* slow code */ String str = "ExtendedStringLiteral{"/*nonNLS*/+ new String(source) +"}"/*nonNLS*/; return str; }
public String toStringExpression() { /* slow code */ String str = "ExtendedStringLiteral{"+ new String(source) +"}"; //$NON-NLS-2$ //$NON-NLS-1$ return str; }
public PlaceholderContributionItem(String identifier) { id = id; }
public PlaceholderContributionItem(String identifier) { id = identifier; }
private void rehash() { JavaSearchScope newScope = new JavaSearchScope(this.pathsCount * 2); // double the number of expected elements newScope.projectPaths.ensureCapacity(this.projectPaths.size()); String currentPath; for (int i = this.relativePaths.length; --i >= 0;) if ((currentPath = this.relativePaths[i]) !...
private void rehash() { JavaSearchScope newScope = new JavaSearchScope(this.pathsCount * 2); // double the number of expected elements newScope.projectPaths.ensureCapacity(this.projectPaths.size()); String currentPath; for (int i=0, length=this.relativePaths.length; i<length; i++) if ((currentPath = this.relativ...
public void consumeLocalType(char[] uniqueKey) { LocalTypeBinding[] localTypeBindings = this.parsedUnit.localTypes; for (int i = 0; i < this.parsedUnit.localTypeCount; i++) if (CharOperation.equals(uniqueKey, localTypeBindings[i].computeUniqueKey())) { this.typeBinding = localTypeBindings[i]; this....
public void consumeLocalType(char[] uniqueKey) { LocalTypeBinding[] localTypeBindings = this.parsedUnit.localTypes; for (int i = 0; i < this.parsedUnit.localTypeCount; i++) if (CharOperation.equals(uniqueKey, localTypeBindings[i].computeUniqueKey(false/*without access flags*/))) { this.typeBinding = lo...
public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append(getPath().toString()); buffer.append('['); switch (getEntryKind()) { case IClasspathEntry.CPE_LIBRARY : buffer.append("CPE_LIBRARY"); //$NON-NLS-1$ break; case IClasspathEntry.CPE_PROJECT : buffer.append("CPE_P...
public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append(String.valueOf(getPath())); buffer.append('['); switch (getEntryKind()) { case IClasspathEntry.CPE_LIBRARY : buffer.append("CPE_LIBRARY"); //$NON-NLS-1$ break; case IClasspathEntry.CPE_PROJECT : buffer.append("...
public static final void sort(int[] tab, int lo0, int hi0, int[] result) { int lo = lo0; int hi = hi0; int mid; if (hi0 > lo0) { /* Arbitrarily establishing partition element as the midpoint of * the array. */ mid = tab[ (lo0 + hi0) / 2]; // loop through the array until indices cross whil...
public static final void sort(int[] tab, int lo0, int hi0, int[] result) { int lo = lo0; int hi = hi0; int mid; if (hi0 > lo0) { /* Arbitrarily establishing partition element as the midpoint of * the array. */ mid = tab[lo0 + (hi0 - lo0) / 2]; // loop through the array until indices cross ...
protected void initializeDefaultPreferences(IPreferenceStore store) { JFacePreferences.setPreferenceStore(store); // new generic workbench preferences (for RCP APIs in org.eclipse.ui.application) store.setDefault(IWorkbenchPreferences.SHOULD_SAVE_WORKBENCH_STATE, false); store.setDefault(IWorkbenchPreferen...
protected void initializeDefaultPreferences(IPreferenceStore store) { JFacePreferences.setPreferenceStore(store); // new generic workbench preferences (for RCP APIs in org.eclipse.ui.application) store.setDefault(IWorkbenchPreferences.SHOULD_SAVE_WORKBENCH_STATE, false); store.setDefault(IWorkbenchPreferen...
protected NameReference getUnspecifiedReferenceOptimized() { int completionIndex; /* no need to take action if not inside completed identifiers */ if ((completionIndex = indexOfAssistIdentifier()) < 0) { return super.getUnspecifiedReferenceOptimized(); } /* retrieve identifiers subset and whole positions, the...
protected NameReference getUnspecifiedReferenceOptimized() { int completionIndex; /* no need to take action if not inside completed identifiers */ if ((completionIndex = indexOfAssistIdentifier()) < 0) { return super.getUnspecifiedReferenceOptimized(); } /* retrieve identifiers subset and whole positions, the...
public ActionAggregation(MAggregationKind a, String s) { super(a.toString(), NO_ICON); str = s; agg = a; }
public ActionAggregation(MAggregationKind a, String s) { super(a.getName(), NO_ICON); str = s; agg = a; }
protected synchronized AbstractFilter getFilter( FilterCriteria filterCriteria, String type) { // try to re-use already instanciated class if (filterCache.containsKey(type) == true) { AbstractFilter f = (AbstractFilter) filterCache.get(type); // setup filter configuration f.setUp(filterCriteria); ...
protected synchronized AbstractFilter getFilter( FilterCriteria filterCriteria, String type) { // try to re-use already instanciated class if (filterCache.containsKey(type) == true) { AbstractFilter f = (AbstractFilter) filterCache.get(type); // setup filter configuration f.setUp(filterCriteria); ...
public char[] computeUniqueKey(boolean isLeaf) { // declaring class char[] declaringKey = this.declaringClass.computeUniqueKey(false/*not a leaf*/); int declaringLength = declaringKey.length; // selector int selectorLength = this.selector == TypeConstants.INIT ? 0 : this.selector.length; // generic signature...
public char[] computeUniqueKey(boolean isLeaf) { // declaring class char[] declaringKey = this.declaringClass.computeUniqueKey(false/*not a leaf*/); int declaringLength = declaringKey.length; // selector int selectorLength = this.selector == TypeConstants.INIT ? 0 : this.selector.length; // generic signature...
public void indexDocument() { // Create a new Parser SourceIndexerRequestor requestor = new SourceIndexerRequestor(this); String documentPath = this.document.getPath(); SourceElementParser parser = ((InternalSearchDocument) this.document).parser; if (parser == null) { IPath path = new Path(documentPath); ...
public void indexDocument() { // Create a new Parser SourceIndexerRequestor requestor = new SourceIndexerRequestor(this); String documentPath = this.document.getPath(); SourceElementParser parser = this.document.getParser(); if (parser == null) { IPath path = new Path(documentPath); IProject project = ...
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = MailInterface.treeModel.getSelectFolderDialog(); if (dialog.success()) { MessageFolder destFolder = dialog.getSelectedFolder(); FolderCommandReference[] result = new FolderCommandReference[2]; ...
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = new SelectFolderDialog(getFrameMediator()); if (dialog.success()) { MessageFolder destFolder = dialog.getSelectedFolder(); FolderCommandReference[] result = new FolderCommandReference[2]; ...
public int matchLevel(AstNode node, boolean resolve) { if (!(node instanceof TypeDeclaration)) return IMPOSSIBLE_MATCH; TypeDeclaration type = (TypeDeclaration)node; if (resolve) { return this.matchLevel(type.binding); } else { // type name if (this.simpleName != null && !this.matchesName(this.simpleName, t...
public int matchLevel(AstNode node, boolean resolve) { if (!(node instanceof TypeDeclaration)) return IMPOSSIBLE_MATCH; TypeDeclaration type = (TypeDeclaration)node; if (resolve) { return this.matchLevel(type.binding); } else { // type name if (this.simpleName != null && !this.matchesName(this.simpleName, t...
public NewWizardShortcutAction(IWorkbenchWindow window, IWizardDescriptor wizardDesc) { super(wizardDesc.getLabel()); setToolTipText(wizardDesc.getDescription()); setImageDescriptor(wizardDesc.getImageDescriptor()); setId(ActionFactory.NEW.getId()); wizardElement ...
public NewWizardShortcutAction(IWorkbenchWindow window, IWizardDescriptor wizardDesc) { super('&' + wizardDesc.getLabel()); setToolTipText(wizardDesc.getDescription()); setImageDescriptor(wizardDesc.getImageDescriptor()); setId(ActionFactory.NEW.getId()); wizardEl...
public void run() { IViewDescriptor desc = viewReg.find(viewID); if (desc == null) { result[0] = new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, WorkbenchMessages.format("ViewFactory.couldNotCreate", new Object[] { viewID }), //$NON-NLS-1$ null); return; } // Create the view. I...
public void run() { IViewDescriptor desc = viewReg.find(viewID); if (desc == null) { result[0] = new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, WorkbenchMessages.format("ViewFactory.couldNotCreate", new Object[] { viewID }), //$NON-NLS-1$ null); return; } // Create the view. I...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; if (this.assertionSyntheticFieldBinding != null) { Label assertionActivationLabel = new Label(codeStream); codeStream.getstatic(this.assertionSynth...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachable) == 0) { return; } int pc = codeStream.position; if (this.assertionSyntheticFieldBinding != null) { Label assertionActivationLabel = new Label(codeStream); codeStream.getstatic(this.assertionSynthetic...
public Image getImage() { return JFaceResources.getImageRegistry().get(DLG_IMG_WARNING); } }
protected Image getImage() { return JFaceResources.getImageRegistry().get(DLG_IMG_WARNING); } }
public TypeBinding resolveType(BlockScope scope) { if (this.compilerAnnotation != null) return this.resolvedType; this.constant = Constant.NotAConstant; TypeBinding typeBinding = this.type.resolveType(scope); if (typeBinding == null) { this.compilerAnnotation = new AnnotationBinding(this); retur...
public TypeBinding resolveType(BlockScope scope) { if (this.compilerAnnotation != null) return this.resolvedType; this.constant = Constant.NotAConstant; TypeBinding typeBinding = this.type.resolveType(scope); if (typeBinding == null) { this.compilerAnnotation = new AnnotationBinding(this); retur...
public void releaseAllFolderLocks(int operationMode) { DefaultCommandReference[] references = getReferences(operationMode); int size = Array.getLength(references); for (int i = 0; i < size; i++) { if (references[i] != null) references[i].releaseLock(); } }
public void releaseAllFolderLocks(int operationMode) { DefaultCommandReference[] references = getReferences(operationMode); int size = Array.getLength(references); for (int i = 0; i < size; i++) { if (references[i] != null) references[i].releaseLock(this); } }
public List collectMissingTypes(List missingTypes) { if ((this.tagBits & TagBits.HasMissingType) != 0) { missingTypes = this.returnType.collectMissingTypes(missingTypes); for (int i = 0, max = this.parameters.length; i < max; i++) { missingTypes = this.parameters[i].collectMissingTypes(missingTypes); } for ...
public List collectMissingTypes(List missingTypes) { if ((this.tagBits & TagBits.HasMissingType) != 0) { missingTypes = this.returnType.collectMissingTypes(missingTypes); for (int i = 0, max = this.parameters.length; i < max; i++) { missingTypes = this.parameters[i].collectMissingTypes(missingTypes); } for ...
public String toString() { return "JCUNode(" + fUnit.getFileName() + ")"; //$NON-NLS-1$ //$NON-NLS-2$ }
public String toString() { return "JCUNode("/*nonNLS*/ + fUnit.getFileName() + ")"/*nonNLS*/; }
private BlockedJobsDialog(Shell parentShell, IProgressMonitor blocking, IStatus blockingStatus) { super(parentShell == null ? ProgressManagerUtil.getDefaultParent() : parentShell); blockingMonitor = blocking; setShellStyle(SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.RESIZE | getDefaultOrienta...
private BlockedJobsDialog(Shell parentShell, IProgressMonitor blocking, IStatus blockingStatus) { super(parentShell == null ? ProgressManagerUtil.getDefaultParent() : parentShell); blockingMonitor = blocking; setShellStyle(SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX | getDefa...
protected boolean isValidElement(MBase element) { return element instanceof MUseCase && ((MInclude)getTarget()).getNamespace() == ((MUseCase)element).getNamespace(); } }
protected boolean isValidElement(Object element) { return element instanceof MUseCase && ((MInclude)getTarget()).getNamespace() == ((MUseCase)element).getNamespace(); } }
private void createContent() { WorkingSetRegistry registry = WorkbenchPlugin.getDefault() .getWorkingSetRegistry(); WorkingSetDescriptor[] descriptors = registry .getWorkingSetDescriptors(); Table table = (Table) typesListViewer.getControl(); for (int...
private void createContent() { WorkingSetRegistry registry = WorkbenchPlugin.getDefault() .getWorkingSetRegistry(); WorkingSetDescriptor[] descriptors = registry .getNewPageWorkingSetDescriptors(); Table table = (Table) typesListViewer.getControl(); f...
public String toString () { Object key; StringBuffer buffer = new StringBuffer (); buffer.append ('{'); for (int i=0; i<elementCount; i++) { if (i != 0) buffer.append (','); if (buffer.length() > 1000) { buffer.append("..."/*nonNLS*/); break; } buffer.append (orderedList[i]); buffer.append ('='); ...
public String toString () { Object key; StringBuffer buffer = new StringBuffer (); buffer.append ('{'); for (int i=0; i<elementCount; i++) { if (i != 0) buffer.append (','); if (buffer.length() > 1000) { buffer.append("..."); //$NON-NLS-1$ break; } buffer.append (orderedList[i]); buffer.append ('=')...
private MethodBinding findNonDefaultAbstractMethod(MethodBinding methodBinding) { ReferenceBinding[] itsInterfaces = methodBinding.declaringClass.superInterfaces(); if (itsInterfaces != NoSuperInterfaces) { ReferenceBinding[][] interfacesToVisit = new ReferenceBinding[5][]; int lastPosition = 0; interfac...
private MethodBinding findNonDefaultAbstractMethod(MethodBinding methodBinding) { ReferenceBinding[] itsInterfaces = methodBinding.declaringClass.superInterfaces(); if (itsInterfaces != NoSuperInterfaces) { ReferenceBinding[][] interfacesToVisit = new ReferenceBinding[5][]; int lastPosition = 0; interfac...
public void addSuffix(String suffixString) { suffixes.add(suffixString); valueSet = true; } /** * Clear the current values and return a DecorationResult. * @return DecorationResult */ DecorationResult createResult() { DecorationResult newResult = new DecorationResult(new ArrayList( prefixes), new A...
public void addSuffix(String suffixString) { suffixes.add(suffixString); valueSet = true; } /** * Clear the current values and return a DecorationResult. * @return DecorationResult */ DecorationResult createResult() { DecorationResult newResult = new DecorationResult(new ArrayList( prefixes), new A...
protected void setUp() throws Exception { // create config-folder File file = new File("test_config"); file.mkdir(); new Config(file); Logging.DEBUG = true; Logging.createDefaultHandler(); // init mail component new MailMain().init(); new AddressbookMain().init(); // now load all available ...
protected void setUp() throws Exception { // create config-folder File file = new File("test_config"); file.mkdir(); new Config(file); Logging.DEBUG = true; Logging.createDefaultHandler(); // init mail component new MailMain().init(); new AddressbookMain().init(); // now load all available ...
public int getNodeType() { return SUPER_METHOD_INVOCATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { SuperMethodInvocation result = new SuperMethodInvocation(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setName(...
public int getNodeType() { return SUPER_METHOD_INVOCATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { SuperMethodInvocation result = new SuperMethodInvocation(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setName...
public MethodBinding resolveTypesFor(MethodBinding method) { if ((method.modifiers & ExtraCompilerModifiers.AccUnresolved) == 0) return method; if (this.scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5) { if ((method.getAnnotationTagBits() & TagBits.AnnotationDeprecated) != 0) method.modifiers...
public MethodBinding resolveTypesFor(MethodBinding method) { if ((method.modifiers & ExtraCompilerModifiers.AccUnresolved) == 0) return method; if (this.scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5) { if ((method.getAnnotationTagBits() & TagBits.AnnotationDeprecated) != 0) method.modifiers...
private boolean checkSelection( char[] source, int selectionStart, int selectionEnd) { Scanner scanner = new Scanner(); scanner.setSource(source); int lastIdentifierStart = -1; int lastIdentifierEnd = -1; char[] lastIdentifier = null; int token, identCount = 0; StringBuffer entireSelection = ne...
private boolean checkSelection( char[] source, int selectionStart, int selectionEnd) { Scanner scanner = new Scanner(); scanner.setSource(source); int lastIdentifierStart = -1; int lastIdentifierEnd = -1; char[] lastIdentifier = null; int token, identCount = 0; StringBuffer entireSelection = ne...
protected Image getImage() { return JFaceResources.getImageRegistry().get(Dialog.DLG_IMG_WARNING); }
protected Image getImage() { return JFaceResources.getImageRegistry().get(Dialog.DLG_IMG_LOCKED); }
public static final String DEFAULT_PACKAGE_NAME = ""; /** * Returns whether this fragment contains at least one Java resource. */ boolean containsJavaResources() throws JavaModelException; /** * Creates and returns a compilation unit in this package fragment * with the specified name and contents. No verification...
public static final String DEFAULT_PACKAGE_NAME = ""/*nonNLS*/; /** * Returns whether this fragment contains at least one Java resource. */ boolean containsJavaResources() throws JavaModelException; /** * Creates and returns a compilation unit in this package fragment * with the specified name and contents. No ve...
public void recordBreakFrom(FlowInfo flowInfo) { if (initsOnBreak == FlowInfo.DEAD_END) { initsOnBreak = flowInfo.copy().unconditionalInits(); } else { initsOnBreak = initsOnBreak.mergedWith(flowInfo.unconditionalInits()); } }
public void recordBreakFrom(FlowInfo flowInfo) { if (initsOnBreak == FlowInfo.DEAD_END) { initsOnBreak = flowInfo.copy().unconditionalInits(); } else { initsOnBreak = initsOnBreak.mergedWith(flowInfo.copy().unconditionalInits()); } }
public void execute(Worker worker) throws Exception { } }
public void execute(WorkerStatusController worker) throws Exception { } }
public int getNodeType() { return ANONYMOUS_CLASS_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { AnonymousClassDeclaration result = new AnonymousClassDeclaration(target); result.setSourceRange(this.getStartPosition(), this.getLength()); res...
public int getNodeType() { return ANONYMOUS_CLASS_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { AnonymousClassDeclaration result = new AnonymousClassDeclaration(target); result.setSourceRange(this.getStartPosition(), this.getLength()); re...
public int matchLevel(AstNode node, boolean resolve) { if (!(node instanceof FieldDeclaration)) return IMPOSSIBLE_MATCH; FieldDeclaration field = (FieldDeclaration)node; if (resolve) { return this.matchLevel(field.binding); } else { if (!field.isField()) return IMPOSSIBLE_MATCH; // ignore field initializers ...
public int matchLevel(AstNode node, boolean resolve) { if (!(node instanceof FieldDeclaration)) return IMPOSSIBLE_MATCH; FieldDeclaration field = (FieldDeclaration)node; if (resolve) { return this.matchLevel(field.binding); } else { if (!field.isField()) return IMPOSSIBLE_MATCH; // ignore field initializers ...
public void open() throws IOException { if (!opened) { summary= new IndexSummary(); numFiles= 0; numWords= 0; blockNum= 1; firstInBlock= true; firstIndexBlock= true; firstFileListBlock= true; indexOut= new SafeRandomAccessFile(this.indexFile, "rw"); //$NON-NLS-1$ opened= true; } }
public void open() throws IOException { if (!opened) { summary= new IndexSummary(); numFiles= 0; numWords= 0; blockNum= 1; firstInBlock= true; firstIndexBlock= true; firstFileListBlock= true; indexOut= new SafeRandomAccessFile(this.indexFile, "rw"/*nonNLS*/); opened= true; } }
public TypeBinding resolveType(BlockScope scope) { // Answer the signature type of the field. // constants are propaged when the field is final // and initialized with a (compile time) constant //always ignore receiver cast, since may affect constant pool reference boolean receiverCast = false; if (this...
public TypeBinding resolveType(BlockScope scope) { // Answer the signature type of the field. // constants are propaged when the field is final // and initialized with a (compile time) constant //always ignore receiver cast, since may affect constant pool reference boolean receiverCast = false; if (this...
public void resolve(BlockScope scope) { super.resolve(scope); throw new SelectionNodeFound(this, binding); }
public void resolve(BlockScope scope) { super.resolve(scope); throw new SelectionNodeFound(binding); }
public String toString() { // don't use append(char[]) due to JDK1.2 problems return new StringBuffer("CompilationUnit("/*nonNLS*/).append(getFileName()).append(")"/*nonNLS*/).toString(); }
public String toString() { // don't use append(char[]) due to JDK1.2 problems return new StringBuffer("CompilationUnit(").append(getFileName()).append(")").toString(); //$NON-NLS-1$ //$NON-NLS-2$ }
protected void parseCatsAndRenderers(Properties props) { Enumeration enum = props.propertyNames(); while(enum.hasMoreElements()) { String key = (String) enum.nextElement(); if(key.startsWith(CATEGORY_PREFIX)) { String categoryName = key.substring(CATEGORY_PREFIX.length()); String value ...
protected void parseCatsAndRenderers(Properties props) { Enumeration enum = props.propertyNames(); while(enum.hasMoreElements()) { String key = (String) enum.nextElement(); if(key.startsWith(CATEGORY_PREFIX)) { String categoryName = key.substring(CATEGORY_PREFIX.length()); String value ...
public boolean subtreeMatch(ASTMatcher matcher, Object other) { // dispatch to correct overloaded match method return matcher.match(this, other); } /* (omit javadoc for this method) * Method declared on ASTNode. */ void accept0(ASTVisitor visitor) { boolean visitChildren = visitor.visit(this); visitor....
public boolean subtreeMatch(ASTMatcher matcher, Object other) { // dispatch to correct overloaded match method return matcher.match(this, other); } /* (omit javadoc for this method) * Method declared on ASTNode. */ void accept0(ASTVisitor visitor) { visitor.visit(this); visitor.endVisit(this); }
public Expression getExpression() { if (this.expression == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.expression == null) { preLazyInit(); this.expression = new SimpleName(this.ast); postLazyInit(this.expression, EXPRESSION_PROPERTY); } } ...
public Expression getExpression() { if (this.expression == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.expression == null) { preLazyInit(); this.expression = new SimpleName(this.ast); postLazyInit(this.expression, EXPRESSION_PROPERTY); } } } ...
public void resolve(BlockScope scope) { // the return type should be void for a constructor. // the test is made into getConstructor // mark the fact that we are in a constructor call..... // unmark at all returns MethodScope methodScope = scope.methodScope(); try { AbstractMethodDeclaration methodDecl...
public void resolve(BlockScope scope) { // the return type should be void for a constructor. // the test is made into getConstructor // mark the fact that we are in a constructor call..... // unmark at all returns MethodScope methodScope = scope.methodScope(); try { AbstractMethodDeclaration methodDecl...
public String getMainTaskName(){ return Util.bind("operation.createTypeProgress"); //$NON-NLS-1$ }
public String getMainTaskName(){ return Util.bind("operation.createTypeProgress"/*nonNLS*/); }
public Object getAttribute(String name) { if (name.startsWith("org.apache.tomcat")) { // XXX XXX XXX XXX Security - servlets may get too much access !!! // right now we don't check because we need JspServlet to // be able to access classloader and classpath if (name.equals("org.apa...
public Object getAttribute(String name) { if (name.startsWith("org.apache.tomcat")) { // XXX XXX XXX XXX Security - servlets may get too much access !!! // right now we don't check because we need JspServlet to // be able to access classloader and classpath if (name.equals("org.apa...
public synchronized Record first() { if (rrs.size() == 0) throw new IllegalArgumentException("rrset is empty"); return (Record) rrs.get(0); }
public synchronized Record first() { if (rrs.size() == 0) throw new IllegalStateException("rrset is empty"); return (Record) rrs.get(0); }
public void addEmptyAction() { XmlElement action = new XmlElement("action"); //action.addAttribute("class", "org.columba.mail.filter.action.MarkMessageAsReadFilterAction"); action.addAttribute("type", "Mark as Read"); getRoot().addElement(action); }
public void addEmptyAction() { XmlElement action = new XmlElement("action"); //action.addAttribute("class", "org.columba.mail.filter.action.MarkMessageAsReadFilterAction"); action.addAttribute("type", "Mark Message"); getRoot().addElement(action); }
public void testMain() { CheckResourceBundle.checkResourceBundle(this, new TreeResourceBundle()); }
public void testMain() { CheckResourceBundle.checkResourceBundle(this, "org.argouml.i18n.TreeResourceBundle"); }
// private emulation using reflect ((CodeSnippetCodeStream) codeStream).generateEmulationForConstructor(currentScope, binding); // generate arguments if (arguments != null) { int argsLength = arguments.length; codeStream.generateInlinedValue(argsLength); codeStream.newArray(currentScope, new ArrayBindi...
// private emulation using reflect ((CodeSnippetCodeStream) codeStream).generateEmulationForConstructor(currentScope, binding); // generate arguments if (arguments != null) { int argsLength = arguments.length; codeStream.generateInlinedValue(argsLength); codeStream.newArray(currentScope, new ArrayBindi...
public void actionPerformed(ActionEvent evt) { URLController c = new URLController(); try { c.open( new URL("http://columba.sourceforge.net/index.php?page=faq")); } catch (MalformedURLException mue) { } }
public void actionPerformed(ActionEvent evt) { URLController c = new URLController(); try { c.open( new URL("http://columba.sourceforge.net/faq_user.php")); } catch (MalformedURLException mue) { } }
public String getAttachedJavadoc(IProgressMonitor monitor, String defaultEncoding) throws JavaModelException { final String contents = getJavadocContents(monitor, defaultEncoding); if (contents == null) throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.CANNOT_RETRIEVE_ATTACHED_JAVADOC, this))...
public String getAttachedJavadoc(IProgressMonitor monitor, String defaultEncoding) throws JavaModelException { final String contents = getJavadocContents(monitor, defaultEncoding); if (contents == null) return null; final int indexOfStartOfClassData = contents.indexOf(JavadocConstants.START_OF_CLASS_DATA); if (inde...