buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private void init() throws IOException { if(context!=null) return; boolean clientAuth=defaultClientAuth; try { String keyStoreFile=(String)attributes.get("keystore"); if(keyStoreFile==null) keyStoreFile=defaultKeyStoreFile; String keyPass=(String)attributes.get("keypass"); ...
private void init() throws IOException { if(context!=null) return; boolean clientAuth=defaultClientAuth; try { String keyStoreFile=(String)attributes.get("keystore"); if(keyStoreFile==null) keyStoreFile=defaultKeyStoreFile; String keyPass=(String)attributes.get("keypass"); ...
public PackageFragmentInfo() { fNonJavaResources = null; } /** */ boolean containsJavaResources() { return fChildren.length != 0; } /** * Returns an array of non-java resources contained in the receiver. */ Object[] getNonJavaResources(IResource underlyingResource, PackageFragmentRoot rootHandle) { Object[] nonJa...
public PackageFragmentInfo() { fNonJavaResources = null; } /** */ boolean containsJavaResources() { return fChildren.length != 0; } /** * Returns an array of non-java resources contained in the receiver. */ Object[] getNonJavaResources(IResource underlyingResource, PackageFragmentRoot rootHandle) { Object[] nonJa...
protected void readBinaryChildren(HashMap newElements, IBinaryType typeInfo) { ArrayList childrenHandles = new ArrayList(); BinaryType type = null; try { type = (BinaryType) this.classFile.getType(); if (typeInfo == null) { typeInfo = (IBinaryType) newElements.get(type); if (typeInfo == null) { // crea...
protected void readBinaryChildren(HashMap newElements, IBinaryType typeInfo) { ArrayList childrenHandles = new ArrayList(); BinaryType type = null; try { type = (BinaryType) this.classFile.getType(); if (typeInfo == null) { typeInfo = (IBinaryType) newElements.get(type); if (typeInfo == null) { // crea...
public void init(ServletConfig conf) throws ServletException { throw new UnavailableException("Permanently Unavailable",-1); }
public void init(ServletConfig conf) throws ServletException { throw new UnavailableException("Permanently Unavailable"); }
public Rectangle getTabArea() { return Geometry.toDisplay(paneFolder.getControl().getParent(), paneFolder.getTitleArea()); }
public Rectangle getTabArea() { return Geometry.toDisplay(paneFolder.getControl(), paneFolder.getTitleArea()); }
public ResourceWorkingSetPage() { super("resourceWorkingSetPage", WorkbenchMessages.getString("ResourceWorkingSetPage.title"), WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_WIZBAN_RESOURCEWORKINGSET_WIZ)); //$NON-NLS-1$ $NON-NLS-2$ setDescription(WorkbenchMessages.getString("ResourceWorkingSetP...
public ResourceWorkingSetPage() { super("resourceWorkingSetPage", WorkbenchMessages.getString("ResourceWorkingSetPage.title"), WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_WIZBAN_RESOURCEWORKINGSET_WIZ)); //$NON-NLS-1$ //$NON-NLS-2$ setDescription(WorkbenchMessages.getString("ResourceWorkingSe...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ BlockComment(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ BlockComment(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors...
public String getPatternName(){ return "MethodReferencePattern: "/*nonNLS*/; }
public String getPatternName(){ return "MethodReferencePattern: "; //$NON-NLS-1$ }
public String getRegisteredName() { return descriptor.getLabel(); }
public String getRegisteredName() { return viewSite.getRegisteredName(); }
protected void executeOperation() throws JavaModelException { if (this.progressMonitor != null){ if (this.progressMonitor.isCanceled()) throw new OperationCanceledException(); this.progressMonitor.beginTask(Util.bind("element.reconciling"), 2); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkin...
protected void executeOperation() throws JavaModelException { if (this.progressMonitor != null){ if (this.progressMonitor.isCanceled()) throw new OperationCanceledException(); this.progressMonitor.beginTask(Util.bind("element.reconciling"), 2); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkin...
public ColorMessageMenu(FrameMediator controller) { super(controller, MailResourceLoader.getString("dialog", "color", "menu_color_message")); createSubMenu(); ((MailFrameMediator) controller).registerTableSelectionListener(this); }
public ColorMessageMenu(FrameMediator controller) { super(controller, MailResourceLoader.getString("dialog", "color", "menu_color_message"),"menu_color_message"); createSubMenu(); ((MailFrameMediator) controller).registerTableSelectionListener(this); }
public void notifySourceElementRequestor(AbstractMethodDeclaration methodDeclaration) { // range check boolean isInRange = scanner.initialPosition <= methodDeclaration.declarationSourceStart && scanner.eofPosition >= methodDeclaration.declarationSourceEnd; if (methodDeclaration.isClinit()) { this.visitI...
public void notifySourceElementRequestor(AbstractMethodDeclaration methodDeclaration) { // range check boolean isInRange = scanner.initialPosition <= methodDeclaration.declarationSourceStart && scanner.eofPosition >= methodDeclaration.declarationSourceEnd; if (methodDeclaration.isClinit()) { this.visitI...
public void actionPerformed(ActionEvent e) { remove(index); } }); /* c.gridx = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.NORTHEAST; gridbag.setConstraints( removeButton, c ); panel.add( removeButton ); */ JPanel buttonPanel = new JPane...
public void actionPerformed(ActionEvent e) { remove(index); } }); /* c.gridx = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.NORTHEAST; gridbag.setConstraints( removeButton, c ); panel.add( removeButton ); */ JPanel buttonPanel = new JPane...
private void buildForProject(JavaProject project, ArrayList potentialSubtypes, org.eclipse.jdt.core.ICompilationUnit[] workingCopies, HashSet localTypes, IProgressMonitor monitor) throws JavaModelException { // copy vectors into arrays int openablesLength = potentialSubtypes.size(); Openable[] openables = new Openab...
private void buildForProject(JavaProject project, ArrayList potentialSubtypes, org.eclipse.jdt.core.ICompilationUnit[] workingCopies, HashSet localTypes, IProgressMonitor monitor) throws JavaModelException { // copy vectors into arrays int openablesLength = potentialSubtypes.size(); Openable[] openables = new Openab...
public String getTextForAction(String command) throws IllegalArgumentException { if (command == null) throw new IllegalArgumentException(); String text = null; Map commandMap = getKeyMachine().getCommandMap(); SortedSet keySequenceSet = (SortedSet) commandMap.get(command); if (keySequenceSet !=...
public String getTextForAction(String command) throws IllegalArgumentException { if (command == null) throw new IllegalArgumentException(); String text = null; Map commandMap = getKeyMachine().getCommandMap(); SortedSet keySequenceSet = (SortedSet) commandMap.get(command); if (keySequenceSet !=...
protected void initInsertSQL() { StringBuffer sql = new StringBuffer(250); sql.append(SQLUtil.INSERT_INTO) .append(entity.getTableName()) .append(" ("); SQLUtil.getColumnNamesClause(insertFields, sql); sql.append(')') .append(SQLUtil.VALUES).append('('); ...
protected void initInsertSQL() { StringBuffer sql = new StringBuffer(250); sql.append(SQLUtil.INSERT_INTO) .append(entity.getQualifiedTableName()) .append(" ("); SQLUtil.getColumnNamesClause(insertFields, sql); sql.append(')') .append(SQLUtil.VALUES).append('('...
public TabToDo() { super("ToDoItem"); setLayout(new BorderLayout()); // JPanel buttonPane = new JPanel(); // buttonPane.setFont(new Font("Dialog", Font.PLAIN, 9)); // buttonPane.setLayout(new FlowLayout()); // buttonPane.add(_newButton); // _newButton.setFont(new Font("Dialog", Font.PLAIN,...
public TabToDo() { super("tab.todo-item"); setLayout(new BorderLayout()); // JPanel buttonPane = new JPanel(); // buttonPane.setFont(new Font("Dialog", Font.PLAIN, 9)); // buttonPane.setLayout(new FlowLayout()); // buttonPane.add(_newButton); // _newButton.setFont(new Font("Dialog", Font.P...
public boolean implementsMethod(MethodBinding method) { return this.type.implementsMethod(method); // erasure } void initialize(ReferenceBinding someType, TypeBinding[] someArguments) { this.type = someType; this.sourceName = someType.sourceName; this.compoundName = someType.compoundName; this.fPackage = ...
public boolean implementsMethod(MethodBinding method) { return this.type.implementsMethod(method); // erasure } void initialize(ReferenceBinding someType, TypeBinding[] someArguments) { this.type = someType; this.sourceName = someType.sourceName; this.compoundName = someType.compoundName; this.fPackage = ...
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...
private FieldBinding resolveTypeFor(FieldBinding field) { if ((field.modifiers & ExtraCompilerModifiers.AccUnresolved) == 0) return field; if (this.scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5) { if ((field.getAnnotationTagBits() & TagBits.AnnotationDeprecated) != 0) field.modifiers |= Cla...
private FieldBinding resolveTypeFor(FieldBinding field) { if ((field.modifiers & ExtraCompilerModifiers.AccUnresolved) == 0) return field; if (this.scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5) { if ((field.getAnnotationTagBits() & TagBits.AnnotationDeprecated) != 0) field.modifiers |= Cla...
private void fillMenu(IContributionManager innerMgr) { // Remove all. innerMgr.removeAll(); if (this.enabled) { // Add new project .. innerMgr.add(newProjectAction); // Get visible actions. List actions = null; IWorkbenchPage page = window.getActivePage(); if (page != null) // get a copy of t...
private void fillMenu(IContributionManager innerMgr) { // Remove all. innerMgr.removeAll(); if (this.enabled) { // Add new project .. innerMgr.add(newProjectAction); // Get visible actions. List actions = null; IWorkbenchPage page = window.getActivePage(); if (page != null) // get a copy of t...
package org.apache.log4j.spi; package org.log4j.spi; import java.util.Properties; /** Implemented by classes capable of configuring log4j using Java properties files. @since 0.9.2 @author Anders Kristensen */ public interface PropertyConfiguratorInterface { /** Interprets the specified Proper...
package org.apache.log4j.spi; package org.apache.log4j.spi; import java.util.Properties; /** Implemented by classes capable of configuring log4j using Java properties files. @since 0.9.2 @author Anders Kristensen */ public interface PropertyConfiguratorInterface { /** Interprets the specified...
public String toString(int tab){ /* slow code */ String s = tabString(tab); s = s + "case "/*nonNLS*/ + constantExpression.toStringExpression() + " : "/*nonNLS*/ ; return s;}
public String toString(int tab){ /* slow code */ String s = tabString(tab); s = s + "case " + constantExpression.toStringExpression() + " : " ; //$NON-NLS-1$ //$NON-NLS-2$ return s;}
public byte [] getSignature() { return signature; } void rrToWire(DataByteOutputStream out, Compression c) throws IOException { if (signature == null) return; out.writeShort(covered); out.writeByte(alg); out.writeByte(labels); out.writeInt(origttl); out.writeInt((int)(expire.getTime() / 1000)); out.writeInt...
public byte [] getSignature() { return signature; } void rrToWire(DataByteOutputStream out, Compression c) throws IOException { if (signature == null) return; out.writeShort(covered); out.writeByte(alg); out.writeByte(labels); out.writeInt(origttl); out.writeInt((int)(expire.getTime() / 1000)); out.writeInt...
extends BaseTurbineUser package org.tigris.scarab.om; // JDK classes import java.util.*; // Turbine classes import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.ObjectUtils; import org.apache.turbine.util.StringUtils; i...
extends BaseTurbineUser package org.tigris.scarab.om; // JDK classes import java.util.*; // Turbine classes import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.ObjectUtils; import org.apache.turbine.util.StringUtils; i...
public TabConstraints() { super ("Constraints");
public TabConstraints() { super ("tab.constraints");
public void complainOnRedundantFinalAssignments( FlowInfo flowInfo, BlockScope scope) { for (int i = 0; i < assignCount; i++) { Reference ref; if ((ref = finalAssignments[i]).isFieldReference()) { // final field if (flowInfo.isPotentiallyAssigned(ref.fieldBinding())) { scope.problemReporter()....
public void complainOnRedundantFinalAssignments( FlowInfo flowInfo, BlockScope scope) { for (int i = 0; i < assignCount; i++) { Reference ref; if (((ref = finalAssignments[i]).bits & BindingIds.FIELD) != 0) { // final field if (flowInfo.isPotentiallyAssigned(ref.fieldBinding())) { scope.proble...
private final void convertActionToItem(final IConfigurationElement element, final List warningsToLog, final ParameterizedCommand command, final String imageStyle, final LegacyLocationInfo locationInfo, final Expression visibleWhenExpression) { final String commandId = command.getId(); // Read the id attr...
private final void convertActionToItem(final IConfigurationElement element, final List warningsToLog, final ParameterizedCommand command, final String imageStyle, final LegacyLocationInfo locationInfo, final Expression visibleWhenExpression) { final String commandId = command.getId(); // Read the id attr...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); Constant condConstant = this.condition.constant; preCondInitStateIndex = currentScope.methodScope().recordInitializationStates(flowInfo); L...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); Constant condConstant = this.condition.constant; preCondInitStateIndex = currentScope.methodScope().recordInitializationStates(flowInfo); L...
public EditorReference(EditorManager manager, IEditorInput input, EditorDescriptor desc) { this.manager = manager; initListenersAndHandlers(); restoredInput = input; init(desc.getId(), desc.getLabel(), "", desc.getImageDescriptor(), desc.getLabel(), ""); //$NON-NLS-1$//$NON-NLS-2$ ...
public EditorReference(EditorManager manager, IEditorInput input, EditorDescriptor desc) { this.manager = manager; initListenersAndHandlers(); restoredInput = input; init(desc.getId(), desc.getLabel(), "", desc.getImageDescriptor(), desc.getLabel(), ""); //$NON-NLS-1$//$NON-NLS-2$ ...
public void setReturnParameter(MOperation operation, MParameter newReturnParameter) { Iterator params = operation.getParameters().iterator(); String name = "return"; while (params.hasNext()) { MParameter parameter = (MParameter)params.next(); if ((parameter.getKind()).equals(MParamet...
public void setReturnParameter(MOperation operation, MParameter newReturnParameter) { Iterator params = operation.getParameters().iterator(); String name = "return"; while (params.hasNext()) { MParameter parameter = (MParameter)params.next(); if ((parameter.getKind()).equals(MParamet...
public DefaultViewPresentation(Composite parent, IStackPresentationSite newSite) { super(new PaneFolder(parent, SWT.BORDER), newSite); PaneFolder tabFolder = getTabFolder(); preferenceStore.addPropertyChangeListener(propertyChangeListener); apiPreferenceStore.addPropertyChangeListener(propertyChangeListe...
public DefaultViewPresentation(Composite parent, IStackPresentationSite newSite) { super(new PaneFolder(parent, SWT.BORDER), newSite); PaneFolder tabFolder = getTabFolder(); preferenceStore.addPropertyChangeListener(propertyChangeListener); apiPreferenceStore.addPropertyChangeListener(propertyChangeListe...
public String toString() { if (string == null) { final StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append("[activePartId="); //$NON-NLS-1$ stringBuffer.append(activePartId); stringBuffer.append("activeShell="); //$NON-NLS-1$ string...
public String toString() { if (string == null) { final StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append("[activePartId="); //$NON-NLS-1$ stringBuffer.append(activePartId); stringBuffer.append(",activeShell="); //$NON-NLS-1$ strin...
public ProjectResourceCopier(IJavaProject project, JavaDevelopmentContextImpl devContext, BuildNotifier notifier, float totalAvailableProgress){ this.project = project; this.devContext = devContext; this.projectRsc = this.project.getProject(); this.workspace = this.projectRsc.getWorkspace(); this.root = this.wor...
public ProjectResourceCopier(IJavaProject project, JavaDevelopmentContextImpl devContext, BuildNotifier notifier, float totalAvailableProgress){ this.project = project; this.devContext = devContext; this.projectRsc = this.project.getProject(); this.workspace = this.projectRsc.getWorkspace(); this.root = this.wor...
public void execute(Worker worker) throws Exception { ColumbaLogger.log.debug("reference="+getReferences(Command.UNDOABLE_OPERATION)); FolderCommandReference[] r = (FolderCommandReference[]) getReferences(Command.FIRST_EXECUTION); if ( r == null ) return; treeNode = (FolderTreeNode) r[0].getFolder(); ...
public void execute(Worker worker) throws Exception { ColumbaLogger.log.debug("reference="+getReferences(Command.UNDOABLE_OPERATION)); FolderCommandReference[] r = (FolderCommandReference[]) getReferences(Command.FIRST_EXECUTION); if ( r == null ) return; treeNode = (FolderTreeNode) r[0].getFolder(); ...
private boolean showAttachmentsInlineEnabled() { XmlElement gui = MailConfig.getInstance().get("options").getElement( "/options/gui"); XmlElement messageviewer = gui.getElement("messageviewer"); if (messageviewer == null) { messageviewer = gui.addSubElement("messageviewer"); } DefaultItem item = new...
private boolean showAttachmentsInlineEnabled() { XmlElement gui = MailConfig.getInstance().get("options").getElement( "/options/gui"); XmlElement messageviewer = gui.getElement("messageviewer"); if (messageviewer == null) { messageviewer = gui.addSubElement("messageviewer"); } DefaultItem item = new...
static public void main(String[] args) { if(args.length != 3) { usage("Wrong number of arguments."); } String tcfBindingName = args[0]; String topicBindingName = args[1]; PropertyConfigurator.configure(args[2]); LoggerRepository rep = LogManager.getLoggerRepository(); if(r...
static public void main(String[] args) { if(args.length != 3) { usage("Wrong number of arguments."); } String tcfBindingName = args[0]; String topicBindingName = args[1]; PropertyConfigurator.configure(args[2]); LoggerRepository rep = LogManager.getLoggerRepository(); if(r...
public void bind(MethodScope scope, TypeBinding typeBinding, boolean used) { if (this.type != null) this.type.binding = typeBinding; // record the resolved type into the type reference int modifierFlag = this.modifiers; if ((this.binding = scope.duplicateName(this.name)) != null) { //the name already ex...
public void bind(MethodScope scope, TypeBinding typeBinding, boolean used) { if (this.type != null) this.type.resolvedType = typeBinding; // record the resolved type into the type reference int modifierFlag = this.modifiers; if ((this.binding = scope.duplicateName(this.name)) != null) { //the name alrea...
public int requestMap( Request req ) { Handler wrapper=(Handler)req.getHandler(); // log( "Try: " + req ); if( wrapper!=null && ! "jsp".equals( wrapper.getName()) && wrapper.getPath() == null) return 0; // XXX jsp handler is still needed if( wrapper==null ) return 0; Context ctx= req.getC...
public int requestMap( Request req ) { Handler wrapper=(Handler)req.getHandler(); // log( "Try: " + req ); if( wrapper!=null && ! "jsp".equals( wrapper.getName()) && wrapper.getPath() == null) return 0; // XXX jsp handler is still needed if( wrapper==null ) return 0; Context ctx= req.getC...
private void startDrag(Object toDrag, Rectangle dragRect, Point position, boolean usingKeyboard) { WorkbenchPage page = wbw.getActiveWorkbenchPage(); Perspective persp = page.getActivePerspective(); // Prevent dragging non-movable refs out of a minimized stack if (toDr...
private void startDrag(Object toDrag, Rectangle dragRect, Point position, boolean usingKeyboard) { WorkbenchPage page = wbw.getActiveWorkbenchPage(); Perspective persp = page.getActivePerspective(); // Prevent dragging non-movable refs out of a minimized stack if (toDr...
public PropPanelInteraction() { super("Interaction", _interactionIcon, 2); addCaption(Argo.localize("UMLMenu", "label.name"),1,0,0); addField(nameField,1,0,0); addCaption(Argo.localize("UMLMenu", "label.stereotype"),2,0,1); addField(stereotypeBox,2,0,0); // no namespace since this should...
public PropPanelInteraction() { super("Interaction", _interactionIcon, 2); addCaption(Argo.localize("UMLMenu", "label.name"),1,0,0); addField(nameField,1,0,0); addCaption(Argo.localize("UMLMenu", "label.stereotype"),2,0,1); addField(stereotypeBox,2,0,0); // no namespace since this should...
public Logger makeNewLoggerInstance(String name) { return new Category(name); }
public Logger makeNewLoggerInstance(String name) { return new Logger(name); }
public static String SHOW_MULTIPLE_EDITOR_TABS = "SHOW_MULTIPLE_EDITOR_TABS"; //$NON-NLS-1$ }
public static final String SHOW_MULTIPLE_EDITOR_TABS = "SHOW_MULTIPLE_EDITOR_TABS"; //$NON-NLS-1$ }
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ LineComment(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ LineComment(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(...
public void load() throws Exception { LOG.fine("loading header-cache=" + headerFile); try { reader = new ObjectReader(headerFile); int capacity = ((Integer) reader.readObject()).intValue(); LOG.fine("capacity=" + capacity); boolean needToRelease = false; headerList = new HeaderList(capacity); ...
public void load() throws Exception { LOG.fine("loading header-cache=" + headerFile); try { reader = new ObjectReader(headerFile); int capacity = ((Integer) reader.readObject()).intValue(); LOG.fine("capacity=" + capacity); boolean needToRelease = false; headerList = new HeaderList(capacity); ...
public void addSecureEndpoint( int port, InetAddress addr, String hostname, String keyFile, String keyPass ) { if(debug>0) log( "addSecureConnector " + port + " " + addr + " " + hostname ); PoolTcpConnector sc=new PoolTcpConnector(); sc.setServer( contextM ); sc.setAttribute( "vhost_port" , new...
public void addSecureEndpoint( int port, InetAddress addr, String hostname, String keyFile, String keyPass ) { if(debug>0) log( "addSecureConnector " + port + " " + addr + " " + hostname ); PoolTcpConnector sc=new PoolTcpConnector(); sc.setServer( contextM ); sc.setAttribute( "vhost_port" , new...
public boolean isEquivalentTo(TypeBinding otherType) { if (this == otherType) return true; if (otherType == null) return false; switch(otherType.kind()) { case Binding.WILDCARD_TYPE : case Binding.INTERSECTION_TYPE: return ((WildcardBinding) otherType).boundCheck(this)...
public boolean isEquivalentTo(TypeBinding otherType) { if (this == otherType || erasure() == otherType) return true; if (otherType == null) return false; switch(otherType.kind()) { case Binding.WILDCARD_TYPE : case Binding.INTERSECTION_TYPE: return ((WildcardBinding) o...
public static Color INACTIVE_LABEL_COLOR = UIManager .getColor("Menu.foreground");
public static Color INACTIVE_LABEL_COLOR = UIManager .getColor("Menu.selectionForeground");
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((MailFrameMediator) getFrameMediator()).getTableSelection(); r[0].setMarkVariant(MarkMessageCommand.MARK_AS_EXPUNGED); MessageFolder folder = (MessageFolder) r[0].getFolder(); int uid = folder.getFolderItem...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((MailFrameMediator) getFrameMediator()).getTableSelection(); r[0].setMarkVariant(MarkMessageCommand.MARK_AS_EXPUNGED); MessageFolder folder = (MessageFolder) r[0].getFolder(); int uid = folder.getConfigurat...
public static String guessInstall(String installSysProp, String homeSysProp, String jarName, String classFile) { String install=null; String home=null; if ( installSysProp != null ) install=System.getProperty( installSysProp ); if( homeSysProp != null ) home=System.getProperty( homeSysProp ); ...
public static String guessInstall(String installSysProp, String homeSysProp, String jarName, String classFile) { String install=null; String home=null; if ( installSysProp != null ) install=System.getProperty( installSysProp ); if( homeSysProp != null ) home=System.getProperty( homeSysProp ); ...
private void load() throws IOException { if (roleActivityBindingDefinitions == null) roleActivityBindingDefinitions = new ArrayList(); else roleActivityBindingDefinitions.clear(); if (roleDefinitions == null) roleDefinitions = new ArrayList(); else roleDefinitions.clear(); IConfigura...
private void load() throws IOException { if (roleActivityBindingDefinitions == null) roleActivityBindingDefinitions = new ArrayList(); else roleActivityBindingDefinitions.clear(); if (roleDefinitions == null) roleDefinitions = new ArrayList(); else roleDefinitions.clear(); IConfigura...
public Assembly soleMatch(Assembly in) { AssemblySet set = new AssemblySet(); set.add(in); set = matchAndAssemble(set); AssemblySet completeMatches = new AssemblySet(); for(Iterator i = set.iterator(); i.hasNext(); ) { Assembly a = (Assembly) i.next(); // is this a complete match, can't get better ...
public Assembly soleMatch(Assembly in) { AssemblySet set = new AssemblySet(); set.add(in); set = matchAndAssemble(set); AssemblySet completeMatches = new AssemblySet(); for(Iterator i = set.iterator(); i.hasNext(); ) { Assembly a = (Assembly) i.next(); // is this a complete match, can't get better ...
public TypeBinding resolveType(BlockScope scope) { constant = Constant.NotAConstant; if (receiver instanceof CastExpression // no cast check for ((type[])null)[0] && ((CastExpression)receiver).innermostCastedExpression() instanceof NullLiteral) { this.receiver.bits |= IgnoreNeedForCastCheckMASK; // will ch...
public TypeBinding resolveType(BlockScope scope) { constant = Constant.NotAConstant; if (receiver instanceof CastExpression // no cast check for ((type[])null)[0] && ((CastExpression)receiver).innermostCastedExpression() instanceof NullLiteral) { this.receiver.bits |= IgnoreNeedForCastCheckMASK; // will ch...
protected void beginToCompile(org.eclipse.jdt.internal.compiler.env.ICompilationUnit[] sourceUnits, String[] bindingKeys) { int sourceLength = sourceUnits.length; int keyLength = bindingKeys.length; int maxUnits = sourceLength + keyLength; this.totalUnits = 0; this.unitsToProcess = new CompilationUnitDeclara...
protected void beginToCompile(org.eclipse.jdt.internal.compiler.env.ICompilationUnit[] sourceUnits, String[] bindingKeys) { int sourceLength = sourceUnits.length; int keyLength = bindingKeys.length; int maxUnits = sourceLength + keyLength; this.totalUnits = 0; this.unitsToProcess = new CompilationUnitDeclara...
public void delete(ScarabUser user, Module module) throws Exception { String permission = null; int dupeSequence = 0; if (isGlobal()) { permission = (ScarabSecurity.DOMAIN__EDIT); } else { permission = (Scar...
public void delete(ScarabUser user, Module module) throws Exception { String permission = null; int dupeSequence = 0; if (isGlobal()) { permission = (ScarabSecurity.DOMAIN__EDIT); } else { permission = (Scar...
protected void compile(String[] filenames, String[] initialTypeNames) { int toDo = filenames.length; if (toDo <= MAX_AT_ONCE) { // do them all now CompilationUnit[] toCompile = new CompilationUnit[toDo]; for (int i = 0; i < toDo; i++) { String filename = filenames[i]; if (JavaBuilder.DEBUG) System.out...
protected void compile(String[] filenames, String[] initialTypeNames) { int toDo = filenames.length; if (toDo <= MAX_AT_ONCE) { // do them all now CompilationUnit[] toCompile = new CompilationUnit[toDo]; for (int i = 0; i < toDo; i++) { String filename = filenames[i]; if (JavaBuilder.DEBUG) System.out...
public PropPanelSimpleState() { super("Simple State", _stateIcon, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), getNameTextField()); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "too...
public PropPanelSimpleState() { super("Simple State", _stateIcon, ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), getNameTextField()); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "too...
public void resolve(BlockScope upperScope) { // special scope for secret locals optimization. scope = new BlockScope(upperScope); TypeBinding type = expression.resolveType(scope); if (type == null) return; switch (type.id) { case (T_boolean) : case (T_char) : case (T_float) : case (T_double) ...
public void resolve(BlockScope upperScope) { // special scope for secret locals optimization. scope = new BlockScope(upperScope); TypeBinding type = expression.resolveType(scope); if (type == null) return; switch (type.id) { case (T_boolean) : case (T_char) : case (T_float) : case (T_double) ...
public AbstractTypeDeclaration getDeclaration() { if (this.typeDecl == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.typeDecl == null) { preLazyInit(); this.typeDecl = new TypeDeclaration(this.ast); postLazyInit(this.typeDecl, TYPE_DECLARATION_PROPER...
public AbstractTypeDeclaration getDeclaration() { if (this.typeDecl == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.typeDecl == null) { preLazyInit(); this.typeDecl = new TypeDeclaration(this.ast); postLazyInit(this.typeDecl, TYPE_DECLARATION_PROPERTY);...
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 > endP...
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 > endP...
public void dragStart(boolean keyboard) { // TODO Auto-generated method stub } }
public void dragStart(Point initialPosition, boolean keyboard) { // TODO Auto-generated method stub } }
public SetResponse lookupRecords(Name name, short type, short dclass, byte minCred) { SetResponse cr = null; Object [] objects = findSets(name, type, dclass); if (objects == null) return new SetResponse(SetResponse.UNKNOWN); int nelements = 0; for (int i = 0; i < objects.length; i++) { Element element = (Ele...
public SetResponse lookupRecords(Name name, short type, short dclass, byte minCred) { SetResponse cr = null; Object [] objects = findSets(name, type, dclass); if (objects == null) return new SetResponse(SetResponse.UNKNOWN); int nelements = 0; for (int i = 0; i < objects.length; i++) { Element element = (Ele...
protected String getCommandString() { return WorkbenchMessages.getString("Workbench.redo"); //$NON-NLS-1$ }
protected String getCommandString() { return WorkbenchMessages.Workbench_redo; }
protected StringBuffer print(StringBuffer output) { output.append("Secondary"); //$NON-NLS-1$ return super.print(output); } /* (non-Javadoc) * @see org.eclipse.jdt.internal.core.search.matching.TypeDeclarationPattern#queryIn(org.eclipse.jdt.internal.core.index.Index) */ EntryResult[] queryIn(Index index) throws IO...
public EntryResult[] queryIn(Index index) throws IOException { return index.query(CATEGORIES, SECONDARY_PATTERN_KEY, R_PATTERN_MATCH | R_CASE_SENSITIVE); } }
public static IJavaModelStatus validateClasspathEntry(IJavaProject javaProject, IClasspathEntry entry, boolean checkSourceAttachment){ IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot(); IPath path = entry.getPath(); switch(entry.getEntryKind()){ // container entry check case...
public static IJavaModelStatus validateClasspathEntry(IJavaProject javaProject, IClasspathEntry entry, boolean checkSourceAttachment){ IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot(); IPath path = entry.getPath(); switch(entry.getEntryKind()){ // container entry check case...
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...
public String individualToString(){ return "Flow context"; }
public String individualToString(){ return "Flow context"/*nonNLS*/; }
public Object addMessage(InputStream in, Attributes attributes, Flags flags) throws Exception { Message message = MessageParser.parse( TempSourceFactory.createTempSource(in, -1)); Object newUid = generateNextUid(); LOG.info("new UID=" + newUid); ColumbaHea...
public Object addMessage(InputStream in, Attributes attributes, Flags flags) throws Exception { Message message = MessageParser.parse( TempSourceFactory.createTempSource(in, -1)); Object newUid = generateNextUid(); LOG.info("new UID=" + newUid); ColumbaHea...
public void recordNewProblems(CategorizedProblem[] newProblems) { int length2 = newProblems.length; if (length2 == 0) return; int length1 = this.problems == null ? 0 : this.problems.length; IProblem[] merged = new IProblem[length1 + length2]; if (length1 > 0) // always make a copy even if currently empty System...
public void recordNewProblems(CategorizedProblem[] newProblems) { int length2 = newProblems.length; if (length2 == 0) return; int length1 = this.problems == null ? 0 : this.problems.length; CategorizedProblem[] merged = new CategorizedProblem[length1 + length2]; if (length1 > 0) // always make a copy even if curr...
public Object readXml(File xmlFile, Object root) throws Exception { if(root!=null) { Stack st=this.getObjectStack(); this.root=root; st.push( root ); } SAXParser parser=null; try { try { SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setNamespaceAware(false); f...
public Object readXml(File xmlFile, Object root) throws Exception { if(root!=null) { Stack st=this.getObjectStack(); this.root=root; st.push( root ); } SAXParser parser=null; try { try { SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setNamespaceAware(false); f...
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 TypeBinding internalResolveType(Scope scope) { // Propagate the type checking to the arguments, and check if the constructor is defined. constant = NotAConstant; if (scope.kind == Scope.CLASS_SCOPE) { this.resolvedType = type.resolveType((ClassScope)scope); } else { this.resolvedType = type.reso...
private TypeBinding internalResolveType(Scope scope) { // Propagate the type checking to the arguments, and check if the constructor is defined. constant = NotAConstant; if (scope.kind == Scope.CLASS_SCOPE) { this.resolvedType = type.resolveType((ClassScope)scope); } else { this.resolvedType = type.reso...
public int compare(Viewer testViewer, Object e1, Object e2) { return ((Comparable) e1).compareTo(e2); } }); IContentProvider provider = new ProgressContentProvider(viewer); viewer.setContentProvider(provider); viewer.setInput(provider); viewer.setLabelProvider(new ProgressLabelProvider()); ...
public int compare(Viewer testViewer, Object e1, Object e2) { return ((Comparable) e1).compareTo(e2); } }); IContentProvider provider = new ProgressTreeContentProvider(viewer); viewer.setContentProvider(provider); viewer.setInput(provider); viewer.setLabelProvider(new ProgressLabelProvider(...
private void sendMessage(long time, Message msg) { try { msg.setLongProperty(TIME, time); metricsPub.publish(msg, DeliveryMode.NON_PERSISTENT, 1, 1); } catch (Exception e) { // catch JMSExceptions, NPE's etc and prevent them from propagating ...
private void sendMessage(long time, Message msg) { try { msg.setLongProperty(TIME, time); metricsPub.publish(msg, DeliveryMode.NON_PERSISTENT, 1, 10000); } catch (Exception e) { // catch JMSExceptions, NPE's etc and prevent them from propagating ...
import org.eclipse.ui.commands.NotDefinedException; /******************************************************************************* * 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 Li...
import org.eclipse.ui.commands.NotDefinedException; /******************************************************************************* * 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 Li...
public String toString() { return KeyFormatterFactory.getFormalKeyFormatter().format(this); }
public String toString() { return name; }
extends org.tigris.scarab.om.BaseModulePeer 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.u...
extends org.tigris.scarab.om.BaseModulePeer 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.u...
public static String id() { return "4.4-snapshot-20070322-1027"; }
public static String id() { return "4.4-snapshot-20070629-0646"; }
public String toString() { return "Input<" + editorInfo.editorInput + "> Details<" + location + ">"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } /** * Disposes this entry and its location. */ void dispose() { if (location != null) location.dispose(); editor...
public String toString() { return "Input<" + editorInfo.editorInput + "> Details<" + location + ">"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } /** * Disposes this entry and its location. */ void dispose() { if (location != null) location.dispose(); editor...
public DefaultProcessor() { operationQueue = new Vector(); worker = new Vector(); for (int i = 0; i < MAX_WORKERS; i++) { worker.add(new Worker(this)); } isBusy = true; operationMutex = new Mutex(); workerMutex = new Mutex(); taskManager = new TaskManager(); undoManager = new UndoManag...
public DefaultProcessor() { operationQueue = new Vector(10); worker = new Vector(); for (int i = 0; i < MAX_WORKERS; i++) { worker.add(new Worker(this)); } isBusy = true; operationMutex = new Mutex(); workerMutex = new Mutex(); taskManager = new TaskManager(); undoManager = new UndoMan...
private char[] getQualifiedName() { if (this.openable instanceof CompilationUnit) { // get file name String fileName = this.resource.getFullPath().lastSegment(); // get main type name char[] mainTypeName = fileName.substring(0, fileName.length()-5).toCharArray(); //TODO (jerome) should not hardcode extension l...
private char[] getQualifiedName() { if (this.openable instanceof CompilationUnit) { // get file name String fileName = this.resource.getFullPath().lastSegment(); // get main type name char[] mainTypeName = Util.getNameWithoutJavaLikeExtension(fileName).toCharArray(); CompilationUnit cu = (CompilationUnit) th...
public void init(IWorkbench workbench) { IWorkbenchContextSupport workbenchContextSupport = workbench.getContextSupport(); contextManager = workbenchContextSupport.getContextManager(); // TODO remove blind cast commandManager = (CommandManager) workbench.getCommandManager(); commandAssignments = new TreeSet(...
public void init(IWorkbench workbench) { IWorkbenchContextSupport workbenchContextSupport = workbench.getContextSupport(); contextManager = workbenchContextSupport.getContextManager(); // TODO remove blind cast commandManager = (CommandManager) workbench.getCommandSupport().getCommandManager(); commandAssign...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((this.bits & ASTNode.IsReachable) == 0) { return; } int pc = codeStream.position; boolean alreadyGeneratedExpression = false; // generate the expression if (needValueStore()) { alreadyGeneratedExpression = true; this.expression.g...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((this.bits & ASTNode.IsReachable) == 0) { return; } int pc = codeStream.position; boolean alreadyGeneratedExpression = false; // generate the expression if (needValueStore()) { alreadyGeneratedExpression = true; this.expression.g...
public StringBuffer printExpression(int indent, StringBuffer output) { output.append("<CompleteOnName:"); //$NON-NLS-1$ for (int i = 0; i < tokens.length; i++) { output.append(tokens[i]); output.append('.'); //$NON-NLS-1$ } output.append(completionIdentifier).append('>'); return output; }
public StringBuffer printExpression(int indent, StringBuffer output) { output.append("<CompleteOnName:"); //$NON-NLS-1$ for (int i = 0; i < tokens.length; i++) { output.append(tokens[i]); output.append('.'); } output.append(completionIdentifier).append('>'); return output; }
public static String randomID() { return Integer.toHexString(random.nextInt()& 0xFFFFFF); }
public static String randomID() { return Integer.toString(random.nextInt()& 0xFFFFFF); }
public IIntroPart showIntro(IWorkbenchWindow preferredWindow, boolean standby) { if (preferredWindow == null) preferredWindow = this.workbench.getActiveWorkbenchWindow(); if (preferredWindow == null) return null; if (getViewIntroAdapterPart() == null) { createIntro((Workben...
public IIntroPart showIntro(IWorkbenchWindow preferredWindow, boolean standby) { if (preferredWindow == null) preferredWindow = this.workbench.getActiveWorkbenchWindow(); if (preferredWindow == null) return null; if (getViewIntroAdapterPart() == null) { createIntro((Workben...
protected void setState(int newState) { int oldState = presentationSite.getState(); if (!supportsState(newState) || newState == oldState) { return; } boolean minimized = (newState == IStackPresentationSite.STATE_MINIMIZED); setMinimized(minimized...
protected void setState(int newState) { int oldState = presentationSite.getState(); if (!supportsState(newState) || newState == oldState) { return; } boolean minimized = (newState == IStackPresentationSite.STATE_MINIMIZED); setMinimized(minimized...
public void updateGUI() throws Exception { ((HeaderTableSelectionHandler)frameController.getSelectionManager().getHandler("mail.headertable")).setFolder(folder); ((MailFrameController) frameController) .tableController .getHeaderTableModel() .setHeaderList(headerList); TableChangedEvent ev = n...
public void updateGUI() throws Exception { ((HeaderTableSelectionHandler)frameController.getSelectionManager().getHandler("mail.table")).setFolder(folder); ((MailFrameController) frameController) .tableController .getHeaderTableModel() .setHeaderList(headerList); TableChangedEvent ev = new Tab...
private static final String TIME_ZONE = Turbine.getConfiguration().getString("scarab.timezone");
private static final String TIME_ZONE = Turbine.getConfiguration().getString("scarab.timezone", "");
public void resolveAnnotation() { if (this.binding == null) return; if (this.annotation != null) { this.annotation.resolve(this.scope); return; } if (this.binding.isPublic()) { this.scope.problemReporter().annotationMissingForPublic(this.sourceStart, this.sourceStart+this.selector.length-1, true)...
public void resolveAnnotation() { if (this.binding == null) return; if (this.annotation != null) { this.annotation.resolve(this.scope); return; } if (this.binding.isPublic()) { this.scope.problemReporter().annotationMissingForPublic(this.sourceStart, this.sourceEnd); } }
public void acceptType(IType type) { try { if (this.unitToSkip != null && this.unitToSkip.equals(type.getCompilationUnit())){ return; } char[] packageName = type.getPackageFragment().getElementName().toCharArray(); boolean isBinary = type instanceof BinaryType; // determine associated access restrictio...
public void acceptType(IType type) { try { if (this.unitToSkip != null && this.unitToSkip.equals(type.getCompilationUnit())){ return; } char[] packageName = type.getPackageFragment().getElementName().toCharArray(); boolean isBinary = type instanceof BinaryType; // determine associated access restrictio...
protected int matchLevel(MessageSend messageSend) { MethodBinding method = (MethodBinding) messageSend.binding; if (method == null) return INACCURATE_MATCH; int methodLevel = matchMethod(method); if (methodLevel == IMPOSSIBLE_MATCH) return IMPOSSIBLE_MATCH; // receiver type int declaringLevel; if (isVirtualInv...
protected int matchLevel(MessageSend messageSend) { MethodBinding method = messageSend.binding; if (method == null) return INACCURATE_MATCH; int methodLevel = matchMethod(method); if (methodLevel == IMPOSSIBLE_MATCH) return IMPOSSIBLE_MATCH; // receiver type int declaringLevel; if (isVirtualInvoke(method, mess...
public void end( SaxContext ctx) { Stack st=ctx.getObjectStack(); Object top = st.pop(); if( ctx.getDebug() > 0 ) cts.log("Pop " + top.getClass().getName()); } }
public void end( SaxContext ctx) { Stack st=ctx.getObjectStack(); Object top = st.pop(); if( ctx.getDebug() > 0 ) ctx.log("Pop " + top.getClass().getName()); } }
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update incomplete classpath marker */ IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true, true); /* Update cycle marker */ IMarker...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update incomplete classpath marker */ IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true, true); /* Update cycle marker */ IMarker...
private SimpleName name = null; /** * Creates a new AST node for a qualified name owned by the given AST. * <p> * N.B. This constructor is package-private; all subclasses must be * declared in the same package; clients are unable to declare * additional subclasses. * </p> * * @param ast the AST t...
private SimpleName name = null; /** * Creates a new AST node for a qualified name owned by the given AST. * <p> * N.B. This constructor is package-private; all subclasses must be * declared in the same package; clients are unable to declare * additional subclasses. * </p> * * @param ast the AST t...
public void configure(String[] argv) throws InvalidInputException { if ((argv == null) || (argv.length == 0)) { printUsage(); return; } final int InsideClasspath = 1; final int InsideDestinationPath = 2; final int TargetSetting = 4; final int InsideLog = 8; final int InsideRepetition = 16; fin...
public void configure(String[] argv) throws InvalidInputException { if ((argv == null) || (argv.length == 0)) { printUsage(); return; } final int InsideClasspath = 1; final int InsideDestinationPath = 2; final int TargetSetting = 4; final int InsideLog = 8; final int InsideRepetition = 16; fin...
public void configure(String[] argv) throws InvalidInputException { if ((argv == null) || (argv.length == 0)) throw new InvalidInputException(Main.bind("configure.noSourceFile")); //$NON-NLS-1$ final int InsideClasspath = 1; final int InsideDestinationPath = 2; final int TargetSetting = 4; final int In...
public void configure(String[] argv) throws InvalidInputException { if ((argv == null) || (argv.length == 0)) throw new InvalidInputException(Main.bind("configure.noSourceFile")); //$NON-NLS-1$ final int InsideClasspath = 1; final int InsideDestinationPath = 2; final int TargetSetting = 4; final int In...
public String format(LoggingEvent event) { sbuf.setLength(0); sbuf.append(event.level.toString()); sbuf.append(" - "); sbuf.append(event.getRenderedMessage()); sbuf.append(LINE_SEP); return sbuf.toString(); }
public String format(LoggingEvent event) { sbuf.setLength(0); sbuf.append(event.getLevel().toString()); sbuf.append(" - "); sbuf.append(event.getRenderedMessage()); sbuf.append(LINE_SEP); return sbuf.toString(); }
private boolean applySpamFilter(Object uid, WorkerStatusController worker) throws Exception { // message belongs to which account? AccountItem item = CommandHelper.retrieveAccountItem(inboxFolder, uid); // if spam filter is not enabled -> return if (!item.getSpamItem().isEnabled()) { return false; } ...
private boolean applySpamFilter(Object uid, WorkerStatusController worker) throws Exception { // message belongs to which account? AccountItem item = CommandHelper.retrieveAccountItem(inboxFolder, uid); // if spam filter is not enabled -> return if (!item.getSpamItem().isEnabled()) { return false; } ...
public NameLookup(IPackageFragmentRoot[] packageFragmentRoots, HashtableOfArrayToObject packageFragments, ICompilationUnit[] workingCopies, Map rootToResolvedEntries) { if (VERBOSE) { System.out.println(Thread.currentThread() + " BUILDING NameLoopkup"); //$NON-NLS-1$ System.out.println(Thread.currentThread() ...
public NameLookup(IPackageFragmentRoot[] packageFragmentRoots, HashtableOfArrayToObject packageFragments, ICompilationUnit[] workingCopies, Map rootToResolvedEntries) { if (VERBOSE) { System.out.println(Thread.currentThread() + " BUILDING NameLoopkup"); //$NON-NLS-1$ System.out.println(Thread.currentThread() ...