buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public boolean performOk() { IPreferenceStore store = getPreferenceStore(); // inform the workbench of whether it should do autobuilds or not IWorkspaceDescription description = ResourcesPlugin.getWorkspace().getDescription(); boolean coreAutoBuildSetting = description.isAutoBuilding(); boolean preferenceSt...
public boolean performOk() { IPreferenceStore store = getPreferenceStore(); // inform the workbench of whether it should do autobuilds or not IWorkspaceDescription description = ResourcesPlugin.getWorkspace().getDescription(); boolean coreAutoBuildSetting = description.isAutoBuilding(); boolean preferenceSt...
public void testMain() { CheckResourceBundle.checkResourceBundle(this, new DiagramResourceBundle()); }
public void testMain() { CheckResourceBundle.checkResourceBundle(this, "org.argouml.i18n.DiagramResourceBundle"); }
public void widgetSelected(SelectionEvent e) { if (!showAllCheck.getSelection()) { filteredViewer.setExpandedElements(unfilteredViewer.getExpandedElements()); filteredViewer.setSelection(unfilteredViewer.getSelection()); stackLayout.topControl = filteredViewer.getControl(...
public void widgetSelected(SelectionEvent e) { if (!showAllCheck.getSelection()) { filteredViewer.setExpandedElements(unfilteredViewer.getExpandedElements()); filteredViewer.setSelection(unfilteredViewer.getSelection()); stackLayout.topControl = filteredViewer.getControl(...
public ImportDeclaration convertImport(org.eclipse.jdt.internal.compiler.ast.ImportReference importReference) { final ImportDeclaration importDeclaration = new ImportDeclaration(this.ast); final boolean onDemand = importReference.onDemand; final char[][] tokens = importReference.tokens; int length = importRefe...
public ImportDeclaration convertImport(org.eclipse.jdt.internal.compiler.ast.ImportReference importReference) { final ImportDeclaration importDeclaration = new ImportDeclaration(this.ast); final boolean onDemand = (importReference.bits & org.eclipse.jdt.internal.compiler.ast.ASTNode.OnDemand) != 0; final char[][...
public boolean process(Object[] args, Folder folder, Object uid) throws Exception { int condition = FilterCriteria.getCriteria((String) args[0]); Date date = transformDate((String) args[1]); boolean result = false; //((Rfc822Header) header).printDebug(); Date d = (D...
public boolean process(Object[] args, Folder folder, Object uid) throws Exception { int condition = FilterCriteria.getCriteria((String) args[0]); Date date = transformDate((String) args[1]); boolean result = false; //((Rfc822Header) header).printDebug(); Date d = (D...
public StringBuffer printExpression(int indent, StringBuffer output) { output.append("<SelectOnType:");//$NON-NLS-1$ int length = tokens.length; for (int i = 0; i < length; i++) { if(i != 0) { output.append('.'); } output.append(tokens[i]); TypeReference[] typeArgument = typeArguments[i]; if (...
public StringBuffer printExpression(int indent, StringBuffer output) { output.append("<SelectOnType:");//$NON-NLS-1$ int length = tokens.length; for (int i = 0; i < length; i++) { if(i != 0) { output.append('.'); } output.append(tokens[i]); TypeReference[] typeArgument = typeArguments[i]; if (...
public boolean visit(NormalAnnotation node) { if (!hasChildrenChanges(node)) { return doVisitUnchangedChildren(node); } int pos= rewriteRequiredNode(node, NormalAnnotation.TYPE_NAME_PROPERTY); if (isChanged(node, NormalAnnotation.VALUES_PROPERTY)) { // eval position after opening parent try { int ...
public boolean visit(NormalAnnotation node) { if (!hasChildrenChanges(node)) { return doVisitUnchangedChildren(node); } int pos= rewriteRequiredNode(node, NormalAnnotation.TYPE_NAME_PROPERTY); if (isChanged(node, NormalAnnotation.VALUES_PROPERTY)) { // eval position after opening parent try { int ...
public org.eclipse.jdt.core.dom.CompilationUnit getAST3() throws JavaModelException { if (this.operation.astLevel != AST.JLS3 || !this.operation.resolveBindings) { // create AST (optionally resolving bindings) ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setCompilerOptions(workingCopy.getJavaProject(...
public org.eclipse.jdt.core.dom.CompilationUnit getAST3() throws JavaModelException { if (this.operation.astLevel != AST.JLS3 || !this.operation.resolveBindings) { // create AST (optionally resolving bindings) ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setCompilerOptions(workingCopy.getJavaProject(...
"public",//$NON-NLS-1$ "return",//$NON-NLS-1$ "short",//$NON-NLS-1$ "static",//$NON-NLS-1$ "strictfp",//$NON-NLS-1$ "super",//$NON-NLS-1$ "switch",//$NON-NLS-1$ "synchronized",//$NON-NLS-1$ "this",//$NON-NLS-1$ "throw",//$NON-NLS-...
"public",//$NON-NLS-1$ "return",//$NON-NLS-1$ "short",//$NON-NLS-1$ "static",//$NON-NLS-1$ "strictfp",//$NON-NLS-1$ "super",//$NON-NLS-1$ "switch",//$NON-NLS-1$ "synchronized",//$NON-NLS-1$ "this",//$NON-NLS-1$ "throw",//$NON-NLS-...
public boolean isCheckAll() { IMAPRootFolder imapRootFolder = (IMAPRootFolder) FolderTreeModel.getInstance() .getImapFolder(accountUid); return !imapRootFolder.getAccountItem().getImapItem().getBoolean( "exclude_from_checkall", false); }
public boolean isCheckAll() { IMAPRootFolder imapRootFolder = (IMAPRootFolder) FolderTreeModel.getInstance() .getImapFolder(accountUid); return !imapRootFolder.getAccountItem().getImapItem().getBooleanWithDefault( "exclude_from_checkall", false); }
public void generateCode(BlockScope currentScope, CodeStream codeStream){ throw new ShouldNotImplement(Util.bind("ast.missingStatement"/*nonNLS*/)); }
public void generateCode(BlockScope currentScope, CodeStream codeStream){ throw new ShouldNotImplement(Util.bind("ast.missingStatement")); //$NON-NLS-1$ }
public PluginListCellRenderer() { super(); try { pluginHandler = PluginManager.getInstance().getHandler( "org.columba.addressbook.import"); } catch (PluginHandlerNotFoundException ex) { ErrorDialog.createDialog(ex.getMessage(), ex); } }
public PluginListCellRenderer() { super(); try { pluginHandler = PluginManager.getInstance().getExtensionHandler( "org.columba.addressbook.import"); } catch (PluginHandlerNotFoundException ex) { ErrorDialog.createDialog(ex.getMessage(), ex); ...
private final void updateCommand(final String commandId, final IHandlerActivation activation) { final Command command = commandService.getCommand(commandId); if (activation == null) { command.setHandler(null); } else { command.setHandler(activation.getHandler()); commandService.refreshCallbacks(comma...
private final void updateCommand(final String commandId, final IHandlerActivation activation) { final Command command = commandService.getCommand(commandId); if (activation == null) { command.setHandler(null); } else { command.setHandler(activation.getHandler()); commandService.refreshElements(comman...
import org.columba.api.gui.frame.IFrameMediator; //The contents of this file are subject to the Mozilla Public License Version 1.1 //(the "License"); you may not use this file except in compliance with the //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ // //Software distributed under th...
import org.columba.api.gui.frame.IFrameMediator; //The contents of this file are subject to the Mozilla Public License Version 1.1 //(the "License"); you may not use this file except in compliance with the //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ // //Software distributed under th...
private TypeBinding internalResolveType(Scope scope, ReferenceBinding enclosingType, boolean checkBounds) { // handle the error here this.constant = Constant.NotAConstant; if (this.didResolve) { // is a shared type reference which was already resolved if (this.resolvedType != null && !this.resolvedType.isVal...
private TypeBinding internalResolveType(Scope scope, ReferenceBinding enclosingType, boolean checkBounds) { // handle the error here this.constant = Constant.NotAConstant; if (this.didResolve) { // is a shared type reference which was already resolved if (this.resolvedType != null && !this.resolvedType.isVal...
public String toString(); }
String toString(); package org.tigris.scarab.util; /* ================================================================ * Copyright (c) 2000 CollabNet. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
private IRegion evaluateReplaceRange(CompilationUnit root) { List imports= root.imports(); if (!imports.isEmpty()) { ImportDeclaration first= (ImportDeclaration) imports.get(0); ImportDeclaration last= (ImportDeclaration) imports.get(imports.size() - 1); int startPos= root.getExtendedStartPosition(fir...
private IRegion evaluateReplaceRange(CompilationUnit root) { List imports= root.imports(); if (!imports.isEmpty()) { ImportDeclaration first= (ImportDeclaration) imports.get(0); ImportDeclaration last= (ImportDeclaration) imports.get(imports.size() - 1); int startPos= first.getStartPosition(); // no e...
public void resolveStatements() { // ========= abort on fatal error ============= if (this.returnType != null && this.binding != null) { this.returnType.resolvedType = this.binding.returnType; // record the return type binding } // check if method with constructor name if (CharOperation.equals(this.sc...
public void resolveStatements() { // ========= abort on fatal error ============= if (this.returnType != null && this.binding != null) { this.returnType.resolvedType = this.binding.returnType; // record the return type binding } // check if method with constructor name if (CharOperation.equals(this.sc...
public void resolve(BlockScope scope) { // create a binding and add it to the scope TypeBinding variableType = type.resolveType(scope); checkModifiers(); if (variableType != null) { if (variableType == VoidBinding) { scope.problemReporter().variableTypeCannotBeVoid(this); return; } if (vari...
public void resolve(BlockScope scope) { // create a binding and add it to the scope TypeBinding variableType = type.resolveType(scope); checkModifiers(); if (variableType != null) { if (variableType == VoidBinding) { scope.problemReporter().variableTypeCannotBeVoid(this); return; } if (vari...
public void dragOver(DropTargetEvent event) { //make sure the file is never moved; always do a copy event.detail = DND.DROP_COPY; } }
public void dragEnter(DropTargetEvent event) { //make sure the file is never moved; always do a copy event.detail = DND.DROP_COPY; } }
public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo){ if (!flowInfo.isReachable()) return; // if method from parameterized type got found, use the original method at codegen time this.codegenBinding = this.binding.original(); if (this.binding.isPrivate()){ // depth is set fo...
public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo){ if (!flowInfo.isReachable()) return; // if method from parameterized type got found, use the original method at codegen time this.codegenBinding = this.binding.original(); if (this.binding.isPrivate()){ // depth is set fo...
public TypeDeclaration convert(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDeclaration) { TypeDeclaration typeDecl = this.ast.newTypeDeclaration(); int modifiers = typeDeclaration.modifiers; modifiers &= ~org.eclipse.jdt.internal.compiler.lookup.CompilerModifiers.AccInterface; // remove AccInterfac...
public TypeDeclaration convert(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDeclaration) { TypeDeclaration typeDecl = this.ast.newTypeDeclaration(); int modifiers = typeDeclaration.modifiers; modifiers &= ~org.eclipse.jdt.internal.compiler.lookup.CompilerModifiers.AccInterface; // remove AccInterfac...
public Rectangle getSnapRectangle() { if (dropResult == null) { return DragUtil.getDisplayBounds(stack.getControl()); } return dropResult.getSnapRectangle(); } };
public Rectangle getSnapRectangle() { if (dropResult == null) { return DragUtil.getDisplayBounds(stack.getControl()); } return dropResult.getSnapRectangle(); } }
public TypeBinding resolveType(BlockScope scope) { this.constant = NotAConstant; TypeBinding typeBinding = this.type.resolveType(scope); if (typeBinding == null) return null; this.resolvedType = typeBinding; // ensure type refers to an annotation type if (!typeBinding.isAnnotationType()) { scop...
public TypeBinding resolveType(BlockScope scope) { this.constant = NotAConstant; TypeBinding typeBinding = this.type.resolveType(scope); if (typeBinding == null) return null; this.resolvedType = typeBinding; // ensure type refers to an annotation type if (!typeBinding.isAnnotationType()) { scop...
public void traverse(ASTVisitor visitor, ClassScope scope) { visitor.visit(this, scope); visitor.endVisit(this, scope); } /* * We need to modify resolving behavior to handle package references */ TypeBinding internalResolveType(Scope scope) { // handle the error here this.constant = Constant.NotAConsta...
public void traverse(ASTVisitor visitor, ClassScope scope) { visitor.visit(this, scope); visitor.endVisit(this, scope); } /* * We need to modify resolving behavior to handle package references */ TypeBinding internalResolveType(Scope scope) { // handle the error here this.constant = Constant.NotAConsta...
public final static void buildFilesFromLPG(String dataFilename) throws java.io.IOException { //RUN THIS METHOD TO GENERATE PARSER*.RSC FILES //build from the lpg javadcl.java files that represents the parser tables //lhs check_table asb asr symbol_index //[org.eclipse.jdt.internal.compiler.parser.Parser.buildFil...
public final static void buildFilesFromLPG(String dataFilename) throws java.io.IOException { //RUN THIS METHOD TO GENERATE PARSER*.RSC FILES //build from the lpg javadcl.java files that represents the parser tables //lhs check_table asb asr symbol_index //[org.eclipse.jdt.internal.compiler.parser.Parser.buildFil...
public MailboxStatus getStatus(IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException { ensureLoginState(); if (selectedFolder != null && selectedFolder.equals(folder)) { try { // This noop is necessary to check // if the mailbox has changed protocol.noop(); return ...
public MailboxStatus getStatus(IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException { ensureLoginState(); if (selectedFolder != null && selectedFolder.equals(folder)) { try { // This noop is necessary to check // if the mailbox has changed protocol.noop(); return ...
public int getNextToken() throws InvalidInputException { this.wasAcr = false; this.unicodeCharSize = 0; if (this.diet) { jumpOverMethodBody(); this.diet = false; return this.currentPosition > this.source.length ? TokenNameEOF : TokenNameRBRACE; } int whiteStart = 0; try { while (true) { //loop for jumpin...
public int getNextToken() throws InvalidInputException { this.wasAcr = false; this.unicodeCharSize = 0; if (this.diet) { jumpOverMethodBody(); this.diet = false; return this.currentPosition > this.source.length ? TokenNameEOF : TokenNameRBRACE; } int whiteStart = 0; try { while (true) { //loop for jumpin...
public SystemMenuMove(IStackPresentationSite stackPresentationSite, String partName, boolean assumeActivePart) { super(WorkbenchMessages.getString("PartPane.move")); //$NON-NLS-1$ this.stackPresentationSite = stackPresentationSite; this.movePart = partName; this.assumeAct...
public SystemMenuMove(IStackPresentationSite stackPresentationSite, String partName, boolean assumeActivePart) { super(WorkbenchMessages.PartPane_move); this.stackPresentationSite = stackPresentationSite; this.movePart = partName; this.assumeActivePart = assumeActivePart;...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = (FolderCommandReference[]) frameMediator .getSelectionManager().getSelection("mail.tree"); MessageFolder folder = (MessageFolder) r[0].getFolder(); if (folder == null) { return; } FolderItem...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = (FolderCommandReference[]) frameMediator .getSelectionManager().getSelection("mail.tree"); MessageFolder folder = (MessageFolder) r[0].getFolder(); if (folder == null) { return; } FolderItem...
public void selectionChanged(SelectionChangedEvent e) { if (((TreeSelectionChangedEvent) e).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) e) .getSelected()[0]; if ((folder != null) && folder instanceof AbstractMessageFolder) { IFolderItem item = folder.getConfigurat...
public void selectionChanged(SelectionChangedEvent e) { if (((TreeSelectionChangedEvent) e).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) e) .getSelected()[0]; if ((folder != null) && folder instanceof AbstractMessageFolder) { IFolderItem item = folder.getConfigurat...
private static void createMailingListHeaderItems( ColumbaHeader header, ComposerModel model) { String messageId = (String) header.get("Message-Id"); if (messageId != null) { model.setHeaderField("In-Reply-To", messageId); String references = (String) header.get("References"); if (references != null) ...
private static void createMailingListHeaderItems( ColumbaHeader header, ComposerModel model) { String messageId = (String) header.get("Message-ID"); if (messageId != null) { model.setHeaderField("In-Reply-To", messageId); String references = (String) header.get("References"); if (references != null) ...
public void actionPerformed(ActionEvent evt) { AddressbookFrameController addressbookFrameController = (AddressbookFrameController) frameController; ContactDialog dialog = new ContactDialog(addressbookFrameController.getView()); dialog.setVisible(true); if (dialog.getResult()) { System.out.printl...
public void actionPerformed(ActionEvent evt) { AddressbookFrameController addressbookFrameController = (AddressbookFrameController) frameMediator; ContactDialog dialog = new ContactDialog(addressbookFrameController.getView()); dialog.setVisible(true); if (dialog.getResult()) { System.out.println(...
public FlowInfo analyseAssignment( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, Assignment assignment, boolean isCompound) { // determine the rank until which we now we do not need any actual value for the field access int otherBindingsCount = otherBindings == null ? 0 : otherBin...
public FlowInfo analyseAssignment( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, Assignment assignment, boolean isCompound) { // determine the rank until which we now we do not need any actual value for the field access int otherBindingsCount = otherBindings == null ? 0 : otherBin...
private ArrayList getPerspectiveShortcuts() { ArrayList list = new ArrayList(); IWorkbenchPage page = window.getActivePage(); if (page == null) return list; ArrayList ids = ((WorkbenchPage) page).getPerspectiveActionIds(); if (ids == null) return list; RoleManager manager = RoleManager.getInstance...
private ArrayList getPerspectiveShortcuts() { ArrayList list = new ArrayList(); IWorkbenchPage page = window.getActivePage(); if (page == null) return list; ArrayList ids = ((WorkbenchPage) page).getPerspectiveActionIds(); if (ids == null) return list; RoleManager manager = RoleManager.getInstance...
public TypeBinding resolveType(BlockScope scope) { scope.problemReporter().cannotUseSuperInCodeSnippet(this.sourceStart, this.sourceEnd); //$NON-NLS-1$ return null; }
public TypeBinding resolveType(BlockScope scope) { scope.problemReporter().cannotUseSuperInCodeSnippet(this.sourceStart, this.sourceEnd); return null; }
public PropPanelSimpleState() { super("State",_stateIcon, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-stereo")...
public PropPanelSimpleState() { super("State",_stateIcon, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-stereo")...
public void refreshExternalArchives(IJavaElement[] elementsScope, IProgressMonitor monitor) throws JavaModelException { if (elementsScope == null){ elementsScope = new IJavaElement[] { this }; } JavaModelManager.getJavaModelManager().deltaProcessor.checkExternalArchiveChanges(elementsScope, monitor); }
public void refreshExternalArchives(IJavaElement[] elementsScope, IProgressMonitor monitor) throws JavaModelException { if (elementsScope == null){ elementsScope = new IJavaElement[] { this }; } JavaModelManager.getJavaModelManager().getDeltaProcessor().checkExternalArchiveChanges(elementsScope, monitor); }
private void setStatus(Job job) { IStatus status= job.getResult(); if (status != null && !toolbar.isDisposed()) { toolbar.getDisplay().beep(); if (status.getSeverity() == IStatus.ERROR)
private void setStatus(Job job) { IStatus status= job.getResult(); if (status != null && !toolbar.isDisposed()) { //toolbar.getDisplay().beep(); if (status.getSeverity() == IStatus.ERROR)
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean hasFocus) { JLabel label = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, hasFocus); label.setText(((Locale) value).get...
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean hasFocus) { JLabel label = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, hasFocus); label.setText(((Locale) value).get...
public char[][] getMethodParameterNames(IMethod method) { if (((IMember) method).isBinary()) { IJavaElement[] el = getUnqualifiedMethodHandle(method, false); if(el[1] != null && fParameterNames.get(el[0]) == null) { method = (IMethod) getUnqualifiedMethodHandle(method, true)[0]; } else { method = (I...
public char[][] getMethodParameterNames(IMethod method) { if (method.isBinary()) { IJavaElement[] el = getUnqualifiedMethodHandle(method, false); if(el[1] != null && fParameterNames.get(el[0]) == null) { method = (IMethod) getUnqualifiedMethodHandle(method, true)[0]; } else { method = (IMethod) el[0...
public void send_reply(JServerRequestInfo jri)throws IOException { //System.out.println("JRMP ServerInterceptor Add/Send Dummy Server Service Context"); jri.add_reply_service_context(new DummyServerServiceContext(SERVER_CTX_ID, java.net.InetAddress.getLocalHost().getHostName()), true); }
public void send_reply(JServerRequestInfo jri)throws IOException { //System.out.println("JRMP ServerInterceptor Add/Send Dummy Server Service Context"); jri.add_reply_service_context(new DummyServerServiceContext(SERVER_CTX_ID, java.net.InetAddress.getLocalHost().getHostName())); }
public String getServerName() { return request.getServerName(); }
public String getServerName() { return request.serverName().toString(); }
public static CompilationUnitDeclaration parse(org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit, NodeSearcher nodeSearcher, Map settings) { if (sourceUnit == null) { throw new IllegalArgumentException(); } CompilerOptions compilerOptions = new CompilerOptions(settings); Parser parser = new ...
public static CompilationUnitDeclaration parse(org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit, NodeSearcher nodeSearcher, Map settings) { if (sourceUnit == null) { throw new IllegalStateException(); } CompilerOptions compilerOptions = new CompilerOptions(settings); Parser parser = new Com...
private TypeBinding internalResolveType(Scope scope, boolean checkBounds) { // handle the error here this.constant = Constant.NotAConstant; if (this.resolvedType != null) // is a shared type reference which was already resolved return this.resolvedType.isValidBinding() ? this.resolvedType : null; // already r...
private TypeBinding internalResolveType(Scope scope, boolean checkBounds) { // handle the error here this.constant = Constant.NotAConstant; if (this.resolvedType != null) // is a shared type reference which was already resolved return this.resolvedType.isValidBinding() ? this.resolvedType : null; // already r...
public AddressLabel( String str ) { super(); this.frame = MainInterface.frameController.getView(); //this.addressbookXmlConfig = MainInterface.config.getAddressbookConfig(); setLayout( new BoxLayout( this, BoxLayout.X_AXIS ) ); setBorder( null ); this.address = s...
public AddressLabel( String str ) { super(); //this.frame = MainInterface.frameController.getView(); //this.addressbookXmlConfig = MainInterface.config.getAddressbookConfig(); setLayout( new BoxLayout( this, BoxLayout.X_AXIS ) ); setBorder( null ); this.address =...
public int getNodeType() { return DO_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { DoStatement result = new DoStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); result.setE...
public int getNodeType() { return DO_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { DoStatement result = new DoStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); result.set...
public int requestMap(Request req) { if( req.getWrapper() != null ) return 0; Context ctx=req.getContext(); // will call getRealPath(), all path normalization // and a number of checks String pathInfo=req.getServletPath(); if( pathInfo==null ) pathInfo=""; String absPath=FileUtil.safePath( ctx.getAbs...
public int requestMap(Request req) { if( req.getWrapper() != null ) return 0; Context ctx=req.getContext(); // will call getRealPath(), all path normalization // and a number of checks String pathInfo=req.getServletPath(); if( pathInfo==null ) pathInfo=""; String absPath=FileUtil.safePath( ctx.getAbs...
private TypeBinding internalResolveType(Scope scope) { // Propagate the type checking to the arguments, and check if the constructor is defined. this.constant = Constant.NotAConstant; if (this.type == null) { this.resolvedType = scope.enclosingSourceType(); } else if (scope.kind == Scope.CLASS_SCOPE) { ...
private TypeBinding internalResolveType(Scope scope) { // Propagate the type checking to the arguments, and check if the constructor is defined. this.constant = Constant.NotAConstant; if (this.type == null) { this.resolvedType = scope.enclosingSourceType(); } else if (scope.kind == Scope.CLASS_SCOPE) { ...
private void adjustSize() { Point size = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); size.x += 5; size.y += 5; int maxSize = getMaximumSize(viewer.getTable().getDisplay()); if (size.x > maxSize); size.x = maxSize; getShell().setSize(size); moveShell(getShell()); setRegion(); }
private void adjustSize() { Point size = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); size.x += 5; size.y += 5; int maxSize = getMaximumSize(viewer.getTable().getDisplay()); if (size.x > maxSize) size.x = maxSize; getShell().setSize(size); moveShell(getShell()); setRegion(); }
public void configure(Appender appender) { Category root = Category.getRoot(); root.addAppender(appender); } /** Reset the configuration to its default. This removes all appenders from all categories, sets the priority of all non-root categories to <code>null</code>, their additivity fl...
public void configure(Appender appender) { Category root = Category.getRoot(); root.addAppender(appender); } /** Reset the configuration to its default. This removes all appenders from all categories, sets the priority of all non-root categories to <code>null</code>, their additivity fl...
public void setVisible(boolean visible) { if (visible == true) { ICommandRegistry pluginCommandRegistry = commandManager.getPluginCommandRegistry(); ICommandRegistry preferenceCommandRegistry = commandManager.getPreferenceCommandRegistry(); List categoryDefinitions = new ArrayList(); categoryDefiniti...
public void setVisible(boolean visible) { if (visible == true) { ICommandRegistry pluginCommandRegistry = commandManager.getPluginCommandRegistry(); ICommandRegistry preferenceCommandRegistry = commandManager.getPreferenceCommandRegistry(); List categoryDefinitions = new ArrayList(); categoryDefiniti...
public PackageReferencePattern(char[] pkgName, int matchRule) { this(matchRule); if (pkgName == null || pkgName.length == 0) { this.pkgName = null; this.segments = new char[][] {CharOperation.NO_CHAR}; ((InternalSearchPattern)this).mustResolve = false; } else { this.pkgName = (isCaseSensitive() || isCamelCa...
public PackageReferencePattern(char[] pkgName, int matchRule) { this(matchRule); if (pkgName == null || pkgName.length == 0) { this.pkgName = null; this.segments = new char[][] {CharOperation.NO_CHAR}; ((InternalSearchPattern)this).mustResolve = false; } else { this.pkgName = (this.isCaseSensitive || this.i...
public void generateOptimizedStringConcatenationCreation(BlockScope blockScope, CodeStream codeStream, int typeID) { // keep implementation in sync with BinaryExpression // #generateOptimizedStringConcatenationCreation if (this.referencesTable == null) { super.generateOptimizedStringConcatenationCreation(blockS...
public void generateOptimizedStringConcatenationCreation(BlockScope blockScope, CodeStream codeStream, int typeID) { // keep implementation in sync with BinaryExpression // #generateOptimizedStringConcatenationCreation if (this.referencesTable == null) { super.generateOptimizedStringConcatenationCreation(blockS...
public SimpleName getName() { if (this.typeName == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.typeName == null) { preLazyInit(); this.typeName = new SimpleName(this.ast); postLazyInit(this.typeName, internalNameProperty()); } } } return...
public SimpleName getName() { if (this.typeName == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.typeName == null) { preLazyInit(); this.typeName = new SimpleName(this.ast); postLazyInit(this.typeName, internalNameProperty()); } } } return thi...
public void reload( Request req, Context ctx ) throws TomcatException { ClassLoader newLoader = ctx.getClassLoader(); SimpleSessionManager sM = getManager( ctx ); // remove all non-serializable objects from session Enumeration sessionEnum=sM.getSessionIds(); while( sessionEnum.hasMoreElements() ) { S...
public void reload( Request req, Context ctx ) throws TomcatException { ClassLoader newLoader = ctx.getClassLoader(); SimpleSessionManager sM = getManager( ctx ); // remove all non-serializable objects from session Enumeration sessionEnum=sM.getSessions(); while( sessionEnum.hasMoreElements() ) { Ser...
private void initializeIndexLocations() { IPath[] projectsAndJars = this.searchScope.enclosingProjectsAndJars(); IndexManager manager = JavaModelManager.getIndexManager(); SimpleSet locations = new SimpleSet(); IJavaElement focus = MatchLocator.projectOrJarFocus(this.pattern); if (focus == null) { for (int i = 0...
private void initializeIndexLocations() { IPath[] projectsAndJars = this.searchScope.enclosingProjectsAndJars(); IndexManager manager = JavaModelManager.getIndexManager(); SimpleSet locations = new SimpleSet(); IJavaElement focus = MatchLocator.projectOrJarFocus(this.pattern); if (focus == null) { for (int i = 0...
public void releaseLock() { myLock.release(); }
public void releaseLock() { myLock.release(null); }
private ServletHandler mapJspPage( Context ctx, String uri) { String servletName= SERVLET_NAME_PREFIX + uri; if( debug>0) log( "mapJspPage " + ctx + " " + " " + servletName + " " + uri ); Handler h=ctx.getServletByName( servletName ); if( h!= null ) { log( "Name already exists " + servletName ...
private ServletHandler mapJspPage( Context ctx, String uri) { String servletName= SERVLET_NAME_PREFIX + uri; if( debug>0) log( "mapJspPage " + ctx + " " + " " + servletName + " " + uri ); Handler h=ctx.getServletByName( servletName ); if( h!= null ) { log( "Name already exists " + servletName ...
public void resolve(BlockScope upperScope) { try { boolean isEnumSwitch = false; TypeBinding expressionType = expression.resolveType(upperScope); if (expressionType == null) return; expression.computeConversion(upperScope, expressionType, expressionType); checkType: { if (expressionType.i...
public void resolve(BlockScope upperScope) { try { boolean isEnumSwitch = false; TypeBinding expressionType = expression.resolveType(upperScope); if (expressionType == null) return; expression.computeConversion(upperScope, expressionType, expressionType); checkType: { if (expressionType.i...
public PropPanelSignal() { super("Signal", _signalIcon,2); Class mclass = MSignal.class; addCaption(Argo.localize("UMLMenu", "label.name"),1,0,0); addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),1,0,0); addCaption(Argo.localize("UMLM...
public PropPanelSignal() { super("Signal", _signalIcon,2); Class mclass = MSignal.class; addCaption(Argo.localize("UMLMenu", "label.name"),1,0,0); addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),1,0,0); addCaption(Argo.localize("UMLM...
private void shutdown() { // shutdown application-specific portions first advisor.postShutdown(); // shutdown the rest of the workbench WorkbenchColors.shutdown(); JFaceColors.disposeColors(); if(getDecoratorManager() != null) { ((DecoratorManager) getDecoratorManager()).shutdown(); } activityHel...
private void shutdown() { // shutdown application-specific portions first advisor.postShutdown(); // shutdown the rest of the workbench WorkbenchColors.shutdown(); JFaceColors.disposeColors(); if(getDecoratorManager() != null) { ((DecoratorManager) getDecoratorManager()).shutdown(); } activityHel...
public void prepareRequest() { if( prepared ) return; if( host==null ) host=defaultHost; if( port==-1) port=defaultPort; if( protocol==null ) protocol=defaultProtocol; prepared=true; if( id==null ) { id="Req" + getId(); } registerHttpRequest( id, this ); // explicitely set - the rest doesn't...
public void prepareRequest() { if( prepared ) return; if( host==null ) host=defaultHost; if( port==-1) port=defaultPort; if( protocol==null ) protocol=defaultProtocol; prepared=true; if( id==null ) { id="Req" + getId(); } registerHttpRequest( id, this ); // explicitely set - the rest doesn't...
public static UtilLoggingLevel toLevel(int val, UtilLoggingLevel defaultLevel) { switch (val) { case SEVERE_INT: return SEVERE; case WARNING_INT: return WARNING; case INFO_INT: return INFO; case CONFIG_INT: return CONFIG; case FINE_INT: return FINE; case ...
public static UtilLoggingLevel toLevel(int val, UtilLoggingLevel defaultLevel) { switch (val) { case SEVERE_INT: return SEVERE; case WARNING_INT: return WARNING; case INFO_INT: return INFO; case CONFIG_INT: return CONFIG; case FINE_INT: return FINE; case ...
public final boolean getBoolean(ConfigurationKey key, boolean defaultValue) { loadIfNecessary(); Boolean dflt = new Boolean(defaultValue); Boolean b = new Boolean(getValue(key.getKey(), dflt.toString())); return b.booleanValue(); }
public final boolean getBoolean(ConfigurationKey key, boolean defaultValue) { loadIfNecessary(); Boolean dflt = new Boolean(defaultValue); Boolean b = key != null ? new Boolean(getValue(key.getKey(), dflt.toString())) : dflt; return b.booleanValue(); }
public TypeBinding resolveType(BlockScope scope) { super.resolveType(scope); // tolerate some error cases if (binding == null || !(binding.isValidBinding() || binding.problemId() == ProblemReasons.NotVisible)) throw new SelectionNodeFound(); if (anonymousType == null) throw new SelectionNode...
public TypeBinding resolveType(BlockScope scope) { super.resolveType(scope); // tolerate some error cases if (binding == null || !(binding.isValidBinding() || binding.problemId() == ProblemReasons.NotVisible)) throw new SelectionNodeFound(); if (anonymousType == null) throw new SelectionNode...
public RecoveredElement add(TypeDeclaration typeDeclaration, int bracketBalanceValue) { /* do not consider a type starting passed the type end (if set) it must be belonging to an enclosing type */ if (methodDeclaration.declarationSourceEnd != 0 && typeDeclaration.declarationSourceStart > methodDeclaration.decla...
public RecoveredElement add(TypeDeclaration typeDeclaration, int bracketBalanceValue) { /* do not consider a type starting passed the type end (if set) it must be belonging to an enclosing type */ if (methodDeclaration.declarationSourceEnd != 0 && typeDeclaration.declarationSourceStart > methodDeclaration.decla...
protected TypeBinding getTypeBinding(Scope scope) { if (this.resolvedType != null) return this.resolvedType; this.resolvedType = scope.getType(token); if (scope.kind == Scope.CLASS_SCOPE && this.resolvedType.isValidBinding()) if (((ClassScope) scope).detectHierarchyCycle(this.resolvedType, this, null)) ...
protected TypeBinding getTypeBinding(Scope scope) { if (this.resolvedType != null) return this.resolvedType; this.resolvedType = scope.getType(token); if (scope.kind == Scope.CLASS_SCOPE && this.resolvedType.isValidBinding()) if (((ClassScope) scope).detectHierarchyCycle(this.resolvedType, this)) ret...
public void setToken(String token) { if (token == null || token.length() == 0) { throw new IllegalArgumentException(); } Scanner scanner = getAST().scanner; char[] source = token.toCharArray(); scanner.setSourceBuffer(source); scanner.resetTo(0, source.length); try { int tokenType = scanner.getNext...
public void setToken(String token) { if (token == null || token.length() == 0) { throw new IllegalArgumentException(); } Scanner scanner = getAST().scanner; char[] source = token.toCharArray(); scanner.setSource(source); scanner.resetTo(0, source.length); try { int tokenType = scanner.getNextToken(...
public boolean isSecure() { // The adapter is responsible for providing this information return getProtocol().equalsIgnoreCase("HTTPS"); }
public boolean isSecure() { // The adapter is responsible for providing this information return getScheme().equalsIgnoreCase("HTTPS"); }
private final IHandlerActivation resolveConflicts(final String commandId, final Collection handlerActivations) { // Create a collection with only the activation that are active. final Collection activations = trimInactive(handlerActivations); // If we don't have any, then there is no match. if (activations...
private final IHandlerActivation resolveConflicts(final String commandId, final Collection handlerActivations) { // Create a collection with only the activation that are active. final Collection activations = trimInactive(handlerActivations); // If we don't have any, then there is no match. if (activations...
public byte[] serialize() throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream out = new CustomObjectOutputStream(baos); if (correlationRequestId == null) { out.writeByte(0); } else { out.writeByte(1); ...
public byte[] serialize() throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(1000); ObjectOutputStream out = new CustomObjectOutputStream(baos); if (correlationRequestId == null) { out.writeByte(0); } else { out.writeByte(1); ...
public void processConnection(TcpConnection connection, Object thData[]) { Socket socket=null; HttpRequest reqA=null; HttpResponse resA=null; try { reqA=(HttpRequest)thData[0]; resA=(HttpResponse)thData[1]; socket=connection.getSocket(); reqA.setSocket( socket ); resA.setSocket( sock...
public void processConnection(TcpConnection connection, Object thData[]) { Socket socket=null; HttpRequest reqA=null; HttpResponse resA=null; try { reqA=(HttpRequest)thData[0]; resA=(HttpResponse)thData[1]; socket=connection.getSocket(); reqA.setSocket( socket ); resA.setSocket( sock...
public void generatePostIncrement( BlockScope currentScope, CodeStream codeStream, CompoundAssignment postIncrement, boolean valueRequired) { FieldBinding lastFieldBinding = generateReadSequence(currentScope, codeStream); SyntheticMethodBinding accessor = syntheticReadAccessors == null ? null ...
public void generatePostIncrement( BlockScope currentScope, CodeStream codeStream, CompoundAssignment postIncrement, boolean valueRequired) { FieldBinding lastFieldBinding = generateReadSequence(currentScope, codeStream); SyntheticMethodBinding accessor = syntheticReadAccessors == null ? null ...
public void actionPerformed(ActionEvent evt) { /* * *20030620, karlpeder* Action has been implemented */ // get selected stuff FolderCommandReference[] r = ((AbstractMailFrameController) getFrameController()). getTableSelection(); // add command for execution CreateFilterOnMessageCommand c =...
public void actionPerformed(ActionEvent evt) { /* * *20030620, karlpeder* Action has been implemented */ // get selected stuff FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()). getTableSelection(); // add command for execution CreateFilterOnMessageCommand c = ...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (constant != Constant.NotAConstant) { // inlined value if (valueRequired) codeStream.generateConstant(constant, implicitConversion); codeStream.recordPositionsFrom(pc, th...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (constant != Constant.NotAConstant) { // inlined value if (valueRequired) codeStream.generateConstant(constant, implicitConversion); codeStream.recordPositionsFrom(pc, th...
public void actionPerformed(ActionEvent evt) { ((AbstractMailView) frameMediator.getBaseView()).showToolbar(); }
public void actionPerformed(ActionEvent evt) { ((AbstractMailView) frameMediator.getView()).showToolbar(); }
protected TreeViewer createTreeViewer(Composite parent) { int styleBits = SWT.SINGLE | SWT.H_SCROLL; filteredTree = new PreferenceFilteredTree(parent, styleBits,
protected TreeViewer createTreeViewer(Composite parent) { int styleBits = SWT.SINGLE; filteredTree = new PreferenceFilteredTree(parent, styleBits,
public Object getValueAt(int rowIndex, int columnIndex) { LoggingEvent event = null; synchronized (filteredList) { if (rowIndex < filteredList.size()) { event = (LoggingEvent) filteredList.get(rowIndex); } } if (event == null) { return null; } LocationInfo info = n...
public Object getValueAt(int rowIndex, int columnIndex) { LoggingEvent event = null; synchronized (filteredList) { if (rowIndex < filteredList.size()) { event = (LoggingEvent) filteredList.get(rowIndex); } } if (event == null) { return null; } LocationInfo info = n...
private void computeClasspathLocations(IWorkspaceRoot workspaceRoot, JavaProject javaProject) { IPackageFragmentRoot[] roots = null; try { roots = javaProject.getAllPackageFragmentRoots(); } catch (JavaModelException e) { // project doesn't exist this.locations = new ClasspathLocation[0]; return; } int le...
private void computeClasspathLocations(IWorkspaceRoot workspaceRoot, JavaProject javaProject) { IPackageFragmentRoot[] roots = null; try { roots = javaProject.getAllPackageFragmentRoots(); } catch (JavaModelException e) { // project doesn't exist this.locations = new ClasspathLocation[0]; return; } int le...
public void tableChanged(TableChangedEvent event) throws Exception { ColumbaLogger.log.info("event="+event); FolderTreeNode folder = event.getSrcFolder(); if (folder == null) { if (event.getEventType() == TableChangedEvent.UPDATE) getHeaderTableModel().update(); fireTableChangedEvent(event); re...
public void tableChanged(TableChangedEvent event) throws Exception { ColumbaLogger.log.info("event="+event); FolderTreeNode folder = event.getSrcFolder(); if (folder == null) { if (event.getEventType() == TableChangedEvent.UPDATE) getHeaderTableModel().update(); fireTableChangedEvent(event); re...
public void resolve(MethodScope initializationScope) { // the two <constant = Constant.NotAConstant> could be regrouped into // a single line but it is clearer to have two lines while the reason of their // existence is not at all the same. See comment for the second one. //----------------------------------...
public void resolve(MethodScope initializationScope) { // the two <constant = Constant.NotAConstant> could be regrouped into // a single line but it is clearer to have two lines while the reason of their // existence is not at all the same. See comment for the second one. //----------------------------------...
public static void searchAllPossibleSubTypes( IWorkspace workbench, IType type, IJavaSearchScope scope, final Map binariesFromIndexMatches, final IPathRequestor pathRequestor, int waitingPolicy, // WaitUntilReadyToSearch | ForceImmediateSearch | CancelIfNotReadyToSearch IProgressMonitor progressMonitor) throws ...
public static void searchAllPossibleSubTypes( IWorkspace workbench, IType type, IJavaSearchScope scope, final Map binariesFromIndexMatches, final IPathRequestor pathRequestor, int waitingPolicy, // WaitUntilReadyToSearch | ForceImmediateSearch | CancelIfNotReadyToSearch IProgressMonitor progressMonitor) throws ...
private void readTokenFromScanner(){ int length = tokenCache.length; boolean tokenNotFound = true; while(tokenNotFound) { try { int tokenKind = scanner.getNextToken(); if(tokenKind != TokenNameEOF) { int start = scanner.getCurrentTokenStartPosition(); int end = scanner.getCurrentTokenEnd...
private void readTokenFromScanner(){ int length = tokenCache.length; boolean tokenNotFound = true; while(tokenNotFound) { try { int tokenKind = scanner.getNextToken(); if(tokenKind != TokenNameEOF) { int start = scanner.getCurrentTokenStartPosition(); int end = scanner.getCurrentTokenEnd...
protected TypeReference copyDims(TypeReference typeRef, int dim) { TypeReference result = super.copyDims(typeRef, dim); if (this.matchSet.removePossibleMatch(typeRef) != null) this.matchSet.addPossibleMatch(result); else if (this.matchSet.removeTrustedMatch(typeRef) != null) this.matchSet.addTrustedMatch(resul...
protected TypeReference copyDims(TypeReference typeRef, int dim) { TypeReference result = super.copyDims(typeRef, dim); if (this.matchSet.removePossibleMatch(typeRef) != null) this.matchSet.addPossibleMatch(result); else if (this.matchSet.removeTrustedMatch(typeRef) != null) this.matchSet.addTrustedMatch(resul...
public static String[] loadMessageTemplates(Locale loc) { ResourceBundle bundle = ResourceBundle.getBundle("org.eclipse.jdt.internal.compiler.problem.messages", loc); //$NON-NLS-1$ String[] templates = new String[500]; for (int i = 0, max = templates.length; i < max; i++) { try { templates[i] = bundle.getString...
public static String[] loadMessageTemplates(Locale loc) { ResourceBundle bundle = ResourceBundle.getBundle("org.eclipse.jdt.internal.compiler.problem.messages", loc); //$NON-NLS-1$ String[] templates = new String[500]; for (int i = 0, max = templates.length; i < max; i++) { try { templates[i] = bundle.getString...
protected boolean computeChildren(OpenableElementInfo info) { JarPackageFragmentInfo jInfo= (JarPackageFragmentInfo)info; if (jInfo.entryNames != null){ ArrayList vChildren = new ArrayList(); for (Iterator iter = jInfo.entryNames.iterator(); iter.hasNext();) { String child = (String) iter.next(); IClassFile...
protected boolean computeChildren(OpenableElementInfo info) { JarPackageFragmentInfo jInfo= (JarPackageFragmentInfo)info; if (jInfo.entryNames != null){ ArrayList vChildren = new ArrayList(); for (Iterator iter = jInfo.entryNames.iterator(); iter.hasNext();) { String child = (String) iter.next(); IClassFile...
public void actionPerformed(ActionEvent evt) { ComposerController composerController = ((ComposerController) getFrameController()); composerController.getHeaderController().cleanupHeaderItemList(); SelectAddressDialog dialog = new SelectAddressDialog( composerController.getView(), composerContro...
public void actionPerformed(ActionEvent evt) { ComposerController composerController = ((ComposerController) getFrameMediator()); composerController.getHeaderController().cleanupHeaderItemList(); SelectAddressDialog dialog = new SelectAddressDialog( composerController.getView(), composerControll...
protected void promptForExternalEditor() { FileDialog dialog = new FileDialog(getShell(), SWT.OPEN | SWT.PRIMARY_MODAL); dialog.setFilterExtensions(Executable_Filters); String result = dialog.open(); if (result != null) { EditorDescriptor editor = EditorDescriptor.createForProgram(result); // pretend...
protected void promptForExternalEditor() { FileDialog dialog = new FileDialog(getShell(), SWT.OPEN | SWT.PRIMARY_MODAL | SWT.SHEET); dialog.setFilterExtensions(Executable_Filters); String result = dialog.open(); if (result != null) { EditorDescriptor editor = EditorDescriptor.createForProgram(result); ...
protected void doInsertionAtBody(String text) throws Exception { Attachment attachment = (Attachment)digester.pop(); attachment.setFilePath(text); digester.push(attachment); }
protected void doInsertionAtBody(String text) throws Exception { Attachment attachment = (Attachment)digester.pop(); attachment.setFileName(text); digester.push(attachment); }
public IntegerArray() { array = new int[100]; } //}}}
public IntegerArray() { array = new int[1000]; } //}}}
public Object buildNewCacheObject(IExtensionDelta delta) { IExtension extension = delta.getExtension(); if (extension == null) return null; IConfigurationElement[] elements = extension.getConfigurationElements(); ViewRegistryElement regElement = new ViewRegistryElement(); for (int i = 0; i < elements.length; i++...
public Object buildNewCacheObject(IExtensionDelta delta) { IExtension extension = delta.getExtension(); if (extension == null) return null; IConfigurationElement[] elements = extension.getConfigurationElements(); ViewRegistryElement regElement = new ViewRegistryElement(); for (int i = 0; i < elements.length; i++...
protected void openHierarchy() throws JavaModelException { Openable openableParent = (Openable)getOpenableParent(); if (openableParent != null) { JavaElementInfo openableParentInfo = (JavaElementInfo) fgJavaModelManager.getInfo((IJavaElement) openableParent); if (openableParentInfo == null) { openableParent.op...
protected void openHierarchy() throws JavaModelException { Openable openableParent = (Openable)getOpenableParent(); if (openableParent != null) { JavaElementInfo openableParentInfo = (JavaElementInfo) fgJavaModelManager.getInfo((IJavaElement) openableParent); if (openableParentInfo == null) { openableParent.op...
private void readLevel(ObjectInputStream ois) throws java.io.IOException, ClassNotFoundException { int p = ois.readInt(); try { String className = (String)ois.readObject(); if (className == null) { level = Level.toLevel(p); } else { Method m = (Method)methodCache.g...
private void readLevel(ObjectInputStream ois) throws java.io.IOException, ClassNotFoundException { int p = ois.readInt(); try { String className = (String)ois.readObject(); if (className == null) { level = Level.toLevel(p); } else { Method m = (Method)methodCache.g...
public void processNewLoggingEvent(String eventType, LoggingEvent event) { EventTypeEntryContainer container = getContainer(eventType); container.addLevel(event.getLevel()); container.addLogger(event.getLoggerName()); container.addThread(event.getThreadName()); container.addNDC(event.getNDC()); ...
public EventTypeEntryContainer getContainer() { // if(eventTypeMap.size()>0){ // return (EventTypeEntryContainer) eventTypeMap.values().iterator().next(); // } return eventContainer; } EventTypeEntryContainer getContainer(String eventType) { return this.eventContainer; //...
private void addDropSupport() { if (dropTarget == null) { Transfer[] types = new Transfer[] { EditorInputTransfer.getInstance(), ResourceTransfer.getInstance(), MarkerTransfer.getInstance() }; dropTarget = new DropTarget(getControl(), DND.DROP_DEFAULT); dropTarget.setTransfer(types); d...
private void addDropSupport() { if (dropTarget == null) { Transfer[] types = new Transfer[] { EditorInputTransfer.getInstance(), ResourceTransfer.getInstance(), MarkerTransfer.getInstance() }; dropTarget = new DropTarget(getControl(), DND.DROP_DEFAULT | DND.DROP_COPY); dropTarget.setTrans...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; if (!this.isImplicitThis() &&!checkAccess(scope.methodScope())) { return null; } return this.resolvedType = scope.enclosingSourceType(); }
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; if (!this.isImplicitThis() &&!checkAccess(scope.methodScope())) { return null; } return this.resolvedType = scope.enclosingReceiverType(); }
public final void jumpOverMethodBody() { this.wasAcr = false; int found = 1; try { while (true) { //loop for jumping over comments this.withoutUnicodePtr = 0; // ---------Consume white space and handles startPosition--------- boolean isWhiteSpace; do { this.startPosition = this.currentPosition; ...
public final void jumpOverMethodBody() { this.wasAcr = false; int found = 1; try { while (true) { //loop for jumping over comments this.withoutUnicodePtr = 0; // ---------Consume white space and handles startPosition--------- boolean isWhiteSpace; do { this.startPosition = this.currentPosition; ...
public IMAPResponse[] copy( String messageSet, String mailbox) throws Exception { Arguments args = new Arguments(); args.add(messageSet); args.add(mailbox); IMAPResponse[] responses = sendCommand("COPY", args); notifyResponseHandler(responses); IMAPResponse r = responses[responses.length - 1]; h...
public IMAPResponse[] copy( String messageSet, String mailbox) throws Exception { Arguments args = new Arguments(); args.add(messageSet); args.add(mailbox); IMAPResponse[] responses = sendCommand("UID COPY", args); notifyResponseHandler(responses); IMAPResponse r = responses[responses.length - 1]; ...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update incomplete classpath marker */ IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true/*ignore*/, true/*marker*/, null/*preferred c...
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 ...