buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private ReferenceBinding findSupertype(TypeReference typeReference) { typeReference.aboutToResolve(this); // allows us to trap completion & selection nodes char[][] compoundName = typeReference.getTypeName(); // replaces 2 calls to addNamespaceReference compilationUnitScope().recordReference(compoundName); Sou...
private ReferenceBinding findSupertype(TypeReference typeReference) { typeReference.aboutToResolve(this); // allows us to trap completion & selection nodes char[][] compoundName = typeReference.getTypeName(); // replaces 2 calls to addNamespaceReference compilationUnitScope().recordQualifiedReference(compoundNam...
public void windowClosing(WindowEvent e) { setVisible(false); } }); initComponents(); pack(); // for jdk1.3 compatibility, this is called dynamically Compatibility.simpleSetterInvoke( dialog, "setLocationRelativeTo", Component.class, null); setVisible(true); }
public void windowClosing(WindowEvent e) { setVisible(false); } }); initComponents(); pack(); // for jdk1.3 compatibility, this is called dynamically Compatibility.simpleSetterInvoke( this, "setLocationRelativeTo", Component.class, null); setVisible(true); }
public void diagnoseParse(boolean record) { this.reportProblem = true; boolean oldRecord = false; if(this.recoveryScanner != null) { oldRecord = this.recoveryScanner.record; this.recoveryScanner.record = record; } try { lexStream.reset(); currentToken = lexStream.getToken(); int prev_pos; ...
public void diagnoseParse(boolean record) { this.reportProblem = true; boolean oldRecord = false; if(this.recoveryScanner != null) { oldRecord = this.recoveryScanner.record; this.recoveryScanner.record = record; } try { lexStream.reset(); currentToken = lexStream.getToken(); int prev_pos; ...
public void roleAdded(MElementEvent e) { if (e.getName().equals("base") && e.getSource() == getTarget()) { MClassifier clazz = (MClassifier)getChangedElement(e); addAll(clazz.getOwnedElements()); UmlModelEventPump.getPump().removeModelEventListener(this, clazz, "ownedElem...
public void roleAdded(MElementEvent e) { if (e.getName().equals("base") && e.getSource() == getTarget()) { MClassifier clazz = (MClassifier)getChangedElement(e); addAll(clazz.getOwnedElements()); // UmlModelEventPump.getPump().removeModelEventListener(this, clazz, "ownedE...
public SendableMessage compose(WorkerStatusController workerStatusController) throws Exception { this.accountUid = model.getAccountItem().getUid(); workerStatusController.setDisplayText("Composing Message..."); MimeTreeRenderer renderer = MimeTreeRenderer.getInstance(); SendableMessage message = new Sendab...
public SendableMessage compose(WorkerStatusController workerStatusController) throws Exception { this.accountUid = model.getAccountItem().getUid(); workerStatusController.setDisplayText("Composing Message..."); MimeTreeRenderer renderer = MimeTreeRenderer.getInstance(); SendableMessage message = new Sendab...
protected String getMainTaskName() { return Util.bind("operation.moveResourceProgress"); //$NON-NLS-1$ }
protected String getMainTaskName() { return Util.bind("operation.moveResourceProgress"/*nonNLS*/); }
public void body(String text) throws Exception { log().debug("(" + getState() + ") dependancy parent body: " + text); digester.push(text); digester.push(DependencyNode.NODE_TYPE_PARENT); }
public void body(String text) throws Exception { log().debug("(" + getState() + ") dependency parent body: " + text); digester.push(text); digester.push(DependencyNode.NODE_TYPE_PARENT); }
public boolean exists0() { return super.exists(); }
public boolean exists0() { return JavaModel.getTarget(ResourcesPlugin.getWorkspace().getRoot(), getPath(), true) != null; }
private void generateMethodInfos(IType type, IBinaryType typeInfo, HashMap newElements, ArrayList childrenHandles) { IBinaryMethod[] methods = typeInfo.getMethods(); if (methods == null) { return; } for (int i = 0, methodCount = methods.length; i < methodCount; i++) { IBinaryMethod methodInfo = methods[i]; St...
private void generateMethodInfos(IType type, IBinaryType typeInfo, HashMap newElements, ArrayList childrenHandles) { IBinaryMethod[] methods = typeInfo.getMethods(); if (methods == null) { return; } for (int i = 0, methodCount = methods.length; i < methodCount; i++) { IBinaryMethod methodInfo = methods[i]; St...
public QuitAction(IWorkbenchWindow window) { // Although window is not currently used, // this follows the same pattern as other ActionFactory actions. if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setText(Wor...
public QuitAction(IWorkbenchWindow window) { // Although window is not currently used, // this follows the same pattern as other ActionFactory actions. if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setText(Wor...
private KeyStroke(SortedSet modifierKeys, NaturalKey naturalKey) { if (naturalKey == null) throw new NullPointerException(); this.modifierKeys = Util.safeCopy(modifierKeys, ModifierKey.class); this.naturalKey = naturalKey; this.modifierKeysAsArray = (ModifierKey[]) this.modifierKeys.toArray(new ModifierK...
private KeyStroke(SortedSet modifierKeys, NaturalKey naturalKey) { if (naturalKey == null) throw new NullPointerException(); this.modifierKeys = Util.safeCopy(modifierKeys, ModifierKey.class); this.naturalKey = naturalKey; this.modifierKeysAsArray = (ModifierKey[]) this.modifierKeys.toArray(new ModifierK...
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { // Check attribu...
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { // Check attribu...
public void openSystemSummaryEditor() { openEditor(new SystemSummaryEditorInput(), "org.eclipse.ui.SystemSummaryEditor", null); //$NON-NLS-1$ }
public void openSystemSummaryEditor() { openEditor(new SystemSummaryEditorInput(), PlatformUI.PLUGIN_ID + ".SystemSummaryEditor", null); //$NON-NLS-1$ }
protected void notifyModelChanged(MElementEvent mee) { // TODO: Change the project dirty flag outside this package // using an event listener. // TODO: post an event of some type. // // Should this be a property change event? // if (mee.getAddedValue() != null || mee.getRemovedValue() != null || !mee...
protected void notifyModelChanged(MElementEvent mee) { // TODO: Change the project dirty flag outside this package // using an event listener. // TODO: post an event of some type. // // Should this be a property change event? // if (mee.getAddedValue() != null || mee.getRemovedValue() != null || (mee...
public void run() { while (true) { // will block if there are no resources to be decorated DecorationReference reference = next(); DecorationBuilder cacheResult = new DecorationBuilder(); // if next() returned null, we are done and should shut down. if (reference == null) { return...
public void run() { while (true) { // will block if there are no resources to be decorated DecorationReference reference = next(); DecorationBuilder cacheResult = new DecorationBuilder(); // if next() returned null, we are done and should shut down. if (reference == null) { return...
public Object invoke(AspectInvocation invocation) throws Throwable { if (!adaptorClass.equals(invocation.args[0])) { if (invocation.isNextIntrestedInMethodCall()) return invocation.invokeNext(); return null; } Object o = null; if ...
public Object invoke(AspectInvocation invocation) throws Throwable { if (!adaptorClass.equals(invocation.args[0])) { if (invocation.isNextIntrestedInMethodCall()) return invocation.invokeNext(); return null; } Object o = null; if ...
public void run() { viewer.clearAll(); } }; clearAllAction .setToolTipText(ProgressMessages.NewProgressView_RemoveAllJobsToolTip); ImageDescriptor id = WorkbenchImages .getWorkbenchImageDescriptor("/elcl16/progress_remall.gif"); //$NON-NLS-1$ if (id != null) clearAllAction.setImageDescripto...
public void run() { FinishedJobs.getInstance().clearAll(); } }; clearAllAction .setToolTipText(ProgressMessages.NewProgressView_RemoveAllJobsToolTip); ImageDescriptor id = WorkbenchImages .getWorkbenchImageDescriptor("/elcl16/progress_remall.gif"); //$NON-NLS-1$ if (id != null) clearAllActi...
public ARecord(Name _name, short _dclass, int _ttl, InetAddress _address) throws IOException { super(_name, Type.A, _dclass, _ttl); address = _address; } ARecord(Name _name, short _dclass, int _ttl, int length, DataByteInputStream in, Compression c) throws IOException { super(_name, Type.A, _dclass, _ttl); i...
public ARecord(Name _name, short _dclass, int _ttl, InetAddress _address) throws IOException { super(_name, Type.A, _dclass, _ttl); address = _address; } ARecord(Name _name, short _dclass, int _ttl, int length, DataByteInputStream in, Compression c) throws IOException { super(_name, Type.A, _dclass, _ttl); i...
protected IBuffer openBuffer(IProgressMonitor pm) throws JavaModelException { SourceMapper mapper = getSourceMapper(); if (mapper != null) { return mapSource(mapper); } else if (!checkAutomaticSourceMapping) { /* * We try to see if we can automatically attach a source * source files located inside the same...
protected IBuffer openBuffer(IProgressMonitor pm) throws JavaModelException { SourceMapper mapper = getSourceMapper(); if (mapper != null) { return mapSource(mapper); } else if (!checkAutomaticSourceMapping) { /* * We try to see if we can automatically attach a source * source files located inside the same...
public byte [] getCert() { return cert; } void rrToWire(DataByteOutputStream out, Compression c) { if (cert == null) return; out.writeShort(certType); out.writeShort(keyTag); out.writeByte(alg); out.writeArray(cert); }
public byte [] getCert() { return cert; } void rrToWire(DataByteOutputStream out, Compression c, boolean canonical) { if (cert == null) return; out.writeShort(certType); out.writeShort(keyTag); out.writeByte(alg); out.writeArray(cert); }
final int Ignore = 256; // during handling only /******************************************************************************* * Copyright (c) 2000, 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public Licens...
final int Ignore = 256; // during handling only /******************************************************************************* * Copyright (c) 2000, 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public Licens...
public static void save(Document doc, File file) throws Exception { XMLOutputter outp = new XMLOutputter(); outp.output(doc, new FileOutputStream(file)); } }
public static void save(Document doc, File file) throws IOException { XMLOutputter outp = new XMLOutputter(); outp.output(doc, new FileOutputStream(file)); } }
final static public Priority WARN = new Priority(WARN_INT, "WARN", 4); /** The <code>INFO</code> priority designates informational messages that higlight the progress of the application at coarse-grained level. */
final static public Priority WARN = new Priority(WARN_INT, "WARN", 4); /** The <code>INFO</code> priority designates informational messages that highlight the progress of the application at coarse-grained level. */
public IJavaModelStatus verify() { IJavaModelStatus status = super.verify(); if (!status.isOK()) { return status; } // retrieve classpath IClasspathEntry[] classpath = null; IJavaProject javaProject= (IJavaProject)getElementToProcess(); IPath projectPath= javaProject.getProject().getFullPath(); try { class...
public IJavaModelStatus verify() { IJavaModelStatus status = super.verify(); if (!status.isOK()) { return status; } // retrieve classpath IClasspathEntry[] classpath = null; IJavaProject javaProject= (IJavaProject)getElementToProcess(); IPath projectPath= javaProject.getProject().getFullPath(); try { class...
public ConstructorDeclaration(CompilationResult compilationResult){ super(compilationResult); } /** * @see org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration#analyseCode(org.eclipse.jdt.internal.compiler.lookup.ClassScope, org.eclipse.jdt.internal.compiler.flow.InitializationFlowContext, org.eclipse.jdt...
public ConstructorDeclaration(CompilationResult compilationResult){ super(compilationResult); } /** * @see org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration#analyseCode(org.eclipse.jdt.internal.compiler.lookup.ClassScope, org.eclipse.jdt.internal.compiler.flow.InitializationFlowContext, org.eclipse.jdt...
public void selectionChanged(SelectionChangedEvent e) { if (((TreeSelectionChangedEvent) e).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) e).getSelected()[0]; if ((folder != null) && folder instanceof MessageFolder) { FolderItem ite...
public void selectionChanged(SelectionChangedEvent e) { if (((TreeSelectionChangedEvent) e).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) e).getSelected()[0]; if ((folder != null) && folder instanceof MessageFolder) { FolderItem ite...
private CompilationUnitScope scope; /** * The working copy owner that defines the context in which this resolver is creating the bindings. */ WorkingCopyOwner workingCopyOwner; /** * Constructor for DefaultBindingResolver. */ DefaultBindingResolver() { this.newAstToOldAst = new HashMap(); this.astN...
private CompilationUnitScope scope; /** * The working copy owner that defines the context in which this resolver is creating the bindings. */ WorkingCopyOwner workingCopyOwner; /** * Constructor for DefaultBindingResolver. */ DefaultBindingResolver() { this.newAstToOldAst = new HashMap(); this.astN...
public void readViews(IPluginRegistry in, ViewRegistry out) throws CoreException { // this does not seem to really ever be throwing an the exception viewRegistry = out; readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_VIEWS); out.mapViewsToCategories(); } }
public void readViews(IExtensionRegistry in, ViewRegistry out) throws CoreException { // this does not seem to really ever be throwing an the exception viewRegistry = out; readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_VIEWS); out.mapViewsToCategories(); } }
public String getHeader() { StringBuffer sbuf = new StringBuffer(); sbuf.append("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\""); sbuf.append(" \"http://www.w3.org/TR/html4/loose.dtd\">"); sbuf.append(Layout.LINE_SEP); sbuf.append("<html>"); sbuf.append(Layout.LINE_SEP); ...
public String getHeader() { StringBuffer sbuf = new StringBuffer(); sbuf.append("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\""); sbuf.append(" \"http://www.w3.org/TR/html4/loose.dtd\">"); sbuf.append(Layout.LINE_SEP); sbuf.append("<html>"); sbuf.append(Layout.LINE_SEP); ...
public AbstractElement[] getElements() { if (cachedElements == null) { IViewDescriptor[] views = PlatformUI.getWorkbench() .getViewRegistry().getViews(); cachedElements = new AbstractElement[views.length]; for (int i = 0; i < views.length; i++) { ViewElement viewElement = new ViewElement(views[i]);...
public AbstractElement[] getElements() { if (cachedElements == null) { IViewDescriptor[] views = PlatformUI.getWorkbench() .getViewRegistry().getViews(); cachedElements = new AbstractElement[views.length]; for (int i = 0; i < views.length; i++) { ViewElement viewElement = new ViewElement(views[i], ...
public TypeBinding resolveType(BlockScope scope) { if ((this.bits & ParenthesizedMASK) != 0) { scope.problemReporter().invalidParenthesizedExpression(this); return null; } super.resolveType(scope); if (currentCompatibleType == null) return null; // error case if (currentCompatibleType.id == T_Obje...
public TypeBinding resolveType(BlockScope scope) { if ((this.bits & ParenthesizedMASK) != 0) { scope.problemReporter().invalidParenthesizedExpression(this); return null; } super.resolveType(scope); if (currentCompatibleType == null) return null; // error case if (currentCompatibleType.id == T_Java...
public static void main(String[] args) { ColumbaCmdLineParser cmdLineParser = new ColumbaCmdLineParser(); try { cmdLineParser.parseCmdLine(args); } catch (IllegalArgumentException e) { ColumbaCmdLineParser.printUsage(); System.exit(2); } /...
public static void main(String[] args) { ColumbaCmdLineParser cmdLineParser = new ColumbaCmdLineParser(); try { cmdLineParser.parseCmdLine(args); } catch (IllegalArgumentException e) { ColumbaCmdLineParser.printUsage(); System.exit(2); } /...
protected void createInfoArea(Composite parent) { Font font = parent.getFont(); infoArea = new Composite(parent, SWT.NULL); GridData data = new GridData(GridData.FILL, GridData.CENTER, true, false); // need to provide space for arbitrary feature infos, not just the // one se...
protected void createInfoArea(Composite parent) { Font font = parent.getFont(); infoArea = new Composite(parent, SWT.NULL); GridData data = new GridData(GridData.FILL, GridData.CENTER, true, true); // need to provide space for arbitrary feature infos, not just the // one sel...
public final static String unescapeURL(String str) { // old code System.out.println("XXX old unescape URL "+ str); if (str == null) return null; // pay for what you use - unencoded requests will not get // less overhead // XXX this should be in the caller ? if( str.indexOf( '+' ) <0 && str.in...
public final static String unescapeURL(String str) { // old code //System.out.println("XXX old unescape URL "+ str); if (str == null) return null; // pay for what you use - unencoded requests will not get // less overhead // XXX this should be in the caller ? if( str.indexOf( '+' ) <0 && str....
public String toString() { return new String(constantPoolName) + " (id=" + id + ")"; }
public String toString() { return new String(constantPoolName) + " (id="/*nonNLS*/ + id + ")"/*nonNLS*/; }
private void loadPredefined() { PerspectiveRegistryReader reader = new PerspectiveRegistryReader(); reader.readPerspectives(Platform.getPluginRegistry(), this); }
private void loadPredefined() { PerspectiveRegistryReader reader = new PerspectiveRegistryReader(); reader.readPerspectives(Platform.getExtensionRegistry(), this); }
public void recordContinueFrom(FlowInfo flowInfo) { if (!flowInfo.isReachable()) return; if (initsOnContinue == FlowInfo.DEAD_END) { initsOnContinue = flowInfo.copy().unconditionalInits(); } else { initsOnContinue = initsOnContinue.mergedWith(flowInfo.unconditionalInits()); } }
public void recordContinueFrom(FlowInfo flowInfo) { if (!flowInfo.isReachable()) return; if (initsOnContinue == FlowInfo.DEAD_END) { initsOnContinue = flowInfo.copy().unconditionalInits(); } else { initsOnContinue = initsOnContinue.mergedWith(flowInfo.copy().unconditionalInits()); } }
@Test public void successCausesExitCodeOf0() throws Exception { runClass("org.junit.tests.JUnitCoreTest$Succeed", 0); } private void runClass(String className, int returnCode) throws IOException, InterruptedException { String java= System.getProperty("java.home")+File.separator+"bin"+File.separator+"java"; St...
@Test public void successCausesExitCodeOf0() throws Exception { runClass("org.junit.tests.JUnitCoreTest$Succeed", 0); } private void runClass(String className, int returnCode) throws IOException, InterruptedException { String java= System.getProperty("java.home")+File.separator+"bin"+File.separator+"java"; St...
public HeadersMenu(FrameMediator controller) { super(controller, "Show Headers"); ButtonGroup group = new ButtonGroup(); defaultMenuItem = new JRadioButtonMenuItem("Default Headers"); defaultMenuItem.setActionCommand("DEFAULT"); defaultMenuItem.addActionListener(this); group.add(defaultMenuItem); add(...
public HeadersMenu(FrameMediator controller) { super(controller, "Show Headers","show_headers_menu"); ButtonGroup group = new ButtonGroup(); defaultMenuItem = new JRadioButtonMenuItem("Default Headers"); defaultMenuItem.setActionCommand("DEFAULT"); defaultMenuItem.addActionListener(this); group.add(defau...
+ ((modifiers & 0x0004) == 0x0004 ? "protected " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0008) == 0x000008 ? "static " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0010) == 0x0010 ? "final " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0040) == 0x0040 ? "volatile " : "") //$NON...
+ ((modifiers & 0x0004) == 0x0004 ? "protected " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0008) == 0x000008 ? "static " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0010) == 0x0010 ? "final " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0040) == 0x0040 ? "volatile " : "") //$NON...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; TypeBinding expressionType = expression.resolveType(scope); TypeBinding checkedType = type.resolveType(scope); if (expressionType == null || checkedType == null) return null; if (checkedType.isTypeVariable() || checkedType.isBou...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; TypeBinding expressionType = expression.resolveType(scope); TypeBinding checkedType = type.resolveType(scope, true /* check bounds*/); if (expressionType == null || checkedType == null) return null; if (checkedType.isTypeVariabl...
public void run() { WorkbenchPage page = (WorkbenchPage)window.getActivePage(); if (page != null) page.close(); }
public void run() { WorkbenchPage page = (WorkbenchPage)window.getActivePage(); if (page != null) page.closeAllPerspectives(); }
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); // process the initializations if (initializations != null) { int count = initializations.length, i = 0; while (i < count) { flowInfo =...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); // process the initializations if (initializations != null) { int count = initializations.length, i = 0; while (i < count) { flowInfo =...
public IStatus runInUIThread(IProgressMonitor monitor) { if (singleton == null) return Status.CANCEL_STATUS; if (ProgressManagerUtil.rescheduleIfModalShellOpen(this)) return Status.CANCEL_STATUS; singleton.open(); return Status.OK_STATUS; } }; //Wait for long operation time...
public IStatus runInUIThread(IProgressMonitor monitor) { if (singleton == null) return Status.CANCEL_STATUS; if (ProgressManagerUtil.rescheduleIfModalShellOpen(this,null)) return Status.CANCEL_STATUS; singleton.open(); return Status.OK_STATUS; } }; //Wait for long operation...
public void selectionChanged(SelectionChangedEvent e) { TreeSelectionChangedEvent event = (TreeSelectionChangedEvent) e; AbstractFolder[] selectedFolders = event.getSelected(); if( selectedFolders.length == 1) { getContainer().getFrame().setTitle(selectedFolders[0].getName()); } }
public void selectionChanged(SelectionChangedEvent e) { TreeSelectionChangedEvent event = (TreeSelectionChangedEvent) e; AbstractFolder[] selectedFolders = event.getSelected(); if( selectedFolders.length == 1 && selectedFolders[0] != null) { getContainer().getFrame().setTitle(selectedFolders[0].getName());...
public String toStringExpression(){ /* slow code */ return receiver.toString() + "." + new String(token);}
public String toStringExpression(){ /* slow code */ return receiver.toString() + "."/*nonNLS*/ + new String(token);}
public boolean process(IFolder folder, Object uid) throws Exception { // get message body InputStream messageSourceStream = ((IMailbox)folder).getMessageSourceStream(uid); StringBuffer body = StreamUtils.readInString(messageSourceStream); String bodyText = pattern; boolean result = false; switch (con...
public boolean process(IFolder folder, Object uid) throws Exception { // get message body InputStream messageSourceStream = ((IMailbox)folder).getMessageSourceStream(uid); StringBuffer body = StreamUtils.readCharacterStream(messageSourceStream); String bodyText = pattern; boolean result = false; swit...
public static CompilationUnit convertCompilationUnit( int level, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration, char[] source, Map options, boolean isResolved, WorkingCopyOwner workingCopyOwner, IProgressMonitor monitor) { ASTConverter converter = new AS...
public static CompilationUnit convertCompilationUnit( int level, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration, char[] source, Map options, boolean isResolved, WorkingCopyOwner workingCopyOwner, IProgressMonitor monitor) { ASTConverter converter = new AS...
public void setWorkDir(String workDir, boolean isWorkDirPersistent) { File f = null; try { f = new File(workDir); } catch (Exception e) { } setWorkDir(f, isWorkDirPersistent); }
public void setWorkDir(String workDir, boolean isWorkDirPersistent) { File f = null; try { f = new File(workDir); } catch (Throwable e) { } setWorkDir(f, isWorkDirPersistent); }
public Constant constant() { Constant fieldConstant = this.constant; if (fieldConstant == null) { if (this.isFinal()) { //The field has not been yet type checked. //It also means that the field is not coming from a class that //has already been compiled. It can only be from a class within //compilation ...
public Constant constant() { Constant fieldConstant = this.constant; if (fieldConstant == null) { if (this.isFinal()) { //The field has not been yet type checked. //It also means that the field is not coming from a class that //has already been compiled. It can only be from a class within //compilation ...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameController()) .getTableSelection(); if (forwardStyle.equals("attachment")) MainInterface.processor.addOp(new ForwardCommand(r)); else MainInterface.processor.addOp(new ForwardInlineCom...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()) .getTableSelection(); if (forwardStyle.equals("attachment")) MainInterface.processor.addOp(new ForwardCommand(r)); else MainInterface.processor.addOp(new ForwardInlineComma...
public Expression convert(org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression allocation) { ClassInstanceCreation classInstanceCreation = this.ast.newClassInstanceCreation(); if (allocation.enclosingInstance != null) { classInstanceCreation.setExpression(convert(allocation.enclosingInstance)); ...
public Expression convert(org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression allocation) { ClassInstanceCreation classInstanceCreation = this.ast.newClassInstanceCreation(); if (allocation.enclosingInstance != null) { classInstanceCreation.setExpression(convert(allocation.enclosingInstance)); ...
public void initialize(JavaProject project, int possibleMatchSize) throws JavaModelException { if (this.nameEnvironment != null) this.nameEnvironment.cleanup(); SearchableEnvironment searchableEnvironment = (SearchableEnvironment) project.newSearchableNameEnvironment(this.workingCopies); // if only one possible...
public void initialize(JavaProject project, int possibleMatchSize) throws JavaModelException { if (this.nameEnvironment != null) this.nameEnvironment.cleanup(); SearchableEnvironment searchableEnvironment = (SearchableEnvironment) project.newSearchableNameEnvironment(this.workingCopies); // if only one possible...
public void updateGUI() throws Exception { // Reenable the action action.setEnabled(true); }
public void updateGUI() throws Exception { // Reenable the action if( action != null) action.setEnabled(true); }
public String toStringExpression(int tab){ return "<SelectOnType:" + new String(token) + ">" ; //$NON-NLS-2$ //$NON-NLS-1$ }
public String toStringExpression(int tab){ return "<SelectOnType:"/*nonNLS*/ + new String(token) + ">"/*nonNLS*/ ; }
public boolean shouldBeEnabled() { ProjectBrowser pb = ProjectBrowser.TheInstance; Object target = pb.getDetailsTarget(); return super.shouldBeEnabled() && (target instanceof MClassifier || target instanceof MStateVertex); }
public boolean shouldBeEnabled() { ProjectBrowser pb = ProjectBrowser.TheInstance; Object target = pb.getDetailsTarget(); return super.shouldBeEnabled() && (target instanceof MModelElement) && (pb.getActiveDiagram().presentationFor(target) instanceof FigNode); }
public void updateContext() { String targetName = "" + _target; if (_target instanceof MElement) { MModelElement e = (MModelElement) _target; String ocl = ""; if (e instanceof MElement) ocl = ((MElementImpl)e).getUMLClassName(); targetName = e.getName(); if (targetName.equals("")...
public void updateContext() { String targetName = "" + _target; if (_target instanceof MElement) { MModelElement e = (MModelElement) _target; String ocl = ""; if (e instanceof MElement) ocl = ((MElement)e).getUMLClassName(); targetName = e.getName(); if (targetName.equals("")) ta...
public char[] shortReadableName() { return this.readableName(); }
public char[] shortReadableName() { return readableName(); }
public GenerationPreferences() { if (System.getProperty("os.name").startsWith("S")) _outputDir = "/tmp"; else _outputDir = "c:\\temp"; }
public GenerationPreferences() { if (System.getProperty("file.separator").equals("/") ) _outputDir = "/tmp"; else _outputDir = "c:\\temp"; }
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 final void save(final IPreferenceStore store, final String preferenceKey) { if (loadState() && state instanceof PersistentState) { ((PersistentState) state).load(store, preferenceKey); } }
public final void save(final IPreferenceStore store, final String preferenceKey) { if (loadState() && state instanceof PersistentState) { ((PersistentState) state).save(store, preferenceKey); } }
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; if (!checkAccess(scope.methodScope())) return null; SourceTypeBinding enclosingTb = scope.enclosingSourceType(); if (scope.isJavaLangObject(enclosingTb)) { scope.problemReporter().cannotUseSuperInJavaLangObject(this); return ...
public TypeBinding resolveType(BlockScope scope) { constant = NotAConstant; if (!checkAccess(scope.methodScope())) return null; SourceTypeBinding enclosingTb = scope.enclosingSourceType(); if (enclosingTb.id == T_Object) { scope.problemReporter().cannotUseSuperInJavaLangObject(this); return null; }...
public String getDisplayStringWithoutTask() { if(totalWork == IProgressMonitor.UNKNOWN) return jobInfo.getJob().getName(); String[] messageValues = new String[2]; messageValues[0] = jobInfo.getJob().getName(); messageValues[1] = String.valueOf(getPercentDone()); return ProgressMessages.format("JobIn...
public String getDisplayStringWithoutTask() { if(totalWork == IProgressMonitor.UNKNOWN) return jobInfo.getJob().getName(); String[] messageValues = new String[2]; messageValues[0] = jobInfo.getJob().getName(); messageValues[1] = String.valueOf(getPercentDone()); return ProgressMessages.format("JobIn...
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { boolean nonStatic = !binding.isStatic(); flowInfo = receiver.analyseCode(currentScope, flowContext, flowInfo, nonStatic).unconditionalInits(); if (nonStatic) { receiver.checkNPE(currentScope, flowContext, flowInfo, ...
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { boolean nonStatic = !binding.isStatic(); flowInfo = receiver.analyseCode(currentScope, flowContext, flowInfo, nonStatic).unconditionalInits(); if (nonStatic) { receiver.checkNPE(currentScope, flowContext, flowInfo);...
public static String id() { return "4.5-SNAPSHOT-20070904-1400"; }
public static String id() { return "4.5-SNAPSHOT-20071012-1919"; }
public java.security.cert.Certificate[] getPeerCertificateChain() throws IOException { // Look up the current SSLSession SSLSession session = ssl.getSession(); if (session == null) return null; // Convert JSSE's certificate format to the ones we need X509...
public Object[] getPeerCertificateChain() throws IOException { // Look up the current SSLSession SSLSession session = ssl.getSession(); if (session == null) return null; // Convert JSSE's certificate format to the ones we need X509Certificate jsseCerts[] ...
private static String[] allModelElements = { "ActivityGraph", "ActionState", "CallState", "ClassifierInState", "ObjectFlowState", "Partition", "SubactivityState" };
public void testDeleteComplete() { CheckUMLModelHelper.deleteComplete(this, ActivityGraphsFactory.getFactory(), allModelElements); } }
public ComponentHandle createHandle( IServiceProvider availableServices) throws ComponentException { Composite control = (Composite)getPane().getControl(); if (control != null) { ...
public ComponentHandle createHandle( IServiceProvider availableServices) throws ComponentException { Composite control = (Composite)getPane().getControl(); if (control != null) { ...
protected void initializeArguments() { TypeVariableBinding[] typeVariables = genericType().typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite re...
protected void initializeArguments() { TypeVariableBinding[] typeVariables = genericType().typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite re...
public void actionPerformed(ActionEvent ae) { ProjectBrowser pb = ProjectBrowser.getInstance(); Project p = ProjectManager.getManager().getCurrentProject(); Object target = TargetManager.getInstance().getModelTarget(); if (!(target instanceof MClassifier)) return; MClassifier cls = (MClassifier) target; ...
public void actionPerformed(ActionEvent ae) { ProjectBrowser pb = ProjectBrowser.getInstance(); Project p = ProjectManager.getManager().getCurrentProject(); Object target = TargetManager.getInstance().getModelTarget(); if (!(target instanceof MClassifier)) return; MClassifier cls = (MClassifier) target; ...
protected void handleDestinationBrowseButtonPressed() { FileDialog dialog = new FileDialog(getContainer().getShell(), getFileDialogStyle()); dialog.setText(getFileDialogTitle()); dialog.setFilterPath(getDestinationValue()); dialog.setFilterExtensions(new String[] { "*.epf" }); //$NON-NLS-1$ String select...
protected void handleDestinationBrowseButtonPressed() { FileDialog dialog = new FileDialog(getContainer().getShell(), getFileDialogStyle()); dialog.setText(getFileDialogTitle()); dialog.setFilterPath(getDestinationValue()); dialog.setFilterExtensions(new String[] { "*.epf" ,"*.*"}); //$NON-NLS-1$ //$NON-NL...
public StringBuffer printExpression(int indent, StringBuffer output) { return output.append("<CompleteOnException:").append(token).append('>'); //$NON-NLS-1$ }
public StringBuffer printExpression(int indent, StringBuffer output) { return output.append("<CompleteOnException:").append(this.token).append('>'); //$NON-NLS-1$ }
private void printLineComment(int commentStart, int commentEnd) { // Compute indentation int firstColumn = this.column; int indentLevel = this.indentationLevel; int indentations = this.numberOfIndentations; this.indentationLevel = (this.column / this.tabLength) * this.tabLength; this.numberOfIndentations ...
private void printLineComment(int commentStart, int commentEnd) { // Compute indentation int firstColumn = this.column; int indentLevel = this.indentationLevel; int indentations = this.numberOfIndentations; this.indentationLevel = getNextIndentationLevel(firstColumn); this.numberOfIndentations = this.inde...
public ExtendedResolver() throws UnknownHostException { init(); String [] servers = FindServer.find(); if (servers != null) { for (int i = 0; i < servers.length; i++) resolvers.addElement(new SimpleResolver(servers[i])); }
public ExtendedResolver() throws UnknownHostException { init(); String [] servers = FindServer.servers(); if (servers != null) { for (int i = 0; i < servers.length; i++) resolvers.addElement(new SimpleResolver(servers[i])); }
public int getNodeType() { return ENUM_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { EnumDeclaration result = new EnumDeclaration(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setJavadoc( (Javadoc) AS...
public int getNodeType() { return ENUM_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { EnumDeclaration result = new EnumDeclaration(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setJavadoc( (Javadoc) A...
public String toString(int tab){ /* slow code */ String s = tabString(tab) ; s = s + "break "; if (label != null ) s = s + new String(label) ; return s; }
public String toString(int tab){ /* slow code */ String s = tabString(tab) ; s = s + "break "/*nonNLS*/; if (label != null ) s = s + new String(label) ; return s; }
public String toString() { StringBuffer buf = new StringBuffer("MethodIndictment("); buf.append(fName); buf.append('/'); buf.append(fParmCount); buf.append(')'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer("MethodIndictment("/*nonNLS*/); buf.append(fName); buf.append('/'); buf.append(fParmCount); buf.append(')'); return buf.toString(); }
private Type rightOperand = null; /** * Creates a new AST node for an instanceof expression owned by the given * AST. By default, the node has unspecified (but legal) operator, * left and right operands. * * @param ast the AST that is to own this node */ InstanceofExpression(AST ast) { super(ast); ...
private Type rightOperand = null; /** * Creates a new AST node for an instanceof expression owned by the given * AST. By default, the node has unspecified (but legal) operator, * left and right operands. * * @param ast the AST that is to own this node */ InstanceofExpression(AST ast) { super(ast); ...
private void internalResolve(Scope scope) { if (this.completionNode != null) { if (this.completionNode instanceof CompletionOnJavadocTag) { ((CompletionOnJavadocTag)this.completionNode).filterPossibleTags(scope); } else { boolean resolve = true; if (this.completionNode instanceof CompletionOnJavado...
private void internalResolve(Scope scope) { if (this.completionNode != null) { if (this.completionNode instanceof CompletionOnJavadocTag) { ((CompletionOnJavadocTag)this.completionNode).filterPossibleTags(scope); } else { boolean resolve = true; if (this.completionNode instanceof CompletionOnJavado...
public ConstructorDeclaration(CompilationResult compilationResult){ super(compilationResult); } /** * @see org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration#analyseCode(org.eclipse.jdt.internal.compiler.lookup.ClassScope, org.eclipse.jdt.internal.compiler.flow.InitializationFlowContext, org.eclipse.jdt...
public ConstructorDeclaration(CompilationResult compilationResult){ super(compilationResult); } /** * @see org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration#analyseCode(org.eclipse.jdt.internal.compiler.lookup.ClassScope, org.eclipse.jdt.internal.compiler.flow.InitializationFlowContext, org.eclipse.jdt...
public TableController(FrameMediator frameController) { this.frameController = frameController; // init table model headerTableModel = new HeaderTableModel(); // init filter model tableModelFilteredView = new TableModelFilter(headerTableModel); // init threaded-vie...
public TableController(FrameMediator frameController) { this.frameController = frameController; // init table model headerTableModel = new HeaderTableModel(); // init filter model tableModelFilteredView = new TableModelFilter(headerTableModel); // init threaded-vie...
public ParameterSupplier getSupplier(ParameterSignature unassigned) throws InstantiationException, IllegalAccessException { ParameterSupplier supplier= getAnnotatedSupplier(unassigned); if (supplier != null) return supplier; return new AllMembersSupplier(fClass.getJavaClass()); }
public ParameterSupplier getSupplier(ParameterSignature unassigned) throws InstantiationException, IllegalAccessException { ParameterSupplier supplier= getAnnotatedSupplier(unassigned); if (supplier != null) return supplier; return new AllMembersSupplier(fClass); }
public void forward(ServletRequest request, ServletResponse response) throws ServletException, IOException { Request realRequest = ((HttpServletRequestFacade)request).getRealRequest(); Response realResponse = ((HttpServletResponseFacade)response).getRealResponse(); // according to specs (as of 2.2: ...
public void forward(ServletRequest request, ServletResponse response) throws ServletException, IOException { Request realRequest = ((HttpServletRequestFacade)request).getRealRequest(); Response realResponse = ((HttpServletResponseFacade)response).getRealResponse(); // according to specs (as of 2.2: ...
public static Rule getRule(Stack stack) { if (stack.size() < 1) { throw new IllegalArgumentException("Invalid NOT rule - expected one rule but provided " + stack.size()); } Object o1 = stack.pop(); if (o1 instanceof Rule) { Rule p1 = (Rule)o1; return new NotRule(p1)...
public static Rule getRule(Stack stack) { if (stack.size() < 1) { throw new IllegalArgumentException("Invalid NOT rule - expected one rule but received " + stack.size()); } Object o1 = stack.pop(); if (o1 instanceof Rule) { Rule p1 = (Rule)o1; return new NotRule(p1)...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { if (requestor == null) { Assert.isTrue(false, "completion re...
public void codeComplete(char[] snippet,int insertion,int position,char[][] localVariableTypeNames,char[][] localVariableNames,int[] localVariableModifiers,boolean isStatic,ICompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { if (requestor == null) { throw new IllegalArgumentException(...
public IStatus restoreState(IMemento memento, IPerspectiveDescriptor activeDescriptor) { Assert.isNotNull(getShell()); MultiStatus result = new MultiStatus(PlatformUI.PLUGIN_ID, IStatus.OK, WorkbenchMessages.getString("WorkbenchWindow.problemsRestoringWindow"), null); //$NON-NLS-1$ // Read window's bounds and ...
public IStatus restoreState(IMemento memento, IPerspectiveDescriptor activeDescriptor) { Assert.isNotNull(getShell()); MultiStatus result = new MultiStatus(PlatformUI.PLUGIN_ID, IStatus.OK, WorkbenchMessages.getString("WorkbenchWindow.problemsRestoringWindow"), null); //$NON-NLS-1$ // Read window's bounds and ...
public Statement getBody() { if (this.body == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.body == null) { preLazyInit(); this.body = new Block(this.ast); postLazyInit(this.body, BODY_PROPERTY); } } } return this.body; }
public Statement getBody() { if (this.body == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.body == null) { preLazyInit(); this.body = new Block(this.ast); postLazyInit(this.body, BODY_PROPERTY); } } } return this.body; }
public Record nextRecord() throws IOException { Tokenizer.Token token; String s; if (included != null) { Record rec = included.nextRecord(); if (rec != null) return rec; included = null; } while (true) { Name name; int ttl; int type, dclass; token = st.get(true, false); if (token.type == Token...
public Record nextRecord() throws IOException { Tokenizer.Token token; String s; if (included != null) { Record rec = included.nextRecord(); if (rec != null) return rec; included = null; } while (true) { Name name; long ttl; int type, dclass; token = st.get(true, false); if (token.type == Toke...
public String toString() { if (string == null) string = format(false); return string; } String format(boolean localize) { int i = 0; Iterator iterator = keyStrokes.iterator(); StringBuffer stringBuffer = new StringBuffer(); while (iterator.hasNext()) { if (i != 0) // TODO 1.4 Char...
public String toString() { if (string == null) string = format(false); return string; } String format(boolean localize) { int i = 0; Iterator iterator = keyStrokes.iterator(); StringBuffer stringBuffer = new StringBuffer(); while (iterator.hasNext()) { if (i != 0) // TODO 1.4 Char...
private IPackageFragmentRoot getJarPkgFragmentRoot(String jarPathString) { IPath jarPath= new Path(jarPathString); JavaModel javaModel= this.manager.getJavaModel(this.workspaceRoot.getWorkspace()); IResource jarFile= this.workspaceRoot.findMember(jarPath); if (jarFile != null) { // internal jar return j...
private IPackageFragmentRoot getJarPkgFragmentRoot(String jarPathString) { IPath jarPath= new Path(jarPathString); JavaModel javaModel= this.manager.getJavaModel(this.workspaceRoot.getWorkspace()); IResource jarFile= this.workspaceRoot.findMember(jarPath); if (jarFile != null) { // internal jar return j...
public IWorkingCopy getWorkingCopy(IProgressMonitor pm, IBufferFactory factory) throws JavaModelException { WorkingCopy workingCopy = new WorkingCopy((IPackageFragment)getParent(), getElementName()); // open the working copy now to ensure contents are that of the current state of this element IBuffer buffer = factor...
public IWorkingCopy getWorkingCopy(IProgressMonitor pm, IBufferFactory factory) throws JavaModelException { WorkingCopy workingCopy = new WorkingCopy((IPackageFragment)getParent(), getElementName(), factory); // open the working copy now to ensure contents are that of the current state of this element IBuffer buffer...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = (FolderCommandReference[]) getFrameMediator() .getSelectionManager() .getSelection("mail.table")...
public void actionPerformed(ActionEvent evt) { FolderCommandReference r = (FolderCommandReference) getFrameMediator() .getSelectionManager() .getSelection("mail.table"); ...
public Object getConstantValue() { if (!this.binding.isConstantValue()) return null; Constant c = this.binding.constant(); if (c == null) return null; switch (c.typeID()) { case TypeIds.T_boolean: return Boolean.valueOf(c.booleanValue()); case TypeIds.T_byte: return new Byte(c.byteValue()); ca...
public Object getConstantValue() { if (!this.binding.isConstantValue()) return null; Constant c = this.binding.constant(); if (c == null) return null; switch (c.typeID()) { case TypeIds.T_boolean: return Boolean.valueOf(c.booleanValue()); case TypeIds.T_byte: return new Byte(c.byteValue()); ca...
protected void reportMatching(CompilationUnitDeclaration unit, boolean mustResolve) throws CoreException { MatchingNodeSet nodeSet = this.currentPossibleMatch.nodeSet; if (mustResolve) { // move the possible matching nodes that exactly match the search pattern to the matching nodes set Object[] nodes = nodeSet.po...
protected void reportMatching(CompilationUnitDeclaration unit, boolean mustResolve) throws CoreException { MatchingNodeSet nodeSet = this.currentPossibleMatch.nodeSet; if (mustResolve) { // move the possible matching nodes that exactly match the search pattern to the matching nodes set Object[] nodes = nodeSet.po...
protected void deleteGeneratedFiles(IFile[] deletedGeneratedFiles) { // delete generated files and recompile any affected source files try { for (int j = deletedGeneratedFiles.length; --j >= 0;) { IFile deletedFile = deletedGeneratedFiles[j]; if (deletedFile.exists()) continue; // only delete .class files for...
protected void deleteGeneratedFiles(IFile[] deletedGeneratedFiles) { // delete generated files and recompile any affected source files try { for (int j = deletedGeneratedFiles.length; --j >= 0;) { IFile deletedFile = deletedGeneratedFiles[j]; if (deletedFile.exists()) continue; // only delete .class files for...
public Name getTarget() { return target; } byte [] rrToWire(Compression c) throws IOException { if (target == null) return null; ByteArrayOutputStream bs = new ByteArrayOutputStream(); CountedDataOutputStream ds = new CountedDataOutputStream(bs); ds.writeShort(priority); ds.writeShort(weight); ds.writeShort...
public Name getTarget() { return target; } byte [] rrToWire(Compression c, int index) throws IOException { if (target == null) return null; ByteArrayOutputStream bs = new ByteArrayOutputStream(); CountedDataOutputStream ds = new CountedDataOutputStream(bs); ds.writeShort(priority); ds.writeShort(weight); ds...
public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope) { ParameterizedMethodBinding method = new ParameterizedMethodBinding(); method.modifiers = originalMethod.modifiers; method.selector = originalMethod.selector; method.declaringClass...
public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope) { ParameterizedMethodBinding method = new ParameterizedMethodBinding(); method.modifiers = originalMethod.modifiers; method.selector = originalMethod.selector; method.declaringClass...
public void actionPerformed(ActionEvent e) { FolderCommandReference[] r = (FolderCommandReference[]) frameMediator.getSelectionManager() .getSelection("mail.tree"); MainInterface.processor.addOp(new MarkFolderAsReadCommand(...
public void actionPerformed(ActionEvent e) { FolderCommandReference r = (FolderCommandReference) frameMediator.getSelectionManager() .getSelection("mail.tree"); MainInterface.processor.addOp(new MarkFolderAsReadCommand(r));...
public TypeBinding resolveType(BlockScope scope) { // added for code assist...cannot occur with 'normal' code if (anonymousType == null && enclosingInstance == null) { return super.resolveType(scope); } // Propagate the type checking to the arguments, and checks if the constructor is defined. // ClassIn...
public TypeBinding resolveType(BlockScope scope) { // added for code assist...cannot occur with 'normal' code if (anonymousType == null && enclosingInstance == null) { return super.resolveType(scope); } // Propagate the type checking to the arguments, and checks if the constructor is defined. // ClassIn...
private void mergeCategory(char[] categoryName, DiskIndex onDisk, int[] positions, DataOutputStream stream) throws IOException { HashtableOfObject wordsToDocs = (HashtableOfObject) this.categoryTables.get(categoryName); if (wordsToDocs == null) wordsToDocs = new HashtableOfObject(3); HashtableOfObject oldWordsToD...
private void mergeCategory(char[] categoryName, DiskIndex onDisk, int[] positions, DataOutputStream stream) throws IOException { HashtableOfObject wordsToDocs = (HashtableOfObject) this.categoryTables.get(categoryName); if (wordsToDocs == null) wordsToDocs = new HashtableOfObject(3); HashtableOfObject oldWordsToD...