buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private ArrayList getPerspectiveShortcuts() { ArrayList list = new ArrayList(); IWorkbenchPage page = window.getActivePage(); if (page == null) return list; ArrayList ids = ((WorkbenchPage) page).getPerspectiveActionIds(); if (ids == null) return list; ids = new ArrayList(ids); IObjectActi...
private ArrayList getPerspectiveShortcuts() { ArrayList list = new ArrayList(); IWorkbenchPage page = window.getActivePage(); if (page == null) return list; ArrayList ids = ((WorkbenchPage) page).getPerspectiveActionIds(); if (ids == null) return list; ids = new ArrayList(ids); IObjectActi...
public CButton(Action action) { super(action); String topicID = (String) action.getValue(AbstractColumbaAction.TOPIC_ID); if (topicID != null) { HelpManager.getHelpManager().enableHelpOnButton(this, topicID); } }
public CButton(Action action) { super(action); String topicID = (String) action.getValue(AbstractColumbaAction.TOPIC_ID); if (topicID != null) { HelpManager.getInstance().enableHelpOnButton(this, topicID); } }
public void showFailure(TestFailure failure) { fTextArea.setText(BaseTestRunner.getFilteredTrace(failure.thrownException())); fTextArea.select(0, 0); }
public void showFailure(TestFailure failure) { fTextArea.setText(BaseTestRunner.getFilteredTrace(failure.trace())); fTextArea.select(0, 0); }
public HyperSearchRequest(View view, SearchMatcher matcher, HyperSearchResults results, Selection[] selection) { this.view = view; this.matcher = matcher; this.results = results; this.searchString = SearchAndReplace.getSearchString(); this.rootSearchNode = new DefaultMutableTreeNode(searchString); thi...
public HyperSearchRequest(View view, SearchMatcher matcher, HyperSearchResults results, Selection[] selection) { this.view = view; this.matcher = matcher; this.results = results; this.searchString = SearchAndReplace.getSearchString(); this.rootSearchNode = new DefaultMutableTreeNode(new HyperSearchOperat...
public static CompilationUnit convertCompilationUnit( int level, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration, Map options, boolean isResolved, org.eclipse.jdt.internal.core.CompilationUnit workingCopy, int reconcileFlags, IProgressMonitor monitor) { ASTC...
public static CompilationUnit convertCompilationUnit( int level, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration, Map options, boolean isResolved, org.eclipse.jdt.internal.core.CompilationUnit workingCopy, int reconcileFlags, IProgressMonitor monitor) { ASTC...
private void parseTags(NLSLine line) throws InvalidInputException { String s = new String(getCurrentTokenSource()); int pos = s.indexOf(TAG_PREFIX); int lineLength = line.size(); while (pos != -1) { int start = pos + TAG_PREFIX_LENGTH; int end = s.indexOf(TAG_POSTFIX, start); String index = s.substring(start,...
private void parseTags(NLSLine line) throws InvalidInputException { String s = new String(getCurrentTokenSource()); int pos = s.indexOf(TAG_PREFIX); int lineLength = line.size(); while (pos != -1) { int start = pos + TAG_PREFIX_LENGTH; int end = s.indexOf(TAG_POSTFIX, start); String index = s.substring(start,...
public void run() { LoggingEvent event; Logger remoteLogger; try { while(true) { event = (LoggingEvent) ois.readObject(); remoteLogger = hierarchy.getLogger(event.categoryName); event.logger = remoteLogger; if(event.level.isGreaterOrEqual(remoteLogger.getChainedLevel())) { remoteLogger.cal...
public void run() { LoggingEvent event; Logger remoteLogger; try { while(true) { event = (LoggingEvent) ois.readObject(); remoteLogger = hierarchy.getLogger(event.categoryName); event.logger = remoteLogger; if(event.level.isGreaterOrEqual(remoteLogger.getEffectiveLevel())) { remoteLogger.c...
public byte [] getKey() { return key; } byte [] rrToWire(Compression c) throws IOException { if (key == null && (flags & (NOAUTH|NOCONF)) != (NOAUTH|NOCONF) ) return null; ByteArrayOutputStream bs = new ByteArrayOutputStream(); CountedDataOutputStream ds = new CountedDataOutputStream(bs); ds.writeShort(flags)...
public byte [] getKey() { return key; } byte [] rrToWire(Compression c, int index) throws IOException { if (key == null && (flags & (NOAUTH|NOCONF)) != (NOAUTH|NOCONF) ) return null; ByteArrayOutputStream bs = new ByteArrayOutputStream(); CountedDataOutputStream ds = new CountedDataOutputStream(bs); ds.writeS...
private boolean matchOverriddenMethod(ReferenceBinding type, MethodBinding method, MethodBinding matchMethod) { if (type == null) return false; // matches superclass if (!type.isInterface() && !CharOperation.equals(type.compoundName, TypeConstants.JAVA_LANG_OBJECT)) { ReferenceBinding superClass = type.superclass...
private boolean matchOverriddenMethod(ReferenceBinding type, MethodBinding method, MethodBinding matchMethod) { if (type == null || this.pattern.selector == null) return false; // matches superclass if (!type.isInterface() && !CharOperation.equals(type.compoundName, TypeConstants.JAVA_LANG_OBJECT)) { ReferenceBin...
public void actionPerformed(ActionEvent evt) { ((ComposerView) frameMediator.getBaseView()).showAccountInfoPanel(); }
public void actionPerformed(ActionEvent evt) { ((ComposerView) frameMediator.getView()).showAccountInfoPanel(); }
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 void initCmdLine(String[] args) { //init new CommandLineParser from jargs CmdLineParser commandLineParser = new CmdLineParser(); // setting any options // the short option '+' is an hack until jargs supports also "only long commands" // TODO make options i18n compatible help = commandLi...
public void initCmdLine(String[] args) { //init new CommandLineParser from jargs CmdLineParser commandLineParser = new CmdLineParser(); // setting any options // the short option '+' is an hack until jargs supports also "only long commands" // TODO make options i18n compatible help = commandLi...
private void disassemble(IAnnotationComponentValue annotationComponentValue, StringBuffer buffer, String lineSeparator, int tabNumber, int mode) { switch(annotationComponentValue.getTag()) { case IAnnotationComponentValue.BYTE_TAG: case IAnnotationComponentValue.CHAR_TAG: case IAnnotationComponentValue.DOUB...
private void disassemble(IAnnotationComponentValue annotationComponentValue, StringBuffer buffer, String lineSeparator, int tabNumber, int mode) { switch(annotationComponentValue.getTag()) { case IAnnotationComponentValue.BYTE_TAG: case IAnnotationComponentValue.CHAR_TAG: case IAnnotationComponentValue.DOUB...
public boolean visit(IResource resource) throws CoreException { switch(resource.getType()) { case IResource.FILE : String extension = resource.getFileExtension(); if (JavaBuilder.JAVA_EXTENSION.equalsIgnoreCase(extension)) return false; if (JavaBuilder.CLASS_EXTENSION.equalsIgnoreCas...
public boolean visit(IResource resource) throws CoreException { switch(resource.getType()) { case IResource.FILE : String extension = resource.getFileExtension(); if (JavaBuilder.JAVA_EXTENSION.equalsIgnoreCase(extension)) return false; if (JavaBuilder.CLASS_EXTENSION.equalsIgnoreCas...
private int decodeRequest( Request req, Ajp13Packet msg ) throws IOException { boolean isSSL = false; byte bsc; int hCount = 0; /* * Read the method and translate it to a String */ bsc = msg.getByte(); req.method().setString( methodTra...
private int decodeRequest( Request req, Ajp13Packet msg ) throws IOException { boolean isSSL = false; byte bsc; int hCount = 0; /* * Read the method and translate it to a String */ bsc = msg.getByte(); req.method().setString( methodTra...
private void load() throws IOException { if (activityDefinitions == null) activityDefinitions = new ArrayList(); else activityDefinitions.clear(); if (activityPatternBindingDefinitions == null) activityPatternBindingDefinitions = new ArrayList(); else activityPatternBindingDefinitions.clear()...
private void load() throws IOException { if (activityDefinitions == null) activityDefinitions = new ArrayList(); else activityDefinitions.clear(); if (activityPatternBindingDefinitions == null) activityPatternBindingDefinitions = new ArrayList(); else activityPatternBindingDefinitions.clear()...
private UserLibrary getUserLibrary() { UserLibrary userLibrary = JavaModelManager.getUserLibraryManager().getUserLibrary(this.name); if (userLibrary == null && JavaModelManager.CP_RESOLVE_VERBOSE) { verbose_no_user_library_found(this.name); } return userLibrary; }
private UserLibrary getUserLibrary() { UserLibrary userLibrary = JavaModelManager.getUserLibraryManager().getUserLibrary(this.name); if (userLibrary == null && (JavaModelManager.CP_RESOLVE_VERBOSE || JavaModelManager.CP_RESOLVE_VERBOSE_FAILURE)) { verbose_no_user_library_found(this.name); } return userLibra...
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 void acceptProblem(CategorizedProblem problem, char[] fragmentSource, int fragmentKind) { try { IMarker marker = ResourcesPlugin.getWorkspace().getRoot().createMarker(IJavaModelMarker.TRANSIENT_PROBLEM); marker.setAttribute(IJavaModelMarker.ID, problem.getID()); marker.setAttribute(IMarker.CHAR_START, pro...
public void acceptProblem(CategorizedProblem problem, char[] fragmentSource, int fragmentKind) { try { IMarker marker = ResourcesPlugin.getWorkspace().getRoot().createMarker(IJavaModelMarker.TRANSIENT_PROBLEM); marker.setAttribute(IJavaModelMarker.ID, problem.getID()); marker.setAttribute(IMarker.CHAR_START, pro...
public CharacterEncodingSubMenu(IFrameMediator mediator) { super(mediator, MailResourceLoader.getString("menu", "mainframe", "menu_view_charset"), "menu_view_charset"); setIcon(ImageLoader.getImageIcon("stock_font_16.png")); group = new ButtonGroup(); hashtable = new Hashtable(); add(createMenuItem(n...
public CharacterEncodingSubMenu(IFrameMediator mediator) { super(mediator, MailResourceLoader.getString("menu", "mainframe", "menu_view_charset"), "menu_view_charset"); //setIcon(ImageLoader.getImageIcon("stock_font_16.png")); group = new ButtonGroup(); hashtable = new Hashtable(); add(createMenuItem...
private void checkAndSetModifiersForField(FieldBinding fieldBinding, FieldDeclaration fieldDecl) { int modifiers = fieldBinding.modifiers; if ((modifiers & AccAlternateModifierProblem) != 0) problemReporter().duplicateModifierForField(fieldBinding.declaringClass, fieldDecl); if (fieldBinding.declaringClass.i...
private void checkAndSetModifiersForField(FieldBinding fieldBinding, FieldDeclaration fieldDecl) { int modifiers = fieldBinding.modifiers; if ((modifiers & AccAlternateModifierProblem) != 0) problemReporter().duplicateModifierForField(fieldBinding.declaringClass, fieldDecl); if ((fieldBinding.declaringClass....
public String toString() { StringBuffer buffer= new StringBuffer(); IJavaElement[] roots= getElements(); buffer.append('['); for (int i= 0; i < roots.length; i++) { buffer.append(roots[i].getElementName()); if (i < (roots.length - 1)) { buffer.append(", "); //$NON-NLS-1$ } } buffer.append(']'); return b...
public String toString() { StringBuffer buffer= new StringBuffer(); IJavaElement[] roots= getElements(); buffer.append('['); for (int i= 0; i < roots.length; i++) { buffer.append(roots[i].getElementName()); if (i < (roots.length - 1)) { buffer.append(", "/*nonNLS*/); } } buffer.append(']'); return buffe...
private void buildResourceVector() throws JavaModelException { Hashtable resources = new Hashtable(); Hashtable paths = new Hashtable(); fTypes = fHierarchy.getAllTypes(); for (int i = 0; i < fTypes.length; i++) { IType type = fTypes[i]; IResource resource = type.getUnderlyingResource(); if (resource != null ...
private void buildResourceVector() throws JavaModelException { Hashtable resources = new Hashtable(); Hashtable paths = new Hashtable(); fTypes = fHierarchy.getAllTypes(); for (int i = 0; i < fTypes.length; i++) { IType type = fTypes[i]; IResource resource = type.getUnderlyingResource(); if (resource != null ...
public final ITypeBinding resolveBinding() { return getAST().getBindingResolver().resolveType(this); }
public final ITypeBinding resolveBinding() { return this.ast.getBindingResolver().resolveType(this); }
public static TypeDeclaration buildTypeDeclaration(IType type, CompilationUnitDeclaration compilationUnit, CompilationResult compilationResult) throws JavaModelException { char[] packageName = type.getPackageFragment().getElementName().toCharArray(); if (packageName != null && packageName.length > 0) { com...
public static TypeDeclaration buildTypeDeclaration(IType type, CompilationUnitDeclaration compilationUnit, CompilationResult compilationResult) throws JavaModelException { char[] packageName = type.getPackageFragment().getElementName().toCharArray(); if (packageName != null && packageName.length > 0) { com...
public String errorReportSource(ICompilationUnit compilationUnit) { //extra from the source the innacurate token //and "highlight" it using some underneath ^^^^^ //put some context around too. //this code assumes that the font used in the console is fixed size //sanity ..... if ((startPosition > endPosition...
public String errorReportSource(ICompilationUnit compilationUnit) { //extra from the source the innacurate token //and "highlight" it using some underneath ^^^^^ //put some context around too. //this code assumes that the font used in the console is fixed size //sanity ..... if ((startPosition > endPosition...
extends org.tigris.scarab.om.BaseAttributeClassPeer 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.t...
extends org.tigris.scarab.om.BaseAttributeClassPeer 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.t...
public AbstractMessage getMessage( Object uid, WorkerStatusController worker) throws Exception { // check if message was already parsed before if (aktMessage != null) { if (aktMessage.getUID().equals(uid)) { // this message is already cached // -> no need to parse it again return (AbstractMes...
public AbstractMessage getMessage( Object uid, WorkerStatusController worker) throws Exception { // check if message was already parsed before if (aktMessage != null) { if (aktMessage.getUID().equals(uid)) { // this message is already cached // -> no need to parse it again return (AbstractMes...
protected boolean isAffectedByOpenable(IJavaElementDelta delta, IJavaElement element) { // ignore changes to working copies if (element instanceof CompilationUnit && ((CompilationUnit)element).isWorkingCopy()) { return false; } // if no focus, hierarchy is affected if the element is part of the region if (this....
protected boolean isAffectedByOpenable(IJavaElementDelta delta, IJavaElement element) { // ignore changes to working copies if (element instanceof CompilationUnit && ((CompilationUnit)element).isWorkingCopy()) { return false; } // if no focus, hierarchy is affected if the element is part of the region if (this....
public boolean predicate(Object obj) { return (obj instanceof Pseudostate) && (((Pseudostate)obj).getKind() == PseudostateKind.INITIAL); }
public boolean predicate(Object obj) { return (obj instanceof Pseudostate) && (PseudostateKind.INITIAL.equals(((Pseudostate)obj).getKind())); }
public static List propertyDescriptors(int apiLevel) { return PROPERTY_DESCRIPTORS; } /** * Creates a new AST node for an annotation type declaration owned by the given * AST. By default, the type declaration is for an annotation * type of an unspecified, but legal, name; no modifiers; no javadoc; * ...
public static List propertyDescriptors(int apiLevel) { return PROPERTY_DESCRIPTORS; } /** * Creates a new AST node for an annotation type declaration owned by the given * AST. By default, the type declaration is for an annotation * type of an unspecified, but legal, name; no modifiers; no javadoc; * ...
public void insertUpdate(DocumentEvent e) { System.out.println(getClass().getName() + " insert"); Component ed = _typeField.getEditor().getEditorComponent(); Document typeDoc = ((JTextField)ed).getDocument(); if (e.getDocument() == typeDoc) setTargetType(); super.insertUpdate(e); }
public void insertUpdate(DocumentEvent e) { //System.out.println(getClass().getName() + " insert"); Component ed = _typeField.getEditor().getEditorComponent(); Document typeDoc = ((JTextField)ed).getDocument(); if (e.getDocument() == typeDoc) setTargetType(); super.insertUpdate(e); }
public void setCheckBoxMenuItem(JCheckBoxMenuItem checkBoxMenuItem) { /* *20030912, karlpeder* Method signature changed from * setCheckBoxMenuItem(JCheckBoxMenuItem,AbstractFrameView). * Else it doesn't get called during creation of menu */ super.setCheckBoxMenuItem(checkB...
public void setCheckBoxMenuItem(JCheckBoxMenuItem checkBoxMenuItem) { /* *20030912, karlpeder* Method signature changed from * setCheckBoxMenuItem(JCheckBoxMenuItem,AbstractFrameView). * Else it doesn't get called during creation of menu */ super.setCheckBoxMenuItem(checkB...
protected void executeOperation() throws JavaModelException { // project reference updated - may throw an exception if unable to write .project file updateProjectReferencesIfNecessary(); // classpath file updated - may throw an exception if unable to write .classpath file saveClasspathIfNecessary(); // p...
protected void executeOperation() throws JavaModelException { // project reference updated - may throw an exception if unable to write .project file updateProjectReferencesIfNecessary(); // classpath file updated - may throw an exception if unable to write .classpath file saveClasspathIfNecessary(); // p...
public char[] getFileName() { return CompilationUnit.this.getFileName(); } }, true /*full parse to find local elements*/); // update timestamp (might be IResource.NULL_STAMP if original does not exist) if (underlyingResource == null) { underlyingResource = getResource(); } unitInfo.timestamp = ((IFi...
public char[] getFileName() { return CompilationUnit.this.getFileName(); } }, true /*full parse to find local elements*/); // update timestamp (might be IResource.NULL_STAMP if original does not exist) if (underlyingResource == null) { underlyingResource = getResource(); } unitInfo.timestamp = ((IFi...
extends org.tigris.scarab.om.BaseDependTypePeer 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.turbi...
extends org.tigris.scarab.om.BaseDependTypePeer 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.turbi...
public void engineStart(ContextManager cm) throws TomcatException { String home=cm.getHome(); File webappD=new File(home + "/webapps"); if (! webappD.exists() || ! webappD.isDirectory()) { log("No webapps/ directory " + webappD ); return ; // nothing to set up } Enumeration en=cm.getContexts(); whi...
public void engineInit(ContextManager cm) throws TomcatException { String home=cm.getHome(); File webappD=new File(home + "/webapps"); if (! webappD.exists() || ! webappD.isDirectory()) { log("No webapps/ directory " + webappD ); return ; // nothing to set up } Enumeration en=cm.getContexts(); whil...
public IpAddress( String pName, ObjectName pNode, String pAddress ) throws MalformedObjectNameException, InvalidParentException { super( "IpAddress", pName, pNode ); if( pAddress == null || pAddress.length() == 0 ) { throw new InvalidParameterException( "There driver m...
public IpAddress( String pName, ObjectName pNode, String pAddress ) throws MalformedObjectNameException, InvalidParentException { super( "IpAddress", pName, pNode ); if( pAddress == null || pAddress.length() == 0 ) { throw new InvalidParameterException( "There IP-Addre...
public final ChildPropertyDescriptor getNameProperty() { return internalNameProperty(); } /** * Creates and returns a structural property descriptor for the * "bodyDeclaration" property declared on the given concrete node type. * * @return the property descriptor */ static final ChildListPropertyDesc...
public final ChildPropertyDescriptor getNameProperty() { return internalNameProperty(); } /** * Creates and returns a structural property descriptor for the * "bodyDeclaration" property declared on the given concrete node type. * * @return the property descriptor */ static final ChildListPropertyDesc...
public CompilationResult compilationResult() { return this.compilationResult; } /** * Bytecode generation for a method */ public void generateCode(ClassScope classScope, ClassFile classFile) { int problemResetPC = 0; classFile.codeStream.wideMode = false; // reset wideMode to false if (ignoreFur...
public CompilationResult compilationResult() { return this.compilationResult; } /** * Bytecode generation for a method */ public void generateCode(ClassScope classScope, ClassFile classFile) { int problemResetPC = 0; classFile.codeStream.wideMode = false; // reset wideMode to false if (ignoreFur...
public HeaderTableSelectionHandler(TableView view) { super("mail.headertable"); this.view = view; view.addTreeSelectionListener(this); messages = new LinkedList(); }
public HeaderTableSelectionHandler(TableView view) { super("mail.table"); this.view = view; view.addTreeSelectionListener(this); messages = new LinkedList(); }
public List getLeafRModuleOptions(Attribute attribute, boolean activeOnly) throws Exception { List rModOpts = getRModuleOptions(attribute, activeOnly); // put options in a map for searching Map optionsMap = new HashMap((int)(rModOpts.size()*1.5)); for ( int i=rModOpts.si...
public List getLeafRModuleOptions(Attribute attribute, boolean activeOnly) throws Exception { List rModOpts = getRModuleOptions(attribute, activeOnly); // put options in a map for searching Map optionsMap = new HashMap((int)(rModOpts.size()*1.5)); for ( int i=rModOpts.si...
public int requestMap(Request req) { Context context=req.getContext(); String path=req.getLookupPath(); Container container = null; String ctxP=context.getPath(); Mappings m=(Mappings)contextPaths.get(ctxP); if(debug>0) context.log( "Mapping: " + req ); container=findContainer( m, path, context, re...
public int requestMap(Request req) { Context context=req.getContext(); String path=req.getLookupPath(); Container container = null; String ctxP=context.getPath(); Mappings m=(Mappings)contextPaths.get(ctxP); if(debug>0) context.log( "Mapping: " + req ); container=findContainer( m, path, context, re...
public Resolver(String hostname) throws UnknownHostException { if (hostname == null) { hostname = FindResolver.find(); if (hostname == null) hostname = defaultResolver; } addr = InetAddress.getByName(hostname); }
public Resolver(String hostname) throws UnknownHostException { if (hostname == null) { hostname = FindResolver.find1(); if (hostname == null) hostname = defaultResolver; } addr = InetAddress.getByName(hostname); }
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (valueRequired) codeStream.aconst_null(); codeStream.recordPositionsFrom(pc, this); }
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (valueRequired) codeStream.aconst_null(); codeStream.recordPositionsFrom(pc, this.sourceStart); }
public void registerAction(IAction action) { if (disposed) return; unregisterAction(action); String commandId = action.getActionDefinitionId(); if (commandId != null) { /* * If I have a parent and I'm active, de-activate myself while * m...
public void registerAction(IAction action) { if (disposed) return; unregisterAction(action); String commandId = action.getActionDefinitionId(); if (commandId != null) { /* * If I have a parent and I'm active, de-activate myself while * m...
protected String tabString(int tab) { StringBuffer result = new StringBuffer(); for (int i = tab; i > 0; i--) { result.append(" "); //$NON-NLS-1$ } return result.toString(); }
protected String tabString(int tab) { StringBuffer result = new StringBuffer(); for (int i = tab; i > 0; i--) { result.append(" "/*nonNLS*/); } return result.toString(); }
public ExportResourcesAction(IWorkbenchWindow window, String label) { super(label); //$NON-NLS-1$ if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; tracker = new PerspectiveTracker(window, this); setActionDefiniti...
public ExportResourcesAction(IWorkbenchWindow window, String label) { super(label); if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; tracker = new PerspectiveTracker(window, this); setActionDefinitionId("org.ecli...
public TypeBinding resolveType(BlockScope scope) { // for code gen, harm the restrictiveFlag this.actualReceiverType = this.receiverType = scope.enclosingSourceType(); if ((this.codegenBinding = this.binding = scope.getBinding(token, bits & RestrictiveFlagMASK, this)).isValidBinding()) { switch (bits &...
public TypeBinding resolveType(BlockScope scope) { // for code gen, harm the restrictiveFlag this.actualReceiverType = this.receiverType = scope.enclosingSourceType(); if ((this.codegenBinding = this.binding = scope.getBinding(token, bits & RestrictiveFlagMASK, this)).isValidBinding()) { switch (bits &...
public static String id() { return "4.3"; }
public static String id() { return "4.4-snapshot-20070322-1027"; }
public JComponent getComponent() { JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); panel.add(messageController, BorderLayout.CENTER); ViewItem viewItem = getViewItem(); try { InputStream is = DiskIO .getResourceStream("org/columba/mail/action/messageframe_menu.xml"); getConta...
public JComponent getComponent() { JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); panel.add(messageController.getView(), BorderLayout.CENTER); ViewItem viewItem = getViewItem(); try { InputStream is = DiskIO .getResourceStream("org/columba/mail/action/messageframe_menu.xml"); ...
public String toStringExpression() { return "<CompleteOnName:"/*nonNLS*/ + super.toStringExpression() + ">"/*nonNLS*/; }
public String toStringExpression() { return "<CompleteOnName:" + super.toStringExpression() + ">"; //$NON-NLS-2$ //$NON-NLS-1$ }
public static final boolean isFiltering() { IWorkbenchActivitySupport support = (IWorkbenchActivitySupport) PlatformUI.getWorkbench().getAdapter( IWorkbenchActivitySupport.class); if (support == null) return false; return support .getActivityManager() .getDefinedCategoryIds() .isEmpty(); }...
public static final boolean isFiltering() { IWorkbenchActivitySupport support = (IWorkbenchActivitySupport) PlatformUI.getWorkbench().getAdapter( IWorkbenchActivitySupport.class); if (support == null) return false; return !support .getActivityManager() .getDefinedCategoryIds() .isEmpty(); ...
protected void executeOperation() throws JavaModelException { if (fMonitor != null){ if (fMonitor.isCanceled()) return; fMonitor.beginTask(Util.bind("element.reconciling"), 10); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkingCopy(); boolean wasConsistent = workingCopy.isConsistent(); JavaEle...
protected void executeOperation() throws JavaModelException { if (fMonitor != null){ if (fMonitor.isCanceled()) return; fMonitor.beginTask(Util.bind("element.reconciling"), 10); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkingCopy(); boolean wasConsistent = workingCopy.isConsistent(); JavaEle...
public void notifySourceElementRequestor(TypeDeclaration typeDeclaration, boolean notifyTypePresence) { // range check boolean isInRange = scanner.initialPosition <= typeDeclaration.declarationSourceStart && scanner.eofPosition >= typeDeclaration.declarationSourceEnd; FieldDeclaration[] fields = typeDec...
public void notifySourceElementRequestor(TypeDeclaration typeDeclaration, boolean notifyTypePresence) { // range check boolean isInRange = scanner.initialPosition <= typeDeclaration.declarationSourceStart && scanner.eofPosition >= typeDeclaration.declarationSourceEnd; FieldDeclaration[] fields = typeDec...
public PreferenceManager getPreferenceManager() { if (preferenceManager == null) { preferenceManager = new WorkbenchPreferenceManager( PREFERENCE_PAGE_CATEGORY_SEPARATOR); //Get the pages from the registry PreferencePageRegistryReader registryReader =...
public PreferenceManager getPreferenceManager() { if (preferenceManager == null) { preferenceManager = new WorkbenchPreferenceManager( PREFERENCE_PAGE_CATEGORY_SEPARATOR); //Get the pages from the registry PreferencePageRegistryReader registryReader =...
public String toString() { return "NamespaceNode(" + fPackage.getName() + ")"; //$NON-NLS-1$ //$NON-NLS-2$ }
public String toString() { return "NamespaceNode("/*nonNLS*/ + fPackage.getName() + ")"/*nonNLS*/; }
public void partActivated(IWorkbenchPart part) { updateState(part); }
public void partActivated(IWorkbenchPart part) { updateState(); }
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); preCondInitStateIndex = currentScope.methodScope().recordInitializationStates(flowInfo); LoopingFlowContext condLoopContext; FlowInfo postCondI...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); // TODO: could optimize also case where optimizedBooleanConstant is available preCondInitStateIndex = currentScope.methodScope().recordInitializati...
protected Openable[] createElements(IResource resource) { if (resource == null) return null; String extension = resource.getFileExtension(); extension = extension == null ? null : extension.toLowerCase(); if ("jar".equals(extension) || "zip".equals(extension)) { //$NON-NLS-2$ //$NON-NLS-1$ IJavaProject[] projects...
protected Openable[] createElements(IResource resource) { if (resource == null) return null; String extension = resource.getFileExtension(); extension = extension == null ? null : extension.toLowerCase(); if ("jar"/*nonNLS*/.equals(extension) || "zip"/*nonNLS*/.equals(extension)) { IJavaProject[] projects = null;...
public void drop(PartDropEvent e) { onPartDrop(e); }; }; this.page = page; this.editorArea = new EditorArea(IPageLayout.ID_EDITOR_AREA, partDropListener, page); dragTarget = new CompatibilityDragTarget(partDropListener, IWorkbenchDragDropPart.EDITOR); DragUtil.addDragTarget(null, dragTarget); }
public void drop(PartDropEvent e) { onPartDrop(e); }; }; this.page = page; this.editorArea = new EditorArea(IPageLayout.ID_EDITOR_AREA, partDropListener, page); dragTarget = new CompatibilityDragTarget(partDropListener, IWorkbenchDragDropPart.EDITOR, page.getWorkbenchWindow()); DragUtil.addDragTarg...
public void approve( ScarabUser user, boolean approved ) throws Exception { Module module = getIssue().getModule(); if (user.hasPermission(ScarabSecurity.ITEM__APPROVE, module)) { setApproved(true); if (approved) { ...
public void approve( ScarabUser user, boolean approved ) throws Exception { Module module = getIssue().getModule(); if (user.hasPermission(ScarabSecurity.ITEM__APPROVE, module)) { setApproved(true); if (approved) { ...
public TabChecklist() { super("Checklist"); _tableModel = new TableModelChecklist(this); _table.setModel(_tableModel); Font labelFont = MetalLookAndFeel.getSubTextFont(); _table.setFont(labelFont); //_table.setRowSelectionAllowed(false); _table.setIntercellSpacing(new Dimension(0, 1)); ...
public TabChecklist() { super("tab.checklist"); _tableModel = new TableModelChecklist(this); _table.setModel(_tableModel); Font labelFont = MetalLookAndFeel.getSubTextFont(); _table.setFont(labelFont); //_table.setRowSelectionAllowed(false); _table.setIntercellSpacing(new Dimension(0, 1...
private void addWebApp( ContextManager cm, File dir, String host, String name) throws TomcatException { host= unEscapeHost( host ); if(host==null) host="DEFAULT"; String path="/" + unEscapePath( name ); log("Auto-Adding " + name + " " + host + " " + path ); if( path.equals("/ROOT") ) path="";...
private void addWebApp( ContextManager cm, File dir, String host, String name) throws TomcatException { host= unEscapeHost( host ); if(host==null) host="DEFAULT"; String path="/" + unEscapePath( name ); log("Auto-Adding " + name + " " + host + " " + path ); if( path.equals("/ROOT") ) path="";...
public void execute(Worker worker) throws Exception { super.execute(worker); adapter = new FolderCommandAdapter( (FolderCommandReference[]) getReferences()); FolderCommandReference[] r = adapter.getSourceFolderReferences(); destFolder = (Folder) adapter.getDestinationFolder(); for (int i = 0; i < r...
public void execute(Worker worker) throws Exception { super.execute(worker); adapter = new FolderCommandAdapter( (FolderCommandReference[]) getReferences()); FolderCommandReference[] r = adapter.getSourceFolderReferences(); destFolder = (Folder) adapter.getDestinationFolder(); for (int i = 0; i < r...
public String toString(int tab){ StringBuffer buffer = new StringBuffer(tabString(tab)); buffer.append("Recovered field:\n"); //$NON-NLS-1$ buffer.append(fieldDeclaration.print(tab + 1, buffer)); if (this.anonymousTypes != null) { for (int i = 0; i < this.anonymousTypeCount; i++){ buffer.append("\n"); //$NON-N...
public String toString(int tab){ StringBuffer buffer = new StringBuffer(tabString(tab)); buffer.append("Recovered field:\n"); //$NON-NLS-1$ fieldDeclaration.print(tab + 1, buffer); if (this.anonymousTypes != null) { for (int i = 0; i < this.anonymousTypeCount; i++){ buffer.append("\n"); //$NON-NLS-1$ buffer...
public String toString(){ return "indexing " + resource.getName(); //$NON-NLS-1$ }
public String toString(){ return "indexing "/*nonNLS*/ + resource.getName(); }
extends org.tigris.scarab.om.BaseAttachmentTypePeer 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.t...
extends org.tigris.scarab.om.BaseAttachmentTypePeer 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.t...
public Constant resolveCase( BlockScope scope, TypeBinding switchExpressionType, SwitchStatement switchStatement) { scope.switchCase = this; // record entering in a switch case block if (constantExpression == null) { // remember the default case into the associated switch statement if (switch...
public Constant resolveCase( BlockScope scope, TypeBinding switchExpressionType, SwitchStatement switchStatement) { scope.enclosingCase = this; // record entering in a switch case block if (constantExpression == null) { // remember the default case into the associated switch statement if (swi...
public static void main(String[] args) throws Exception { Logger j = Logger.getLogger("org.apache.log4j.joran"); j.setAdditivity(false); j.setLevel(Level.WARN); ConsoleAppender a = new ConsoleAppender(); a.setLayout(new PatternLayout("%d %level %c - %m%n")); a.setName("console"); a.activat...
public static void main(String[] args) throws Exception { Logger j = Logger.getLogger("org.apache.log4j.joran"); j.setAdditivity(false); j.setLevel(Level.WARN); ConsoleAppender a = new ConsoleAppender(); a.setLayout(new PatternLayout("%d %level %c - %m%n")); a.setName("console"); a.activat...
public boolean isInterface() { return this.binding.isInterface(); }
public boolean isInterface() { return this.binding.isInterface() && !this.binding.isTypeVariable() && !this.binding.isWildcard(); }
public int getNodeType() { return SWITCH_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { SwitchStatement result = new SwitchStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); ...
public int getNodeType() { return SWITCH_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { SwitchStatement result = new SwitchStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); ...
public void activateOptions() { PatternParser patternParser = new PatternParser(conversionPattern); if(this.repository != null) { patternParser.setConverterRegistry((Map) this.repository.getObject(PATTERN_RULE_REGISTRY)); } head = patternParser.parse(); handlesExceptions = PatternConverter.c...
public void activateOptions() { PatternParser patternParser = new PatternParser(conversionPattern, repository); if(this.repository != null) { patternParser.setConverterRegistry((Map) this.repository.getObject(PATTERN_RULE_REGISTRY)); } head = patternParser.parse(); handlesExceptions = Patter...
public static Rule getRule(Stack stack) { if (stack.size() < 2) { throw new IllegalArgumentException("Invalid AND rule - expected two rules but provided " + stack.size()); } Object o2 = stack.pop(); Object o1 = stack.pop(); if ((o2 instanceof Rule) && (o1 instanceof Rule)) { Rul...
public static Rule getRule(Stack stack) { if (stack.size() < 2) { throw new IllegalArgumentException("Invalid AND rule - expected two rules but received " + stack.size()); } Object o2 = stack.pop(); Object o1 = stack.pop(); if ((o2 instanceof Rule) && (o1 instanceof Rule)) { Rul...
private final static void declareImages() { declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_PIN_EDITOR, PATH_ETOOL + "pin_editor.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_PIN_EDITOR_DISABLED, PATH_DTOOL + "pin_editor.gif", false);...
private final static void declareImages() { declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_PIN_EDITOR, PATH_ETOOL + "pin_editor.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_PIN_EDITOR_DISABLED, PATH_DTOOL + "pin_editor.gif", false);...
public void reset() { for (int i = 0, max = classpaths.length; i < max; i++) { classpaths[i].reset(); } } }
public void cleanup() { for (int i = 0, max = classpaths.length; i < max; i++) { classpaths[i].reset(); } } }
private void generateInnerClassInfos(IType type, IBinaryType typeInfo, Hashtable newElements, Vector children) { // Add inner types // If the current type is an inner type, innerClasses returns // an extra entry for the current type. This entry must be removed. // Can also return an entry for the enclosing type of...
private void generateInnerClassInfos(IType type, IBinaryType typeInfo, Hashtable newElements, Vector children) { // Add inner types // If the current type is an inner type, innerClasses returns // an extra entry for the current type. This entry must be removed. // Can also return an entry for the enclosing type of...
public void connect(ServerAddress serverAddress, ThreadGroup threadGroup) throws IOException { this.serverAddress = serverAddress; boolean tracing = log.isTraceEnabled(); if (tracing) log.trace("Connecting to : " + serverAddress); socket = new Socket(serve...
public void connect(ServerAddress serverAddress, ThreadGroup threadGroup) throws IOException { this.serverAddress = serverAddress; boolean tracing = log.isTraceEnabled(); if (tracing) log.trace("Connecting to : " + serverAddress); socket = new Socket(serve...
public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return new ParameterizedGenericMethodBinding(originalMethod, this,...
public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalM...
protected void convert() { // rename "Mail" to "ThreePaneMail XmlElement root = getRoot(); String version = root.getAttribute("version"); if (initialVersionWasApplied) { ColumbaLogger.log.info("converting configuration to new version..."); XmlElement viewlis...
protected void convert() { // rename "Mail" to "ThreePaneMail XmlElement root = getRoot(); String version = root.getAttribute("version"); if (initialVersionWasApplied) { ColumbaLogger.log.fine("converting configuration to new version..."); XmlElement viewlis...
public void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde) { DrawingView view = (DrawingView) dsde.getDragSourceContext().getComponent(); log("DragSourceDropEvent-dragDropEnd"); if (dsde.getDropSuccess() == true) { if (dsde.getDropAction() == DnDConstants.ACTION_MOVE) { log("DragSourceDrop...
public void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde) { DrawingView view = (DrawingView) dsde.getDragSourceContext().getComponent(); log("DragSourceDropEvent-dragDropEnd"); if (dsde.getDropSuccess() == true) { if (dsde.getDropAction() == DnDConstants.ACTION_MOVE) { log("DragSourceDrop...
public void mouseClicked(MouseEvent event) { if (!SwingUtilities.isLeftMouseButton(event)) { return; } URL url = extractURL(event); if (url == null) { return; } getUrlObservable().setUrl(new ColumbaURL(url)); //URLController c = new URLController(); if (url.getProtocol().equalsIgn...
public void mouseClicked(MouseEvent event) { if (!SwingUtilities.isLeftMouseButton(event)) { return; } URL url = extractURL(event); if (url == null) { return; } getUrlObservable().setUrl(new ColumbaURL(url)); //URLController c = new URLController(); if (url.getProtocol().equalsIgn...
private void buildMemberTypes(AccessRestriction accessRestriction) { SourceTypeBinding sourceType = this.referenceContext.binding; ReferenceBinding[] memberTypeBindings = Binding.NO_MEMBER_TYPES; if (this.referenceContext.memberTypes != null) { int length = this.referenceContext.memberTypes.length; memb...
private void buildMemberTypes(AccessRestriction accessRestriction) { SourceTypeBinding sourceType = this.referenceContext.binding; ReferenceBinding[] memberTypeBindings = Binding.NO_MEMBER_TYPES; if (this.referenceContext.memberTypes != null) { int length = this.referenceContext.memberTypes.length; memb...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position, divergePC; // codegen here if (this.assertionSyntheticFieldBinding != null) { Label assertionActivationLabel = new Label(codeStream); codeStream....
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position, divergePC; // codegen here if (this.assertionSyntheticFieldBinding != null) { Label assertionActivationLabel = new Label(codeStream); codeStream....
public void setComment(String javadocComment) { if (javadocComment == null) { throw new IllegalArgumentException(); } char[] source = javadocComment.toCharArray(); Scanner scanner = new Scanner(true, true, false, false, false, null, null); scanner.resetTo(0, source.length); scanner.setSource(source); ...
public void setComment(String javadocComment) { if (javadocComment == null) { throw new IllegalArgumentException(); } char[] source = javadocComment.toCharArray(); Scanner scanner = this.getAST().scanner; scanner.resetTo(0, source.length); scanner.setSource(source); try { int token; boolean only...
public String getHandleMemento(){ StringBuffer buff= new StringBuffer(((JavaElement)getParent()).getHandleMemento()); buff.append(getElementName()); if (this.occurrenceCount > 1) { buff.append(JEM_COUNT); buff.append(this.occurrenceCount); } return buff.toString(); }
public String getHandleMemento(){ StringBuffer buff= new StringBuffer(((JavaElement)getParent()).getHandleMemento()); escapeMementoName(buff, getElementName()); if (this.occurrenceCount > 1) { buff.append(JEM_COUNT); buff.append(this.occurrenceCount); } return buff.toString(); }
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ LabeledStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescrip...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ LabeledStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescrip...
public TypeBinding literalType(BlockScope scope) { return FloatBinding; }
public TypeBinding literalType(BlockScope scope) { return TypeBinding.FLOAT; }
public IVariableBinding resolveBinding() { return this.ast.getBindingResolver().resolveMember(this); } /* (omit javadoc for this method) * Method declared on ASTNode. */ int memSize() { return super.memSize() + 3 * 4; } /* (omit javadoc for this method) * Method declared on ASTNode. */ int treeSiz...
public IMethodBinding resolveBinding() { return this.ast.getBindingResolver().resolveMember(this); } /* (omit javadoc for this method) * Method declared on ASTNode. */ int memSize() { return super.memSize() + 3 * 4; } /* (omit javadoc for this method) * Method declared on ASTNode. */ int treeSize(...
public void selectionChanged(SelectionChangedEvent e) { TreeSelectionChangedEvent ev = (TreeSelectionChangedEvent) e; if ( ev.getSelected() != null && ev.getSelected().length == 1 && ev.getSelected()[0].getAllowsChildren()) { setEnabled(true); } else { setEnabled(false); } }
public void selectionChanged(SelectionChangedEvent e) { TreeSelectionChangedEvent ev = (TreeSelectionChangedEvent) e; if ( ev.getSelected() != null && ev.getSelected().length == 1 && ev.getSelected()[0] != null && ev.getSelected()[0].getAllowsChildren()) { setEnabled(true); } else { setEnabled(false); ...
public RemoteSearchEngine(Folder folder) { this.folder = folder; rootFolder = ((IMAPFolder) folder).getImapRootFolder(); //imap = rootFolder.getImapServerConnection(); }
public RemoteSearchEngine(Folder folder) { this.folder = folder; rootFolder = (IMAPRootFolder) ((IMAPFolder) folder).getRootFolder(); //imap = rootFolder.getImapServerConnection(); }
public static X1Logger getX1Logger(String name) { return ((X1Logger) Logger.getLogger(name, factory)); }
public static X1Logger getX1Logger(String name) { return ((X1Logger) Category.getInstance(name, factory)); }
private void loadFromExtension() throws CoreException { id = configElement.getAttribute(IWorkbenchRegistryConstants.ATT_ID); String category = configElement.getAttribute(IWorkbenchRegistryConstants.TAG_CATEGORY); // Sanity check. if ((configElement.getAttribute(IWorkbenchReg...
private void loadFromExtension() throws CoreException { id = configElement.getAttribute(IWorkbenchRegistryConstants.ATT_ID); String category = configElement.getAttribute(IWorkbenchRegistryConstants.TAG_CATEGORY); // Sanity check. if ((configElement.getAttribute(IWorkbenchReg...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); preCondInitStateIndex = currentScope.methodScope().recordInitializationStates(flowInfo); LoopingFlowContext condLoopContext; FlowInfo postCondI...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); preCondInitStateIndex = currentScope.methodScope().recordInitializationStates(flowInfo); LoopingFlowContext condLoopContext; FlowInfo postCondI...
private void addWebApp( ContextManager cm, File dir, String host, String name) throws TomcatException { host= unEscapeHost( host ); if(host==null) host="DEFAULT"; String path="/" + unEscapePath( name ); if( path.equals("/ROOT") ) path=""; Hashtable loaded=(Hashtable)hosts.get(host); if( loa...
private void addWebApp( ContextManager cm, File dir, String host, String name) throws TomcatException { host= unEscapeHost( host ); if(host==null) host="DEFAULT"; String path="/" + unEscapePath( name ); if( path.equals("/ROOT") ) path=""; Hashtable loaded=(Hashtable)hosts.get(host); if( loa...
protected void fillEditorTable() { editorTable.removeAll(); FileEditorMapping resourceType = getSelectedResourceType(); if (resourceType != null) { IEditorDescriptor[] array = resourceType.getEditors(); for (int i = 0; i < array.length; i++) { IEditorD...
protected void fillEditorTable() { editorTable.removeAll(); FileEditorMapping resourceType = getSelectedResourceType(); if (resourceType != null) { IEditorDescriptor[] array = resourceType.getEditors(); for (int i = 0; i < array.length; i++) { IEditorD...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = (FolderCommandReference[]) frameMediator .getSelectionManager().getSelection("mail.tree"); MessageFolder folder = (MessageFolder) r[0].getFolder(); if (folder == null) { return; } FolderItem...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = (FolderCommandReference[]) frameMediator .getSelectionManager().getSelection("mail.tree"); MessageFolder folder = (MessageFolder) r[0].getFolder(); if (folder == null) { return; } FolderItem...
public int getIndexOfChild(Object parent, Object child) { TestSuite suite= isTestSuite(parent); if (suite != null) { int i= 0; for (Enumeration e= suite.tests(); e.hasMoreElements(); i++) { if (child.equals((Test)e.nextElement())) return i; } } return -1; }
public int getIndexOfChild(Object parent, Object child) { TestSuite suite= isTestSuite(parent); if (suite != null) { int i= 0; for (Enumeration e= suite.tests(); e.hasMoreElements(); i++) { if (child.equals(e.nextElement())) return i; } } return -1; }
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((this.bits & ASTNode.IsReachable) == 0) { return; } int pc = codeStream.position; // labels management BranchLabel actionLabel = new BranchLabel(codeStream); if (this.action != null) actionLabel.tagBits |= BranchLabel.USED; actionL...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((this.bits & ASTNode.IsReachable) == 0) { return; } int pc = codeStream.position; // labels management BranchLabel actionLabel = new BranchLabel(codeStream); if (this.action != null) actionLabel.tagBits |= BranchLabel.USED; actionL...
public static CompilationUnit convertCompilationUnit( int level, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration, char[] source, Map options, boolean isResolved, org.eclipse.jdt.internal.core.CompilationUnit workingCopy, IProgressMonitor monitor) { ASTConv...
public static CompilationUnit convertCompilationUnit( int level, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration, char[] source, Map options, boolean isResolved, org.eclipse.jdt.internal.core.CompilationUnit workingCopy, IProgressMonitor monitor) { ASTConv...