buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public int authenticate( Request req , Response res ) { Context ctx=req.getContext(); String login_type=ctx.getAuthMethod(); if( "BASIC".equals( login_type )) { basicCredentials( req ); } if( "FORM".equals( login_type )) { formCredentials( req ); } return 0; }
public int authenticate( Request req , Response res ) { Context ctx=req.getContext(); String login_type=ctx.getAuthMethod(); if( "BASIC".equals( login_type )) { basicCredentials( req ); } if( "FORM".equals( login_type )) { formCredentials( req ); } return DECLINED; }
public synchronized void paint(Graphics g) { Dimension size = getSize(); if(offscreenImg == null) { offscreenImg = createImage(size.width,size.height); offscreenGfx = offscreenImg.getGraphics(); } offscreenGfx.setColor(Color.black); offscreenGfx.drawRect(0,0,size.width - 1,size.height - 1); off...
public synchronized void paint(Graphics g) { Dimension size = getSize(); if(offscreenImg == null) { offscreenImg = createImage(size.width,size.height); offscreenGfx = offscreenImg.getGraphics(); } offscreenGfx.setColor(Color.black); offscreenGfx.drawRect(0,0,size.width - 1,size.height - 1); off...
package org.apache.log4j; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software * License version 1.1, a copy of which has been included with this * distribution in the LICENSE.APL file. */ package org.log4j; import java.ut...
package org.apache.log4j; /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software * License version 1.1, a copy of which has been included with this * distribution in the LICENSE.APL file. */ package org.apache.log4j; import ...
public Color getBackground(Object element) { if (WorkbenchActivityHelper.filterItem(element)) { return WorkbenchActivityHelper.getFilterColor(); } return null; }
public Color getBackground(Object element) { if (element instanceof ViewDescriptor && WorkbenchActivityHelper.filterItem(element)) { return WorkbenchActivityHelper.getFilterColor(); } return null; }
private boolean isRuntimeVisible(Annotation annotation) { final TypeBinding annotationBinding = annotation.resolvedType; if (annotationBinding == null) { return false; } long metaTagBits = annotationBinding.tagBits; if ((metaTagBits & TagBits.AnnotationRetentionMASK) == 0) return false; // by default t...
private boolean isRuntimeVisible(Annotation annotation) { final TypeBinding annotationBinding = annotation.resolvedType; if (annotationBinding == null) { return false; } long metaTagBits = annotationBinding.getAnnotationTagBits(); if ((metaTagBits & TagBits.AnnotationRetentionMASK) == 0) return false; ...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ IfStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ IfStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors...
public StackPresentation createPresentation(Composite parent, IStackPresentationSite site, int role, int flags, String perspectiveId, String folderId) { switch (role) { case ROLE_EDITOR_WORKBOOK: return new EditorPresentation(parent, site, flags); case ROL...
public StackPresentation createPresentation(Composite parent, IStackPresentationSite site, int role, int flags, String perspectiveId, String folderId) { switch (role) { case ROLE_EDITOR_WORKBOOK: return new EditorPresentation(parent, site, flags); case ROL...
public void actionPerformed(ActionEvent ae) { Project p = ProjectBrowser.TheInstance.getProject(); try { MCollaboration c = UmlFactory.getFactory().getCollaborations().createCollaboration(); c.setUUID(UUIDManager.SINGLETON.getNewUUID()); c.setName("Collaboration"); p.getModel().addOwnedElement...
public void actionPerformed(ActionEvent ae) { Project p = ProjectBrowser.TheInstance.getProject(); try { MCollaboration c = UmlFactory.getFactory().getCollaborations().createCollaboration(); // c.setUUID(UUIDManager.SINGLETON.getNewUUID()); c.setName("Collaboration"); p.getModel().addOwnedElem...
private void buildFields() { boolean hierarchyIsInconsistent = referenceContext.binding.isHierarchyInconsistent(); if (referenceContext.fields == null) { if (hierarchyIsInconsistent) { // 72468 referenceContext.binding.fields = new FieldBinding[1]; referenceContext.binding.fields[0] = new FieldBind...
private void buildFields() { boolean hierarchyIsInconsistent = referenceContext.binding.isHierarchyInconsistent(); if (referenceContext.fields == null) { if (hierarchyIsInconsistent) { // 72468 referenceContext.binding.fields = new FieldBinding[1]; referenceContext.binding.fields[0] = new FieldBind...
public FlowInfo analyseAssignment(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, Assignment assignment, boolean isCompound) { // compound assignment extra work if (isCompound) { // check the variable part is initialized if blank final if (binding.isBlankFinal() && receiver.isThis() && ...
public FlowInfo analyseAssignment(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, Assignment assignment, boolean isCompound) { // compound assignment extra work if (isCompound) { // check the variable part is initialized if blank final if (binding.isBlankFinal() && receiver.isThis() && ...
public void setTarget(Object oTarget) { if (!(oTarget instanceof MModelElementImpl)) { m_mmeiTarget = null; return; }
public void setTarget(Object oTarget) { if (!(oTarget instanceof MModelElement)) { m_mmeiTarget = null; return; }
public void actionPerformed(ActionEvent e) { //item.setSelected(checkbox.isSelected()); selected= new Boolean(checkbox.isSelected()); fireEditingStopped(); //Make the renderer reappear. }
public void actionPerformed(ActionEvent e) { //item.setSelected(checkbox.isSelected()); selected= Boolean.valueOf(checkbox.isSelected()); fireEditingStopped(); //Make the renderer reappear. }
public final boolean checkCastTypesCompatibility( BlockScope scope, TypeBinding castType,
public final boolean checkCastTypesCompatibility( Scope scope, TypeBinding castType,
public void parse(Document document) { Pattern currentPattern = new Pattern(); Element e = document.getDocumentElement(); loop(e, currentPattern); } void loop(Node n, Pattern currentPattern) { if (n == null) { return; } try { currentPattern.push(n.getNodeName()); if (n...
public void loop(Node n, Pattern currentPattern) { if (n == null) { return; } try { currentPattern.push(n.getNodeName()); if (n instanceof Element) { logger.debug("pattern is " + currentPattern); } List applicableActionList = ruleStore.matchActions(currentPattern);...
public boolean canBeProcessed(int operationMode) { DefaultCommandReference[] references = getReferences(operationMode); int size = Array.getLength(references); boolean success = true; for (int i = 0;(i < size) && success; i++) { success &= references[i].tryToGetLock(); } if (!success) { releaseAll...
public boolean canBeProcessed(int operationMode) { DefaultCommandReference[] references = getReferences(operationMode); int size = Array.getLength(references); boolean success = true; for (int i = 0;(i < size) && success; i++) { success &= references[i].tryToGetLock(this); } if (!success) { releas...
public StringBuffer printStatement(int tab, StringBuffer output) { return type.print(tab, output).append(';'); }
public StringBuffer printStatement(int tab, StringBuffer output) { return this.type.print(tab, output).append(';'); }
public boolean hasSubstitutedReturnType() { if (this.wasInferred) return this.originalMethod.hasSubstitutedReturnType(); return super.hasSubstitutedReturnType(); }
public boolean hasSubstitutedReturnType() { if (this.inferredReturnType) return this.originalMethod.hasSubstitutedReturnType(); return super.hasSubstitutedReturnType(); }
private static Map getDescriptors() { if (descriptors == null) { initializeImageRegistry(); } return descriptors; }
public static void declareImage(String symbolicName, ImageDescriptor descriptor, boolean shared) { if (Policy.DEBUG_DECLARED_IMAGES) { Image image = descriptor.createImage(false); if (image == null) { WorkbenchPlugin.log("Image not found in WorkbenchImages...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()).getTableSelection(); MainInterface.processor.addOp(new AnalyzeMessageCommand(r)); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference r = ((AbstractMailFrameController) getFrameMediator()).getTableSelection(); MainInterface.processor.addOp(new AnalyzeMessageCommand(r)); }
private boolean checkSelection( char[] source, int selectionStart, int selectionEnd) { Scanner scanner = new Scanner(); scanner.setSourceBuffer(source); int lastIdentifierStart = -1; int lastIdentifierEnd = -1; char[] lastIdentifier = null; int token, identCount = 0; StringBuffer entireSelectio...
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...
public Name(String s) { this (s, null); } Name(CountedDataInputStream in, Compression c) throws IOException { int len, start, count = 0; labels = 0; name = new String[MAXLABELS]; start = in.getPos(); while ((len = in.readUnsignedByte()) != 0) { if ((len & 0xC0) != 0) { int pos = in.readUnsignedByte(); ...
public Name(String s) { this (s, null); } Name(DataByteInputStream in, Compression c) throws IOException { int len, start, count = 0; labels = 0; name = new String[MAXLABELS]; start = in.getPos(); while ((len = in.readUnsignedByte()) != 0) { if ((len & 0xC0) != 0) { int pos = in.readUnsignedByte(); pos...
public void actionPerformed(ActionEvent evt) { new ExportDialog(); }
public void actionPerformed(ActionEvent evt) { new ExportDialog(getFrameMediator().getView().getFrame()); }
public byte verifyAXFR(Message m, byte [] b, TSIGRecord old, boolean required, boolean first) { TSIGRecord tsig = m.getTSIG(); hmacSigner h = axfrSigner; if (first) return verify(m, b, old); if (tsig != null) m.getHeader().decCount(Section.ADDITIONAL); byte [] header = m.getHeader().toWire(); if (tsig ...
public byte verifyAXFR(Message m, byte [] b, TSIGRecord old, boolean required, boolean first) { TSIGRecord tsig = m.getTSIG(); hmacSigner h = axfrSigner; if (first) return verify(m, b, old); if (tsig != null) m.getHeader().decCount(Section.ADDITIONAL); byte [] header = m.getHeader().toWire(); if (tsig ...
public boolean trySave( boolean overwrite ) { CmdSaveGIF cmd = new CmdSaveGIF(); Object target = ProjectBrowser.TheInstance.getTarget(); if( target instanceof Diagram ) { String defaultName = ((Diagram)target).getName(); defaultName = Util.stripJunk(defaultName); // FIX - It's probably worthwhile...
public boolean trySave( boolean overwrite ) { CmdSaveGIF cmd = new CmdSaveGIF(); Object target = ProjectBrowser.TheInstance.getActiveDiagram(); if( target instanceof Diagram ) { String defaultName = ((Diagram)target).getName(); defaultName = Util.stripJunk(defaultName); // FIX - It's probably wor...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ NormalAnnotation(AST ast) { super(ast); unsupportedIn2(); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { ...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ NormalAnnotation(AST ast) { super(ast); unsupportedIn2(); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { ...
public Object getWrappedConstantValue() { if (this.wrappedConstantValue == null) { if (hasConstant()) { Constant fieldConstant = getConstant(); switch (fieldConstant.typeID()) { case T_int : this.wrappedConstantValue = new Integer(fieldConstant.intValue()); break; case T_byte : this.wra...
public Object getWrappedConstantValue() { if (this.wrappedConstantValue == null) { if (hasConstant()) { Constant fieldConstant = getConstant(); switch (fieldConstant.typeID()) { case T_int : this.wrappedConstantValue = new Integer(fieldConstant.intValue()); break; case T_byte : this.wra...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { FlowInfo thenFlowInfo, elseFlowInfo; // process the condition flowInfo = condition.analyseCode(currentScope, flowContext, flowInfo); Constant condConstant = this.condition.optimizedBooleanConstant(); ...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { FlowInfo thenFlowInfo, elseFlowInfo; // process the condition flowInfo = condition.analyseCode(currentScope, flowContext, flowInfo); Constant condConstant = this.condition.optimizedBooleanConstant(); //T...
public void resolve(BlockScope scope) { MethodScope methodScope = scope.methodScope(); MethodBinding methodBinding; TypeBinding methodType = (methodScope.referenceContext instanceof AbstractMethodDeclaration) ? ((methodBinding = ((AbstractMethodDeclaration) methodScope.referenceContext).binding) == nul...
public void resolve(BlockScope scope) { MethodScope methodScope = scope.methodScope(); MethodBinding methodBinding; TypeBinding methodType = (methodScope.referenceContext instanceof AbstractMethodDeclaration) ? ((methodBinding = ((AbstractMethodDeclaration) methodScope.referenceContext).binding) == nul...
public void testNamespace() { Object o = getFactory().create(Uml.NAMESPACE); assertNotNull("Didn't create object", o); assertTrue("Should be a base", ModelFacade.isABase(o)); assertTrue("Should be a namespace", ModelFacade.isANamespace(o)); runTruthTests(o); }
public void testNamespace() { Object o = ModelFacade.getFacade().create(Uml.NAMESPACE); assertNotNull("Didn't create object", o); assertTrue("Should be a base", ModelFacade.isABase(o)); assertTrue("Should be a namespace", ModelFacade.isANamespace(o)); runTruthTests(o); }
public Argument(char[] name, long posNom, TypeReference tr, int modifiers) { super(null, name, (int) (posNom >>> 32), (int) posNom); this.declarationSourceEnd = (int) posNom; this.modifiers = modifiers; type = tr; this.bits |= IsLocalDeclarationReachableMASK; }
public Argument(char[] name, long posNom, TypeReference tr, int modifiers) { super(name, (int) (posNom >>> 32), (int) posNom); this.declarationSourceEnd = (int) posNom; this.modifiers = modifiers; type = tr; this.bits |= IsLocalDeclarationReachableMASK; }
public static boolean isExternalFolderPath(IPath externalPath) { if (externalPath == null) return false; if (ResourcesPlugin.getWorkspace().getRoot().getProject(externalPath.segment(0)).exists()) return false; File externalFolder = externalPath.toFile(); if (externalFolder.isFile()) return false; if...
public static boolean isExternalFolderPath(IPath externalPath) { if (externalPath == null) return false; if (ResourcesPlugin.getWorkspace().getRoot().getProject(externalPath.segment(0)).exists()) return false; File externalFolder = externalPath.toFile(); if (externalFolder.isFile()) return false; if...
private void loadAllRenderer() { ClassLoader loader = ClassLoader.getSystemClassLoader(); Class actClass = null; try { for (int i = 0; i < Array.getLength(renderers); i++) { actClass = loader.loadClass(rendererPath + renderers[i]); if (actClass .getSuperclass() .getName() .equals("org...
private void loadAllRenderer() { ClassLoader loader = ClassLoader.getSystemClassLoader(); Class actClass = null; try { for (int i = 0; i < Array.getLength(renderers); i++) { actClass = loader.loadClass(rendererPath + renderers[i]); if (actClass .getSuperclass() .getName() .equals("org...
public void acceptProblem(IProblem problem, char[] fragmentSource, int fragmentKind) { requestor.acceptProblem(problem, fragmentSource, fragmentKind); if (problem.isError()) { hasErrors = true; } } }; ForwardingRequestor forwardingRequestor = new ForwardingRequestor(); if (this.varsChanged)...
public void acceptProblem(IProblem problem, char[] fragmentSource, int fragmentKind) { requestor.acceptProblem(problem, fragmentSource, fragmentKind); if (problem.isError()) { hasErrors = true; } } } ForwardingRequestor forwardingRequestor = new ForwardingRequestor(); if (this.varsChanged) ...
public void begin(ExecutionContext ec, String name, Attributes attributes) { String str = "Hello "+name+"."; ec.getObjectMap().put("hello", str); }
public void begin(ExecutionContext ec, String name, Attributes attributes) { String str = "Hello "+attributes.getValue("name")+"."; ec.getObjectMap().put("hello", str); }
private static final String DEFAULT_WORKBOOK_ID = "DefaultEditorWorkbook";//$NON-NLS-1$
public void setTrimState(int newTrimState) { if (newTrimState == getTrimState()) return; // Remember the new state int oldTrimState = getTrimState(); // set the new one super.setTrimState(newTrimState); WorkbenchWindow wbw = (WorkbenchWindow) getWorkbenchWindow(); if (wbw == ...
public void finalize() { deregisterEventSource(_handle); _handle = 0; } /** Retuns the option names for this component. **/
public void finalize() { deregisterEventSource(_handle); _handle = 0; } /** Returns the option names for this component. **/
public String toString() { return name; }
public String toString() { return KeyFormatterFactory.getFormalKeyFormatter().format(this); }
public TypeBinding getOtherFieldBindings(BlockScope scope) { // At this point restrictiveFlag may ONLY have two potential value : FIELD LOCAL (i.e cast <<(VariableBinding) binding>> is valid) int length = tokens.length; FieldBinding field; if ((bits & Binding.FIELD) != 0) { field = (FieldBinding) this.bindi...
public TypeBinding getOtherFieldBindings(BlockScope scope) { // At this point restrictiveFlag may ONLY have two potential value : FIELD LOCAL (i.e cast <<(VariableBinding) binding>> is valid) int length = tokens.length; FieldBinding field; if ((bits & Binding.FIELD) != 0) { field = (FieldBinding) this.bindi...
private Object[] computeNonJavaResources(JavaProject project) { // determine if src == project and/or if bin == project IPath projectPath = project.getProject().getFullPath(); boolean srcIsProject = false; boolean binIsProject = false; char[][] exclusionPatterns = null; try { IClasspathEntry[] classp...
private Object[] computeNonJavaResources(JavaProject project) { // determine if src == project and/or if bin == project IPath projectPath = project.getProject().getFullPath(); boolean srcIsProject = false; boolean binIsProject = false; char[][] exclusionPatterns = null; try { IClasspathEntry[] classp...
protected boolean validatePage() { boolean valid = true; IWorkspace workspace = WorkbenchPlugin.getPluginWorkspace(); String fileName = getFileName(); IStatus nameStatus = workspace.validateName(fileName, IResource.FILE); if (!nameStatus.isOK()) { setErrorMessage(nameStatus.getMessage()); return false; } ...
protected boolean validatePage() { boolean valid = true; IWorkspace workspace = WorkbenchPlugin.getPluginWorkspace(); String fileName = getFileName(); IStatus nameStatus = workspace.validateName(fileName, IResource.FILE); if (!nameStatus.isOK()) { setErrorMessage(nameStatus.getMessage()); return false; } ...
public SyntheticArgumentBinding[] syntheticOuterLocalVariables() { return outerLocalVariables; // is null if no enclosing instances are required }
public SyntheticArgumentBinding[] syntheticOuterLocalVariables() { return outerLocalVariables; // is null if no outer locals are required }
public int boundCheck(Substitution substitution, TypeBinding argumentType) { if (argumentType == NullBinding || argumentType == this) return TypeConstants.OK; boolean hasSubstitution = substitution != null; if (!(argumentType instanceof ReferenceBinding || argumentType.isArrayType())) return TypeConstants...
public int boundCheck(Substitution substitution, TypeBinding argumentType) { if (argumentType == NullBinding || argumentType == this) return TypeConstants.OK; boolean hasSubstitution = substitution != null; if (!(argumentType instanceof ReferenceBinding || argumentType.isArrayType())) return TypeConstants...
public void resolve(BlockScope scope) { MethodScope methodScope = scope.methodScope(); MethodBinding methodBinding; TypeBinding methodType = (methodScope.referenceContext instanceof AbstractMethodDeclaration) ? ((methodBinding = ((AbstractMethodDeclaration) methodScope.referenceContext).binding) == null ? ...
public void resolve(BlockScope scope) { MethodScope methodScope = scope.methodScope(); MethodBinding methodBinding; TypeBinding methodType = (methodScope.referenceContext instanceof AbstractMethodDeclaration) ? ((methodBinding = ((AbstractMethodDeclaration) methodScope.referenceContext).binding) == null ? ...
public QualifiedTypeDeclarationPattern(char[] qualification, char[] simpleName, char typeSuffix, int matchRule) { this(matchRule); this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = (this.isCaseSensitive || this.isCamelCase) ? simpleName : CharOpe...
public QualifiedTypeDeclarationPattern(char[] qualification, char[] simpleName, char typeSuffix, int matchRule) { this(matchRule); this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = (this.isCaseSensitive || this.isCamelCase) ? simpleName : CharOpe...
public void append(LoggingEvent event) { // Set the NDC and thread name for the calling thread as these // LoggingEvent fields were not set at event creation time. event.getNDC(); event.getThreadName(); if(locationInfo) { event.setLocationInformation(); } synchronized(bf) { ...
public void append(LoggingEvent event) { // Set the NDC and thread name for the calling thread as these // LoggingEvent fields were not set at event creation time. event.getNDC(); event.getThreadName(); if(locationInfo) { event.getLocationInformation(); } synchronized(bf) { i...
public boolean checkState() { String subject = model.getHeaderField("Subject"); if (subject.length() == 0) { subject = new String(MailResourceLoader.getString("menu","mainframe","composer_no_subject")); //$NON-NLS-1$ //SubjectDialog dialog = new SubjectDialog(composerInterface.composerFrame); SubjectDial...
public boolean checkState() { String subject = model.getHeaderField("Subject"); if (subject.length() == 0) { subject = new String(MailResourceLoader.getString("dialog","composer","composer_no_subject")); //$NON-NLS-1$ //SubjectDialog dialog = new SubjectDialog(composerInterface.composerFrame); SubjectDia...
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 ...
private char[] getQualifiedName() { if (this.openable instanceof CompilationUnit) { // get file name String fileName = this.resource.getFullPath().lastSegment(); // get main type name char[] mainTypeName = Util.getNameWithoutJavaLikeExtension(fileName).toCharArray(); CompilationUnit cu = (CompilationUnit) th...
private char[] getQualifiedName() { if (this.openable instanceof CompilationUnit) { // get file name String fileName = this.openable.getElementName(); // working copy on a .class file may not have a resource, so use the element name // get main type name char[] mainTypeName = Util.getNameWithoutJavaLikeExtensi...
public ITypeBinding getAnnotationType() { ITypeBinding typeBinding = this.bindingResolver.getTypeBinding(this.binding.getAnnotationType()); if (typeBinding == null || !typeBinding.isAnnotation()) return null; return typeBinding; }
public ITypeBinding getAnnotationType() { ITypeBinding typeBinding = this.bindingResolver.getTypeBinding(this.binding.getAnnotationType()); if (typeBinding == null) return null; return typeBinding; }
protected int matchNameValue(char[] pattern, char[] name) { if (pattern == null || pattern.length == 0) return ACCURATE_MATCH; // null is as if it was "*" if (name == null) return IMPOSSIBLE_MATCH; // cannot match null name if (name.length == 0) { // empty name if (pattern.length == 0) { // can only matches empty ...
protected int matchNameValue(char[] pattern, char[] name) { if (pattern == null) return ACCURATE_MATCH; // null is as if it was "*" if (name == null) return IMPOSSIBLE_MATCH; // cannot match null name if (name.length == 0) { // empty name if (pattern.length == 0) { // can only matches empty pattern return ACCUR...
protected void setRawClasspath0(IClasspathEntry[] rawEntries) throws JavaModelException { JavaProjectElementInfo info = getJavaProjectElementInfo(); synchronized (info) { if (rawEntries == null) { rawEntries = defaultClasspath(); } // clear the existing children info.setChildren(new IPackageFr...
protected void setRawClasspath0(IClasspathEntry[] rawEntries) throws JavaModelException { JavaProjectElementInfo info = getJavaProjectElementInfo(); synchronized (info) { if (rawEntries == null) { rawEntries = defaultClasspath(); } // clear the existing children info.setChildren(new IPackageFr...
public static void createDefaultHandler() { if (!userHasDefinedLogging()) { // Since Columba is doing its own logging handlers, we should not // use handlers in the parent logger. LOG.setUseParentHandlers(false); // init console handler consoleHandler = new ConsoleHandler(); consoleHandler.setF...
public static void createDefaultHandler() { if (!userHasDefinedLogging()) { // Since Columba is doing its own logging handlers, we should not // use handlers in the parent logger. LOG.setUseParentHandlers(false); // init console handler consoleHandler = new ConsoleHandler(); consoleHandler.setF...
public void mousePressed(MouseEvent me) { Vector tailActions = new Vector(); if (me.isPopupTrigger() || me.getModifiers() == InputEvent.BUTTON3_MASK) { //TreeCellEditor tce = _tree.getCellEditor(); JPopupMenu popup = new JPopupMenu("test"); Object obj = getSelectedObject(); if (obj ...
public void mousePressed(MouseEvent me) { Vector tailActions = new Vector(); if (me.isPopupTrigger() || me.getModifiers() == InputEvent.BUTTON3_MASK) { //TreeCellEditor tce = _tree.getCellEditor(); JPopupMenu popup = new JPopupMenu("test"); Object obj = getSelectedObject(); if (obj ...
public RegionBasedTypeHierarchy(IRegion region, IJavaProject project, IType type, boolean computeSubtypes) throws JavaModelException { super(type, (IJavaSearchScope)null, computeSubtypes); fRegion = region; fProject = project; }
public RegionBasedTypeHierarchy(IRegion region, IJavaProject project, IType type, boolean computeSubtypes) throws JavaModelException { super(type, (IJavaSearchScope)null, computeSubtypes, null/*no working copies*/); fRegion = region; fProject = project; }
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) { return null; } this.resolvedType = typeBinding; // ensure t...
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) { return null; } this.resolvedType = typeBinding; // ensure t...
public void computeCorrections(IMarker marker, ICompilationUnit targetUnit, int positionOffset, ICorrectionRequestor requestor) throws JavaModelException { IJavaElement element = targetUnit == null ? JavaCore.create(marker.getResource()) : targetUnit; if(!(element instanceof ICompilationUnit)) return; ...
public void computeCorrections(IMarker marker, ICompilationUnit targetUnit, int positionOffset, ICorrectionRequestor requestor) throws JavaModelException { IJavaElement element = targetUnit == null ? JavaCore.create(marker.getResource()) : targetUnit; if(!(element instanceof ICompilationUnit)) return; ...
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 // regular receiver reference receiverType = receiver.resolveType(scope); if (receiverType == null){ constant = Not...
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 // regular receiver reference receiverType = receiver.resolveType(scope); if (receiverType == null){ constant = Not...
public static void enableAntiAliasing(Graphics g) { if (UIManager.get("antialiasing").equals("1")) { Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint( RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint( RenderingHints.KEY_ANTIALIASING, Ren...
public static void enableAntiAliasing(Graphics g) { if (UIManager.get("antialiasing").equals(new Integer(1))) { Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint( RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint( RenderingHints.KEY_ANTIALIASI...
@Test(timeout=5) public void snappyRetrievalOfAnnotatedMethods() { TestClass testClass= new TestClass(ManyMethods.class); for (int i= 0; i < 100; i++) { testClass.getAnnotatedMethods(Test.class); testClass.getAnnotatedMethods(Before.class); testClass.getAnnotatedMethods(After.class); testClass.getAnnot...
@Test(timeout=10) public void snappyRetrievalOfAnnotatedMethods() { TestClass testClass= new TestClass(ManyMethods.class); for (int i= 0; i < 100; i++) { testClass.getAnnotatedMethods(Test.class); testClass.getAnnotatedMethods(Before.class); testClass.getAnnotatedMethods(After.class); testClass.getAnno...
public String toStringExpression(){ return "super"; //$NON-NLS-1$ }
public String toStringExpression(){ return "super"/*nonNLS*/; }
public void actionPerformed(ActionEvent e) { String action = e.getActionCommand(); if (action.equals("ACCOUNT_PREFERENCES")) { org.columba.mail.gui.config.account.ConfigFrame frame = new org.columba.mail.gui.config.account.ConfigFrame(); } else if ( action.equals( frameController .globalActi...
public void actionPerformed(ActionEvent e) { String action = e.getActionCommand(); if (action.equals("ACCOUNT_PREFERENCES")) { org.columba.mail.gui.config.account.ConfigFrame frame = new org.columba.mail.gui.config.account.ConfigFrame(); } else if ( action.equals( frameController .globalActi...
public void toggleHtmlMode() { XmlElement optionsElement = MailConfig.getInstance().get("composer_options") .getElement("/options"); XmlElement htmlElement = optionsElement.getElement("html"); // switch btw. html and text if necessary String enableHtml = htmlElement.getAttr...
public void toggleHtmlMode() { XmlElement optionsElement = MailConfig.getInstance().get("composer_options") .getElement("/options"); XmlElement htmlElement = optionsElement.getElement("html"); // switch btw. html and text if necessary String enableHtml = htmlElement.getAttr...
public Point getSizeHints() { Display display = canvas.getDisplay(); GC gc = new GC(display); FontMetrics fm = gc.getFontMetrics(); int charWidth = fm.getAverageCharWidth(); int charHeight = fm.getHeight(); int maxWidth = display.getBounds().width / 2; int m...
public Point getSizeHints() { Display display = canvas.getDisplay(); GC gc = new GC(canvas); FontMetrics fm = gc.getFontMetrics(); int charWidth = fm.getAverageCharWidth(); int charHeight = fm.getHeight(); int maxWidth = display.getBounds().width / 2; int ma...
public boolean press(List potentialKeyStrokes, Event event) throws CommandException { // TODO remove event parameter once key-modified actions are removed if (DEBUG && DEBUG_VERBOSE) { System.out .println("KEYS >>> WorkbenchKeyboard.press(potentialKeyStrok...
public boolean press(List potentialKeyStrokes, Event event) throws CommandException { // TODO remove event parameter once key-modified actions are removed if (DEBUG && DEBUG_VERBOSE) { System.out .println("KEYS >>> WorkbenchKeyboard.press(potentialKeyStrok...
public TypeDeclaration convert(MemberTypeDeclaration typeDeclaration) { TypeDeclaration typeDecl = this.ast.newTypeDeclaration(); int modifiers = typeDeclaration.modifiers; modifiers &= ~org.eclipse.jdt.internal.compiler.lookup.CompilerModifiers.AccInterface; // remove AccInterface flags modifiers &= org.eclip...
public TypeDeclaration convert(MemberTypeDeclaration typeDeclaration) { TypeDeclaration typeDecl = this.ast.newTypeDeclaration(); int modifiers = typeDeclaration.modifiers; modifiers &= ~org.eclipse.jdt.internal.compiler.lookup.CompilerModifiers.AccInterface; // remove AccInterface flags modifiers &= org.eclip...
public void loadOptionsFromXml(MessageFolder folder) { XmlElement parent = getConfigNode(folder); DefaultItem item = new DefaultItem(parent); TableController tableController = ((TableViewOwner) getMediator()).getTableController(); TableModelFilter model = tableController.getTableMod...
public void loadOptionsFromXml(MessageFolder folder) { XmlElement parent = getConfigNode(folder); DefaultItem item = new DefaultItem(parent); TableController tableController = ((TableViewOwner) getMediator()).getTableController(); TableModelFilter model = tableController.getTableMod...
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 boolean isRelevant(Critic c, Designer d) { return !c.snoozeOrder().getSnoozeed(); }
public boolean isRelevant(Critic c, Designer d) { return !c.snoozeOrder().getSnoozed(); }
public TypeBinding resolveType(BlockScope scope) { // Propagate the type checking to the arguments, and check if the constructor is defined. constant = Constant.NotAConstant; if (this.type == null) { // initialization of an enum constant this.resolvedType = scope.enclosingReceiverType(); } else { thi...
public TypeBinding resolveType(BlockScope scope) { // Propagate the type checking to the arguments, and check if the constructor is defined. constant = Constant.NotAConstant; if (this.type == null) { // initialization of an enum constant this.resolvedType = scope.enclosingReceiverType(); } else { thi...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ SynchronizedStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDe...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ SynchronizedStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDe...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // record setting a variable: various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. ...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // record setting a variable: various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. ...
public static IJavaSearchScope createJavaSearchScope(IJavaElement[] elements, int includeMask) { HashSet projectsToBeAdded = new HashSet(2); for (int i = 0, length = elements.length; i < length; i++) { IJavaElement element = elements[i]; if (element instanceof JavaProject) { projectsToBeAdded.add(element...
public static IJavaSearchScope createJavaSearchScope(IJavaElement[] elements, int includeMask) { HashSet projectsToBeAdded = new HashSet(2); for (int i = 0, length = elements.length; i < length; i++) { IJavaElement element = elements[i]; if (element instanceof JavaProject) { projectsToBeAdded.add(element...
public final static char[][] splitTypeLevelsSignature(String typeSignature) { // In case of IJavaElement signature, replace '$' by '.' char[] source = Signature.removeCaptureFromMethod(typeSignature.toCharArray()); CharOperation.replace(source, '$', '.'); // Init counters and arrays char[][] signatures = ne...
public final static char[][] splitTypeLevelsSignature(String typeSignature) { // In case of IJavaElement signature, replace '$' by '.' char[] source = Signature.removeCapture(typeSignature.toCharArray()); CharOperation.replace(source, '$', '.'); // Init counters and arrays char[][] signatures = new char[10]...
public boolean hasStructuralChanges(byte[] newBytes, boolean orderRequired, boolean excludesSynthetic) { try { ClassFileReader newClassFile = new ClassFileReader(newBytes, this.classFileName); // type level comparison // modifiers if (this.getModifiers() != newClassFile.getModifiers()) return true; //...
public boolean hasStructuralChanges(byte[] newBytes, boolean orderRequired, boolean excludesSynthetic) { try { ClassFileReader newClassFile = new ClassFileReader(newBytes, this.classFileName); // type level comparison // modifiers if (this.getModifiers() != newClassFile.getModifiers()) return true; //...
protected AbstractFrameView createView() { ComposerView view = new ComposerView(this); view.init(); return view; }
protected AbstractFrameView createView() { ComposerView view = new ComposerView(this); //view.init(); return view; }
public static void main(String argv[]) { if(argv.length == 3) init(argv[0], argv[1], argv[2]); else usage("Wrong number of arguments."); try { LogLog.debug("Listening on port " + port); ServerSocket serverSocket = new ServerSocket(port); LogLog.debug("Waitin...
public static void main(String argv[]) { if(argv.length == 3) init(argv[0], argv[1], argv[2]); else usage("Wrong number of arguments."); try { LogLog.debug("Listening on port " + port); ServerSocket serverSocket = new ServerSocket(port); LogLog.debug("Waitin...
public IPath[] selectIndexes( SearchPattern pattern, IJavaSearchScope scope) { if (this.indexSelector == null) { this.indexSelector = new IndexSelector(scope, pattern); } return this.indexSelector.getIndexKeys(); }
public IPath[] selectIndexes( SearchPattern pattern, IJavaSearchScope scope) { if (this.indexSelector == null) { this.indexSelector = new IndexSelector(scope, pattern); } return this.indexSelector.getIndexLocations(); }
public ComponentHandle createHandle(Object componentKey, IServiceProvider container) throws ComponentException { ComponentHandle handle = nestedFactories.createHandle(componentKey, new ServiceMap(container) .map(ISharedContext.class, sharedContext)); if (handle == null...
public ComponentHandle createHandle(Object componentKey, IServiceProvider container) throws ComponentException { ComponentHandle handle = nestedFactories.createHandle(componentKey, new ServiceMap(container) .map(ISharedContext.class, sharedContext)); if (handle == null...
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("..."); break; } buffer.append (orderedList[i]); buffer.append ('='); buffer.app...
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 void testError() throws Exception { execTest("junit.tests.BogusDude", false); } void execTest(String testClass, boolean success) throws Exception { String java= System.getProperty("java.home")+File.separator+"bin"+File.separator+"java"; String cp= System.getProperty("java.class.path"); //use -classp...
public void testError() throws Exception { execTest("junit.tests.BogusDude", false); } void execTest(String testClass, boolean success) throws Exception { String java= System.getProperty("java.home")+File.separator+"bin"+File.separator+"java"; String cp= System.getProperty("java.class.path"); //use -classp...
public final void setRandomClass(String randomClass) { System.setProperty(RANDOM_CLASS_PROPERTY, randomClass); } }
public final void setRandomClass(String randomClass) { System.getProperties().put(RANDOM_CLASS_PROPERTY, randomClass); } }
public void acceptProblem(CategorizedProblem problem, char[] fragmentSource, int fragmentKind) { try { IMarker marker = ResourcesPlugin.getWorkspace().getRoot().createMarker(IJavaModelMarker.TRANSIENT_PROBLEM); marker.setAttribute(IJavaModelMarker.ID, problem.getID()); marker.setAttribute(IMarker.CHAR_START, pro...
public void acceptProblem(CategorizedProblem problem, char[] fragmentSource, int fragmentKind) { try { IMarker marker = ResourcesPlugin.getWorkspace().getRoot().createMarker(IJavaModelMarker.TRANSIENT_PROBLEM); marker.setAttribute(IJavaModelMarker.ID, problem.getID()); marker.setAttribute(IMarker.CHAR_START, pro...
protected String createUniqueBoundary() { Random random = new Random(); byte[] bytes = new byte[BOUNDARY_LENGTH]; Base64Encoder encoder = new Base64Encoder(); random.nextBytes(bytes); try { return encoder.encode( new String( bytes ), null ); } catch (UnsupportedEncodingException e) { //...
protected String createUniqueBoundary() { Random random = new Random(); byte[] bytes = new byte[BOUNDARY_LENGTH]; Base64Encoder encoder = new Base64Encoder(); random.nextBytes(bytes); try { return encoder.encode( new String( bytes ), "US-ASCII" ); } catch (UnsupportedEncodingException e) { ...
public int getLargestRemoteUid(IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException { MailboxStatus status = getStatus(folder); if(status.getUidNext() < 0) { return fetchUid(new SequenceSet(status.getMessages()), folder); } else { return (int)(status.getUidNext() -1); } }
public int getLargestRemoteUid(IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException { MailboxStatus status = getStatus(folder); if(status.getUidNext() < 0 && status.getMessages() > 0 ) { return fetchUid(new SequenceSet(status.getMessages()), folder); } else { return (int)(status....
protected void consumeMethodDeclaration(boolean isNotAbstract) { // MethodDeclaration ::= MethodHeader MethodBody // AbstractMethodDeclaration ::= MethodHeader ';' super.consumeMethodDeclaration(isNotAbstract); // now we know that we have a method declaration at the top of the ast stack MethodDeclaration method...
protected void consumeMethodDeclaration(boolean isNotAbstract) { // MethodDeclaration ::= MethodHeader MethodBody // AbstractMethodDeclaration ::= MethodHeader ';' super.consumeMethodDeclaration(isNotAbstract); // now we know that we have a method declaration at the top of the ast stack MethodDeclaration method...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = (FolderCommandReference[]) ((AbstractMailFrameController)frameController) .getTreeSelection(); new FolderOptionsDialog((Folder)r[0].getFolder(), true); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = (FolderCommandReference[]) ((AbstractMailFrameController)frameMediator) .getTreeSelection(); new FolderOptionsDialog((Folder)r[0].getFolder(), true); }
public void addEditor(EditorReference ref, String workbookId) { IEditorReference refs[] = editorArea.getPage().getEditorReferences(); for (int i = 0; i < refs.length; i++) { if (ref == refs[i]) { return; } } if (!(ref.getPane() instanceof MultiEditorInnerP...
public void addEditor(EditorReference ref, String workbookId) { IEditorReference refs[] = editorArea.getPage().getEditorReferences(); for (int i = 0; i < refs.length; i++) { if (ref == refs[i]) { return; } } if (!(ref.getPane() instanceof MultiEditorInnerP...
private boolean checkTypeName(char[] simpleName, char[] qualification, char[] fullyQualifiedTypeName, boolean isCaseSensitive, boolean isCamelCase) { // NOTE: if case insensitive then simpleName & qualification are assumed to be lowercase char[] wildcardPattern = PatternLocator.qualifiedPattern(simpleName, qualificat...
private boolean checkTypeName(char[] simpleName, char[] qualification, char[] fullyQualifiedTypeName, boolean isCaseSensitive, boolean isCamelCase) { // NOTE: if case insensitive then simpleName & qualification are assumed to be lowercase char[] wildcardPattern = PatternLocator.qualifiedPattern(simpleName, qualificat...
public static String substituteURL(String s) { PatternMatcher urlMatcher = new Perl5Matcher(); PatternCompiler urlCompiler = new Perl5Compiler(); Pattern urlPattern; String urls = "(http|https|ftp)"; String letters = "\\w"; String gunk = "/#~:.?+=&@!\\-%"; String punc = ".:?\\-"; String any = "${" ...
public static String substituteURL(String s) { PatternMatcher urlMatcher = new Perl5Matcher(); PatternCompiler urlCompiler = new Perl5Compiler(); Pattern urlPattern; String urls = "(http|https|ftp)"; String letters = "\\w"; String gunk = "/#~:;.?+=&@!\\-%"; String punc = ".:?\\-"; String any = "${"...
public void run() { LoggingEvent event; Logger remoteLogger; try { while(true) { event = (LoggingEvent) ois.readObject(); remoteLogger = hierarchy.getLogger(event.loggerName); event.logger = remoteLogger; if(event.level.isGreaterOrEqual(remoteLogger.getChainedLevel())) { remoteLogger.callA...
public void run() { LoggingEvent event; Logger remoteLogger; try { while(true) { event = (LoggingEvent) ois.readObject(); remoteLogger = hierarchy.getLogger(event.categoryName); event.logger = remoteLogger; if(event.level.isGreaterOrEqual(remoteLogger.getChainedLevel())) { remoteLogger.cal...
public Vector rowObjectsFor(Object t) { System.out.println("rowObjectsFor " + t); if (!(t instanceof UMLStateDiagram)) return new Vector(); UMLStateDiagram d = (UMLStateDiagram) t; Vector edges = d.getGraphModel().getEdges(); Vector res = new Vector(); int size = edges.size(); for (int i =...
public Vector rowObjectsFor(Object t) { System.out.println("rowObjectsFor " + t); if (!(t instanceof UMLStateDiagram)) return new Vector(); UMLStateDiagram d = (UMLStateDiagram) t; Vector edges = d.getEdges(); Vector res = new Vector(); int size = edges.size(); for (int i = 0; i < size; i+...
public SubscribeFolderAction(AbstractFrameController frameController) { super( frameController, MailResourceLoader.getString( "menu", "mainframe", "menu_folder_subscribe")); // tooltip text setTooltipText( MailResourceLoader.getString( "menu", "mainframe", "menu_folder_subscribe")); /...
public SubscribeFolderAction(AbstractFrameController frameController) { super( frameController, MailResourceLoader.getString( "menu", "mainframe", "menu_folder_subscribe")); // tooltip text setTooltipText( MailResourceLoader.getString( "menu", "mainframe", "menu_folder_subscribe")); /...
public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo, boolean isReadAccess) { if (this.delegateThis == null) { super.manageSyntheticAccessIfNecessary(currentScope, flowInfo, isReadAccess); return; } if (!flowInfo.isReachable()) return; //If inlinable field, forget the access...
public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo, boolean isReadAccess) { if (this.delegateThis == null) { super.manageSyntheticAccessIfNecessary(currentScope, flowInfo, isReadAccess); return; } if (!flowInfo.isReachable()) return; //If inlinable field, forget the access...
public OpenPerspectiveAction(final IWorkbenchWindow window, final IPerspectiveDescriptor descriptor, final PerspectiveMenu callback) { super(Util.ZERO_LENGTH_STRING); this.descriptor = descriptor; this.callback = callback; final String label = '&' + descript...
public OpenPerspectiveAction(final IWorkbenchWindow window, final IPerspectiveDescriptor descriptor, final PerspectiveMenu callback) { super(Util.ZERO_LENGTH_STRING); this.descriptor = descriptor; this.callback = callback; final String label = descriptor.get...
protected void updateFlags(Flags[] flagsList) { // ALP 04/29/03 // Reset the number of seen/resent/existing messages. Otherwise you // just keep adding to the number. MessageFolderInfo info = getMessageFolderInfo(); info.setExists(0); info.setRecent(0); info.setUnseen(0); // END ADDS ALP 04/29/0...
protected void updateFlags(Flags[] flagsList) { // ALP 04/29/03 // Reset the number of seen/resent/existing messages. Otherwise you // just keep adding to the number. MessageFolderInfo info = getMessageFolderInfo(); info.setExists(0); info.setRecent(0); info.setUnseen(0); // END ADDS ALP 04/29/0...
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...
public int getNodeType() { return ASSIGNMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { Assignment result = new Assignment(target);
public int getNodeType() { return ASSIGNMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { Assignment result = new Assignment(target);
private boolean init(Display display) { // setup debug mode if required. if (WorkbenchPlugin.getDefault().isDebugging()) { WorkbenchPlugin.DEBUG = true; ModalContext.setDebugMode(true); } // create workbench window manager windowManager = new WindowManager(); IIntroRegistry introRegistry = Workbenc...
private boolean init(Display display) { // setup debug mode if required. if (WorkbenchPlugin.getDefault().isDebugging()) { WorkbenchPlugin.DEBUG = true; ModalContext.setDebugMode(true); } // create workbench window manager windowManager = new WindowManager(); IIntroRegistry introRegistry = Workbenc...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (constant != NotAConstant) { if (valueRequired) { codeStream.generateConstant(constant, implicitConversion); } } else { generateReadSequence(currentScope, codeStream, valueRequi...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (constant != NotAConstant) { if (valueRequired) { codeStream.generateConstant(constant, implicitConversion); } } else { generateReadSequence(currentScope, codeStream, valueRequi...
public int getNodeType() { return ASSERT_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { AssertStatement result = new AssertStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLeadingComment(getLeadin...
public int getNodeType() { return ASSERT_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { AssertStatement result = new AssertStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); ...