buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public static String id() { return "3.7"; }
public static String id() { return "@version@"; }
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // check captured variables are initialized in current context (26134) checkCapturedLocalInitializationIfNecessary((ReferenceBinding)this.binding.declaringClass.erasure(), currentScope, flowInfo); // process arguments...
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // check captured variables are initialized in current context (26134) checkCapturedLocalInitializationIfNecessary((ReferenceBinding)this.binding.declaringClass.erasure(), currentScope, flowInfo); // process arguments...
public String getType() { int lastDot= file.getPath().lastIndexOf('.'); if (lastDot == -1) return ""/*nonNLS*/; return file.getPath().substring(lastDot + 1); }
public String getType() { int lastDot= file.getPath().lastIndexOf('.'); if (lastDot == -1) return ""; //$NON-NLS-1$ return file.getPath().substring(lastDot + 1); }
public void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { String requestURI = request.getRequestURI(); String includedRequestURI = (String)request.getAttribute("javax.servlet.include.request_uri"); boolean inInclude = (includedRequestURI != nu...
public void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { String requestURI = request.getRequestURI(); String includedRequestURI = (String)request.getAttribute("javax.servlet.include.request_uri"); boolean inInclude = (includedRequestURI != nu...
public void selectAndConfigure(URL url, Hierarchy hierarchy) { String clazz = url.getRef(); if (clazz.indexOf('.') == -1 || clazz.indexOf('/') != -1 || clazz.indexOf('\\') != -1) { LogLog.warn("Suspicious reference in URL ["+url+ "] will ignore refence part assuming BEA Weblogic environment."); ...
public void selectAndConfigure(URL url, Hierarchy hierarchy) { String clazz = url.getRef(); if (clazz.indexOf('.') == -1 || clazz.indexOf('/') != -1 || clazz.indexOf('\\') != -1) { LogLog.warn("Suspicious reference in URL ["+url+ "] will ignore refence part assuming custom URL."); clazz = n...
public boolean process(MessageFolder folder, Object uid) throws Exception { boolean result = false; String headerField = pattern; int condition = FilterCriteria.getCriteria(criteria); String searchHeaderField = null; Flags flags = folder.getFlags(uid); if (headerF...
public boolean process(MessageFolder folder, Object uid) throws Exception { boolean result = false; String headerField = pattern; int condition = FilterCriteria.getCriteria(criteria); String searchHeaderField = null; Flags flags = folder.getFlags(uid); if (headerF...
public TypeBinding resolveType(BlockScope scope) { // field and/or local are done before type lookups // the only available value for the restrictiveFlag BEFORE // the TC is Flag_Type Flag_LocalField and Flag_TypeLocalField this.actualReceiverType = this.receiverType = scope.enclosingSourceType(); constant ...
public TypeBinding resolveType(BlockScope scope) { // field and/or local are done before type lookups // the only available value for the restrictiveFlag BEFORE // the TC is Flag_Type Flag_LocalField and Flag_TypeLocalField this.actualReceiverType = scope.enclosingSourceType(); constant = Constant.NotAConst...
public int authorize( Request req, Response response ) { Context ctx=req.getContext(); SecurityConstraints ctxSec=(SecurityConstraints)ctx.getContainer().getNote( secMapNote ); if( ctxSec.patterns==0 ) return 0; // fast exit String reqURI = req.getRequestURI(); String ctxPath= ctx.getPath(); String path...
public int authorize( Request req, Response response ) { Context ctx=req.getContext(); SecurityConstraints ctxSec=(SecurityConstraints)ctx.getContainer().getNote( secMapNote ); if( ctxSec.patterns==0 ) return 0; // fast exit String reqURI = req.getRequestURI(); String ctxPath= ctx.getPath(); String path...
public InputStream render(MimePart part) throws Exception { Vector streams = new Vector((2 * 2) + 3); MimeHeader header = part.getHeader(); // Create boundary to separate the mime-parts String boundary = createUniqueBoundary().toString(); header.putContentParameter("boundar...
public InputStream render(MimePart part) throws Exception { Vector streams = new Vector((2 * 2) + 3); MimeHeader header = part.getHeader(); // Create boundary to separate the mime-parts String boundary = createUniqueBoundary().toString(); header.putContentParameter("boundar...
private void updatePackageStatement(IDOMCompilationUnit domCU, String[] pkgName) { boolean defaultPackage = pkgName.length == 0; boolean seenPackageNode = false; Enumeration nodes = domCU.getChildren(); while (nodes.hasMoreElements()) { IDOMNode node = (IDOMNode) nodes.nextElement(); if (node.getNodeType...
private void updatePackageStatement(IDOMCompilationUnit domCU, String[] pkgName) { boolean defaultPackage = pkgName.length == 0; boolean seenPackageNode = false; Enumeration nodes = domCU.getChildren(); while (nodes.hasMoreElements()) { IDOMNode node = (IDOMNode) nodes.nextElement(); if (node.getNodeType...
public static void performPreBuildCheck( IResourceDelta delta, IJavaElement parent) { IResource resource = delta.getResource(); IJavaElement element = JavaCore.create(resource); boolean processChildren = false; switch (resource.getType()) { case IResource.ROOT : processChildren = true; break;...
public static void performPreBuildCheck( IResourceDelta delta, IJavaElement parent) { IResource resource = delta.getResource(); IJavaElement element = JavaCore.create(resource); boolean processChildren = false; switch (resource.getType()) { case IResource.ROOT : processChildren = true; break;...
public ReferenceCollection(char[][][] qualifiedReferences, char[][] simpleNameReferences) { this.qualifiedReferences = internQualifiedNames(qualifiedReferences); this.simpleNameReferences = internSimpleNames(simpleNameReferences, true); } boolean includes(char[] simpleName) { for (int i = 0, l = simpleNameReference...
protected ReferenceCollection(char[][][] qualifiedReferences, char[][] simpleNameReferences) { this.qualifiedReferences = internQualifiedNames(qualifiedReferences); this.simpleNameReferences = internSimpleNames(simpleNameReferences, true); } boolean includes(char[] simpleName) { for (int i = 0, l = simpleNameRefere...
private void fillMenu(IMenuManager innerMgr) { // Remove all. innerMgr.removeAll(); // If no page disable all. IWorkbenchPage page = window.getActivePage(); if (page == null) return; // If no active perspective disable all if (page.getPerspective() == null) return; // Get visible actions. ...
private void fillMenu(IMenuManager innerMgr) { // Remove all. innerMgr.removeAll(); // If no page disable all. IWorkbenchPage page = window.getActivePage(); if (page == null) return; // If no active perspective disable all if (page.getPerspective() == null) return; // Get visible actions. ...
public void resolveTypeExpecting(BlockScope scope, TypeBinding requiredType) { if (this.value == null) { this.compilerElementPair = new ElementValuePair(this.name, this.value, this.binding); return; } if (requiredType == null) { // fault tolerance: keep resolving if (this.value instanceof ArrayIni...
public void resolveTypeExpecting(BlockScope scope, TypeBinding requiredType) { if (this.value == null) { this.compilerElementPair = new ElementValuePair(this.name, this.value, this.binding); return; } if (requiredType == null) { // fault tolerance: keep resolving if (this.value instanceof ArrayIni...
public String toString(int tab){ return tabString(tab) + "Recovered statement:\n"/*nonNLS*/ + statement.toString(tab + 1); }
public String toString(int tab){ return tabString(tab) + "Recovered statement:\n" + statement.toString(tab + 1); //$NON-NLS-1$ }
private void readActivityBindingDefinition(IConfigurationElement configurationElement) { IActivityBindingDefinition activityBindingDefinition = Persistence.readActivityBindingDefinition( new ConfigurationElementMemento(configurationElement), getPluginId(configurationElement)); if (activityBindingDefini...
private void readActivityBindingDefinition(IConfigurationElement configurationElement) { IContextBindingDefinition activityBindingDefinition = Persistence.readActivityBindingDefinition( new ConfigurationElementMemento(configurationElement), getPluginId(configurationElement)); if (activityBindingDefinit...
public StackDropResult dragOver(Control currentControl, Point location, int dragStart) { // Determine which tab we're currently dragging over //Point localPos = tabFolder.getControl().toControl(location); AbstractTabItem tabUnderPointer = tabFolder.getItem(location); /...
public StackDropResult dragOver(Control currentControl, Point location, int dragStart) { // Determine which tab we're currently dragging over //Point localPos = tabFolder.getControl().toControl(location); AbstractTabItem tabUnderPointer = tabFolder.getItem(location); /...
public void addView(String viewId) { if (pageLayout.checkPartInLayout(viewId)) return; try { IViewDescriptor descriptor = viewFactory.getViewRegistry().find( viewId); if (descriptor == null) { throw new PartInitException("View ...
public void addView(String viewId) { if (pageLayout.checkPartInLayout(viewId)) return; try { IViewDescriptor descriptor = viewFactory.getViewRegistry().find( ViewFactory.extractPrimaryId(viewId)); if (descriptor == null) { thro...
public IPackageFragment findPackageFragment(IPath path) { if (!path.isAbsolute()) { throw new IllegalArgumentException(Util.bind("path.mustBeAbsolute")); //$NON-NLS-1$ } /* * this code should rather use the package fragment map to find the candidate package, then * check if the respective enclosing root maps ...
public IPackageFragment findPackageFragment(IPath path) { if (!path.isAbsolute()) { throw new IllegalArgumentException(Util.bind("path.mustBeAbsolute")); //$NON-NLS-1$ } /* * this code should rather use the package fragment map to find the candidate package, then * check if the respective enclosing root maps ...
public TabProps() { super("Properties"); setLayout(new BorderLayout()); //setFont(new Font("Dialog", Font.PLAIN, 10)); }
public TabProps() { super("Props"); setLayout(new BorderLayout()); //setFont(new Font("Dialog", Font.PLAIN, 10)); }
public FieldBinding getSyntheticField(ReferenceBinding targetEnclosingType, boolean onlyExactMatch) { if (synthetics == null || synthetics[FIELD_EMUL] == null) return null; FieldBinding field = (FieldBinding) synthetics[FIELD_EMUL].get(targetEnclosingType); if (field != null) return field; // type compatibility :...
public FieldBinding getSyntheticField(ReferenceBinding targetEnclosingType, boolean onlyExactMatch) { if (synthetics == null || synthetics[FIELD_EMUL] == null) return null; FieldBinding field = (FieldBinding) synthetics[FIELD_EMUL].get(targetEnclosingType); if (field != null) return field; // type compatibility :...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; TypeBinding type = this.resolvedType = this.qualification.resolveType(scope); if (type == null) return null; // X.this is not a raw type as denoting enclosing instance if (type.isRawType()) { RawTypeBinding rawType = (RawTypeB...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; TypeBinding type = this.resolvedType = this.qualification.resolveType(scope, true /* check bounds*/); if (type == null) return null; // X.this is not a raw type as denoting enclosing instance if (type.isRawType()) { RawTypeBin...
public void contextInit( Context context) throws TomcatException { if( debug>0 ) log( "Init context " + context.getPath()); ContextManager cm = context.getContextManager(); URL classP[]=context.getClassPath(); if( debug>5 ) { log(" Context classpath URLs:"); for (int i = 0; i < classP.len...
public void contextInit( Context context) throws TomcatException { if( debug>0 ) log( "Init context " + context.getPath()); ContextManager cm = context.getContextManager(); URL classP[]=context.getClassPath(); if( debug>5 ) { log(" Context classpath URLs:"); for (int i = 0; i < classP.len...
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).detectCycle(this.resolvedType, this, null)) return...
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)) ...
public void service(HttpServletRequest requestH, HttpServletResponse responseH) throws ServletException, IOException { Request request=((HttpServletRequestFacade)requestH).getRealRequest(); Response response=request.getResponse(); // use internal APIs - we can avoid them,but it's easier and faster int ...
public void service(HttpServletRequest requestH, HttpServletResponse responseH) throws ServletException, IOException { Request request=((HttpServletRequestFacade)requestH).getRealRequest(); Response response=request.getResponse(); // use internal APIs - we can avoid them,but it's easier and faster int ...
public void acceptType(char[] packageName, char[] typeName, int modifiers, AccessRestriction accessRestriction) { if (CharOperation.equals(typeName, this.selectedIdentifier)) { if(mustQualifyType(packageName, typeName)) { int length = 0; int kind = modifiers & (IConstants.AccInterface+IConstants.AccEnum+I...
public void acceptType(char[] packageName, char[] typeName, int modifiers, AccessRestriction accessRestriction) { if (CharOperation.equals(typeName, this.selectedIdentifier)) { if(mustQualifyType(packageName, typeName)) { int length = 0; int kind = modifiers & (IConstants.AccInterface+IConstants.AccEnum+I...
protected void executeOperation() throws JavaModelException { if (this.progressMonitor != null){ if (this.progressMonitor.isCanceled()) return; this.progressMonitor.beginTask(Util.bind("element.reconciling"), 2); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkingCopy(); boolean wasConsistent = wo...
protected void executeOperation() throws JavaModelException { if (this.progressMonitor != null){ if (this.progressMonitor.isCanceled()) return; this.progressMonitor.beginTask(Util.bind("element.reconciling"), 2); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkingCopy(); boolean wasConsistent = wo...
public String toString() { StringBuffer buffer= new StringBuffer(); IJavaElement[] roots= getElements(); buffer.append('['); for (int i= 0; i < roots.length; i++) { buffer.append(roots[i].getElementName()); if (i < (roots.length - 1)) { buffer.append(", "/*nonNLS*/); } } buffer.append(']'); return buffe...
public String toString() { StringBuffer buffer= new StringBuffer(); IJavaElement[] roots= getElements(); buffer.append('['); for (int i= 0; i < roots.length; i++) { buffer.append(roots[i].getElementName()); if (i < (roots.length - 1)) { buffer.append(", "); //$NON-NLS-1$ } } buffer.append(']'); return b...
public PropPanelParameter() { super("Parameter Properties",2); Class mclass = MParameter.class; addCaption(new JLabel("Name:"),0,0,0); addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),0,0,0); addCaption(new JLabel("Stereotype:"),1,0,0)...
public PropPanelParameter() { super("Parameter Properties",2); Class mclass = MParameter.class; addCaption(new JLabel("Name:"),0,0,0); addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),0,0,0); addCaption(new JLabel("Stereotype:"),1,0,0)...
public Collection getRealizedInterfaces(MClassifier clazz) { if (clazz == null) return new ArrayList(); Iterator it = clazz.getClientDependencies().iterator(); List list = new ArrayList(); MNamespace model = ProjectBrowser.TheInstance.getProject().getModel(); while (it.hasNext()) { Object o = it.next(); ...
public Collection getRealizedInterfaces(MClassifier clazz) { if (clazz == null) return new ArrayList(); Iterator it = clazz.getClientDependencies().iterator(); List list = new ArrayList(); MNamespace model = ProjectBrowser.TheInstance.getProject().getModel(); while (it.hasNext()) { Object o = it.next(); ...
public void setEscapedValue(String token) { if (token == null) { throw new IllegalArgumentException(); } Scanner scanner = getAST().scanner; char[] source = token.toCharArray(); scanner.setSourceBuffer(source); scanner.resetTo(0, source.length); try { int tokenType = scanner.getNextToken(); swit...
public void setEscapedValue(String token) { if (token == null) { throw new IllegalArgumentException(); } Scanner scanner = getAST().scanner; char[] source = token.toCharArray(); scanner.setSource(source); scanner.resetTo(0, source.length); try { int tokenType = scanner.getNextToken(); switch(tok...
private void filterKeySequenceBindings(Event event) { /* * Only process key strokes containing natural keys to trigger key * bindings. */ if ((event.keyCode & SWT.MODIFIER_MASK) != 0) return; // Allow special key out-of-order processing. List k...
private void filterKeySequenceBindings(Event event) { /* * Only process key strokes containing natural keys to trigger key * bindings. */ if ((event.keyCode & SWT.MODIFIER_MASK) != 0) return; // Allow special key out-of-order processing. List k...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); // process the initializations if (initializations != null) { for (int i = 0, count = initializations.length; i < count; i++) { flowInfo =...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); // process the initializations if (initializations != null) { for (int i = 0, count = initializations.length; i < count; i++) { flowInfo =...
public final boolean isTypeUseDeprecated(TypeBinding type, Scope scope) { if (type.isArrayType()) type = ((ArrayBinding) type).leafComponentType; if (type.isBaseType()) return false; ReferenceBinding refType = (ReferenceBinding) type; if ((refType.isPrivate() /*|| refType.isLocalType()*/) && !scope.is...
public final boolean isTypeUseDeprecated(TypeBinding type, Scope scope) { if (type.isArrayType()) type = ((ArrayBinding) type).leafComponentType; if (type.isBaseType()) return false; ReferenceBinding refType = (ReferenceBinding) type; if ((refType.isPrivate() || refType.isLocalType()) && !scope.isDefi...
public final void handleEvent(final Event event) { if (!enabled) { return; } if (DEBUG && DEBUG_VERBOSE) { System.out.print("KEYS >>> Listener.handleEvent(type = "); //$NON-NLS-1$ switch (event.type) { case SWT.KeyDown: System.out.print("KeyDown"); //$NON-NLS-1$ break; case ...
public final void handleEvent(final Event event) { if (!enabled) { return; } if (DEBUG && DEBUG_VERBOSE) { System.out.print("KEYS >>> Listener.handleEvent(type = "); //$NON-NLS-1$ switch (event.type) { case SWT.KeyDown: System.out.print("KeyDown"); //$NON-NLS-1$ break; case ...
public TypeBinding resolveType(BlockScope scope) { super.resolveType(scope); if (currentCompatibleType == null) return null; // error case if (scope.isJavaLangObject(currentCompatibleType)) { scope.problemReporter().cannotUseSuperInJavaLangObject(this); return null; } return currentCompatibleType....
public TypeBinding resolveType(BlockScope scope) { super.resolveType(scope); if (currentCompatibleType == null) return null; // error case if (scope.isJavaLangObject(currentCompatibleType)) { scope.problemReporter().cannotUseSuperInJavaLangObject(this); return null; } return this.expressionType = ...
protected JavaModel() throws Error { super(null, "" /*workspace has empty name*/); //$NON-NLS-1$ }
protected JavaModel() throws Error { super(null); }
public String toStringExpression(){ return "super"/*nonNLS*/; }
public String toStringExpression(){ return "super"; //$NON-NLS-1$ }
protected String getMainTaskName() { return Util.bind("operation.moveElementProgress"/*nonNLS*/); }
protected String getMainTaskName() { return Util.bind("operation.moveElementProgress"); //$NON-NLS-1$ }
private ThemeElementCategory readCategory(IConfigurationElement element) { String name = element.getAttribute(IWorkbenchRegistryConstants.ATT_LABEL); String id = element.getAttribute(IWorkbenchRegistryConstants.ATT_ID); String parentId = element.getAttribute(IWorkbenchRegistryConstants.ATT_...
private ThemeElementCategory readCategory(IConfigurationElement element) { String name = element.getAttribute(IWorkbenchRegistryConstants.ATT_LABEL); String id = element.getAttribute(IWorkbenchRegistryConstants.ATT_ID); String parentId = element.getAttribute(IWorkbenchRegistryConstants.ATT_...
// TODO: remove: boolean isActive(); /******************************************************************************* * 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 * w...
// TODO: remove: boolean isActive(); /******************************************************************************* * 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 * w...
protected IBuffer openBuffer(IProgressMonitor pm, Object info) throws JavaModelException { SourceMapper mapper = getSourceMapper(); if (mapper != null) { return mapSource(mapper); } else if (!this.checkAutomaticSourceMapping) { /* * We try to see if we can automatically attach a source * source files locat...
protected IBuffer openBuffer(IProgressMonitor pm, Object info) throws JavaModelException { SourceMapper mapper = getSourceMapper(); if (mapper != null) { return mapSource(mapper); } else if (!this.checkAutomaticSourceMapping) { /* * We try to see if we can automatically attach a source * source files locat...
private Statement body = null; /** * Creates a new AST node for a for statement owned by the given AST. * By default, there are no initializers, no condition expression, * no updaters, and the body is an empty block. * * @param ast the AST that is to own this node */ ForStatement(AST ast) { supe...
private Statement body = null; /** * Creates a new AST node for a for statement owned by the given AST. * By default, there are no initializers, no condition expression, * no updaters, and the body is an empty block. * * @param ast the AST that is to own this node */ ForStatement(AST ast) { supe...
public void setActionSets(IActionSetDescriptor[] newArray) { // Convert array to list. HashSet newList = new HashSet(); for (int i = 0; i < newArray.length; i++) { IActionSetDescriptor descriptor = newArray[i]; newList.add(descriptor); } ...
public void setActionSets(IActionSetDescriptor[] newArray) { // Convert array to list. HashSet newList = new HashSet(); for (int i = 0; i < newArray.length; i++) { IActionSetDescriptor descriptor = newArray[i]; newList.add(descriptor); } ...
public String toString(int tab) { String s = tabString(tab); s += "<CompleteOnArgumentName:"; //$NON-NLS-1$ if (type != null) s += type.toString() + " "; //$NON-NLS-1$ s += new String(name); if (initialization != null) s += " = " + initialization.toStringExpression(); s += ">"; //$NON-NLS-1$ return s; }...
public String toString(int tab) { String s = tabString(tab); s += "<CompleteOnArgumentName:"; //$NON-NLS-1$ if (type != null) s += type.toString() + " "; //$NON-NLS-1$ s += new String(name); if (initialization != null) s += " = " + initialization.toStringExpression(); //$NON-NLS-1$ s += ">"; //$NON-NLS-1$ ...
private void showPerspectiveBar() { switch (currentLocation) { case TOP_LEFT: topBar.setRight(null); topBar.setBottom(perspectiveCoolBarWrapper.getControl()); break; case TOP_RIGHT: topBar.setBottom(null); topBar.setRight(perspectiveCoolBarWrapper.getControl()); topBar.setRightWidth(DEFAULT_RIG...
private void showPerspectiveBar() { switch (currentLocation) { case TOP_LEFT: topBar.setRight(null); topBar.setBottom(perspectiveCoolBarWrapper.getControl()); break; case TOP_RIGHT: topBar.setBottom(null); topBar.setRight(perspectiveCoolBarWrapper.getControl()); topBar.setRightWidth(DEFAULT_RIG...
public void configure(String[] argv) throws InvalidInputException { if ((argv == null) || (argv.length == 0)) { printUsage(); return; } final int INSIDE_CLASSPATH = 1; final int INSIDE_DESTINATION_PATH = 2; final int INSIDE_TARGET = 3; final int INSIDE_LOG = 4; final int INSIDE_REPETITION = 5; final int I...
public void configure(String[] argv) throws InvalidInputException { if ((argv == null) || (argv.length == 0)) { printUsage(); return; } final int INSIDE_CLASSPATH = 1; final int INSIDE_DESTINATION_PATH = 2; final int INSIDE_TARGET = 3; final int INSIDE_LOG = 4; final int INSIDE_REPETITION = 5; final int I...
public char[] getFileName() { return CompilationUnit.this.getFileName(); } }, true /*full parse to find local elements*/); // update timestamp (might be IResource.NULL_STAMP if original does not exist) if (underlyingResource == null) { underlyingResource = getResource(); } unitInfo.timestamp = ((IFi...
public char[] getFileName() { return CompilationUnit.this.getFileName(); } }, true /*full parse to find local elements*/); // update timestamp (might be IResource.NULL_STAMP if original does not exist) if (underlyingResource == null) { underlyingResource = getResource(); } unitInfo.timestamp = ((IFi...
protected void openLink(String href) { // format the href for an html file (file:///<filename.html> // required for Mac only. if (href.startsWith("file:")) { //$NON-NLS-1$ href = href.substring(5); while (href.startsWith("/")) { //$NON-NLS-1$ href = hr...
protected void openLink(String href) { // format the href for an html file (file:///<filename.html> // required for Mac only. if (href.startsWith("file:")) { //$NON-NLS-1$ href = href.substring(5); while (href.startsWith("/")) { //$NON-NLS-1$ href = hr...
public String toString() { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < size; i++) { buffer.append(elements[i]).append("\n"); //$NON-NLS-1$ } return buffer.toString(); }
public String toString() { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < size; i++) { buffer.append(elements[i]).append("\n"/*nonNLS*/); } return buffer.toString(); }
public String getPatternName(){ return "MethodDeclarationPattern: "/*nonNLS*/; }
public String getPatternName(){ return "MethodDeclarationPattern: "; //$NON-NLS-1$ }
extends BaseAttributeClass package org.tigris.scarab.om; // JDK classes import java.util.*; // Turbine classes import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.ObjectUtils; import org.apache.turbine.util.StringUtils...
extends BaseAttributeClass package org.tigris.scarab.om; // JDK classes import java.util.*; // Turbine classes import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.ObjectUtils; import org.apache.turbine.util.StringUtils...
private void initURLs(Context context) { ServletLoader loader=context.getServletLoader(); if( loader==null) return; // Add "WEB-INF/classes" String base = context.getDocBase(); File dir = new File(base + "/WEB-INF/classes"); if (!dir.isAbsolute()) { // evaluate repository path relative to...
private void initURLs(Context context) { ServletLoader loader=context.getServletLoader(); if( loader==null) return; // Add "WEB-INF/classes" String base = context.getDocBase(); File dir = new File(base + "/WEB-INF/classes"); if (!dir.isAbsolute()) { // evaluate repository path relative to...
public String toString() { StringBuffer buffer = new StringBuffer("project="); //$NON-NLS-1$ if (this.project == null) { buffer.append("null"); //$NON-NLS-1$ } else { buffer.append(this.project.getElementName()); } buffer.append("\npath="); //$NON-NLS-1$ if (this.rootPath == null) { buff...
public String toString() { StringBuffer buffer = new StringBuffer("project="); //$NON-NLS-1$ if (this.project == null) { buffer.append("null"); //$NON-NLS-1$ } else { buffer.append(this.project.getElementName()); } buffer.append("\npath="); //$NON-NLS-1$ if (this.rootPath == null) { buff...
public void consumeLocalType(char[] uniqueKey) { LocalTypeBinding[] localTypeBindings = this.parsedUnit.localTypes; for (int i = 0; i < this.parsedUnit.localTypeCount; i++) if (CharOperation.equals(uniqueKey, localTypeBindings[i].computeUniqueKey(false/*without access flags*/))) { this.typeBinding = lo...
public void consumeLocalType(char[] uniqueKey) { LocalTypeBinding[] localTypeBindings = this.parsedUnit.localTypes; for (int i = 0; i < this.parsedUnit.localTypeCount; i++) if (CharOperation.equals(uniqueKey, localTypeBindings[i].computeUniqueKey(false/*not a leaf*/))) { this.typeBinding = localTypeBin...
public Initializer(Block block, int modifiers) { this.block = block; this.modifiers = modifiers; declarationSourceStart = sourceStart = block.sourceStart; }
public Initializer(Block block, int modifiers) { this.block = block; this.modifiers = modifiers; declarationSourceStart = sourceStart = bodyStart = block.sourceStart; }
public static char[] getResourceContentsAsCharArray(IFile file) throws JavaModelException { InputStream stream= null; try { stream = new BufferedInputStream(file.getContents(true)); } catch (CoreException e) { throw new JavaModelException(e); } try { String encoding = JavaCore.getOption(JavaCore.CORE_ENCODIN...
public static char[] getResourceContentsAsCharArray(IFile file) throws JavaModelException { InputStream stream= null; try { stream = new BufferedInputStream(file.getContents(true)); } catch (CoreException e) { throw new JavaModelException(e); } try { String encoding = JavaCore.create(file.getProject()).getOp...
public static String string(int i) { if ((i >= 1 && i <= 4) || (i >= 12 && i <= 15)) return null; String s = flags.getString(i); return (s != null) ? s : new Integer(i).toString(); }
public static String string(int i) { if ((i >= 1 && i <= 4) || (i >= 12 && i <= 15)) return null; String s = flags.getString(i); return (s != null) ? s : Integer.toString(i); }
public void generateMethodInfoHeader(MethodBinding methodBinding, int accessFlags) { // check that there is enough space to write all the bytes for the method info corresponding // to the @methodBinding this.methodCount++; // add one more method if (this.contentsOffset + 10 >= this.contents.length) { resize...
public void generateMethodInfoHeader(MethodBinding methodBinding, int accessFlags) { // check that there is enough space to write all the bytes for the method info corresponding // to the @methodBinding this.methodCount++; // add one more method if (this.contentsOffset + 10 >= this.contents.length) { resize...
protected boolean computeChildren(OpenableElementInfo info, ArrayList entryNames) { if (entryNames != null && entryNames.size() > 0) { ArrayList vChildren = new ArrayList(); for (Iterator iter = entryNames.iterator(); iter.hasNext();) { String child = (String) iter.next(); IClassFile classFile = getClassFile...
protected boolean computeChildren(OpenableElementInfo info, ArrayList entryNames) { if (entryNames != null && entryNames.size() > 0) { ArrayList vChildren = new ArrayList(); for (Iterator iter = entryNames.iterator(); iter.hasNext();) { String child = (String) iter.next(); IClassFile classFile = getClassFile...
public void update(boolean force, boolean hideTopTrim) { // Remove any contributed trim teardown(); // Process the additions for each 'area' for (int i = 0; i < trimAreaURIs.length; i++) { // IntroBar want to hide the top trim if (hideTopTrim && swtSides[i] == SWT.TOP) continue; List contri...
public void update(boolean force, boolean hideTopTrim) { // Remove any contributed trim teardown(); // Process the additions for each 'area' for (int i = 0; i < trimAreaURIs.length; i++) { // IntroBar want to hide the top trim if (hideTopTrim && swtSides[i] == SWT.TOP) continue; List contri...
protected void handleClient(Socket client) { try { // only accept client from local machine String host = client.getLocalAddress().getHostAddress(); if (!(host.equals("127.0.0.1"))) { // client isn't from local machine return; } BufferedReader reader = new BufferedReader(new InputStreamReader...
protected void handleClient(Socket client) { try { // only accept client from local machine String host = client.getLocalAddress().getHostAddress(); if (!(host.equals("127.0.0.1"))) { // client isn't from local machine return; } BufferedReader reader = new BufferedReader(new InputStreamReader...
private UNKRecord(Name name, short type, short dclass, int ttl) { super(name, type, dclass, ttl); } static UNKRecord getMember() { return member; } Record rrFromWire(Name name, short type, short dclass, int ttl, int length, DataByteInputStream in) throws IOException { UNKRecord rec = new UNKRecord(name, type, ...
private UNKRecord(Name name, short type, short dclass, int ttl) { super(name, type, dclass, ttl); } static UNKRecord getMember() { return member; } Record rrFromWire(Name name, short type, short dclass, int ttl, int length, DataByteInputStream in) throws IOException { UNKRecord rec = new UNKRecord(name, type, ...
public Config() { pluginList = new Hashtable(); optionsFile = new File(ConfigPath.getConfigDirectory(), "options.xml"); DefaultConfig.registerPlugin( "core", optionsFile.getName(), new OptionsXmlConfig(optionsFile)); File file = new File(ConfigPath.getConfigDirectory(), "mail"); if (file.exists...
public Config() { pluginList = new Hashtable(); optionsFile = new File(ConfigPath.getConfigDirectory(), "options.xml"); DefaultConfig.registerPlugin( "core", optionsFile.getName(), new OptionsXmlConfig(optionsFile)); File file = new File(ConfigPath.getConfigDirectory(), "mail"); if (file.exists...
private boolean isPerfectMatch(KeySequence keySequence) { if (bindingService == null) { bindingService = (IBindingService) workbench .getAdapter(IBindingService.class); } return bindingService.isPerfectMatch(keySequence); } /** * Logs the given exception, and opens a dialog explaining the failure. ...
private boolean isPerfectMatch(KeySequence keySequence) { if (bindingService == null) { bindingService = (IBindingService) workbench .getAdapter(IBindingService.class); } return bindingService.isPerfectMatch(keySequence); } /** * Logs the given exception, and opens a dialog explaining the failure. ...
protected void createAcceleratorConfigurationGroup(Composite composite, String label) { Font font = composite.getFont(); Composite groupComposite = new Composite(composite, SWT.LEFT); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = 0; layout.marginHeight = 0; group...
protected void createAcceleratorConfigurationGroup(Composite composite, String label) { Font font = composite.getFont(); Composite groupComposite = new Composite(composite, SWT.LEFT); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = 0; layout.marginHeight = 0; group...
public static void play( String filename ) { play( DiskIO.getResourceURL( "org/columba/modules/mail/sound/"+filename ) ); }
public static void play( String filename ) { play( DiskIO.getResourceURL( "org/columba/mail/sound/"+filename ) ); }
public void testMain() { CheckResourceBundle.checkResourceBundle(this, new UMLResourceBundle()); }
public void testMain() { CheckResourceBundle.checkResourceBundle(this, "org.argouml.i18n.UMLResourceBundle"); }
public void send_request(JClientRequestInfo jri) throws IOException { // System.out.println("JRMP ClientInterceptor Add/Send Dummy Client Service Context"); jri.add_request_service_context(new DummyClientServiceContext(CLIENT_CTX_ID, java.net.InetAddress.getLocalHost().getHostName()), true); }
public void send_request(JClientRequestInfo jri) throws IOException { // System.out.println("JRMP ClientInterceptor Add/Send Dummy Client Service Context"); jri.add_request_service_context(new DummyClientServiceContext(CLIENT_CTX_ID, java.net.InetAddress.getLocalHost().getHostName())); }
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...
private IWorkingSet restoreWorkingSet(IMemento memento) { String factoryID = memento.getString(IWorkbenchConstants.TAG_FACTORY_ID); if (factoryID == null) { WorkbenchPlugin.log("Unable to restore working set - no factory ID."); //$NON-NLS-1$ return null; } IElementFactory factory = WorkbenchPlugin.getDe...
private IWorkingSet restoreWorkingSet(IMemento memento) { String factoryID = memento.getString(IWorkbenchConstants.TAG_FACTORY_ID); if (factoryID == null) { WorkbenchPlugin.log("Unable to restore working set - no factory ID."); //$NON-NLS-1$ return null; } IElementFactory factory = PlatformUI.getWorkben...
public void notifySourceElementRequestor( ImportReference importReference, boolean isPackage) { if (isPackage) { requestor.acceptPackage( importReference.declarationSourceStart, importReference.declarationSourceEnd, CharOperation.concatWith(importReference.getImportName(), '.')); } else { requestor...
public void notifySourceElementRequestor( ImportReference importReference, boolean isPackage) { if (isPackage) { requestor.acceptPackage( importReference.declarationSourceStart, importReference.declarationSourceEnd, CharOperation.concatWith(importReference.getImportName(), '.')); } else { requestor...
public String toString() { return "OldBuilderType(" + fOldTSEntry.getType().getName() + ")"; }
public String toString() { return "OldBuilderType("/*nonNLS*/ + fOldTSEntry.getType().getName() + ")"/*nonNLS*/; }
public void propertyChanged(Object source, int propId) { if (propId == WorkbenchPartReference.INTERNAL_PROPERTY_PINNED) { WorkbenchPartReference ref = (WorkbenchPartReference)source; setChecked(ref.isPinned()); } else if (propId == IWorkbenchPartConstants....
public void propertyChanged(Object source, int propId) { if (propId == WorkbenchPartReference.INTERNAL_PROPERTY_PINNED) { WorkbenchPartReference ref = (WorkbenchPartReference)source; setChecked(ref.isPinned()); } else if (propId == IWorkbenchPartConstants....
protected void toString(int tab, StringBuffer buffer) { Object info = fgJavaModelManager.peekAtInfo(this); if (info == null || !(info instanceof JavaElementInfo)) return; IJavaElement[] children = ((JavaElementInfo)info).getChildren(); for (int i = 0; i < children.length; i++) { if (i > 0) buffer.append("\n"); //...
protected void toString(int tab, StringBuffer buffer) { Object info = JavaModelManager.getJavaModelManager().peekAtInfo(this); if (info == null || !(info instanceof JavaElementInfo)) return; IJavaElement[] children = ((JavaElementInfo)info).getChildren(); for (int i = 0; i < children.length; i++) { if (i > 0) buf...
public static IStatus validatePackageName(String name) { if (name == null) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.package.nullName"), null); //$NON-NLS-1$ } int length; if ((length = name.length()) == 0) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bi...
public static IStatus validatePackageName(String name) { if (name == null) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.package.nullName"), null); //$NON-NLS-1$ } int length; if ((length = name.length()) == 0) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bi...
public void acceptType(int modifiers, char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames, String path, AccessRestriction access) { if (excludePath != null && excludePath.equals(path)) return; if (!findMembers && enclosingTypeNames != null && enclosingTypeNames.length > 0) r...
public void acceptType(int modifiers, char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames, String path, AccessRestriction access) { if (excludePath != null && excludePath.equals(path)) return; if (!findMembers && enclosingTypeNames != null && enclosingTypeNames.length > 0) r...
public void valueChanged(TreeSelectionEvent e) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) view .getTree() .getLastSelectedPathComponent(); if (node == null) return; MessageNode[] nodes = getView().getSelectedNodes(); if (nodes == null) { return; } getActionListener().chang...
public void valueChanged(TreeSelectionEvent e) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) view .getTree() .getLastSelectedPathComponent(); if (node == null) return; MessageNode[] nodes = getView().getSelectedNodes(); if (nodes == null) { return; } //getActionListener().cha...
public void runAfters(Object target) throws MultipleFailureException { MultipleFailureException errors= new MultipleFailureException(); List<TestMethod> afters= getAfters(); for (TestMethod after : afters) try { after.invokeExplosively(target); } catch (Throwable e) { errors.add(e); } e...
public void runAfters(Object target) throws MultipleFailureException { MultipleFailureException errors= new MultipleFailureException(); List<TestMethod> afters= getAfters(); for (TestMethod after : afters) try { after.invokeExplosively(target); } catch (Throwable e) { errors.add(e); } e...
public String toString(int tab) { StringBuffer result = new StringBuffer(tabString(tab)); result.append("Recovered type:\n"); //$NON-NLS-1$ if (typeDeclaration instanceof AnonymousLocalTypeDeclaration) { result.append(tabString(tab)); result.append(" "); //$NON-NLS-1$ } result.append(typeDeclaration.toString(t...
public String toString(int tab) { StringBuffer result = new StringBuffer(tabString(tab)); result.append("Recovered type:\n"); //$NON-NLS-1$ if (typeDeclaration instanceof AnonymousLocalTypeDeclaration) { result.append(tabString(tab)); result.append(" "); //$NON-NLS-1$ } result.append(typeDeclaration.print(tab ...
public PropPanelClass() { super("Class",_classIcon, ConfigLoader.getTabPropsOrientation()); Class mclass = MClass.class; addField(Argo.localize("UMLMenu", "label.name"), new UMLTextField2(new UMLModelElementNameDocument())); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNa...
public PropPanelClass() { super("Class", ConfigLoader.getTabPropsOrientation()); Class mclass = MClass.class; addField(Argo.localize("UMLMenu", "label.name"), new UMLTextField2(new UMLModelElementNameDocument())); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(thi...
if (JavaSearchScope.NOT_INITIALIZED_RESTRICTION != access) { // scope encloses the document path /******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made avai...
if (JavaSearchScope.NOT_INITIALIZED_RESTRICTION != access) { // scope encloses the document path /******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made avai...
public PropertyDescriptor[] getPropertyDescriptors() { try { return new PropertyDescriptor[] { new PropertyDescriptor("fileName", LogFilePatternReceiver.class), new PropertyDescriptor("timestampFormat", LogFilePatternReceiver.class), new Property...
public PropertyDescriptor[] getPropertyDescriptors() { try { return new PropertyDescriptor[] { new PropertyDescriptor("fileName", LogFilePatternReceiver.class), new PropertyDescriptor("timestampFormat", LogFilePatternReceiver.class), new Property...
public void insertAfter(String id, IContributionItem item) { IContributionItem refItem = PluginActionSetBuilder.findInsertionPoint(id, null, getParentMenuManager(), false); if (refItem != null) { super.insertAfter(refItem.getId(), item); } else { WorkbenchPlugin.log("Reference item " + id + " not found for...
public void insertAfter(String id, IContributionItem item) { IContributionItem refItem = PluginActionSetBuilder.findInsertionPoint(id, null, getParentMenuManager(), false); if (refItem != null) { super.insertAfter(refItem.getId(), item); } else { WorkbenchPlugin.log("Reference item " + id + " not found for...
protected void selfInitialize() { RuleStore rs = new SimpleRuleStore(); rs.addRule(new Pattern("configuration"), new ConfigurationAction()); rs.addRule( new Pattern("configuration/substitutionProperty"), new SubstitutionPropertyAction()); rs.addRule( new Pattern("configuration/reposi...
protected void selfInitialize() { RuleStore rs = new SimpleRuleStore(); rs.addRule(new Pattern("configuration"), new ConfigurationAction()); rs.addRule( new Pattern("configuration/substitutionProperty"), new SubstitutionPropertyAction()); rs.addRule( new Pattern("configuration/reposi...
public final boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) { if (isPublic()) return true; SourceTypeBinding invocationType = scope.enclosingSourceType(); if (invocationType == declaringClass && invocationType == receiverType) return true; if (isProtected()) { // answe...
public final boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) { if (isPublic()) return true; SourceTypeBinding invocationType = scope.enclosingSourceType(); if (invocationType == declaringClass && invocationType == receiverType) return true; if (isProtected()) { // answe...
private ActionDeleteFromDiagram() { super("Delete From Diagram"); }
private ActionDeleteFromDiagram() { super("action.remove-from-diagram"); }
public ShowContextSpecificHelpAction(FrameMediator frameController) { super( frameController, GlobalResourceLoader.getString( null, null, "menu_help_context")); setSmallIcon(ImageLoader.getSmallImageIcon("stock_extended-help-16.png")); setLargeIcon(ImageLoader.getImageIcon("stock_extended-help.pn...
public ShowContextSpecificHelpAction(FrameMediator frameController) { super( frameController, GlobalResourceLoader.getString( null, null, "menu_help_context")); setSmallIcon(ImageLoader.getSmallImageIcon("stock_extended-help-16.png")); setLargeIcon(ImageLoader.getImageIcon("stock_extended-help.pn...
public String getDeclaredName() throws NotPresentException { if (isAnonymous()) { return ""/*nonNLS*/; } String name = fHandle.getSimpleName(); return name.substring(name.lastIndexOf('$') + 1); }
public String getDeclaredName() throws NotPresentException { if (isAnonymous()) { return ""; //$NON-NLS-1$ } String name = fHandle.getSimpleName(); return name.substring(name.lastIndexOf('$') + 1); }
public String toString(){ if (this == DeadEnd){ return "FlowInfo.DeadEnd"; //$NON-NLS-1$ } return super.toString(); }
public String toString(){ if (this == DeadEnd){ return "FlowInfo.DeadEnd"/*nonNLS*/; } return super.toString(); }
public void parseTypeMemberDeclarations( ISourceType sourceType, ICompilationUnit sourceUnit, int start, int end, boolean needReferenceInfo) { boolean old = diet; try { diet = !needReferenceInfo; reportReferenceInfo = needReferenceInfo; CompilationResult compilationUnitResult = new CompilationResu...
public void parseTypeMemberDeclarations( ISourceType sourceType, ICompilationUnit sourceUnit, int start, int end, boolean needReferenceInfo) { boolean old = diet; try { diet = !needReferenceInfo; reportReferenceInfo = needReferenceInfo; CompilationResult compilationUnitResult = new CompilationResu...
private MethodBinding findNonDefaultAbstractMethod(MethodBinding methodBinding) { ReferenceBinding[] itsInterfaces = methodBinding.declaringClass.superInterfaces(); if (itsInterfaces != Binding.NO_SUPERINTERFACES) { ReferenceBinding[][] interfacesToVisit = new ReferenceBinding[5][]; int lastPosition = 0; ...
private MethodBinding findNonDefaultAbstractMethod(MethodBinding methodBinding) { ReferenceBinding[] itsInterfaces = methodBinding.declaringClass.superInterfaces(); if (itsInterfaces != Binding.NO_SUPERINTERFACES) { ReferenceBinding[][] interfacesToVisit = new ReferenceBinding[5][]; int lastPosition = 0; ...
protected void seekTypesInSourcePackage( String name, IPackageFragment pkg, int firstDot, boolean partialMatch, String topLevelTypeName, int acceptFlags, IJavaElementRequestor requestor) { long start = -1; if (VERBOSE) start = System.currentTimeMillis(); try { if (!partialMatch...
protected void seekTypesInSourcePackage( String name, IPackageFragment pkg, int firstDot, boolean partialMatch, String topLevelTypeName, int acceptFlags, IJavaElementRequestor requestor) { long start = -1; if (VERBOSE) start = System.currentTimeMillis(); try { if (!partialMatch...
private synchronized void loadProtocols() { if(protocolString == System.getProperty(SYS_PROTOCOLS)) return; String protocolS = System.getProperty(SYS_PROTOCOLS); StringTokenizer tok = new StringTokenizer(protocolString,"|"); protocols.clear(); while(tok.hasMoreTokens()) { String protStr = tok.nextTo...
private synchronized void loadProtocols() { if(protocolString == System.getProperty(SYS_PROTOCOLS)) return; String protocolS = System.getProperty(SYS_PROTOCOLS); StringTokenizer tok = new StringTokenizer(protocolS,"|"); protocols.clear(); while(tok.hasMoreTokens()) { String protStr = tok.nextToken()...
public void resolve(BlockScope upperScope) { // use the scope that will hold the init declarations scope = neededScope ? new BlockScope(upperScope) : upperScope; if (initializations != null) for (int i = 0, length = initializations.length; i < length; i++) initializations[i].resolve(scope); if (conditi...
public void resolve(BlockScope upperScope) { // use the scope that will hold the init declarations scope = neededScope ? new BlockScope(upperScope) : upperScope; if (initializations != null) for (int i = 0, length = initializations.length; i < length; i++) initializations[i].resolve(scope); if (conditi...
public char[][] getPackageName() { return null; } }; CompletionEngine engine = new CompletionEngine(environment, mapper.getCompletionRequestor(requestor), options); engine.complete(sourceUnit, mapper.startPosOffset + completionPosition); }
public char[][] getPackageName() { return null; } }; CompletionEngine engine = new CompletionEngine(environment, mapper.getCompletionRequestor(requestor), options); engine.complete(sourceUnit, mapper.startPosOffset + completionPosition, 0); }
public TypeBinding resolveType(BlockScope scope) { // field and/or local are done before type lookups // the only available value for the restrictiveFlag BEFORE // the TC is Flag_Type Flag_LocalField and Flag_TypeLocalField this.actualReceiverType = scope.enclosingReceiverType(); this.constant = Constant.NotACons...
public TypeBinding resolveType(BlockScope scope) { // field and/or local are done before type lookups // the only available value for the restrictiveFlag BEFORE // the TC is Flag_Type Flag_LocalField and Flag_TypeLocalField this.actualReceiverType = scope.enclosingReceiverType(); this.constant = Constant.NotACons...
public void run() { long idlingStart = -1; activateProcessing(); try { while (this.processingThread != null) { try { IJob job; synchronized (this) { if ((job = currentJob()) == null) { if (idlingStart < 0) idlingStart = System.currentTimeMillis(); notifyIdle(System.c...
public void run() { long idlingStart = -1; activateProcessing(); try { while (this.processingThread != null) { try { IJob job; synchronized (this) { if ((job = currentJob()) == null) { if (idlingStart < 0) idlingStart = System.currentTimeMillis(); notifyIdle(System.c...
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding) { CompilationResult result = new CompilationResult(sourceTypes[0].getFileName(), 1, 1, this.options.maxProblemsPerUnit); // need to hold onto this CompilationUnitDeclaration unit = SourceTypeConverter.buildCompilationUnit( sou...
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding) { CompilationResult result = new CompilationResult(sourceTypes[0].getFileName(), 1, 1, this.options.maxProblemsPerUnit); // need to hold onto this CompilationUnitDeclaration unit = SourceTypeConverter.buildCompilationUnit( sou...
public ResetPerspectiveAction() { this(((Workbench)PlatformUI.getWorkbench()).getActiveWorkbenchWindow()); }
public ResetPerspectiveAction() { this(PlatformUI.getWorkbench().getActiveWorkbenchWindow()); }