buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public boolean visit(Argument argument, BlockScope scope) { if (argument.modifiers != NO_MODIFIERS || argument.annotations != null) { this.scribe.printComment(); this.scribe.printModifiers(argument.annotations, this, true); this.scribe.space(); } /* * Argument type */ if (argument.type ...
public boolean visit(Argument argument, BlockScope scope) { if (argument.modifiers != NO_MODIFIERS || argument.annotations != null) { this.scribe.printComment(); this.scribe.printModifiers(argument.annotations, this); this.scribe.space(); } /* * Argument type */ if (argument.type != nul...
public Object addMessage(InputStream in) throws Exception { return null; }
public Object addMessage(InputStream in) throws Exception { return addMessage(in, null); }
public void actionPerformed(ActionEvent e) { // when the action is performed, i.e. someone clicked on the menuitem, // create a new DBLoader, ask the user for the models name to load, // then load it and put it into an empty project. String modelName = JOptionPane.showInputDialog("What is the name of the model...
public void actionPerformed(ActionEvent e) { // when the action is performed, i.e. someone clicked on the menuitem, // create a new DBLoader, ask the user for the models name to load, // then load it and put it into an empty project. String modelName = JOptionPane.showInputDialog("What is the name of the model...
protected void reportDeclaration(MethodBinding methodBinding, MatchLocator locator, SimpleSet knownMethods) throws CoreException { ReferenceBinding declaringClass = methodBinding.declaringClass; IType type = locator.lookupType(declaringClass); if (type == null) return; // case of a secondary type char[] bindingSel...
protected void reportDeclaration(MethodBinding methodBinding, MatchLocator locator, SimpleSet knownMethods) throws CoreException { ReferenceBinding declaringClass = methodBinding.declaringClass; IType type = locator.lookupType(declaringClass); if (type == null) return; // case of a secondary type char[] bindingSel...
protected void reportMatching(Annotation[] annotations, IJavaElement enclosingElement, IJavaElement[] otherElements, Binding elementBinding, MatchingNodeSet nodeSet, boolean matchedContainer, boolean enclosesElement) throws CoreException { for (int i=0, al=annotations.length; i<al; i++) { Annotation annotationType =...
protected void reportMatching(Annotation[] annotations, IJavaElement enclosingElement, IJavaElement[] otherElements, Binding elementBinding, MatchingNodeSet nodeSet, boolean matchedContainer, boolean enclosesElement) throws CoreException { for (int i=0, al=annotations.length; i<al; i++) { Annotation annotationType =...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { if (requestor == null) { Assert.isTrue(false, "completion re...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { if (requestor == null) { throw new IllegalArgumentException(...
public void synchronizeHeaderlist() throws Exception, IOException, CommandCancelledException, IMAPException { headerList = super.getHeaderList(); // Check if the mailbox has changed MailboxStatus status = getServer().getStatus(this); List localUids = extractUids(headerList); // Sort the uid list Colle...
public void synchronizeHeaderlist() throws Exception, IOException, CommandCancelledException, IMAPException { headerList = super.getHeaderList(); // Check if the mailbox has changed MailboxStatus status = getServer().getStatus(this); List localUids = extractUids(headerList); // Sort the uid list Colle...
public InetAddress getAddress() { return address; } byte [] rrToWire() { if (address == null) return null; else return address.getAddress(); }
public InetAddress getAddress() { return address; } byte [] rrToWire(dnsCompression c) { if (address == null) return null; else return address.getAddress(); }
public Map getMap() { Map options = new HashMap(); options.put(DefaultCodeFormatterConstants.FORMATTER_LINE_SEPARATOR, this.line_delimiter); options.put(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR, this.use_tab ? JavaCore.TAB: JavaCore.SPACE); options.put(DefaultCodeFormatterConstants.FORMATTER_TAB_SIZE, ...
public Map getMap() { Map options = new HashMap(); options.put(DefaultCodeFormatterConstants.FORMATTER_LINE_SEPARATOR, this.line_delimiter); options.put(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR, this.use_tab ? JavaCore.TAB: JavaCore.SPACE); options.put(DefaultCodeFormatterConstants.FORMATTER_TAB_SIZE, ...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } generateCode(currentScope, codeStream, false); }
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachable) == 0) { return; } generateCode(currentScope, codeStream, false); }
import org.columba.api.plugin.IExtensionInterface; // The contents of this file are subject to the Mozilla Public License Version // 1.1 //(the "License"); you may not use this file except in compliance with the //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ // //Software distributed un...
import org.columba.api.plugin.IExtensionInterface; // The contents of this file are subject to the Mozilla Public License Version // 1.1 //(the "License"); you may not use this file except in compliance with the //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ // //Software distributed un...
protected long i8At(byte[] reference, int relativeOffset, int structOffset) { int position = relativeOffset + structOffset; return (((long) (reference[position++] & 0xFF)) << 56) + (((long) (reference[position++] & 0xFF)) << 48) + (((long) (reference[position++] & 0xFF)) << 40) + (((long) (reference[posit...
protected long i8At(byte[] reference, int relativeOffset, int structOffset) { int position = relativeOffset + structOffset; return (((long) (reference[position++] & 0xFF)) << 56) + (((long) (reference[position++] & 0xFF)) << 48) + (((long) (reference[position++] & 0xFF)) << 40) + (((long) (reference[posit...
public void place() { // Currently lacking wide support. if (position == POS_NOT_SET) { position = codeStream.position; codeStream.addLabel(this); int oldPosition = position; boolean isOptimizedBranch = false; // TURNED OFF since fail on 1F4IRD9 if (forwardReferenceCount != 0) { isOptimizedBranch = (for...
public void place() { // Currently lacking wide support. if (position == POS_NOT_SET) { position = codeStream.position; codeStream.addLabel(this); int oldPosition = position; boolean isOptimizedBranch = false; // TURNED OFF since fail on 1F4IRD9 if (forwardReferenceCount != 0) { isOptimizedBranch = (for...
public final void setIgnored(int completionProposalKind, boolean ignore) { if (completionProposalKind < CompletionProposal.ANONYMOUS_CLASS_DECLARATION || completionProposalKind > CompletionProposal.VARIABLE_DECLARATION) { throw new IllegalArgumentException(); } if (ignore) { this.ignoreSet |= (1 << com...
public final void setIgnored(int completionProposalKind, boolean ignore) { if (completionProposalKind < CompletionProposal.ANONYMOUS_CLASS_DECLARATION || completionProposalKind > CompletionProposal.METHOD_NAME_REFERENCE) { throw new IllegalArgumentException(); } if (ignore) { this.ignoreSet |= (1 << co...
private boolean isEncodeable(String location) { // Are we in a valid session that is not using cookies? Request request = response.getRequest(); HttpServletRequestFacade reqF=(HttpServletRequestFacade)request. getFacade(); if (!reqF.isRequestedSessionIdValid() ) return (false); if ( reqF.isRequest...
private boolean isEncodeable(String location) { // Are we in a valid session that is not using cookies? Request request = response.getRequest(); HttpServletRequestFacade reqF=(HttpServletRequestFacade)request. getFacade(); if (!reqF.isRequestedSessionIdValid() ) return (false); if ( reqF.isRequest...
public TypeBinding substitute(TypeBinding originalType) { if ((originalType.tagBits & TagBits.HasTypeVariable) != 0) { if (originalType.isTypeVariable()) { TypeVariableBinding originalVariable = (TypeVariableBinding) originalType; TypeVariableBinding[] variables =...
public TypeBinding substitute(TypeBinding originalType) { if ((originalType.tagBits & TagBits.HasTypeVariable) != 0) { if (originalType.isTypeVariable()) { TypeVariableBinding originalVariable = (TypeVariableBinding) originalType; TypeVariableBinding[] variables =...
public static void generateTestData() { Object calendarsID = new Integer(9); Object remoteCalendarsID = new Integer(100); Object markID = CATEGORIES[0]; Object susanID = CATEGORIES[1]; Object michaelID = CATEGORIES[2]; Object gregID = CATEGORIES[3]; Category root = CategoryDepository.getRoot(); Categ...
public static void generateTestData() { Object calendarsID = new Integer(9); Object remoteCalendarsID = new Integer(100); Object markID = CATEGORIES[0]; Object susanID = CATEGORIES[1]; Object michaelID = CATEGORIES[2]; Object gregID = CATEGORIES[3]; Category root = CategoryDepository.getRoot(); Categ...
public static void checkProjectPropertyFileUpdate( IResourceDelta delta, IJavaElement parent) { IResource resource = delta.getResource(); IJavaElement element = JavaCore.create(resource); boolean processChildren = false; switch (resource.getType()) { case IResource.ROOT : processChildren = true;...
public static void checkProjectPropertyFileUpdate( IResourceDelta delta, IJavaElement parent) { IResource resource = delta.getResource(); IJavaElement element = JavaCore.create(resource); boolean processChildren = false; switch (resource.getType()) { case IResource.ROOT : processChildren = true;...
public static char[] qualifiedSourceName(TypeBinding binding) { if (binding instanceof ReferenceBinding) { ReferenceBinding type = (ReferenceBinding) binding; if (type.isLocalType()) return type.isMemberType() ? CharOperation.concat(qualifiedSourceName(type.enclosingType()), type.sourceName(), '.') : Ch...
public static char[] qualifiedSourceName(TypeBinding binding) { if (binding instanceof ReferenceBinding) { ReferenceBinding type = (ReferenceBinding) binding; if (type.isLocalType()) return type.isMemberType() ? CharOperation.concat(qualifiedSourceName(type.enclosingType()), type.sourceName(), '.') : Ch...
private TypeBinding internalResolveType(Scope scope, ReferenceBinding enclosingType, boolean checkBounds) { // handle the error here this.constant = Constant.NotAConstant; if (this.didResolve) { // is a shared type reference which was already resolved if (this.resolvedType != null && !this.resolvedType.isVal...
private TypeBinding internalResolveType(Scope scope, ReferenceBinding enclosingType, boolean checkBounds) { // handle the error here this.constant = Constant.NotAConstant; if (this.didResolve) { // is a shared type reference which was already resolved if (this.resolvedType != null && !this.resolvedType.isVal...
void contextManagerChanged(IContextManagerEvent contextManagerEvent); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of th...
void contextManagerChanged(IContextManagerEvent contextManagerEvent); /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of th...
public int getNodeType() { return ARRAY_INITIALIZER; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ArrayInitializer result = new ArrayInitializer(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.expressions().addAll(AST...
public int getNodeType() { return ARRAY_INITIALIZER; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { ArrayInitializer result = new ArrayInitializer(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.expressions().addAll(AS...
public CompilationUnit convert(CompilationUnitDeclaration unit, char[] source) { this.compilationUnitSource = source; scanner.setSourceBuffer(source); CompilationUnit compilationUnit = this.ast.newCompilationUnit(); // handle the package declaration immediately // There is no node corresponding to the packag...
public CompilationUnit convert(CompilationUnitDeclaration unit, char[] source) { this.compilationUnitSource = source; scanner.setSource(source); CompilationUnit compilationUnit = this.ast.newCompilationUnit(); // handle the package declaration immediately // There is no node corresponding to the package decl...
public final void init() throws TomcatException { if( state==STATE_READY ) { log( "Already initialized " ); return; } // make sure we see all interceptors added so far getContainer().resetInterceptorCache(Container.H_engineInit); // initialize all local-interceptors BaseInterceptor cI[]=getContaine...
public final void init() throws TomcatException { if( state==STATE_READY ) { log( "Already initialized " ); return; } // make sure we see all interceptors added so far getContainer().resetInterceptorCache(Container.H_engineInit); // initialize all local-interceptors BaseInterceptor cI[]=getContaine...
protected double getMemoryRatio() { if (this.memoryRatio == -1) { long maxMemory = Runtime.getRuntime().maxMemory(); // if max memory is infinite, set the ratio to 4d which corresponds to the 256MB that Eclipse defaults to // (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=111299) this.memoryRatio = maxMemo...
protected double getMemoryRatio() { if ((int) this.memoryRatio == -1) { long maxMemory = Runtime.getRuntime().maxMemory(); // if max memory is infinite, set the ratio to 4d which corresponds to the 256MB that Eclipse defaults to // (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=111299) this.memoryRatio = m...
private TypeBinding internalResolveType(Scope scope) { this.constant = NotAConstant; if (this.receiver == null) { this.receiverType = scope.enclosingSourceType(); } else if (scope.kind == Scope.CLASS_SCOPE) { this.receiverType = this.receiver.resolveType((ClassScope) scope); } else { this.receiverTyp...
private TypeBinding internalResolveType(Scope scope) { this.constant = NotAConstant; if (this.receiver == null) { this.receiverType = scope.enclosingSourceType(); } else if (scope.kind == Scope.CLASS_SCOPE) { this.receiverType = this.receiver.resolveType((ClassScope) scope); } else { this.receiverTyp...
protected void createPresentation(final Composite parent) { usePulldown = preferenceStore.getBoolean(IPreferenceConstants.EDITORLIST_PULLDOWN_ACTIVE); preferenceStore.addPropertyChangeListener(propertyChangeListener); boolean multi = preferenceStore.getBoolean(IPreferenceConstants.SHOW_MULTIPLE_EDITOR_TABS);...
protected void createPresentation(final Composite parent) { usePulldown = preferenceStore.getBoolean(IPreferenceConstants.EDITORLIST_PULLDOWN_ACTIVE); preferenceStore.addPropertyChangeListener(propertyChangeListener); boolean multi = preferenceStore.getBoolean(IPreferenceConstants.SHOW_MULTIPLE_EDITOR_TABS);...
public int addEndpoint( int port, InetAddress addr , String hostname) throws TomcatException { if(modules.size()==0) addDefaultModules(); defaultConnectors=false; if(dL>0) debug( "addConnector " + port + " " + addr + " " + hostname ); int mid=addModule("org.apache.tomcat.modules.server.Http10Intercep...
public int addEndpoint( int port, InetAddress addr , String hostname) throws TomcatException { if(modules.size()==0) addDefaultModules(); defaultConnectors=false; if(dL>0) debug( "addConnector " + port + " " + addr + " " + hostname ); int mid=addModule("org.apache.tomcat.modules.server.Http10Intercep...
public void handleRequest(AbstractClient connection, TunkRequest request) { } }
public void handleRequest(AbstractClient connection, TrunkRequest request) { } }
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { if (requestor == null) { throw new IllegalArgumentException(...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { if (requestor == null) { Assert.isTrue(false, "Completion re...
private char[][][] possibleTags(char[] prefix, boolean newLine) { char[][][] possibleTags = new char[2][][]; if (newLine) { System.arraycopy(this.levelTags[BLOCK_IDX], 0, possibleTags[BLOCK_IDX] = new char[this.levelTagsLength[BLOCK_IDX]][], 0, this.levelTagsLength[BLOCK_IDX]); } else { possibleTags[BLOCK_...
private char[][][] possibleTags(char[] prefix, boolean newLine) { char[][][] possibleTags = new char[2][][]; if (newLine) { System.arraycopy(this.levelTags[BLOCK_IDX], 0, possibleTags[BLOCK_IDX] = new char[this.levelTagsLength[BLOCK_IDX]][], 0, this.levelTagsLength[BLOCK_IDX]); } else { possibleTags[BLOCK_...
public PollingClientNotificationListener( ObjectName pSender, NotificationListener pClientListener, Object pHandback, NotificationFilter pFilter, int pSleepingPeriod, int pMaximumListSize, MEJB pConnector ) throws JMException, RemoteException { super(...
public PollingClientNotificationListener( ObjectName pSender, NotificationListener pClientListener, Object pHandback, NotificationFilter pFilter, int pSleepingPeriod, int pMaximumListSize, MEJB pConnector ) throws JMException, RemoteException { super(...
private static String[] allModelElements = { "Abstraction", "Association", "AssociationClass", "AssociationEnd", "Attribute", "BehavioralFeature", "Binding", "Class", "Classifier", "Comment", "Component", "Constraint", ...
public void testDeleteModelelement3() { MModel model = ModelManagementFactory.getFactory().createModel(); MClass class1 = CoreFactory.getFactory().buildClass(model); MClass class2 = CoreFactory.getFactory().buildClass(model); MDependency dep = CoreFactory.getFactory().buildDependency...
protected void reportDeclaration(MethodBinding methodBinding, MatchLocator locator, SimpleSet knownMethods) throws CoreException { ReferenceBinding declaringClass = methodBinding.declaringClass; IType type = locator.lookupType(declaringClass); if (type == null) return; // case of a secondary type char[] bindingSel...
protected void reportDeclaration(MethodBinding methodBinding, MatchLocator locator, SimpleSet knownMethods) throws CoreException { ReferenceBinding declaringClass = methodBinding.declaringClass; IType type = locator.lookupType(declaringClass); if (type == null) return; // case of a secondary type char[] bindingSel...
public void execute(Worker worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); FolderCommandAdapter adapter = new FolderCommandAdapter(r); // there can be only one reference for this command Folder srcFolder = (Folder) adapter.getSourceFolderReferences()[0].g...
public void execute(Worker worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); FolderCommandAdapter adapter = new FolderCommandAdapter(r); // there can be only one reference for this command Folder srcFolder = (Folder) adapter.getSourceFolderReferences()[0].g...
private int matchLevel(NameReference nameRef, boolean resolve) { if (!resolve) { if (this.simpleName == null) { return POSSIBLE_MATCH; } else { if (nameRef instanceof SingleNameReference) { if (this.matchesName(this.simpleName, ((SingleNameReference)nameRef).token)) { return POSSIBLE_MATCH; } el...
private int matchLevel(NameReference nameRef, boolean resolve) { if (!resolve) { if (this.simpleName == null) { return POSSIBLE_MATCH; } else { if (nameRef instanceof SingleNameReference) { if (this.matchesName(this.simpleName, ((SingleNameReference)nameRef).token)) { return POSSIBLE_MATCH; } el...
public void layoutComponents() { setBorder(BorderFactory.createEmptyBorder(1, 0, 1, 0)); FormLayout l = new FormLayout( "default, 3dlu, fill:default:grow, 3dlu, default, 3dlu, default", "fill:default:grow"); PanelBuilder b = new PanelBuilder(this, l); CellConstraints c = new CellConstraints(); b.a...
public void layoutComponents() { setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); FormLayout l = new FormLayout( "default, 3dlu, fill:default:grow, 3dlu, default, 3dlu, default", "fill:default:grow"); PanelBuilder b = new PanelBuilder(this, l); CellConstraints c = new CellConstraints(); b.a...
public void resolveStatements() { super.resolveStatements(); TypeBinding returnTypeBinding = this.binding.returnType; if (returnTypeBinding != null) { // annotation methods can only return base types, String, Class, enum type, annotation types and arrays of these checkAnnotationMethodType: { TypeBindi...
public void resolveStatements() { super.resolveStatements(); TypeBinding returnTypeBinding = this.binding.returnType; if (returnTypeBinding != null) { // annotation methods can only return base types, String, Class, enum type, annotation types and arrays of these checkAnnotationMethodType: { TypeBindi...
protected Openable[] createElements(IResource resource) { if (resource == null) return null; String extension = resource.getFileExtension(); extension = extension == null ? null : extension.toLowerCase(); if ("jar".equals(extension) || "zip".equals(extension)) { //$NON-NLS-2$ //$NON-NLS-1$ IJavaProject[] projects...
protected Openable[] createElements(IResource resource) { if (resource == null) return null; String extension = resource.getFileExtension(); extension = extension == null ? null : extension.toLowerCase(); if ("jar".equals(extension) || "zip".equals(extension)) { //$NON-NLS-2$ //$NON-NLS-1$ IJavaProject[] projects...
protected String tabString(int tab) { StringBuffer result = new StringBuffer(); for (int i = tab; i > 0; i--) { result.append(" "); } return result.toString(); }
protected String tabString(int tab) { StringBuffer result = new StringBuffer(); for (int i = tab; i > 0; i--) { result.append(" "/*nonNLS*/); } return result.toString(); }
public DeleteMessageAction(FrameMediator frameMediator) { super(frameMediator, MailResourceLoader.getString("menu", "mainframe", "menu_message_delete")); // toolbar text putValue(TOOLBAR_NAME, MailResourceLoader.getString("menu", "mainframe", ...
public DeleteMessageAction(FrameMediator frameMediator) { super(frameMediator, MailResourceLoader.getString("menu", "mainframe", "menu_message_delete")); // toolbar text putValue(TOOLBAR_NAME, MailResourceLoader.getString("menu", "mainframe", ...
protected boolean buildStructure(OpenableElementInfo info, final IProgressMonitor pm, Map newElements, IResource underlyingResource) throws JavaModelException { CompilationUnitElementInfo unitInfo = (CompilationUnitElementInfo) info; // ensure buffer is opened IBuffer buffer = getBufferManager().getBuffer(Compilati...
protected boolean buildStructure(OpenableElementInfo info, final IProgressMonitor pm, Map newElements, IResource underlyingResource) throws JavaModelException { CompilationUnitElementInfo unitInfo = (CompilationUnitElementInfo) info; // ensure buffer is opened IBuffer buffer = getBufferManager().getBuffer(Compilati...
protected void initContentProvider() { IContentProvider provider = new ProgressTreeContentProvider(viewer); viewer.setContentProvider(provider); viewer.setInput(provider); }
protected void initContentProvider() { IContentProvider provider = new ProgressTreeContentProvider(viewer,true); viewer.setContentProvider(provider); viewer.setInput(provider); }
private TypeDeclaration convert(SourceTypeElementInfo typeInfo, CompilationResult compilationResult) { /* create type declaration - can be member type */ TypeDeclaration type = new TypeDeclaration(compilationResult); if (typeInfo.getEnclosingType() == null) { IType typeHandle = typeInfo.getHandle(); try { ...
private TypeDeclaration convert(SourceTypeElementInfo typeInfo, CompilationResult compilationResult) { /* create type declaration - can be member type */ TypeDeclaration type = new TypeDeclaration(compilationResult); if (typeInfo.getEnclosingType() == null) { IType typeHandle = typeInfo.getHandle(); try { ...
public void resolve(ClassScope upperScope) { if (this.binding == null) { this.ignoreFurtherInvestigation = true; } try { bindArguments(); bindThrownExceptions(); resolveJavadoc(); resolveAnnotations(this.annotations, scope); resolveStatements(); } catch (AbortMethod e) { // ========= abort...
public void resolve(ClassScope upperScope) { if (this.binding == null) { this.ignoreFurtherInvestigation = true; } try { bindArguments(); bindThrownExceptions(); resolveJavadoc(); resolveAnnotations(scope, this.annotations, this.binding); resolveStatements(); } catch (AbortMethod e) { // =...
public void valueForPathChanged(TreePath path, Object newValue) { // needs-more-work }
public void valueForPathChanged(TreePath path, Object newValue) { System.out.println("valueForPathChanged NavPerspective"); }
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; TypeBinding lhsType = lhs.resolveType(scope); TypeBinding expressionType = expression.resolveType(scope); if (lhsType == null || expressionType == null) return null; int lhsId = lhsType.id; int expressionId = expressionType.id; if (re...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; TypeBinding lhsType = lhs.resolveType(scope); TypeBinding expressionType = expression.resolveType(scope); if (lhsType == null || expressionType == null) return null; int lhsId = lhsType.id; int expressionId = expressionType.id; if (re...
public void initializeContents() { if (!resource.isLocal(IResource.DEPTH_ZERO)) { return; } else { try { IPath location = resource.getLocation(); if (location != null){ this.contents = Util.getFileCharContent(location.toFile()); } } catch (IOException e) { } } }
public void initializeContents() { if (!resource.isLocal(IResource.DEPTH_ZERO)) { return; } else { try { IPath location = resource.getLocation(); if (location != null){ this.contents = org.eclipse.jdt.internal.compiler.util.Util.getFileCharContent(location.toFile()); } } catch (IOException e) { }...
public void removeElement() { //overrides removeElement in PropPanel Object target = getTarget(); if(target instanceof MClassifier) { MClassifier cls = (MClassifier) target; Object newTarget = cls.getNamespace(); UmlFactory.getFactory().getCore().removeClassifi...
public void removeElement() { //overrides removeElement in PropPanel Object target = getTarget(); if(target instanceof MClassifier) { MClassifier cls = (MClassifier) target; Object newTarget = cls.getNamespace(); cls.remove(); if(newTarget != null)...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; MethodBinding codegenBinding = this.binding.original(); if (codegenBinding.canBeSeenBy(this.actualReceiverType, this, currentScope)) { // generate receiver/enclosing instance access boo...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; MethodBinding codegenBinding = this.binding.original(); if (codegenBinding.canBeSeenBy(this.actualReceiverType, this, currentScope)) { // generate receiver/enclosing instance access boo...
public String getText(Object element) { return ((JobInfo) element).getDisplayString(); }
public String getText(Object element) { return ((JobTreeElement) element).getDisplayString(); }
extends org.tigris.scarab.om.BaseAttributeVotePeer package org.tigris.scarab.om; // JDK classes import java.util.*; // Village classes import com.workingdogs.village.*; // Turbine classes import org.apache.turbine.om.peer.*; import org.apache.turbine.util.*; import org.apache.turbine.util.db.*; import org.apache.tu...
extends org.tigris.scarab.om.BaseAttributeVotePeer package org.tigris.scarab.om; // JDK classes import java.util.*; // Village classes import com.workingdogs.village.*; // Turbine classes import org.apache.turbine.om.peer.*; import org.apache.turbine.util.*; import org.apache.turbine.util.db.*; import org.apache.tu...
protected void getHandleMemento(StringBuffer buff) { IPath path; IResource underlyingResource = resource(); if (underlyingResource != null) { // internal jar or regular root if (resource().getProject().equals(getJavaProject().getProject())) { path = underlyingResource.getProjectRelativePath(); } else { p...
protected void getHandleMemento(StringBuffer buff) { IPath path; IResource underlyingResource = getResource(); if (underlyingResource != null) { // internal jar or regular root if (resource().getProject().equals(getJavaProject().getProject())) { path = underlyingResource.getProjectRelativePath(); } else { ...
public AddAbbrevDialog(View view, String abbrev) { super(view,jEdit.getProperty("add-abbrev.title"),true); this.view = view; JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); editor = new AbbrevEditor(); editor.setAbbrev(abbrev)...
public AddAbbrevDialog(View view, String abbrev) { super(view,jEdit.getProperty("add-abbrev.title"),true); this.view = view; JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); editor = new AbbrevEditor(); editor.setAbbrev(abbrev)...
public void branchChainTo(BranchLabel label) { // in order to improve debug attributes for stepping (11431) // we want to inline the jumps to #breakLabel which already got // generated (if any), and have them directly branch to a better // location (the argument label). // we know at this point that the b...
public void branchChainTo(BranchLabel label) { // in order to improve debug attributes for stepping (11431) // we want to inline the jumps to #breakLabel which already got // generated (if any), and have them directly branch to a better // location (the argument label). // we know at this point that the b...
public void actionPerformed(ActionEvent evt) { // it is safe here to cast to AbstractMailFrameControlller FolderCommandReference[] r = (FolderCommandReference[]) ((AbstractMailFrameController) frameMediator).getTreeSelection(); // only use the first selected folder AbstractFolder ...
public void actionPerformed(ActionEvent evt) { // it is safe here to cast to AbstractMailFrameControlller FolderCommandReference[] r = (FolderCommandReference[]) ((AbstractMailFrameController) frameMediator).getTreeSelection(); // only use the first selected folder AbstractFolder ...
@Test public void failedAssumptionDoesntCountAsRun() throws Exception { Result result= new Result(); RunListener listener= result.createListener(); Description someTest= Description.EMPTY; listener.testStarted(someTest); listener.testAssumptionFailed(someTest, null); listener.testFinished(someTest); asse...
@Test public void failedAssumptionDoesntCountAsRun() throws Exception { Result result= new Result(); RunListener listener= result.createListener(); Description someTest= Description.EMPTY; listener.testStarted(someTest); listener.testAssumptionInvalid(someTest, null); listener.testFinished(someTest); ass...
private Composite createActionSetsPage(Composite parent) { GridData data; Composite actionSetsComposite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); actionSetsComposite.setLayout(layout); // Select... label Label label = new Label(actio...
private Composite createActionSetsPage(Composite parent) { GridData data; Composite actionSetsComposite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); actionSetsComposite.setLayout(layout); // Select... label Label label = new Label(actio...
public MethodBinding createsInternalConstructorWithBinding(MethodBinding inheritedConstructorBinding) { //Add to method'set, the default constuctor that just recall the //super constructor with the same arguments String baseName = "$anonymous"; //$NON-NLS-1$ TypeBinding[] argumentTypes = inheritedConstructorB...
public MethodBinding createsInternalConstructorWithBinding(MethodBinding inheritedConstructorBinding) { //Add to method'set, the default constuctor that just recall the //super constructor with the same arguments String baseName = "$anonymous"; //$NON-NLS-1$ TypeBinding[] argumentTypes = inheritedConstructorB...
public void resolve(BlockScope upperScope) { TypeBinding testType = testExpression.resolveType(upperScope); if (testType == null) return; testExpression.implicitWidening(testType, testType); if (!(testExpression.isConstantValueOfTypeAssignableToType(testType, IntBinding))) { if (!testType.isCompatibleWi...
public void resolve(BlockScope upperScope) { TypeBinding testType = testExpression.resolveType(upperScope); if (testType == null) return; testExpression.implicitWidening(testType, testType); if (!(testExpression.isConstantValueOfTypeAssignableToType(testType, IntBinding))) { if (!testType.isCompatibleWi...
public void update(IWorkbenchPart part, boolean force) { if (part == null) return; String[] oldScopeIds = new String[0]; if (activeService != null) oldScopeIds = activeService.getScopeIds(); activeService = (KeyBindingService) part.getSite().getKeyBindingService(); ...
public void update(IWorkbenchPart part, boolean force) { if (part == null) return; String[] oldScopeIds = new String[0]; if (activeService != null) oldScopeIds = activeService.getScopeIds(); activeService = (KeyBindingService) part.getSite().getKeyBindingService(); ...
protected boolean mustResolve() { if (this.declaringQualification != null) return true; // parameter types if (this.parameterSimpleNames != null) for (int i = 0, max = this.parameterSimpleNames.length; i < max; i++) if (this.parameterQualifications[i] != null) return true; return false; }
protected boolean mustResolve() { if (this.declaringQualification != null) return true; // parameter types if (this.parameterSimpleNames != null) for (int i = 0, max = this.parameterSimpleNames.length; i < max; i++) if (this.parameterQualifications[i] != null) return true; return this.findReferences; // need ...
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*...
public HelpContentsAction(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setActionDefinitionId(IWorkbenchCommandConstants.HELP_HELPCONTENTS); // support for allowing a product to override th...
public HelpContentsAction(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setActionDefinitionId(IWorkbenchCommandConstants.HELP_HELP_CONTENTS); // support for allowing a product to override t...
protected void consumeEnterAnonymousClassBody() { // EnterAnonymousClassBody ::= $empty if (this.indexOfAssistIdentifier() < 0) { super.consumeEnterAnonymousClassBody(); return; } // trick to avoid creating a selection on type reference char [] oldIdent = this.assistIdentifier(); this.setAssistIdentifier(n...
protected void consumeEnterAnonymousClassBody() { // EnterAnonymousClassBody ::= $empty if (this.indexOfAssistIdentifier() < 0) { super.consumeEnterAnonymousClassBody(); return; } // trick to avoid creating a selection on type reference char [] oldIdent = this.assistIdentifier(); this.setAssistIdentifier(n...
public void pageOpened(IWorkbenchPage page) { page.addPartListener(partListener); update(page.getActivePart()); finalWorkbenchWindow.getShell().removeShellListener(shellListener); finalWorkbenchWindow.getShell().addShellListener(shellListener); } }); } void clear() { Manager.get...
public void pageOpened(IWorkbenchPage page) { page.addPartListener(partListener); update(page.getActivePart()); finalWorkbenchWindow.getShell().removeShellListener(shellListener); finalWorkbenchWindow.getShell().addShellListener(shellListener); } }); } void clear() { Manager.get...
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (value == null) { setText("");...
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (value == null) { setText("");...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachable) == 0) { return; } int pc = codeStream.position; // labels management BranchLabel actionLabel = new BranchLabel(codeStream); if (action != null) actionLabel.tagBits |= BranchLabel.USED; actionLabel.pla...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachable) == 0) { return; } int pc = codeStream.position; // labels management BranchLabel actionLabel = new BranchLabel(codeStream); if (action != null) actionLabel.tagBits |= BranchLabel.USED; actionLabel.pla...
protected void checkCanceled() { if (isCanceled()) { throw new OperationCanceledException(Util.bind("operation.cancelled")); //$NON-NLS-1$ } }
protected void checkCanceled() { if (isCanceled()) { throw new OperationCanceledException(Util.bind("operation.cancelled"/*nonNLS*/)); } }
import org.eclipse.ui.contexts.IContextRegistry; /******************************************************************************* * 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 Licen...
import org.eclipse.ui.contexts.IContextRegistry; /******************************************************************************* * 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 Licen...
public void setReturnType(Classifier rt) throws PropertyVetoException { Parameter p = findParameter(Parameter.RETURN_NAME); if (p == null) { p = new Parameter(rt, ParameterDirectionKind.IN, Parameter.RETURN_NAME); addParameter(p); //System.out.println("just set return type"); } else ...
public void setReturnType(Classifier rt) throws PropertyVetoException { Parameter p = findParameter(Parameter.RETURN_NAME); if (p == null) { p = new Parameter(rt, ParameterDirectionKind.RETURN, Parameter.RETURN_NAME); addParameter(p); //System.out.println("just set return type"); } e...
extends BaseAttributeType package org.tigris.scarab.om; // JDK classes import java.util.*; // Turbine classes import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.ObjectUtils; import org.apache.turbine.util.StringUtils;...
extends BaseAttributeType package org.tigris.scarab.om; // JDK classes import java.util.*; // Turbine classes import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.ObjectUtils; import org.apache.turbine.util.StringUtils;...
" (list of publications: KBSE'96, IUI'98, ICSE'98, etc.)" ); String s = ""; s+="Copyright (c) 1996-99 The Regents of the University of California.\n"; s+="All Rights Reserved. Permission to use, copy, modify, and distribute\n"; s+="this software and its documentation without fee, and w...
" (list of publications: KBSE'96, IUI'98, ICSE'98, etc.)" ); String s = ""; s+="Copyright (c) 1996-99 The Regents of the University of California.\n"; s+="All Rights Reserved. Permission to use, copy, modify, and distribute\n"; s+="this software and its documentation without fee, and w...
public String toString() { return Localizer.localize ("Tree", "Element->Required Element"); }
public String toString() { return Localizer.localize ("Tree", "misc.element.required-element"); }
public Color getBackground(Object element) { boolean highlight = false; if(element instanceof WorkbenchPreferenceNode) highlight = ((WorkbenchPreferenceNode)element).isHighlighted(); else highlight = ((WorkbenchPreferenceGroup)element).isHighlighted(); if(highlight) return Workbench.getInstance().g...
public Color getBackground(Object element) { boolean highlight = false; if(element instanceof WorkbenchPreferenceNode) highlight = ((WorkbenchPreferenceNode)element).isHighlighted(); if(element instanceof WorkbenchPreferenceGroup) highlight = ((WorkbenchPreferenceGroup)element).isHighlighted(); if(hig...
public CmdSetPreferredSize(int mode) { super("Set " + wordFor(r) + " size"); _mode = mode; }
public CmdSetPreferredSize(int mode) { super("Set " + wordFor(mode) + " size"); _mode = mode; }
protected SendableHeader initHeader() { SendableHeader header = new SendableHeader(); EncodedWordEncoder encoder = new EncodedWordEncoder(); // RFC822 - Header // TODO : Add EncodedWord-Support to TO,CC,FROM -> like Subject! if (model.getToList().size() > 0) header.set("To", ListParser.parse(model.ge...
protected SendableHeader initHeader() { SendableHeader header = new SendableHeader(); EncodedWordEncoder encoder = new EncodedWordEncoder(); // RFC822 - Header // TODO : Add EncodedWord-Support to TO,CC,FROM -> like Subject! if (model.getToList().size() > 0) header.set("To", ListParser.parse(model.ge...
public void handleException(Throwable e) { errors[0]++; } }); } if (errors[0] > 0) { String message; if (errors[0] == 1) message = WorkbenchMessages.getString("WorkbenchPage.oneErrorClosingPage"); //$NON-NLS-1$ else message = WorkbenchMessages.getString("WorkbenchPage.multipleErrors...
public void handleException(Throwable e) { errors[0]++; } }); } if (errors[0] > 0) { String message; if (errors[0] == 1) message = WorkbenchMessages.getString("WorkbenchPage.oneErrorClosingPage"); //$NON-NLS-1$ else message = WorkbenchMessages.getString("WorkbenchPage.multipleErrors...
public int resolveLevel(ASTNode possiblelMatchingNode) { if (this.pattern.findReferences) if (possiblelMatchingNode instanceof NameReference) return resolveLevel((NameReference) possiblelMatchingNode); if (possiblelMatchingNode instanceof LocalDeclaration) return matchLocalVariable(((LocalDeclaration) possible...
public int resolveLevel(ASTNode possiblelMatchingNode) { if (this.pattern.findReferences || this.pattern.fineGrain != 0) if (possiblelMatchingNode instanceof NameReference) return resolveLevel((NameReference) possiblelMatchingNode); if (possiblelMatchingNode instanceof LocalDeclaration) return matchLocalVariab...
public ArrayBinding createArrayType(TypeBinding type, int dimension) { if (type.isValidBinding() && !type.isParameterizedType()) return environment().createArrayType(type, dimension); // do not cache obvious invalid types return new ArrayBinding(type, dimension, environment()); }
public ArrayBinding createArrayType(TypeBinding type, int dimension) { if (type.isValidBinding()) return environment().createArrayType(type, dimension); // do not cache obvious invalid types return new ArrayBinding(type, dimension, environment()); }
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (valueRequired) { if ((bits & DepthMASK) != 0) { Object[] emulationPath = currentScope.getExactEmulationPath(currentCompatibleType); if (emulationPath == null) { // internal e...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (valueRequired) { if ((bits & DepthMASK) != 0) { Object[] emulationPath = currentScope.getExactEmulationPath(currentCompatibleType); if (emulationPath == null) { // internal e...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); LoopingFlowContext loopingContext = new LoopingFlowContext( flowContext, this, breakLabel, continueLabel, currentScope); Cons...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); LoopingFlowContext loopingContext = new LoopingFlowContext( flowContext, this, breakLabel, continueLabel, currentScope); Cons...
public void applySourceDelta(Hashtable deltas) { fNotifier = new BuildNotifier(fDC, false); fNotifier.begin(); fNotifier.subTask(Util.bind("build.preparingBuild")); //$NON-NLS-1$ fSourceDeltas = deltas; fNewState = fOldState.copy(fNewProject, fImageContext); // options might have changed since last builder run, ...
public void applySourceDelta(Hashtable deltas) { fNotifier = new BuildNotifier(fDC, false); fNotifier.begin(); fNotifier.subTask(Util.bind("build.preparingBuild")); //$NON-NLS-1$ fSourceDeltas = deltas; fNewState = fOldState.copy(fNewProject, fImageContext); // options might have changed since last builder run, ...
public SyntheticArgumentBinding getSyntheticArgument(ReferenceBinding targetEnclosingType, boolean onlyExactMatch) { if (enclosingInstances == null) return null; // is null if no enclosing instances are known // exact match for (int i = enclosingInstances.length; --i >= 0;) if (enclosingInstances[i].type ...
public SyntheticArgumentBinding getSyntheticArgument(ReferenceBinding targetEnclosingType, boolean onlyExactMatch) { if (enclosingInstances == null) return null; // is null if no enclosing instances are known // exact match for (int i = enclosingInstances.length; --i >= 0;) if (enclosingInstances[i].type ...
public int getNodeType() { return SWITCH_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { SwitchStatement result = new SwitchStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLeadingComment(getLeadin...
public int getNodeType() { return SWITCH_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { SwitchStatement result = new SwitchStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); ...
private JavaElement getUnresolvedJavaElement(org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding ) { if (typeBinding == null) return null; switch (typeBinding.kind()) { case Binding.ARRAY_TYPE : typeBinding = ((ArrayBinding) typeBinding).leafComponentType(); return getUnresolvedJavaElem...
private JavaElement getUnresolvedJavaElement(org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding ) { if (typeBinding == null) return null; switch (typeBinding.kind()) { case Binding.ARRAY_TYPE : typeBinding = ((ArrayBinding) typeBinding).leafComponentType(); return getUnresolvedJavaElem...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; if (statements != null) { for (int i = 0, max = statements.length; i < max; i++) { statements[i].generateCode(scope, codeStream); } } // for loc...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; if (statements != null) { for (int i = 0, max = statements.length; i < max; i++) { statements[i].generateCode(scope, codeStream); } } // for loc...
public void resolve(BlockScope upperScope) { TypeBinding testType = testExpression.resolveType(upperScope); if (testType == null) return; testExpression.implicitWidening(testType, testType); if (!(testExpression.isConstantValueOfTypeAssignableToType(testType, IntBinding))) { if (!testType.isCompatibleWi...
public void resolve(BlockScope upperScope) { TypeBinding testType = testExpression.resolveType(upperScope); if (testType == null) return; testExpression.implicitWidening(testType, testType); if (!(testExpression.isConstantValueOfTypeAssignableToType(testType, IntBinding))) { if (!testType.isCompatibleWi...
@Test public void runATest() { testWasRun= false; new JUnitCore().runMain(new String[]{"org.junit.tests.CommandLineTest$Example"}); assertTrue(testWasRun); }
@Test public void runATest() { testWasRun= false; new JUnitCore().runMain(new String[]{"org.junit.tests.running.core.CommandLineTest$Example"}); assertTrue(testWasRun); }
public boolean isCheckAll() { POP3Server controller = POP3ServerCollection.getInstance().uidGet(accountUid); return !controller.getAccountItem().getPopItem() .getBoolean("exclude_from_checkall", false); }
public boolean isCheckAll() { POP3Server controller = POP3ServerCollection.getInstance().uidGet(accountUid); return !controller.getAccountItem().getPopItem() .getBooleanWithDefault("exclude_from_checkall", false); }
public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException { HttpServletRequest req = (HttpServletRequest)request; // XXX instead of setting the new parameters and back to original, // it should just use a sub-request ( by cloning the original ) // That will...
public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException { HttpServletRequest req = (HttpServletRequest)request; // XXX instead of setting the new parameters and back to original, // it should just use a sub-request ( by cloning the original ) // That will...
private ASTNode.NodeList tags = new ASTNode.NodeList(TAGS_PROPERTY); /** * Creates a new AST node for a doc comment owned by the given AST. * The new node has an empty list of tag elements (and, for backwards * compatability, an unspecified, but legal, doc comment string). * <p> * N.B. This constructor ...
private ASTNode.NodeList tags = new ASTNode.NodeList(TAGS_PROPERTY); /** * Creates a new AST node for a doc comment owned by the given AST. * The new node has an empty list of tag elements (and, for backwards * compatability, an unspecified, but legal, doc comment string). * <p> * N.B. This constructor ...
public void resolve() { if (binding == null) { ignoreFurtherInvestigation = true; return; } try { // check superclass & interfaces if (binding.superclass != null) // watch out for Object ! (and other roots) if (isTypeUseDeprecated(binding.superclass, scope)) scope.problemReporter().deprec...
public void resolve() { if (binding == null) { ignoreFurtherInvestigation = true; return; } try { // check superclass & interfaces if (binding.superclass != null) // watch out for Object ! (and other roots) if (isTypeUseDeprecated(binding.superclass, scope)) scope.problemReporter().deprec...
public void setExpression(Expression expression) { if (expression == null) { throw new IllegalArgumentException(); } // a FieldAccess may occur inside an Expression - must check cycles replaceChild((ASTNode) this.expression, (ASTNode) expression, true); this.expression = expression; }
public void setExpression(Expression expression) { if (expression == null) { throw new IllegalArgumentException(); } // a FieldAccess may occur inside an Expression - must check cycles replaceChild(this.expression, expression, true); this.expression = expression; }
public void resolve(BlockScope scope) { super.resolve(scope); // tolerate some error cases if (binding == null || !(binding.isValidBinding() || binding.problemId() == ProblemReasons.NotVisible)) throw new SelectionNodeFound(); else throw new SelectionNodeFound(this, binding); }
public void resolve(BlockScope scope) { super.resolve(scope); // tolerate some error cases if (binding == null || !(binding.isValidBinding() || binding.problemId() == ProblemReasons.NotVisible)) throw new SelectionNodeFound(); else throw new SelectionNodeFound(binding); }
private void generateCode( ClassScope classScope, ClassFile classFile, int clinitOffset) { ConstantPool constantPool = classFile.constantPool; int constantPoolOffset = constantPool.currentOffset; int constantPoolIndex = constantPool.currentIndex; classFile.generateMethodInfoHeaderForClinit(); int code...
private void generateCode( ClassScope classScope, ClassFile classFile, int clinitOffset) { ConstantPool constantPool = classFile.constantPool; int constantPoolOffset = constantPool.currentOffset; int constantPoolIndex = constantPool.currentIndex; classFile.generateMethodInfoHeaderForClinit(); int code...
protected RemoteRef getClientRef() { return new JUnicastRefSf(ref, cis, JInterceptorStore.getJRMPInitializers()); }
protected RemoteRef getClientRef() { return new JUnicastRefSf(ref, cis, JInterceptorStore.getJRMPInitializers(), -2); }
public Compiler createCompiler() throws JasperException { String compilerPath = options.getJspCompilerPath(); Class jspCompilerPlugin = options.getJspCompilerPlugin(); JavaCompiler javac; if (jspCompilerPlugin != null) { try { javac = (JavaCompiler) jspCompilerPlugin.newInsta...
public Compiler createCompiler() throws JasperException { String compilerPath = options.getJspCompilerPath(); Class jspCompilerPlugin = options.getJspCompilerPlugin(); JavaCompiler javac; if (jspCompilerPlugin != null) { try { javac = (JavaCompiler) jspCompilerPlugin.newInsta...
public boolean isExecutable() { return view().selectionCount() > 0; }
public boolean isExecutable() { return fView.selectionCount() > 0; }
public String toString() { return "JarEntryFile["+this.zipName+"::"+this.entryName+"]"; //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-1$ }
public String toString() { return "JarEntryFile["/*nonNLS*/+this.zipName+"::"/*nonNLS*/+this.entryName+"]"/*nonNLS*/; }