buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected ActionGenerationSettings() { super("Settings for Generate for Project", NO_ICON); }
protected ActionGenerationSettings() { super("action.settings-for-project-code-generation", NO_ICON); }
public void keyTraversed(TraverseEvent e) { if (e.detail == SWT.TRAVERSE_RETURN) { e.doit = false; if (getViewer().getTree().getItemCount() == 0) { Display.getCurrent().beep(); } else { // if the initial filter text hasn't changed, do not try to match boolean hasFocus = getViewer...
public void keyTraversed(TraverseEvent e) { if (e.detail == SWT.TRAVERSE_RETURN) { e.doit = false; if (getViewer().getTree().getItemCount() == 0) { Display.getCurrent().beep(); } else { // if the initial filter text hasn't changed, do not try to match boolean hasFocus = getViewer...
public void actionPerformed( ActionEvent e ) { CharsetEvent event; int charsetId = ((CharsetMenuItem)e.getSource()).getId(); event = new CharsetEvent( charsetId, charsets[charsetId]); selectedMenuItem.setText( MailResourceLoader.getString( "menu","mainframe", "menu_view_charset_"+charsets[...
public void actionPerformed( ActionEvent e ) { CharsetEvent event; int charsetId = ((CharsetMenuItem)e.getSource()).getId(); event = new CharsetEvent( this, charsetId, charsets[charsetId]); selectedMenuItem.setText( MailResourceLoader.getString( "menu","mainframe", "menu_view_charset_"+char...
private void quickSort(int left, int right) { int originalLeft = left; int originalRight = right; int midIndex = (left + right) / 2; String midToString = this.sortedStrings[midIndex]; do { while (compare(this.sortedStrings[left], midToString)) left++; while (compare(midToString, this.sortedStrings[right]...
private void quickSort(int left, int right) { int originalLeft = left; int originalRight = right; int midIndex = left + (right - left) / 2; String midToString = this.sortedStrings[midIndex]; do { while (compare(this.sortedStrings[left], midToString)) left++; while (compare(midToString, this.sortedStrings...
public void actionPerformed(ActionEvent e) { if (e.getSource() == _generateButton) { String path = _dir.getText().trim(); String newPath = ""; // convert back slashes to forward slashes StringTokenizer st = new StringTokenizer(path, "\\", true); while (st.hasMoreTokens()) { String t...
public void actionPerformed(ActionEvent e) { if (e.getSource() == _generateButton) { String path = _dir.getText().trim(); String newPath = ""; // convert back slashes to forward slashes StringTokenizer st = new StringTokenizer(path, "\\", true); while (st.hasMoreTokens()) { String t...
public ColumbaMessage getMessage(Object uid, WorkerStatusController worker) throws Exception { InputStream messageStream = new ProgressObservedInputStream(getStore() .fetchMessage(store.getIndex(uid)), worker, true); // Store the complete stream in a source so that we can parse it Source source = Temp...
public ColumbaMessage getMessage(Object uid, WorkerStatusController worker) throws Exception { InputStream messageStream = new ProgressObservedInputStream(getStore() .fetchMessage(store.getIndex(uid)), worker, true); // Store the complete stream in a source so that we can parse it Source source = Temp...
public void run() { c.getMessageViewerPanel().setTitle(title); } }); } visible = true; }
public void run() { c.getMessageViewerDockable().setTitle(title); } }); } visible = true; }
public void makeConsistent(IProgressMonitor monitor) throws JavaModelException { if (!isConsistent()) { // TODO: this code isn't synchronized with regular opening of a working copy (should use getElementInfo) super.makeConsistent(monitor); if (monitor != null && monitor.isCanceled()) return; if (this.problemReq...
public void makeConsistent(IProgressMonitor monitor) throws JavaModelException { if (!isConsistent()) { // TODO: (jerome) this code isn't synchronized with regular opening of a working copy (should use getElementInfo) super.makeConsistent(monitor); if (monitor != null && monitor.isCanceled()) return; if (this.p...
package org.eclipse.ui.commands; /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which...
package org.eclipse.ui.commands; /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which...
public SignMessageAction(ComposerController composerController) { super( composerController, MailResourceLoader.getString( "menu", "composer", "menu_message_sign")); // tooltip text setTooltipText( MailResourceLoader.getString( "menu", "composer", "menu_message_sign")); // action...
public SignMessageAction(ComposerController composerController) { super( composerController, MailResourceLoader.getString( "menu", "composer", "menu_message_sign")); // tooltip text setTooltipText( MailResourceLoader.getString( "menu", "composer", "menu_message_sign")); // action...
public TypeDeclaration updatedTypeDeclaration(){ /* update member types */ if (memberTypeCount > 0){ int existingCount = typeDeclaration.memberTypes == null ? 0 : typeDeclaration.memberTypes.length; MemberTypeDeclaration[] memberTypeDeclarations = new MemberTypeDeclaration[existingCount + memberTypeCount]; if ...
public TypeDeclaration updatedTypeDeclaration(){ /* update member types */ if (memberTypeCount > 0){ int existingCount = typeDeclaration.memberTypes == null ? 0 : typeDeclaration.memberTypes.length; MemberTypeDeclaration[] memberTypeDeclarations = new MemberTypeDeclaration[existingCount + memberTypeCount]; if ...
private void buildFromPotentialSubtypes(String[] allPotentialSubTypes, IProgressMonitor monitor) { IType focusType = this.getType(); // substitute compilation units with working copies HashMap wcPaths = new HashMap(); // a map from path to working copies int wcLength; IWorkingCopy[] workingCopies = this.getWoki...
private void buildFromPotentialSubtypes(String[] allPotentialSubTypes, IProgressMonitor monitor) { IType focusType = this.getType(); // substitute compilation units with working copies HashMap wcPaths = new HashMap(); // a map from path to working copies int wcLength; IWorkingCopy[] workingCopies = this.hierarc...
public CompoundCommand getCommand(Folder srcFolder, Object[] uids) throws Exception { // instanciate CompoundCommand CompoundCommand c = new CompoundCommand(); // get plugin handler for filter actions FilterActionPluginHandler pluginHandler = (FilterActionPluginHandler) MainInterface.pluginManager.ge...
public CompoundCommand getCommand(Folder srcFolder, Object[] uids) throws Exception { // instanciate CompoundCommand CompoundCommand c = new CompoundCommand(); // get plugin handler for filter actions FilterActionPluginHandler pluginHandler = (FilterActionPluginHandler) MainInterface.pluginManager.ge...
private void addAdditional2(Message response, int section) { Enumeration e = response.getSection(section); while (e.hasMoreElements()) { Record r = (Record) e.nextElement(); Name glueName = null; switch (r.getType()) { case Type.MX: glueName = ((MXRecord)r).getTarget(); break; case Type.NS: gl...
private void addAdditional2(Message response, int section) { Enumeration e = response.getSection(section); while (e.hasMoreElements()) { Record r = (Record) e.nextElement(); Name glueName = null; switch (r.getType()) { case Type.MX: glueName = ((MXRecord)r).getTarget(); break; case Type.NS: gl...
public FieldPattern( char[] name, char[] declaringQualification, char[] declaringSimpleName, char[] typeQualification, char[] typeSimpleName, int limitTo, int matchRule) { super(FIELD_PATTERN, name, limitTo, matchRule); this.declaringQualification = this.isCaseSensitive ? declaringQualification : CharOperati...
public FieldPattern( char[] name, char[] declaringQualification, char[] declaringSimpleName, char[] typeQualification, char[] typeSimpleName, int limitTo, int matchRule) { super(FIELD_PATTERN, name, limitTo, matchRule); this.declaringQualification = this.isCaseSensitive ? declaringQualification : CharOperati...
public void testJarClassLoading() throws Exception { URL url= getClass().getResource("test.jar"); assertNotNull("Cannot find test.jar", url); String path= url.getFile(); TestCaseClassLoader loader= new TestCaseClassLoader(path); Class loadedClass= loader.loadClass("junit.tests.LoadedFromJar", true); Object...
public void testJarClassLoading() throws Exception { URL url= getClass().getResource("test.jar"); assertNotNull("Cannot find test.jar", url); String path= url.getFile(); TestCaseClassLoader loader= new TestCaseClassLoader(path); Class loadedClass= loader.loadClass("junit.tests.runner.LoadedFromJar", true); ...
private void scan(String trace) { fLines.removeAllElements(); StringTokenizer st= new StringTokenizer(trace, "\n\r", false); while (st.hasMoreTokens()) fLines.add(st.nextToken()); }
private void scan(String trace) { fLines.removeAllElements(); StringTokenizer st= new StringTokenizer(trace, "\n\r", false); while (st.hasMoreTokens()) fLines.addElement(st.nextToken()); }
public boolean isInsideDeprecatedCode(){ switch(kind){ case Scope.BLOCK_SCOPE : case Scope.METHOD_SCOPE : MethodScope methodScope = methodScope(); if (!methodScope.isInsideInitializer()){ // check method modifiers to see if deprecated MethodBinding context = ((AbstractMethodDeclaration)method...
public boolean isInsideDeprecatedCode(){ switch(kind){ case Scope.BLOCK_SCOPE : case Scope.METHOD_SCOPE : MethodScope methodScope = methodScope(); if (!methodScope.isInsideInitializer()){ // check method modifiers to see if deprecated MethodBinding context = ((AbstractMethodDeclaration)method...
public void mouseDown(MouseEvent e, int x, int y) { setView((DrawingView)e.getSource()); // if not CTRLed then proceed normally if ((e.getModifiers() & InputEvent.CTRL_MASK) == 0) { super.mouseDown(e, x, y); } else { Figure target = drawing().findFigure(x, y); if (target != null && target instanceof...
public void mouseDown(MouseEvent e, int x, int y) { setView((DrawingView)e.getSource()); // if not CTRLed then proceed normally if ((e.getModifiers() & InputEvent.CTRL_MASK) == 0) { super.mouseDown(e, x, y); } else { Figure target = drawing().findFigure(x, y); if ((target != null) && (target != targ...
public Argument(char[] name , long posNom , TypeReference tr , int modifiers){ super(null,name, (int) (posNom >>> 32), (int) (posNom & 0xFFFFFFFFL)); this.modifiers = modifiers; type = tr; }
public Argument(char[] name , long posNom , TypeReference tr , int modifiers){ super(null,name, (int) (posNom >>> 32), (int) posNom); this.modifiers = modifiers; type = tr; }
private void updateDetailsText() { if (details != null) { details.dispose(); details = null; } if (showingDetails) { detailsButton.setText(IDialogConstants.HIDE_DETAILS_LABEL); Text detailsText = new Text(detailsArea, SWT.BORDER | SWT....
private void updateDetailsText() { if (details != null) { details.dispose(); details = null; } if (showingDetails) { detailsButton.setText(IDialogConstants.HIDE_DETAILS_LABEL); Text detailsText = new Text(detailsArea, SWT.BORDER | SWT....
private int extractPrecisionOption() { String opt = extractOption(); int r = 0; if(opt != null) { try { r = Integer.parseInt(opt); if(r <= 0) { LogLog.error( "Precision option (" + opt + ") isn't a positive integer."); r = 0; } } catch (NumberFormatException...
protected int extractPrecisionOption() { String opt = extractOption(); int r = 0; if(opt != null) { try { r = Integer.parseInt(opt); if(r <= 0) { LogLog.error( "Precision option (" + opt + ") isn't a positive integer."); r = 0; } } catch (NumberFormatExcepti...
private Object getMemberValue(org.eclipse.jdt.internal.core.MemberValuePair memberValuePair, Expression expression) { if (expression instanceof Literal) { ((Literal) expression).computeConstant(); return Util.getAnnotationMemberValue(memberValuePair, expression.constant); } else if (expression instanceof org.ecli...
private Object getMemberValue(org.eclipse.jdt.internal.core.MemberValuePair memberValuePair, Expression expression) { if (expression instanceof Literal) { ((Literal) expression).computeConstant(); return Util.getAnnotationMemberValue(memberValuePair, expression.constant); } else if (expression instanceof org.ecli...
public void execute(WorkerStatusController worker) throws Exception { AbstractMailFrameController mailFrameController = (AbstractMailFrameController) frameMediator; FolderCommandReference r = (FolderCommandReference) getReference(); Object[] uids = r.getUids(); MessageFold...
public void execute(WorkerStatusController worker) throws Exception { AbstractMailFrameController mailFrameController = (AbstractMailFrameController) frameMediator; FolderCommandReference r = (FolderCommandReference) getReference(); Object[] uids = r.getUids(); MessageFold...
public void runWithException() throws Throwable { wbw.getPageComposite().setRedraw(false); try { if (newState == IStackPresentationSite.STATE_MAXIMIZED) { smartZoom(); } else if (oldState == IStackPresentationSite.STATE_MAXIMIZED) { smartUnzoom(); } if (newStat...
public void runWithException() throws Throwable { wbw.getPageComposite().setRedraw(false); try { if (newState == IStackPresentationSite.STATE_MAXIMIZED) { smartZoom(); } else if (oldState == IStackPresentationSite.STATE_MAXIMIZED) { smartUnzoom(); } if (newStat...
public void resolve(BlockScope scope) { MethodScope methodScope = scope.methodScope(); MethodBinding methodBinding = null; TypeBinding methodType = (methodScope.referenceContext instanceof AbstractMethodDeclaration) ? ((methodBinding = ((AbstractMethodDeclaration) methodScope.referenceContext).binding) ==...
public void resolve(BlockScope scope) { MethodScope methodScope = scope.methodScope(); MethodBinding methodBinding = null; TypeBinding methodType = (methodScope.referenceContext instanceof AbstractMethodDeclaration) ? ((methodBinding = ((AbstractMethodDeclaration) methodScope.referenceContext).binding) ==...
public void add(IViewDescriptor desc) { dirtyViews = true; ViewRegistryElement element = new ViewRegistryElement(); element.addViewDescriptor(desc); add(element, desc.getConfigurationElement().getDeclaringExtension().getDeclaringPluginDescriptor().getUniqueIdentifier()); }
public void add(IViewDescriptor desc) { dirtyViews = true; ViewRegistryElement element = new ViewRegistryElement(); element.addViewDescriptor(desc); add(element, desc.getConfigurationElement().getDeclaringExtension().getNamespace()); }
public Message send(Message query) throws IOException { if (Options.check("verbose")) System.err.println("Sending to " + addr.getHostAddress() + ":" + port); if (query.getHeader().getOpcode() == Opcode.QUERY) { Record question = query.getQuestion(); if (question != null && question.getType() == Type.AXF...
public Message send(Message query) throws IOException { if (Options.check("verbose")) System.err.println("Sending to " + addr.getHostAddress() + ":" + port); if (query.getHeader().getOpcode() == Opcode.QUERY) { Record question = query.getQuestion(); if (question != null && question.getType() == Type.AXF...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ MarkerAnnotation(AST ast) { super(ast); unsupportedIn2(); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { ...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ MarkerAnnotation(AST ast) { super(ast); unsupportedIn2(); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { ...
public void execute() { LogLog.info("DBReceiverJob.execute() called"); Connection connection = null; try { Logger logger; LoggerRepository loggerRepository = parentDBReceiver .getLoggerRepository(); connection = parentDBReceiver.connectionSource.getConnection(); String...
public void execute() { LogLog.info("DBReceiverJob.execute() called"); Connection connection = null; try { Logger logger; LoggerRepository loggerRepository = parentDBReceiver .getLoggerRepository(); connection = parentDBReceiver.connectionSource.getConnection(); String...
public void decodeIndexKey(char[] key) { int slash = CharOperation.indexOf(SEPARATOR, key, 0); this.simpleName = CharOperation.subarray(key, 0, slash); int start = slash + 1; slash = CharOperation.indexOf(SEPARATOR, key, start); int secondSlash = CharOperation.indexOf(SEPARATOR, key, slash + 1); this.packageInde...
public void decodeIndexKey(char[] key) { int slash = CharOperation.indexOf(SEPARATOR, key, 0); this.simpleName = CharOperation.subarray(key, 0, slash); int start = slash + 1; slash = CharOperation.indexOf(SEPARATOR, key, start); int secondSlash = CharOperation.indexOf(SEPARATOR, key, slash + 1); this.packageInde...
public void updateSortMenu() { //FIXME /* HeaderTableItem v = MailConfig.getMainFrameOptionsConfig().getHeaderTableItem(); sortSubMenu.removeAll(); ButtonGroup group = new ButtonGroup(); JRadioButtonMenuItem menuItem; String c; for ...
public void updateSortMenu() { //FIXME /* HeaderTableItem v = MailInterface.config.getMainFrameOptionsConfig().getHeaderTableItem(); sortSubMenu.removeAll(); ButtonGroup group = new ButtonGroup(); JRadioButtonMenuItem menuItem; String c; ...
public FlowInfo analyseAssignment(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, Assignment assignment, boolean isCompound) { // compound assignment extra work if (isCompound) { // check the variable part is initialized if blank final switch (bits & RestrictiveFlagMASK) { case FIELD : // r...
public FlowInfo analyseAssignment(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, Assignment assignment, boolean isCompound) { // compound assignment extra work if (isCompound) { // check the variable part is initialized if blank final switch (bits & RestrictiveFlagMASK) { case FIELD : // r...
public String toStringExpression(){ return "super"; }
public String toStringExpression(){ return "super"/*nonNLS*/; }
public ErrorListDialog(Frame frame, String title, String caption, Vector messages, boolean pluginError) { super(frame,title,!pluginError); JPanel content = new JPanel(new BorderLayout(12,12)); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); Box iconBox = new Box(BoxLayout.Y_AXI...
public ErrorListDialog(Frame frame, String title, String caption, Vector messages, boolean pluginError) { super(frame,title,!pluginError); JPanel content = new JPanel(new BorderLayout(12,12)); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); Box iconBox = new Box(BoxLayout.Y_AXI...
public int getNodeType() { return CONTINUE_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ContinueStatement result = new ContinueStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLeadingComment(get...
public int getNodeType() { return CONTINUE_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ContinueStatement result = new ContinueStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(th...
public TypeBinding resolveType(BlockScope scope) { // added for code assist...cannot occur with 'normal' code if (this.anonymousType == null && this.enclosingInstance == null) { return super.resolveType(scope); } // Propagate the type checking to the arguments, and checks if the constructor is defined. /...
public TypeBinding resolveType(BlockScope scope) { // added for code assist...cannot occur with 'normal' code if (this.anonymousType == null && this.enclosingInstance == null) { return super.resolveType(scope); } // Propagate the type checking to the arguments, and checks if the constructor is defined. /...
public SystemMenuDetach(IStackPresentationSite site) { this.site = site; setText(WorkbenchMessages.getString("PartPane.detach")); //$NON-NLS-1$ update(); }
public SystemMenuDetach(IStackPresentationSite site) { this.site = site; setText(WorkbenchMessages.PartPane_detach); update(); }
protected void configureShell(Shell shell) { super.configureShell(shell); String title = getWindowConfigurer().basicGetTitle(); if (title != null) { shell.setText(title); } WorkbenchHelp.setHelp(shell, IHelpContextIds.WORKBENCH_WINDOW); getWorkbench().ge...
protected void configureShell(Shell shell) { super.configureShell(shell); String title = getWindowConfigurer().basicGetTitle(); if (title != null) { shell.setText(title); } WorkbenchHelp.setHelp(shell, IWorkbenchHelpContextIds.WORKBENCH_WINDOW); getWorkb...
public AbortCompilation() { this((CompilationResult)null); }
public AbortCompilation() { this(null); }
private Name optionalQualifier = null; /** * Creates a new AST node for a "this" expression owned by the * given AST. By default, there is no qualifier. * * @param ast the AST that is to own this node */ ThisExpression(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared o...
private Name optionalQualifier = null; /** * Creates a new AST node for a "this" expression owned by the * given AST. By default, there is no qualifier. * * @param ast the AST that is to own this node */ ThisExpression(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared o...
public void execute(Worker worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); Folder folder = (Folder) r[0].getFolder(); Object[] uids = r[0].getUids(); Integer[] address = r[0].getAddress(); part = folder.getMimePart(uids[0], address, worker); String fil...
public void execute(Worker worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); Folder folder = (Folder) r[0].getFolder(); Object[] uids = r[0].getUids(); Integer[] address = r[0].getAddress(); part = folder.getMimePart(uids[0], address); String fileName = ...
public FlowInfo analyseCode( MethodScope initializationScope, FlowContext flowContext, FlowInfo flowInfo) { if (this.binding != null && this.binding.isPrivate() && !this.binding.isPrivateUsed()) { if (!initializationScope.referenceCompilationUnit().compilationResult.hasSyntaxError()) { initializationSc...
public FlowInfo analyseCode( MethodScope initializationScope, FlowContext flowContext, FlowInfo flowInfo) { if (this.binding != null && this.binding.isPrivate() && !this.binding.isPrivateUsed()) { if (!initializationScope.referenceCompilationUnit().compilationResult.hasSyntaxError()) { initializationSc...
protected IAnnotation[] getAnnotations(IBinaryAnnotation[] binaryAnnotations, long tagBits) { IAnnotation[] standardAnnotations = getStandardAnnotations(tagBits); if (binaryAnnotations == null) return standardAnnotations; int length = binaryAnnotations.length; int standardLength = standardAnnotations.length; IAn...
protected IAnnotation[] getAnnotations(IBinaryAnnotation[] binaryAnnotations, long tagBits) { IAnnotation[] standardAnnotations = getStandardAnnotations(tagBits); if (binaryAnnotations == null) return standardAnnotations; int length = binaryAnnotations.length; int standardLength = standardAnnotations.length; IAn...
protected void configureShell(Shell shell) { super.configureShell(shell); detachedWindowShells = new ShellPool(shell, SWT.RESIZE | getDefaultOrientation()); String title = getWindowConfigurer().basicGetTitle(); if (title != null) { shell.setText(title); ...
protected void configureShell(Shell shell) { super.configureShell(shell); detachedWindowShells = new ShellPool(shell, SWT.TOOL | SWT.TITLE | SWT.MIN | SWT.MAX | SWT.RESIZE | getDefaultOrientation()); String title = getWindowConfigurer().basicGetTitle(); if (title != null) {...
public static boolean canGenerateInterfaces() { // classExists caches info for us return classExists( "java.lang.reflect.Proxy" ); } /** If accessibility is enabled determine if the accessibility mechanism exists and if we have the optional bsh package to use it. Note that even if both are true it does ...
public static boolean canGenerateInterfaces() { // classExists caches info for us return classExists( "java.lang.reflect.Proxy" ); } /** If accessibility is enabled determine if the accessibility mechanism exists and if we have the optional bsh package to use it. Note that even if both are true it does ...
public ConfigurableOption( String componentName, String optionName, Locale loc, int currentValueIndex) { this.componentName = componentName; this.optionName = optionName; this.currentValueIndex = currentValueIndex; ResourceBundle resource = null; try { String location = componentName.substring(0, comp...
public ConfigurableOption( String componentName, String optionName, Locale loc, int currentValueIndex) { this.componentName = componentName; this.optionName = optionName; this.currentValueIndex = currentValueIndex; ResourceBundle resource = null; try { String location = componentName.substring(0, comp...
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 = project.newSearchableNameEnvironment(this.workingCopies); // if only one possible match, a file name envi...
public boolean isDeleted(Object element) { return false; } /** * Return the list of perspective descriptors in the supplied registry * filtered for roles if appropriate. * * @param registry the registry to use as the source. * @return IPerspectiveDescriptor[] the active ...
public boolean isDeleted(Object element) { return false; } /** * Return the list of perspective descriptors in the supplied registry * filtered for roles if appropriate. * * @param registry the registry to use as the source. * @return IPerspectiveDescriptor[] the active ...
private TypeBinding internalResolveType(Scope scope, ReferenceBinding enclosingType, boolean checkBounds) { // handle the error here this.constant = NotAConstant; if (this.didResolve) { // is a shared type reference which was already resolved if (this.resolvedType != null && !this.resolvedType.isValidBinding...
private TypeBinding internalResolveType(Scope scope, ReferenceBinding enclosingType, boolean checkBounds) { // handle the error here this.constant = NotAConstant; if (this.didResolve) { // is a shared type reference which was already resolved if (this.resolvedType != null && !this.resolvedType.isValidBinding...
public int getNodeType() { return PARAMETERIZED_TYPE; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ParameterizedType result = new ParameterizedType(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setName((Name) ((ASTN...
public int getNodeType() { return PARAMETERIZED_TYPE; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { ParameterizedType result = new ParameterizedType(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setName((Name) ((AST...
public String getInstallDirectory(String name, String version) { return "./" + name.toLowerCase() + "/" + version); } }
public String getInstallDirectory(String name, String version) { return "./" + name.toLowerCase() + "/" + version; } }
private boolean jobFiltered(JobInfo ji) { Job job = ji.getJob(); if (job != null && job == highlightJob) return false; if (job == null || job.getState() == Job.SLEEPING) return true; if(job.isSystem()){ if(getContentProvider() instan...
private boolean jobFiltered(JobInfo ji) { Job job = ji.getJob(); if (job != null && job == highlightJob) return false; if (job == null || job.getState() == Job.SLEEPING) return true; if(job.isSystem()){ if(getContentProvider() instan...
public void actionPerformed(ActionEvent evt) { AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator; // get selected contact/group card Object[] uids = mediator.getTable().getUids(); // get selected folder AddressbookFolder folder = (AddressbookFolder) mediator.getTree().getSe...
public void actionPerformed(ActionEvent evt) { AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator; // get selected contact/group card Object[] uids = mediator.getTable().getUids(); // get selected folder AddressbookFolder folder = (AddressbookFolder) mediator.getTree().getSe...
public static String createBodyText(MimePart mimePart) throws IOException { CharSequence bodyText = ""; StreamableMimePart bodyPart = (StreamableMimePart) mimePart; String charsetName = bodyPart.getHeader() .getContentParameter("charset"); int encoding = bodyPart.getHeader().getContentTransferEncoding(); ...
public static String createBodyText(MimePart mimePart) throws IOException { CharSequence bodyText = ""; StreamableMimePart bodyPart = (StreamableMimePart) mimePart; String charsetName = bodyPart.getHeader() .getContentParameter("charset"); int encoding = bodyPart.getHeader().getContentTransferEncoding(); ...
private void callInternalError( Request req, Response res, Context ctx, ServletWrapper errorServlet, String errorPath ) { // Save the original request, we want to report it // and we need to use it in the "authentication" case to implement // the strange requirements for login pages req.setAttribu...
private void callInternalError( Request req, Response res, Context ctx, ServletWrapper errorServlet, String errorPath ) { // Save the original request, we want to report it // and we need to use it in the "authentication" case to implement // the strange requirements for login pages req.setAttribu...
private void setSelection(LayoutPart part) { if (!active) return; if (part instanceof PartPlaceholder) return; // Deactivate old / Activate new. if (current != null && current != part) { current.setVisible(false); } current = part; if (current != null) { setControlSize(); current.setVisi...
private void setSelection(LayoutPart part) { if (!active) return; if (part instanceof PartPlaceholder) return; // Deactivate old / Activate new. if (current != null && current != part) { current.setVisible(false); } current = part; if (current != null) { setControlSize(); current.setVisi...
public String toString() { return name + "(" + servletClassName + "/" + path); }
public String toString() { return name + "(" + servletClassName + "/" + path + ")"; }
public OldTestClassRunner(Class<?> klass) { this(new TestSuite((Class<? extends TestCase>) klass)); }
public OldTestClassRunner(Class<?> klass) { this(new TestSuite(klass.asSubclass(TestCase.class))); }
public void handleEvent (Event event) { if(event.type == SWT.Verify) event.doit = false; scope.resetMode(service); } };
public void handleEvent (Event event) { if(event.type == SWT.Verify) event.doit = false; AcceleratorScope.resetMode(service); } };
public void widgetDefaultSelected(SelectionEvent e) { gotoSelectedElement(); } }); /* * Bug in GTK, see SWT bug: 62405 Editor drop down performance slow on * Linux-GTK on mouse move. * Rather then removing the support altogether this fe...
public void widgetDefaultSelected(SelectionEvent e) { gotoSelectedElement(); } }); /* * Bug in GTK, see SWT bug: 62405 Editor drop down performance slow on * Linux-GTK on mouse move. * Rather then removing the support altogether this fe...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); Constant cst = this.condition.constant; boolean isConditionTrue = cst != NotAConstant && cst.booleanValue() == true; boolean isConditionFalse = c...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); Constant cst = this.condition.constant; boolean isConditionTrue = cst != NotAConstant && cst.booleanValue() == true; boolean isConditionFalse = c...
public SortFoldersMenu(FrameMediator controller) { super(controller, MailResourceLoader.getString("menu", "mainframe", "menu_view_sort_tree")); createSubMenu(); loadConfig(); }
public SortFoldersMenu(FrameMediator controller) { super(controller, MailResourceLoader.getString("menu", "mainframe", "menu_view_sort_tree"),"menu_view_sort_tree"); createSubMenu(); loadConfig(); }
public String rdataToString() { StringBuffer sb = new StringBuffer(); if (data != null) { sb.append("\\# "); sb.append(data.length); sb.append(" "); sb.append(base16.toString(data)); } return sb.toString(); } void rrToWire(DataByteOutputStream out, Compression c) { if (data != null) out.writeArray(data)...
public String rdataToString() { StringBuffer sb = new StringBuffer(); if (data != null) { sb.append("\\# "); sb.append(data.length); sb.append(" "); sb.append(base16.toString(data)); } return sb.toString(); } void rrToWire(DataByteOutputStream out, Compression c, boolean canonical) { if (data != null) o...
private void extractReferenceFromConstantPool(byte[] contents, ClassFileReader reader) throws ClassFormatException { int[] constantPoolOffsets = reader.getConstantPoolOffsets(); int constantPoolCount = constantPoolOffsets.length; for (int i = 1; i < constantPoolCount; i++) { int tag = reader.u1At(constantPoolOffse...
private void extractReferenceFromConstantPool(byte[] contents, ClassFileReader reader) throws ClassFormatException { int[] constantPoolOffsets = reader.getConstantPoolOffsets(); int constantPoolCount = constantPoolOffsets.length; for (int i = 1; i < constantPoolCount; i++) { int tag = reader.u1At(constantPoolOffse...
private ASTNode convert(IProgressMonitor monitor, CompilationUnitDeclaration compilationUnitDeclaration, char[] source, boolean needToResolveBindings) { BindingResolver resolver = null; AST ast = AST.newAST(this.apiLevel); ast.setDefaultNodeFlag(ASTNode.ORIGINAL); CompilationUnit compilationUnit = null; ASTC...
private ASTNode convert(IProgressMonitor monitor, CompilationUnitDeclaration compilationUnitDeclaration, char[] source, boolean needToResolveBindings) { BindingResolver resolver = null; AST ast = AST.newAST(this.apiLevel); ast.setDefaultNodeFlag(ASTNode.ORIGINAL); CompilationUnit compilationUnit = null; ASTC...
public static final String IIS_REG_FILE = "/conf/jk/iis_redirect.reg"; Log loghelper = new Log("tc_log", "IISConfig");
public static final String IIS_REG_FILE = "/conf/jk/iis_redirect.reg"; Log loghelper = Log.getLog("tc_log", "IISConfig");
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // here requires to generate a sequence of finally blocks invocations depending corresponding // to each of the traversed try statements, so that execution will terminate properly. // lookup the label, thi...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // here requires to generate a sequence of finally blocks invocations depending corresponding // to each of the traversed try statements, so that execution will terminate properly. // lookup the label, thi...
private void formatTypeOpeningBrace(String bracePosition, boolean insertSpaceBeforeBrace, TypeDeclaration typeDeclaration) { int fieldCount = (typeDeclaration.fields == null) ? 0 : typeDeclaration.fields.length; int methodCount = (typeDeclaration.methods == null) ? 0 : typeDeclaration.methods.length; int typeCou...
private void formatTypeOpeningBrace(String bracePosition, boolean insertSpaceBeforeBrace, TypeDeclaration typeDeclaration) { int fieldCount = (typeDeclaration.fields == null) ? 0 : typeDeclaration.fields.length; int methodCount = (typeDeclaration.methods == null) ? 0 : typeDeclaration.methods.length; int typeCou...
public void processDoubleClick() { boolean userMode = WorkbenchPlugin.getDefault().getPreferenceStore() .getBoolean(IPreferenceConstants.SHOW_USER_JOBS_IN_DIALOG); if (userMode) { Object[] items = viewer.displayedItems; if (items.length > 0 && items[0] instanceof JobInfo) { JobInfo info = (JobInfo) i...
public void processDoubleClick() { boolean userMode = WorkbenchPlugin.getDefault().getPreferenceStore() .getBoolean(IPreferenceConstants.SHOW_USER_JOBS_IN_DIALOG); if (userMode) { Object[] items = viewer.displayedItems; if (items.length > 0 && items[0] instanceof JobInfo) { JobInfo info = (JobInfo) i...
public LearnSpamAction(FrameMediator frameController) { super(frameController, "Learn Spam"); // tooltip text setTooltipText("Learn Spam based on selected Folder"); setEnabled(false); ( ( AbstractMailFrameController) frameController) .registerTreeSelectionListener( this); }
public LearnSpamAction(FrameMediator frameController) { super(frameController, "Learn Spam"); // tooltip text putValue(SHORT_DESCRIPTION, "Learn Spam based on selected Folder"); setEnabled(false); ( ( AbstractMailFrameController) frameController) .registerTreeSelectionListener( this); }
extends org.tigris.scarab.om.BaseActivityPeer package org.tigris.scarab.om; // JDK classes import java.util.*; // Village classes import com.workingdogs.village.*; // Turbine classes import org.apache.turbine.om.peer.*; import org.apache.turbine.util.*; import org.apache.turbine.util.db.*; import org.apache.turbine...
extends org.tigris.scarab.om.BaseActivityPeer package org.tigris.scarab.om; // JDK classes import java.util.*; // Village classes import com.workingdogs.village.*; // Turbine classes import org.apache.turbine.om.peer.*; import org.apache.turbine.util.*; import org.apache.turbine.util.db.*; import org.apache.turbine...
public void actionPerformed(ActionEvent e) { // when the action is performed, i.e. someone clicked on the menuitem, // create a new writer, get the Project and its curent Model, // then store it. Simple as this. DBWriter writer = new DBWriter(); if (writer.hasConnection()) { ProjectBrowser pb = Project...
public void actionPerformed(ActionEvent e) { // when the action is performed, i.e. someone clicked on the menuitem, // create a new writer, get the Project and its curent Model, // then store it. Simple as this. DBWriter writer = new DBWriter(); if (writer.hasConnection()) { ProjectBrowser pb = Project...
private void showInvalidRecipientMessage(String recipient) { String message = MailResourceLoader.getString("dialog","error","invalid_recipient"); String title = MailResourceLoader.getString("dialog","error","invalid_recipient_title"); message = MessageFormat.format(message,new Object[]{re...
private void showInvalidRecipientMessage(String recipient) { String message = MailResourceLoader.getString("dialog","error",recipient); String title = MailResourceLoader.getString("dialog","error","invalid_recipient_title"); message = MessageFormat.format(message,new Object[]{recipient});...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } // in case the labels needs to be reinitialized // when the code generation is restarted in wide mode if (this.anyExceptionLabelsCount > 0) { this.anyExceptionLabels = NO_EXCEPTIO...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachable) == 0) { return; } // in case the labels needs to be reinitialized // when the code generation is restarted in wide mode if (this.anyExceptionLabelsCount > 0) { this.anyExceptionLabels = NO_EXCEPTION_HA...
public AccountController(ComposerController controller) { this.controller = controller; view = new AccountView(this); AccountList config = MailConfig.getAccountList(); for (int i = 0; i < config.count(); i++) { view.addItem(config.get(i)); if (i == 0) { view.setSelectedItem(config.get(i)); ...
public AccountController(ComposerController controller) { this.controller = controller; view = new AccountView(this); AccountList config = MailConfig.getAccountList(); for (int i = 0; i < config.count(); i++) { view.addItem(config.get(i)); if (i == 0) { view.setSelectedItem(config.get(i)); ...
@version $Id: ScarabUserPeer.java,v 1.7 2001/07/05 00:04:38 jon dead $ package org.tigris.scarab.om; /* ================================================================ * Copyright (c) 2000 Collab.Net. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ar...
@version $Id: ScarabUserPeer.java,v 1.7 2001/07/05 00:04:38 jon dead $ package org.tigris.scarab.om; /* ================================================================ * Copyright (c) 2000 Collab.Net. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ar...
private final void addAdditional(Message response, int flags) { addAdditional2(response, Section.ANSWER, flags); addAdditional2(response, Section.AUTHORITY, flags); } byte addAnswer(Message response, Name name, int type, int dclass, int iterations, int flags) { SetResponse sr; byte rcode = Rcode.NOERROR; if (...
private final void addAdditional(Message response, int flags) { addAdditional2(response, Section.ANSWER, flags); addAdditional2(response, Section.AUTHORITY, flags); } byte addAnswer(Message response, Name name, int type, int dclass, int iterations, int flags) { SetResponse sr; byte rcode = Rcode.NOERROR; if (...
public JSCFConnection getConnection (String userID) throws JSCFException { PGPItem pgpItem = MailInterface.config.getAccountList().getDefaultAccount() .getPGPItem(); JSCFConnection con = (JSCFConnection) connectionMap.get(userID); if (con == null) { LOG.fine("no connection for userID ...
public JSCFConnection getConnection (String userID) throws JSCFException { PGPItem pgpItem = MailInterface.config.getAccountList().getDefaultAccount() .getPGPItem(); JSCFConnection con = (JSCFConnection) connectionMap.get(userID); if (con == null) { LOG.fine("no connection for userID ...
protected NS_CNAME_PTRRecord(Name _name, short _type, short _dclass, int _ttl, MyStringTokenizer st, Name origin) throws IOException { super(_name, _type, _dclass, _ttl); target = new Name(st.nextToken(), origin); }
protected NS_CNAME_PTRRecord(Name _name, short _type, short _dclass, int _ttl, MyStringTokenizer st, Name origin) throws IOException { super(_name, _type, _dclass, _ttl); target = Name.fromString(st.nextToken(), origin); }
public int getNodeType() { return JAVADOC; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { Javadoc result = new Javadoc(target); result.setSourceRange(this.getStartPosition(), this.getLength()); if (this.ast.API_LEVEL == AST.LEVEL_2_0) { result.setCom...
public int getNodeType() { return JAVADOC; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { Javadoc result = new Javadoc(target); result.setSourceRange(this.getStartPosition(), this.getLength()); if (this.ast.apiLevel == AST.LEVEL_2_0) { result.setComm...
public static Level toPriority(String sArg) { return Level.toPriority(sArg); }
public static Level toPriority(String sArg) { return Level.toLevel(sArg); }
public void initTypes() { _type.addItem(PredicateType.create()); _type.addItem(PredicateType.create(MMClass.class, Interface.class)); _type.addItem(PredicateType.create(Actor.class)); _type.addItem(PredicateType.create(Association.class)); _type.addItem(PredicateType.create(Attribute.class)); ...
public void initTypes() { _type.addItem(PredicateType.create()); _type.addItem(PredicateType.create(MMClass.class, Interface.class)); _type.addItem(PredicateType.create(Actor.class)); _type.addItem(PredicateType.create(Association.class)); _type.addItem(PredicateType.create(Attribute.class)); ...
public void run() { // get the help UI extension from the registry IExtensionPoint point = Platform.getExtensionRegistry() .getExtensionPoint(HELP_SYSTEM_EXTENSION_ID); if (point == null) { // our extension point is ...
public void run() { // get the help UI extension from the registry IExtensionPoint point = Platform.getExtensionRegistry() .getExtensionPoint(HELP_SYSTEM_EXTENSION_ID); if (point == null) { // our extension point is ...
public int compare(Object o1, Object o2) { int sort = 1; if (o1 instanceof LoggingEvent && o2 instanceof LoggingEvent) { // TODO not everything catered for here yet... LoggingEvent e1 = (LoggingEvent) o1; LoggingEvent e2 = (LoggingEvent) o2; switch (index + 1) { case ChainsawColum...
public int compare(Object o1, Object o2) { int sort = 1; if (o1 instanceof LoggingEvent && o2 instanceof LoggingEvent) { // TODO not everything catered for here yet... LoggingEvent e1 = (LoggingEvent) o1; LoggingEvent e2 = (LoggingEvent) o2; switch (index + 1) { case ChainsawColum...
protected void findSourceFiles(IResourceDelta sourceDelta, ClasspathMultiDirectory md, int segmentCount) throws CoreException { // When a package becomes a type or vice versa, expect 2 deltas, // one on the folder & one on the source file IResource resource = sourceDelta.getResource(); // remember that if inclusion...
protected void findSourceFiles(IResourceDelta sourceDelta, ClasspathMultiDirectory md, int segmentCount) throws CoreException { // When a package becomes a type or vice versa, expect 2 deltas, // one on the folder & one on the source file IResource resource = sourceDelta.getResource(); // remember that if inclusion...
public void initializeDefaultPreferences() { // If modified, also modify the method JavaModelManager#getDefaultOptionsNoInitialization() // Get options names set HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames; // Compiler settings Map defaultOptionsMap = new CompilerOptions().get...
public void initializeDefaultPreferences() { // If modified, also modify the method JavaModelManager#getDefaultOptionsNoInitialization() // Get options names set HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames; // Compiler settings Map defaultOptionsMap = new CompilerOptions().get...
public static MboxMessage[] parseMbox(Source mailboxSource) throws IOException { List messages = new LinkedList(); CharSequenceSearcher searcher = new CharSequenceSearcher("From "); List boundaries = searcher.match(mailboxSource); Iterator it = boundaries.iterator(); int start = ((Integer) it.next()).intVa...
public static MboxMessage[] parseMbox(Source mailboxSource) throws IOException { List messages = new LinkedList(); CharSequenceSearcher searcher = new CharSequenceSearcher("From "); List boundaries = searcher.match(mailboxSource); Iterator it = boundaries.iterator(); int start = ((Integer) it.next()).intVa...
public synchronized ISourceRange mapSource( IType type, char[] contents, IJavaElement elementToFind) { this.binaryType = (BinaryType) type; // check whether it is already mapped if (this.fSourceRanges.get(type) != null) return (elementToFind != null) ? this.getNameRange(elementToFind) : null; t...
public synchronized ISourceRange mapSource( IType type, char[] contents, IJavaElement elementToFind) { this.binaryType = (BinaryType) type; // check whether it is already mapped if (this.fSourceRanges.get(type) != null) return (elementToFind != null) ? this.getNameRange(elementToFind) : null; t...
public static void testEditorInput(IEditorInput input) throws Exception { input.getAdapter(Object.class); // Don't test input.getImageDescriptor() -- the workbench never uses that // method and most editor inputs would fail the test. It should really be // deprecated. ...
public static void testEditorInput(IEditorInput input) throws Exception { input.getAdapter(Object.class); // Don't test input.getImageDescriptor() -- the workbench never uses that // method and most editor inputs would fail the test. It should really be // deprecated. ...
public DefaultFrameController(String id) { this(new ViewItem(DefaultContainer.createDefaultConfiguration(id))); }
public DefaultFrameController(String id) { this(ViewItem.createDefault(id)); }
public void initializeDefaultPreferences() { // If modified, also modify the method JavaModelManager#getDefaultOptionsNoInitialization() // Get options names set HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames; // Compiler settings Map defaultOptionsMap = new CompilerOptions().get...
public void initializeDefaultPreferences() { // If modified, also modify the method JavaModelManager#getDefaultOptionsNoInitialization() // Get options names set HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames; // Compiler settings Map defaultOptionsMap = new CompilerOptions().get...
public void computeConversion(Scope scope, TypeBinding runtimeTimeType, TypeBinding compileTimeType) { if (runtimeTimeType == null || compileTimeType == null) return; // set the generic cast after the fact, once the type expectation is fully known (no need for strict cast) if (this.binding != null && this.binding....
public void computeConversion(Scope scope, TypeBinding runtimeTimeType, TypeBinding compileTimeType) { if (runtimeTimeType == null || compileTimeType == null) return; // set the generic cast after the fact, once the type expectation is fully known (no need for strict cast) if (this.binding != null && this.binding....
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 String toString() { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < size; i++) { buffer.append(CharOperation.toString(elements[i])).append("\n"/*nonNLS*/); } return buffer.toString(); }
public String toString() { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < size; i++) { buffer.append(CharOperation.toString(elements[i])).append("\n"); //$NON-NLS-1$ } return buffer.toString(); }
public void resolveStatements() { super.resolveStatements(); TypeBinding returnTypeBinding = this.binding.returnType; if (returnTypeBinding != null) { // annotation methods can only return base types, String, Class, enum type, annotation types and arrays of these checkAnnotationMethodType: { TypeBindi...
public void resolveStatements() { super.resolveStatements(); TypeBinding returnTypeBinding = this.binding.returnType; if (returnTypeBinding != null) { // annotation methods can only return base types, String, Class, enum type, annotation types and arrays of these checkAnnotationMethodType: { TypeBindi...
public SavePerspectiveAction(IWorkbenchWindow window) { super(window); setText(WorkbenchMessages.SavePerspective_text); setActionDefinitionId(IWorkbenchCommandConstants.WINDOW_SAVEPERSPECTIVEAS); // @issue missing action id setToolTipText(WorkbenchMessages.SavePerspective_too...
public SavePerspectiveAction(IWorkbenchWindow window) { super(window); setText(WorkbenchMessages.SavePerspective_text); setActionDefinitionId(IWorkbenchCommandConstants.WINDOW_SAVE_PERSPECTIVE_AS); // @issue missing action id setToolTipText(WorkbenchMessages.SavePerspective_t...
public String toStringExpression() { /* slow speed */ StringBuffer buffer = new StringBuffer(); for (int i = 0; i < tokens.length; i++) { buffer.append(tokens[i]); if (i < (tokens.length - 1)) { buffer.append("."); } } return buffer.toString(); }
public String toStringExpression() { /* slow speed */ StringBuffer buffer = new StringBuffer(); for (int i = 0; i < tokens.length; i++) { buffer.append(tokens[i]); if (i < (tokens.length - 1)) { buffer.append("."/*nonNLS*/); } } return buffer.toString(); }
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (valueRequired) codeStream.ldc(constant.stringValue()); codeStream.recordPositionsFrom(pc, this); }
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (valueRequired) codeStream.ldc(constant.stringValue()); codeStream.recordPositionsFrom(pc, this.sourceStart); }
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ TypeDeclarationStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. * @since 3.0 */ final List internalStructuralPropertiesForType(int apiLevel) { ...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ TypeDeclarationStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. * @since 3.0 */ final List internalStructuralPropertiesForType(int apiLevel) { ...