buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public boolean isEquivalentTo(TypeBinding otherType) { if (this == otherType || erasure() == otherType) return true; if (otherType == null) return false; switch(otherType.kind()) { case Binding.WILDCARD_TYPE : case Binding.INTERSECTION_TYPE: return ((WildcardBinding) o...
public boolean isEquivalentTo(TypeBinding otherType) { if (this == otherType) return true; if (otherType == null) return false; switch(otherType.kind()) { case Binding.WILDCARD_TYPE : case Binding.INTERSECTION_TYPE: return ((WildcardBinding) otherType).boundCheck(this)...
public void actionPerformed(ActionEvent event) { ProjectBrowser pb = ProjectBrowser.TheInstance; Project p = pb.getProject(); try { String directory = Globals.getLastDirectory(); JFileChooser chooser = OsUtil.getFileChooser(directory); if (chooser == nul...
public void actionPerformed(ActionEvent event) { ProjectBrowser pb = ProjectBrowser.TheInstance; Project p = pb.getProject(); try { String directory = Globals.getLastDirectory(); JFileChooser chooser = OsUtil.getFileChooser(directory); if (chooser == nul...
public SystemMenuStateChange(IStackPresentationSite site, String name, int state) { this.site = site; this.state = state; this.name = name; setText(WorkbenchMessages.getString(name)); update(); }
public SystemMenuStateChange(IStackPresentationSite site, String name, int state) { this.site = site; this.state = state; this.name = name; setText(name); update(); }
public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo) { if ((flowInfo.tagBits & FlowInfo.UNREACHABLE) == 0) { // need assertion flag: $assertionsDisabled on outer most source clas // (in case of static member of interface, will use the outermost static member - bug 22334) Sourc...
public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo) { if ((flowInfo.tagBits & FlowInfo.UNREACHABLE_OR_DEAD) == 0) { // need assertion flag: $assertionsDisabled on outer most source clas // (in case of static member of interface, will use the outermost static member - bug 22334)...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update incomplete classpath marker */ IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true/*ignore unresolved variable*/, false/*don't ...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update incomplete classpath marker */ IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true/*ignore unresolved variable*/, true/*create ...
private LocalTypeBinding buildLocalType( SourceTypeBinding enclosingType, PackageBinding packageBinding) { referenceContext.scope = this; referenceContext.staticInitializerScope = new MethodScope(this, referenceContext, true); referenceContext.initializerScope = new MethodScope(this, referenceContext, ...
private LocalTypeBinding buildLocalType( SourceTypeBinding enclosingType, PackageBinding packageBinding) { referenceContext.scope = this; referenceContext.staticInitializerScope = new MethodScope(this, referenceContext, true); referenceContext.initializerScope = new MethodScope(this, referenceContext, ...
public void indexDocument(SearchDocument document, IPath indexPath) { // TODO must verify that the document + indexPath match, when this is not called from scheduleDocumentIndexing document.removeAllIndexEntries(); // in case the document was already indexed String documentPath = document.getPath(); if (org.e...
public void indexDocument(SearchDocument document, IPath indexPath) { // TODO must verify that the document + indexPath match, when this is not called from scheduleDocumentIndexing document.removeAllIndexEntries(); // in case the document was already indexed String documentPath = document.getPath(); if (org.e...
public ASTRewriteFormatter(NodeInfoStore placeholders, RewriteEventStore eventStore, Map options, String lineDelimiter) { this.placeholders= placeholders; this.eventStore= eventStore; if (options == null) { options= JavaCore.getOptions(); } options.put(DefaultCodeFormatterConstants.FORMATTER_LINE_SPLIT, ...
public ASTRewriteFormatter(NodeInfoStore placeholders, RewriteEventStore eventStore, Map options, String lineDelimiter) { this.placeholders= placeholders; this.eventStore= eventStore; if (options == null) { options= JavaCore.getOptions(); } options.put(DefaultCodeFormatterConstants.FORMATTER_LINE_SPLIT, ...
protected String getURLContents(String docUrlValue) throws JavaModelException { InputStream stream = null; JarURLConnection connection2 = null; try { URL docUrl = new URL(docUrlValue); URLConnection connection = docUrl.openConnection(); if (connection instanceof JarURLConnection) { connection2 = (Ja...
protected String getURLContents(String docUrlValue) throws JavaModelException { InputStream stream = null; JarURLConnection connection2 = null; try { URL docUrl = new URL(docUrlValue); URLConnection connection = docUrl.openConnection(); if (connection instanceof JarURLConnection) { connection2 = (Ja...
public void recordContinueFrom(FlowInfo flowInfo) { if (!flowInfo.isReachable()) return; if (initsOnContinue == FlowInfo.DEAD_END) { initsOnContinue = flowInfo.copy().unconditionalInits(); } else { initsOnContinue.mergedWith(flowInfo.unconditionalInits()); }; }
public void recordContinueFrom(FlowInfo flowInfo) { if (!flowInfo.isReachable()) return; if (initsOnContinue == FlowInfo.DEAD_END) { initsOnContinue = flowInfo.copy().unconditionalInits(); } else { initsOnContinue = initsOnContinue.mergedWith(flowInfo.unconditionalInits()); }; }
public ActionImportFromSources() { super("Import sources"); }
public ActionImportFromSources() { super("Import sources..."); }
public int getNodeType() { return POSTFIX_EXPRESSION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { PostfixExpression result = new PostfixExpression(target);
public int getNodeType() { return POSTFIX_EXPRESSION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { PostfixExpression result = new PostfixExpression(target);
public long warningThreshold = MethodWithConstructorName | UsingDeprecatedAPI | MaskedCatchBlock | OverriddenPackageDefaultMethod | UnusedImport | NonStaticAccessToStatic | NoEffectAssignment | IncompatibleNonInheritedInterfaceMethod | NoImplicitStringConversion | FinallyBlockNotCompleting | ...
public long warningThreshold = MethodWithConstructorName | UsingDeprecatedAPI | MaskedCatchBlock | OverriddenPackageDefaultMethod | UnusedImport | NonStaticAccessToStatic | NoEffectAssignment | IncompatibleNonInheritedInterfaceMethod | NoImplicitStringConversion | FinallyBlockNotCompleting | ...
public void body(String text) throws Exception { log().debug("(" + getImportBean().getState() + ") attachment data body: " + text); Attachment attachment = getImportBean().getAttachment(); attachment.setDataAsString(text); }
public void body(String text) throws Exception { log().debug("(" + getImportBean().getState() + ") attachment data body: " + text); Attachment attachment = getImportBean().getAttachment(); attachment.setData(text); }
public Type getType() { if (this.type == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.type == null) { preLazyInit(); this.type = new SimpleType(this.ast); postLazyInit(this.type, TYPE_PROPERTY); } } } return this.type; }
public Type getType() { if (this.type == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.type == null) { preLazyInit(); this.type = new SimpleType(this.ast); postLazyInit(this.type, TYPE_PROPERTY); } } } return this.type; }
private void checkAndSetModifiersForField(FieldBinding fieldBinding, FieldDeclaration fieldDecl) { int modifiers = fieldBinding.modifiers; if ((modifiers & AccAlternateModifierProblem) != 0) problemReporter().duplicateModifierForField(fieldBinding.declaringClass, fieldDecl); if (fieldBinding.declaringClass.i...
private void checkAndSetModifiersForField(FieldBinding fieldBinding, FieldDeclaration fieldDecl) { int modifiers = fieldBinding.modifiers; if ((modifiers & AccAlternateModifierProblem) != 0) problemReporter().duplicateModifierForField(fieldBinding.declaringClass, fieldDecl); if (fieldBinding.declaringClass.i...
public void execute(Worker worker) throws Exception { Folder folder = (Folder) ( (FolderCommandReference) getReferences()[0] ).getFolder(); Object[] uids = ( (FolderCommandReference) getReferences()[0] ).getUids(); Message message = (Message) folder.getMessage(uids[0], worker); ColumbaHeader header = (Columb...
public void execute(Worker worker) throws Exception { Folder folder = (Folder) ( (FolderCommandReference) getReferences()[0] ).getFolder(); Object[] uids = ( (FolderCommandReference) getReferences()[0] ).getUids(); Message message = new Message(); ColumbaHeader header = (ColumbaHeader) message.getHeader(); ...
public String toString() { return getClass().getName() + "[" + physicalLine + "," + scrollLine + "]"; } //}}} //{{{ contentInserted() method void contentInserted(int startLine, int numLines) { if(this.physicalLine >= startLine) { if(this.physicalLine != startLine) this.physicalLine += numLines; ...
public String toString() { return getClass().getName() + "[" + physicalLine + "," + scrollLine + "]"; } //}}} //{{{ contentInserted() method void contentInserted(int startLine, int numLines) { if(this.physicalLine >= startLine) { if(this.physicalLine != startLine) this.physicalLine += numLines; ...
public static void main(String[] args) { junit.textui.TestRunner.run(suite()); } public static Test suite() { // Collect tests manually because we have to test class collection code TestSuite suite= new TestSuite("Framework Tests"); suite.addTestSuite(StackFilterTest.class); suite.addTestSuite(SorterTest.c...
public static void main(String[] args) { junit.textui.TestRunner.run(suite()); } public static Test suite() { // Collect tests manually because we have to test class collection code TestSuite suite= new TestSuite("Framework Tests"); suite.addTestSuite(StackFilterTest.class); suite.addTestSuite(SorterTest.c...
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...
protected IBuffer openBuffer(IProgressMonitor pm, Object info) throws JavaModelException { SourceMapper mapper = getSourceMapper(); if (mapper != null) { return mapSource(mapper); } else if (!checkAutomaticSourceMapping) { /* * We try to see if we can automatically attach a source * source files located in...
protected IBuffer openBuffer(IProgressMonitor pm, Object info) throws JavaModelException { SourceMapper mapper = getSourceMapper(); if (mapper != null) { return mapSource(mapper); } else if (!checkAutomaticSourceMapping) { /* * We try to see if we can automatically attach a source * source files located in...
public CompilationResult compilationResult() { return this.compilationResult; } /** * Bytecode generation for a method * @param classScope * @param classFile */ public void generateCode(ClassScope classScope, ClassFile classFile) { int problemResetPC = 0; classFile.codeStream.wideMode = false; // r...
public CompilationResult compilationResult() { return this.compilationResult; } /** * Bytecode generation for a method * @param classScope * @param classFile */ public void generateCode(ClassScope classScope, ClassFile classFile) { int problemResetPC = 0; classFile.codeStream.wideMode = false; // r...
public synchronized void paint(Graphics g) { Dimension size = getSize(); if(offscreenImg == null) { offscreenImg = createImage(size.width,size.height); offscreenGfx = offscreenImg.getGraphics(); offscreenGfx.setFont(getFont()); } offscreenGfx.setColor(Color.gray); offscreenGfx.drawRect(0,0,size...
public synchronized void paint(Graphics g) { Dimension size = getSize(); if(offscreenImg == null) { offscreenImg = createImage(size.width,size.height); offscreenGfx = offscreenImg.getGraphics(); offscreenGfx.setFont(getFont()); } offscreenGfx.setColor(Color.gray); offscreenGfx.drawRect(0,0,size...
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 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 void updateGUI() throws Exception { //MailFrameController frame = (MailFrameController) frameController; TableChangedEvent ev = new TableChangedEvent(TableChangedEvent.ADD, folder, headerList); //frame.tableController.tableChanged(ev); MainInterface.treeModel.nodeChanged(folder); TableUpdat...
public void updateGUI() throws Exception { //MailFrameController frame = (MailFrameController) frameController; TableChangedEvent ev = new TableChangedEvent(TableChangedEvent.UPDATE, folder); //frame.tableController.tableChanged(ev); MainInterface.treeModel.nodeChanged(folder); TableUpdater.tableC...
public void tooManyParametersForSyntheticMethod(AbstractMethodDeclaration method) { MethodBinding binding = method.binding; String selector = null; if (binding.isConstructor()) { selector = new String(binding.declaringClass.sourceName()); } else { selector = new String(selector); } this.handle( IProblem.Too...
public void tooManyParametersForSyntheticMethod(AbstractMethodDeclaration method) { MethodBinding binding = method.binding; String selector = null; if (binding.isConstructor()) { selector = new String(binding.declaringClass.sourceName()); } else { selector = new String(method.selector); } this.handle( IProb...
private String formatStatements(String source, int indentationLevel, int[] positions, String lineSeparator, Map options) { ConstructorDeclaration constructorDeclaration = parseStatements(source.toCharArray(), options); this.preferences.line_delimiter = lineSeparator; this.preferences.initial_indentation_level...
private String formatStatements(String source, int indentationLevel, int[] positions, String lineSeparator, Map options) { ConstructorDeclaration constructorDeclaration = parseStatements(source.toCharArray(), options); this.preferences.line_delimiter = lineSeparator; this.preferences.initial_indentation_level...
public String toString(int tab) { StringBuffer result = new StringBuffer(tabString(tab)); result.append("Recovered unit: [\n"); //$NON-NLS-1$ result.append(this.unitDeclaration.print(tab + 1, result)); result.append(tabString(tab + 1)); result.append("]"); //$NON-NLS-1$ if (this.imports != null) { for (int i = ...
public String toString(int tab) { StringBuffer result = new StringBuffer(tabString(tab)); result.append("Recovered unit: [\n"); //$NON-NLS-1$ this.unitDeclaration.print(tab + 1, result); result.append(tabString(tab + 1)); result.append("]"); //$NON-NLS-1$ if (this.imports != null) { for (int i = 0; i < this.imp...
private int matchLevel(QualifiedTypeReference typeRef, boolean resolve) { if (!resolve) { if (this.pkgName == null) { return this.needsResolve ? POSSIBLE_MATCH : ACCURATE_MATCH; } else { switch (this.matchMode) { case EXACT_MATCH: case PREFIX_MATCH: if (CharOperation.prefixEquals(this.pkgName, C...
private int matchLevel(QualifiedTypeReference typeRef, boolean resolve) { if (!resolve) { if (this.pkgName == null) { return this.needsResolve ? POSSIBLE_MATCH : ACCURATE_MATCH; } else { switch (this.matchMode) { case EXACT_MATCH: case PREFIX_MATCH: if (CharOperation.prefixEquals(this.pkgName, C...
protected void parseCatsAndRenderers( Properties props, LoggerRepository repository) { Enumeration enumeration = props.propertyNames(); while (enumeration.hasMoreElements()) { String key = (String) enumeration.nextElement(); if (key.startsWith(CATEGORY_PREFIX) || key.startsWith(LOGGER_PREFIX...
protected void parseCatsAndRenderers( Properties props, LoggerRepository repository) { Enumeration enumeration = props.propertyNames(); while (enumeration.hasMoreElements()) { String key = (String) enumeration.nextElement(); if (key.startsWith(CATEGORY_PREFIX) || key.startsWith(LOGGER_PREFIX...
public String[] getExtraMarkerAttributeNames() { return DefaultProblem.EMPTY_NAMES; }
public String[] getExtraMarkerAttributeNames() { return CharOperation.NO_STRINGS; }
protected Menu createMenu(AbstractFrameController controller) { Menu menu = new MailMenu("org/columba/core/action/menu.xml", controller); return menu; }
protected Menu createMenu(AbstractFrameController controller) { Menu menu = new MailMenu("org/columba/core/action/menu.xml", "org/columba/mail/action/menu.xml", controller); return menu; }
public void showBusyForFamily(Object family) { ProgressManager.getInstance().addListenerToFamily(family,this); }
public void showBusyForFamily(Object family) { //ProgressManager.getInstance().addListenerToFamily(family,this); }
public void setServletClassName( String servletClassName) { servlet=null; // reset the servlet, if it was set servletClass=null; this.servletClassName=servletClassName; if( debug>0 && sw.getJspFile()!=null) log( context, "setServletClassName for " + sw.getJspFile() + ": " + servletClassName); }
public void setServletClassName( String servletClassName) { servlet=null; // reset the servlet, if it was set servletClass=null; this.servletClassName=servletClassName; if( debug>0 && sw!=null && sw.getJspFile()!=null) log( context, "setServletClassName for " + sw.getJspFile() + ": " + servletClassName)...
public void execute(WorkerStatusController worker) throws Exception { // create composer model model = new ComposerModel(); // get selected folder MessageFolder folder = (MessageFolder) ((FolderCommandReference) getReferences()[0]) .getFolder(); // get first...
public void execute(WorkerStatusController worker) throws Exception { // create composer model model = new ComposerModel(); // get selected folder MessageFolder folder = (MessageFolder) ((FolderCommandReference) getReferences()[0]) .getFolder(); // get first...
public CERTRecord(Name name, short dclass, int ttl, int certType, int keyTag, int alg, byte [] cert) { this(name, dclass, ttl); this.certType = (short) certType; this.keyTag = (short) keyTag; this.alg = (byte) alg; this.cert = cert; } Record rrFromWire(Name name, short type, short dclass, int ttl, int length...
public CERTRecord(Name name, short dclass, int ttl, int certType, int keyTag, int alg, byte [] cert) { this(name, dclass, ttl); this.certType = (short) certType; this.keyTag = (short) keyTag; this.alg = (byte) alg; this.cert = cert; } Record rrFromWire(Name name, short type, short dclass, int ttl, int length...
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { if (this.leafComponentType == unresolvedType) { this.leafComponentType = resolvedType.isGenericType() ? env.createRawType(resolvedType, resolvedType.enclosingType()) : resolvedType; this.ta...
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { if (this.leafComponentType == unresolvedType) { this.leafComponentType = env.convertToRawType(resolvedType); this.tagBits |= this.leafComponentType.tagBits & (HasTypeVariable | HasDirectWil...
public char[] getMainTypeName(){ String elementName = getElementName(); //remove the .java elementName = elementName.substring(0, elementName.length() - 5); return elementName.toCharArray(); }
public char[] getMainTypeName(){ String elementName = getElementName(); //remove the .java elementName = elementName.substring(0, elementName.length() - 5); //TODO (jerome) should not hardcode extension length return elementName.toCharArray(); }
public void selectionChanged(SelectionChangedEvent evt) { if (((TreeSelectionChangedEvent) evt).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) evt).getSelected()[0]; if ((folder != null) && folder instanceof MessageFolder) { FolderIt...
public void selectionChanged(SelectionChangedEvent evt) { if (((TreeSelectionChangedEvent) evt).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) evt).getSelected()[0]; if ((folder != null) && folder instanceof MessageFolder) { FolderIt...
protected void executeOperation() throws JavaModelException { beginTask(Util.bind("classpath.settingProgress"/*nonNLS*/), 2); JavaProject project= ((JavaProject) getElementsToProcess()[0]); project.setRawClasspath0(this.newRawPath); // change builder specs to build in the order given by the new classpath JavaMo...
protected void executeOperation() throws JavaModelException { beginTask(Util.bind("classpath.settingProgress"), 2); //$NON-NLS-1$ JavaProject project= ((JavaProject) getElementsToProcess()[0]); project.setRawClasspath0(this.newRawPath); // change builder specs to build in the order given by the new classpath Ja...
public void generateCode( BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; BranchLabel endifLabel, falseLabel; if (constant != Constant.NotAConstant) { if (valueRequired) codeStream.generateConstant(constant, implicitConversion); codeStream.r...
public void generateCode( BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; BranchLabel endifLabel, falseLabel; if (constant != Constant.NotAConstant) { if (valueRequired) codeStream.generateConstant(constant, implicitConversion); codeStream.r...
public void addMessage(Message in) { Enumeration e; boolean isAuth = in.getHeader().getFlag(Flags.AA); Name queryName = in.getQuestion().getName(); short queryType = in.getQuestion().getType(); short queryClass = in.getQuestion().getDClass(); byte cred; short rcode = in.getHeader().getRcode(); short ancount = i...
public void addMessage(Message in) { Enumeration e; boolean isAuth = in.getHeader().getFlag(Flags.AA); Name queryName = in.getQuestion().getName(); short queryType = in.getQuestion().getType(); short queryClass = in.getQuestion().getDClass(); byte cred; short rcode = in.getHeader().getRcode(); int ancount = in....
public void setDateFormat(String dateFormat) { if (dateFormat != null) { dateFormatOption = dateFormat.toUpperCase(); } setDateFormat(dateFormatOption, TimeZone.getDefault()); }
public void setDateFormat(String dateFormat) { if (dateFormat != null) { dateFormatOption = dateFormat; } setDateFormat(dateFormatOption, TimeZone.getDefault()); }
public String toString() { return "Member type : " + new String(sourceName()) + " " + super.toString(); }
public String toString() { return "Member type : "/*nonNLS*/ + new String(sourceName()) + " "/*nonNLS*/ + super.toString(); }
public boolean accept(ParseEventListener listener, JspReader reader, Parser parser) throws JasperException { if (reader.matches(OPEN_COMMENT)) { reader.advance(OPEN_COMMENT.length()); Mark start = reader.mark(); Mark stop = reader.skipUntil(CLOSE_COMMENT); if (stop == null) throw new ParseE...
public boolean accept(ParseEventListener listener, JspReader reader, Parser parser) throws JasperException { if (reader.matches(OPEN_COMMENT)) { reader.advance(OPEN_COMMENT.length()); Mark start = reader.mark(); Mark stop = reader.skipUntil(CLOSE_COMMENT); if (stop == null) throw new ParseE...
public void println(Object o) { v.addElement(o.toString()); }
public void println(Object o) { v.addElement(String.valueOf(o)); }
public void shutdown() { if (VERBOSE) JobManager.verbose("Shutdown"); //$NON-NLS-1$ IndexSelector indexSelector = new IndexSelector(new JavaWorkspaceScope(), null, false, this); IIndex[] selectedIndexes = indexSelector.getIndexes(); SimpleLookupTable knownPaths = new SimpleLookupTable(); for (int i = 0, max = s...
public void shutdown() { if (VERBOSE) JobManager.verbose("Shutdown"); //$NON-NLS-1$ IndexSelector indexSelector = new IndexSelector(new JavaWorkspaceScope(), null, this); IIndex[] selectedIndexes = indexSelector.getIndexes(); SimpleLookupTable knownPaths = new SimpleLookupTable(); for (int i = 0, max = selected...
public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) { if (changeId == page.CHANGE_RESET || changeId == page.CHANGE_EDITOR_AREA_HIDE || changeId == page.CHANGE_EDITOR_AREA_SHOW) { if (page.isEditorAreaVisible()) setText(WorkbenchMessages.getString("Toggl...
public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) { if (changeId == IWorkbenchPage.CHANGE_RESET || changeId == IWorkbenchPage.CHANGE_EDITOR_AREA_HIDE || changeId == IWorkbenchPage.CHANGE_EDITOR_AREA_SHOW) { if (page.isEditorAreaVisible()) setText(Work...
protected void matchReportReference(AstNode reference, IJavaElement element, int accuracy, MatchLocator locator) throws CoreException { char[][] splitName = CharOperation.splitOn('.', this.pkgName == null ? new char[0] : this.pkgName); locator.reportQualifiedReference(reference.sourceStart, reference.source...
protected void matchReportReference(AstNode reference, IJavaElement element, int accuracy, MatchLocator locator) throws CoreException { char[][] splitName = CharOperation.splitOn('.', this.pkgName == null ? new char[0] : this.pkgName); locator.reportAccurateReference(reference.sourceStart, reference.sourceE...
public String getPartName() { IWorkbenchPart part = getPart(); if (part instanceof IWorkbenchPart2) { IWorkbenchPart2 wbp2 = (IWorkbenchPart2)part; return wbp2.getPartName(); } return part.getTitle(); //$NON-NLS-1$ }
public String getPartName() { IWorkbenchPart part = getPart(); if (part instanceof IWorkbenchPart2) { IWorkbenchPart2 wbp2 = (IWorkbenchPart2)part; return wbp2.getPartName(); } return part.getTitle(); }
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) { IPackageFragmentRoot root = (IPackageFragmentRoot)typeParameter.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT); String path; if (root.isArchiv...
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) { IPackageFragmentRoot root = (IPackageFragmentRoot)typeParameter.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT); String path; if (root.isArchiv...
public int getNodeType() { return THROW_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ThrowStatement result = new ThrowStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); re...
public int getNodeType() { return THROW_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { ThrowStatement result = new ThrowStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); r...
protected int resolveLevel(MessageSend messageSend) { MethodBinding method = messageSend.binding; if (method == null) return INACCURATE_MATCH; int methodLevel = matchMethod(method); if (methodLevel == IMPOSSIBLE_MATCH) { if (method != method.original()) methodLevel = matchMethod(method.original()); if (method...
protected int resolveLevel(MessageSend messageSend) { MethodBinding method = messageSend.binding; if (method == null || messageSend.resolvedType == null) return INACCURATE_MATCH; int methodLevel = matchMethod(method); if (methodLevel == IMPOSSIBLE_MATCH) { if (method != method.original()) methodLevel = matchMet...
public void build(boolean computeSubtypes) { JavaModelManager manager = JavaModelManager.getJavaModelManager(); try { // optimize access to zip files while building hierarchy manager.cacheZipFiles(); if (this.hierarchy.focusType == null || computeSubtypes) { IProgressMonitor typeInRegionMonitor = ...
public void build(boolean computeSubtypes) { JavaModelManager manager = JavaModelManager.getJavaModelManager(); try { // optimize access to zip files while building hierarchy manager.cacheZipFiles(); if (this.hierarchy.focusType == null || computeSubtypes) { IProgressMonitor typeInRegionMonitor = ...
protected NameReference getUnspecifiedReference() { /* build a (unspecified) NameReference which may be qualified*/ int completionIndex; /* no need to take action if not inside completed identifiers */ if ((completionIndex = indexOfAssistIdentifier()) < 0) { return super.getUnspecifiedReference(); } int leng...
protected NameReference getUnspecifiedReference() { /* build a (unspecified) NameReference which may be qualified*/ int completionIndex; /* no need to take action if not inside completed identifiers */ if ((completionIndex = indexOfAssistIdentifier()) < 0) { return super.getUnspecifiedReference(); } int leng...
private void openConnection() throws IOException, IMAPException, CommandCancelledException { printStatusMessage(MailResourceLoader.getString("statusbar", "message", "connecting")); int sslType = item.getIntegerWithDefault("ssl_type", IncomingItem.TLS); boolean sslEnabled = item.getBoolean("enable_ssl"); ...
private void openConnection() throws IOException, IMAPException, CommandCancelledException { printStatusMessage(MailResourceLoader.getString("statusbar", "message", "connecting")); int sslType = item.getIntegerWithDefault("ssl_type", IncomingItem.TLS); boolean sslEnabled = item.getBoolean("enable_ssl"); ...
public SaveAsAction(IWorkbenchWindow window) { super(WorkbenchMessages.SaveAs_text, window); setActionDefinitionId(IWorkbenchCommandConstants.FILE_SAVEAS); setText(WorkbenchMessages.SaveAs_text); setToolTipText(WorkbenchMessages.SaveAs_toolTip); setId("saveAs"); //$NON-NLS...
public SaveAsAction(IWorkbenchWindow window) { super(WorkbenchMessages.SaveAs_text, window); setActionDefinitionId(IWorkbenchCommandConstants.FILE_SAVE_AS); setText(WorkbenchMessages.SaveAs_text); setToolTipText(WorkbenchMessages.SaveAs_toolTip); setId("saveAs"); //$NON-NL...
public void resolve(MethodScope methScope) { // get method declaration AbstractMethodDeclaration methDecl = methScope.referenceMethod(); boolean overriding = methDecl == null || methDecl.binding == null ? false : !methDecl.binding.isStatic() && ((methDecl.binding.modifiers & (AccImplementing | AccOverriding))...
public void resolve(MethodScope methScope) { // get method declaration AbstractMethodDeclaration methDecl = methScope.referenceMethod(); boolean overriding = methDecl == null || methDecl.binding == null ? false : !methDecl.binding.isStatic() && ((methDecl.binding.modifiers & (ExtraCompilerModifiers.AccImpleme...
private static String unUrlDecode(String data) { System.out.println("DECODING : " +data ); StringBuffer buf = new StringBuffer(); for (int i = 0; i < data.length(); i++) { char c = data.charAt(i); switch (c) { case '+': buf.append(' '); break; case '%': // XXX XXX try { buf.app...
private static String unUrlDecode(String data) { // System.out.println("DECODING : " +data ); StringBuffer buf = new StringBuffer(); for (int i = 0; i < data.length(); i++) { char c = data.charAt(i); switch (c) { case '+': buf.append(' '); break; case '%': // XXX XXX try { buf....
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // if reachable, request the addition of a synthetic field for caching the class descriptor SourceTypeBinding sourceType = currentScope.outerMostMethodScope().enclosingSourceType(); if ((!(sourceType.isI...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // if reachable, request the addition of a synthetic field for caching the class descriptor SourceTypeBinding sourceType = currentScope.outerMostMethodScope().enclosingSourceType(); if ((!(sourceType.isI...
public void selectionChanged(SelectionChangedEvent e) { if (((TreeSelectionChangedEvent) e).getSelected().length > 0) { setEnabled(true); } else { setEnabled(false); } }
public void selectionChanged(SelectionChangedEvent e) { if (((TreeSelectionChangedEvent) e).getSelected().length == 1 && ((TreeSelectionChangedEvent) e).getSelected()[0].getAllowsChildren()) { setEnabled(true); } else { setEnabled(false); } }
public IState getCurrentState() throws NotPresentException { if (fCurrentState == null) { throw new NotPresentException(Util.bind("build.noState"/*nonNLS*/)); } return fCurrentState; }
public IState getCurrentState() throws NotPresentException { if (fCurrentState == null) { throw new NotPresentException("Internal Error - No current state"/*nonNLS*/); } return fCurrentState; }
protected void addOption(StringBuffer sb, String value, String label, boolean matched) { sb.append("<option value=\""); sb.append(value); sb.append("\""); if (matched) sb.append(" selected"); sb.append(">"); sb.append(label); ...
protected void addOption(StringBuffer sb, String value, String label, boolean matched) { sb.append("<option value=\""); sb.append(value); sb.append("\""); if (matched) sb.append(" selected"); sb.append(">"); sb.append(Response...
public TypeBinding literalType(BlockScope scope) { return LongBinding; }
public TypeBinding literalType(BlockScope scope) { return TypeBinding.LONG; }
public IMAPFlags[] fetchFlagsListStartFrom(int startIdx, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException { try { StatusObservable observable = getObservable(); ensureSelectedState(folder); if (selectedStatus.getMessages() - startIdx >= 0) { SequenceSet set = new Se...
public IMAPFlags[] fetchFlagsListStartFrom(int startIdx, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException { try { StatusObservable observable = getObservable(); ensureSelectedState(folder); if (selectedStatus.getMessages() - startIdx >= 0) { SequenceSet set = new Se...
public void initializeDefaultPreferences() { // Get options names set HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames; // Compiler settings Map defaultOptionsMap = new CompilerOptions().getMap(); // compiler defaults // Override some compiler defaults defaultOptionsMap.put(J...
public void initializeDefaultPreferences() { // Get options names set HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames; // Compiler settings Map defaultOptionsMap = new CompilerOptions().getMap(); // compiler defaults // Override some compiler defaults defaultOptionsMap.put(J...
public void testInitApplicationOk1() throws ServletException { // initialize config config.setInitParameter("application", "org.apache.struts.example.ApplicationResources"); ActionServlet servlet = new ActionServlet(); servlet.init(config); // Test the initAppli...
public void testInitApplicationOk1() throws ServletException { // initialize config config.setInitParameter("application", "org.apache.struts.webapp.example.ApplicationResources"); ActionServlet servlet = new ActionServlet(); servlet.init(config); // Test the in...
public void doConfigure(URL url, LoggerRepository repository) { // This line is needed here because there is logging from inside this method. this.repository = repository; ExecutionContext ec = joranInterpreter.getExecutionContext(); List errorList = ec.getErrorList(); int result = XMLUtil.check...
public void doConfigure(URL url, LoggerRepository repository) { // This line is needed here because there is logging from inside this method. this.repository = repository; ExecutionContext ec = joranInterpreter.getExecutionContext(); List errorList = ec.getErrorList(); int result = XMLUtil.check...
protected void executeOperation() throws JavaModelException { if (fMonitor != null){ if (fMonitor.isCanceled()) return; fMonitor.beginTask(Util.bind("element.reconciling"), 10); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkingCopy(); boolean wasConsistent = workingCopy.isConsistent(); JavaEle...
protected void executeOperation() throws JavaModelException { if (fMonitor != null){ if (fMonitor.isCanceled()) return; fMonitor.beginTask(Util.bind("element.reconciling"), 10); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkingCopy(); boolean wasConsistent = workingCopy.isConsistent(); JavaEle...
public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo) { if (!flowInfo.isReachable()) return; // need assertion flag: $assertionsDisabled on outer most source clas // (in case of static member of interface, will use the outermost static member - bug 22334) SourceTypeBindin...
public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo) { if (!flowInfo.isReachable()) return; // need assertion flag: $assertionsDisabled on outer most source clas // (in case of static member of interface, will use the outermost static member - bug 22334) SourceTypeBindin...
public void testIllegalStates() { MultiplexAppender appender = null; appender = new MultiplexAppender(); try { appender.activate(); fail("Should have thrown an IllegalStateException because it should not be configured correctly"); } catch (Exception e) { // expected } appender = null; }
public void testIllegalStates() { MultiplexAppender appender = null; appender = new MultiplexAppender(); try { appender.activateOptions(); fail("Should have thrown an IllegalStateException because it should not be configured correctly"); } catch (Exception e) { // expected } appender = null; }
protected void initializeArguments() { TypeVariableBinding[] typeVariables = this.type.typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite regres...
protected void initializeArguments() { TypeVariableBinding[] typeVariables = this.type.typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite regres...
final private String getIndentOfLine(int pos) { int line= getLineInformation().getLineOfOffset(pos); if (pos >= 0) { char[] cont= getContent(); int lineStart= getLineInformation().getLineOffset(line); int i= lineStart; while (i < cont.length && IndentManipulation.isIndentChar(content[i])) { i...
final private String getIndentOfLine(int pos) { int line= getLineInformation().getLineOfOffset(pos); if (line >= 0) { char[] cont= getContent(); int lineStart= getLineInformation().getLineOffset(line); int i= lineStart; while (i < cont.length && IndentManipulation.isIndentChar(content[i])) { ...
protected void initInsertSQL() { jdbcType = pkField.getJDBCType().getJDBCTypes()[0]; StringBuffer sql = new StringBuffer(); sql.append("{call INSERT INTO ").append(entity.getTableName()); sql.append(" ("); SQLUtil.getColumnNamesClause(pkField, sql) .append(", "); SQL...
protected void initInsertSQL() { jdbcType = pkField.getJDBCType().getJDBCTypes()[0]; StringBuffer sql = new StringBuffer(); sql.append("{call INSERT INTO ").append(entity.getQualifiedTableName()); sql.append(" ("); SQLUtil.getColumnNamesClause(pkField, sql) .append(", "); ...
public PropPanelAssociation() { super("Association",_associationIcon, ConfigLoader.getTabPropsOrientation()); Class mclass = MAssociation.class; // // this will cause the components on this page to be notified // anytime a stereotype, namespace, operation, etc // has its name cha...
public PropPanelAssociation() { super("Association",_associationIcon, ConfigLoader.getTabPropsOrientation()); Class mclass = MAssociation.class; // // this will cause the components on this page to be notified // anytime a stereotype, namespace, operation, etc // has its name cha...
public void update(String id) { if (widget != null) { if (widget instanceof MenuItem) { MenuItem item = (MenuItem) widget; String text = label; if (text == null) { if (command != null) { try { text = command.getCommand().getName(); } catch (NotDefinedException e) { Work...
public void update(String id) { if (widget != null) { if (widget instanceof MenuItem) { MenuItem item = (MenuItem) widget; String text = label; if (text == null) { if (command != null) { try { text = command.getCommand().getName(); } catch (NotDefinedException e) { Work...
protected static Vector _rules = new Vector(); static { // this are meant for pane-1 of NavigatorPane, they all have // Project as their only prerequiste. These trees tend to be 3 // to 5 levels deep and sometimes have recursion. NavPerspective packageCentric = new NavPerspective("Package-centric...
protected static Vector _rules = new Vector(); static { // this are meant for pane-1 of NavigatorPane, they all have // Project as their only prerequiste. These trees tend to be 3 // to 5 levels deep and sometimes have recursion. NavPerspective packageCentric = new NavPerspective("Package-centric...
private MethodBinding resolveTypesFor(MethodBinding method) { if ((method.modifiers & AccUnresolved) == 0) return method; if (this.scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5) { if ((method.getAnnotationTagBits() & AnnotationDeprecated) != 0) method.modifiers |= AccDeprecated; else if (...
private MethodBinding resolveTypesFor(MethodBinding method) { if ((method.modifiers & AccUnresolved) == 0) return method; if (this.scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5) { if ((method.getAnnotationTagBits() & AnnotationDeprecated) != 0) method.modifiers |= AccDeprecated; else if (...
private IStatus openErrorDialog(String title, String msg, final StatusInfo statusInfo) { IWorkbench workbench = PlatformUI.getWorkbench(); // Abort on shutdown if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) { return Status.CANCEL_STATUS; } dialog = new StatusDialog(Prog...
private IStatus openErrorDialog(String title, String msg, final StatusInfo statusInfo) { IWorkbench workbench = PlatformUI.getWorkbench(); // Abort on shutdown if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) { return Status.CANCEL_STATUS; } dialog = new StatusDialog(Prog...
public void activateOptions() { super.activateOptions(); if(datePattern != null && fileName != null) { now.setTime(System.currentTimeMillis()); sdf = new SimpleDateFormat(datePattern); int type = computeCheckPeriod(); printPeriodicity(type); rc.setType(type); File file = ...
public void activateOptions() { super.activateOptions(); if(datePattern != null && fileName != null) { now.setTime(System.currentTimeMillis()); sdf = new SimpleDateFormat(datePattern); int type = computeCheckPeriod(); printPeriodicity(type); rc.setType(type); File file = ...
protected boolean isAffectedByType(IJavaElementDelta delta, IType type, boolean hasImportChange) { switch (delta.getKind()) { case IJavaElementDelta.ADDED: if (typeHasSupertype(type) || subtypesIncludeSupertypeOf(type)) { return true; } break; case IJavaElementDelta.CHANGED: boolean hasVisibilityCh...
protected boolean isAffectedByType(IJavaElementDelta delta, IType type, boolean hasImportChange) { switch (delta.getKind()) { case IJavaElementDelta.ADDED: if (typeHasSupertype(type) || subtypesIncludeSupertypeOf(type)) { return true; } break; case IJavaElementDelta.CHANGED: boolean hasVisibilityCh...
public StringBuffer convert(LoggingEvent event) { buf.setLength(0); date.setTime(event.timeStamp); String converted = null; try { df.format(date, buf, pos); } catch (Exception ex) { logger.error("Error occured while converting date.", ex); } return buf; }
public StringBuffer convert(LoggingEvent event) { buf.setLength(0); date.setTime(event.getTimeStamp()); String converted = null; try { df.format(date, buf, pos); } catch (Exception ex) { logger.error("Error occured while converting date.", ex); } return buf; }
private static KeyBinding readDeprecatedKeyBinding(IMemento memento) throws IllegalArgumentException { if (memento == null) throw new IllegalArgumentException(); String command = memento.getString(DEPRECATED_TAG_ACTION); String keyConfiguration = memento.getString(DEPRECATED_TAG_CONFIGURATION); if (ke...
private static KeyBinding readDeprecatedKeyBinding(IMemento memento) throws IllegalArgumentException { if (memento == null) throw new IllegalArgumentException(); String command = memento.getString(DEPRECATED_TAG_ACTION); String keyConfiguration = memento.getString(DEPRECATED_TAG_CONFIGURATION); if (ke...
private static StringManager sm = StringManager.getManager("org.apache.tomcat.request");
private static StringManager sm = StringManager.getManager("org.apache.tomcat.resources");
public GraphicsExample() { try { model = new Model("default"); polygonClass = new MMClass("Polygon"); pointClass = new MMClass("Point"); graphicsBundleClass = new MMClass("GraphicsBundle"); realType = new DataType("Real"); angleType = new DataType("Angle"); at1 =...
public GraphicsExample() { try { model = new Model("GraphicsExample"); polygonClass = new MMClass("Polygon"); pointClass = new MMClass("Point"); graphicsBundleClass = new MMClass("GraphicsBundle"); realType = new DataType("Real"); angleType = new DataType("Angle"); ...
private IPackageFragmentRoot getPkgFragmentRoot(String pathString) { IPath path= new Path(pathString); IProject[] projects= ResourcesPlugin.getWorkspace().getRoot().getProjects(); for (int i= 0, max= projects.length; i < max; i++) { try { IProject project = projects[i]; if (!project.isAccessible() ...
private IPackageFragmentRoot getPkgFragmentRoot(String pathString) { IPath path= new Path(pathString); IProject[] projects= ResourcesPlugin.getWorkspace().getRoot().getProjects(); for (int i= 0, max= projects.length; i < max; i++) { try { IProject project = projects[i]; if (!project.isAccessible() ...
public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope) { ParameterizedMethodBinding method = new ParameterizedMethodBinding(); method.modifiers = originalMethod.modifiers; method.selector = originalMethod.selector; method.declaringClass...
public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope) { ParameterizedMethodBinding method = new ParameterizedMethodBinding(); method.modifiers = originalMethod.modifiers; method.selector = originalMethod.selector; method.declaringClass...
case TerminalTokens.TokenNameprivate : case TerminalTokens.TokenNamestatic : case TerminalTokens.TokenNameabstract : case TerminalTokens.TokenNamefinal : case TerminalTokens.TokenNamenative : case TerminalTokens.TokenNamesynchronized : case TerminalTokens.TokenNametransient : cas...
case TerminalTokens.TokenNameprivate : case TerminalTokens.TokenNamestatic : case TerminalTokens.TokenNameabstract : case TerminalTokens.TokenNamefinal : case TerminalTokens.TokenNamenative : case TerminalTokens.TokenNamesynchronized : case TerminalTokens.TokenNametransient : cas...
protected void handleCoreException(CoreException exception) { //If there is an error then reset the enabling to false WorkbenchPlugin.getDefault().getLog().log(exception.getStatus()); crashDisable(); }
protected void handleCoreException(CoreException exception) { //If there is an error then reset the enabling to false WorkbenchPlugin.log(exception); crashDisable(); }
public final boolean isEnabled() { return getMethodToExecute() == null; }
public final boolean isEnabled() { return getMethodToExecute() != null; }
public ContentAssistField(Composite parent, int style, IControlCreator controlCreator, IControlContentAdapter controlContentAdapter, IContentProposalProvider proposalProvider, ILabelProvider labelProvider, String commandId, char[] autoActivationCharacters) { super(parent, style, controlCreator); ad...
public ContentAssistField(Composite parent, int style, IControlCreator controlCreator, IControlContentAdapter controlContentAdapter, IContentProposalProvider proposalProvider, ILabelProvider labelProvider, String commandId, char[] autoActivationCharacters) { super(parent, style, controlCreator); ad...
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchMode, boolean isCaseSensitive) { super(matchMode, isCaseSensitive); this.qualification = isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = isCaseSensitive ? simpleName : CharOperation.toLowerCas...
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchMode, boolean isCaseSensitive) { super(TYPE_REF_PATTERN, matchMode, isCaseSensitive); this.qualification = isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = isCaseSensitive ? simpleName : CharOp...
public int getNodeType() { return EMPTY_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { EmptyStatement result = new EmptyStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); re...
public int getNodeType() { return EMPTY_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { EmptyStatement result = new EmptyStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); r...
public ProgressMonitorFocusJobDialog(Shell parentShell) { super(parentShell == null ? ProgressManagerUtil.getNonModalShell() : parentShell); setShellStyle(getDefaultOrientation() | SWT.BORDER | SWT.TITLE | SWT.MODELESS); setCancelable(true); enableDetailsButton = true; }
public ProgressMonitorFocusJobDialog(Shell parentShell) { super(parentShell == null ? ProgressManagerUtil.getNonModalShell() : parentShell); setShellStyle(getDefaultOrientation() | SWT.BORDER | SWT.TITLE | SWT.RESIZE | SWT.MODELESS); setCancelable(true); enableDetailsButton = true; }
int IllegalGenericArray = TypeRelated + 535; /******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v...
int IllegalGenericArray = TypeRelated + 535; /******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameController()) .getTableSelection(); r[0].setMarkVariant(MarkMessageCommand.MARK_AS_NOTSPAM); MarkMessageCommand c = new MarkMessageCommand(r); MainInterface.processor.addOp(c); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()) .getTableSelection(); r[0].setMarkVariant(MarkMessageCommand.MARK_AS_NOTSPAM); MarkMessageCommand c = new MarkMessageCommand(r); MainInterface.processor.addOp(c); }
public AdditionalTypeCollection(char[][] additionalTypeNames, char[][][] qualifiedReferences, char[][] simpleNameReferences) { super(qualifiedReferences, simpleNameReferences); this.additionalTypeNames = additionalTypeNames; // do not bother interning member type names (ie. 'A$M') } }
protected AdditionalTypeCollection(char[][] additionalTypeNames, char[][][] qualifiedReferences, char[][] simpleNameReferences) { super(qualifiedReferences, simpleNameReferences); this.additionalTypeNames = additionalTypeNames; // do not bother interning member type names (ie. 'A$M') } }
private ReferenceBinding typeToRecord(TypeBinding type) { if (type.isArrayType()) type = ((ArrayBinding) type).leafComponentType; switch (type.bindingType()) { case Binding.TYPE_PARAMETER : case Binding.WILDCARD_TYPE : return null; case Binding.PARAMETERIZED_TYPE : case Binding.RAW_TYPE : type = type...
private ReferenceBinding typeToRecord(TypeBinding type) { if (type.isArrayType()) type = ((ArrayBinding) type).leafComponentType; switch (type.kind()) { case Binding.TYPE_PARAMETER : case Binding.WILDCARD_TYPE : return null; case Binding.PARAMETERIZED_TYPE : case Binding.RAW_TYPE : type = type.erasur...
public org.eclipse.jdt.core.dom.CompilationUnit makeConsistent(CompilationUnit workingCopy, IProblemRequestor problemRequestor) throws JavaModelException { if (!workingCopy.isConsistent()) { // make working copy consistent if (this.problems == null) this.problems = new HashMap(); this.ast = workingCopy.make...
public org.eclipse.jdt.core.dom.CompilationUnit makeConsistent(CompilationUnit workingCopy, IProblemRequestor problemRequestor) throws JavaModelException { if (!workingCopy.isConsistent()) { // make working copy consistent if (this.problems == null) this.problems = new HashMap(); this.ast = workingCopy.make...
public Folder createFolder(int folderId) { return new CachedMHFolder("test" + folderId, "CachedMHFolder", FolderTestHelper.homeDirectory + "/folders/"); } }
public MessageFolder createFolder(int folderId) { return new CachedMHFolder("test" + folderId, "CachedMHFolder", FolderTestHelper.homeDirectory + "/folders/"); } }