buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected void storeTasksFor(SourceFile sourceFile, IProblem[] tasks) throws CoreException { if (sourceFile == null || tasks == null || tasks.length == 0) return; IResource resource = sourceFile.resource; for (int i = 0, l = tasks.length; i < l; i++) { IProblem task = tasks[i]; if (task.getID() == IProblem.Task...
protected void storeTasksFor(SourceFile sourceFile, IProblem[] tasks) throws CoreException { if (sourceFile == null || tasks == null || tasks.length == 0) return; IResource resource = sourceFile.resource; for (int i = 0, l = tasks.length; i < l; i++) { IProblem task = tasks[i]; if (task.getID() == IProblem.Task...
public PropPanelInterface() { super("Interface", _interfaceIcon,ConfigLoader.getTabPropsOrientation()); Class mclass = MInterface.class; addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localiz...
public PropPanelInterface() { super("Interface", _interfaceIcon,ConfigLoader.getTabPropsOrientation()); Class mclass = MInterface.class; addField(Argo.localize("UMLMenu", "label.name"), nameField); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localiz...
public boolean isExecutable() { return fView.selectionCount() > 0; }
public boolean isExecutable() { return view().selectionCount() > 0; }
public static char[] getResourceContentsAsCharArray(IFile file) throws JavaModelException { InputStream stream= null; try { stream = new BufferedInputStream(file.getContents(true)); } catch (CoreException e) { throw new JavaModelException(e); } try { String encoding = (String)JavaCore.getOptions().get(JavaCo...
public static char[] getResourceContentsAsCharArray(IFile file) throws JavaModelException { InputStream stream= null; try { stream = new BufferedInputStream(file.getContents(true)); } catch (CoreException e) { throw new JavaModelException(e); } try { String encoding = JavaCore.getOption(JavaCore.CORE_ENCODIN...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update cycle marker */ IMarker cycleMarker = javaProject.getCycleMarker(); if (cycleMarker != null) { int severity = JavaCore.ERROR.equals(javaProject.get...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update cycle marker */ IMarker cycleMarker = javaProject.getCycleMarker(); if (cycleMarker != null) { int severity = JavaCore.ERROR.equals(javaProject.get...
private boolean init(Display display) { // setup debug mode if required. if (WorkbenchPlugin.getDefault().isDebugging()) { WorkbenchPlugin.DEBUG = true; ModalContext.setDebugMode(true); } // create workbench window manager windowManager = new WindowManager(); IIntroRegistry introRegistry = Workbenc...
private boolean init(Display display) { // setup debug mode if required. if (WorkbenchPlugin.getDefault().isDebugging()) { WorkbenchPlugin.DEBUG = true; ModalContext.setDebugMode(true); } // create workbench window manager windowManager = new WindowManager(); IIntroRegistry introRegistry = Workbenc...
public static String parse(IMAPResponse[] responses) { String source = responses[0].getSource(); int newLine = source.indexOf("\n"); if ( newLine == -1 ) { // there's not newline // -> one line message // example: // * 133 FETCH (UID 133 BODY[1] \"da!\") // note: message is enclosed with " ...
public static String parse(IMAPResponse[] responses) { String source = responses[0].getSource(); int newLine = source.indexOf("\n"); if ( newLine == -1 ) { // there's not newline // -> one line message // example: // * 133 FETCH (UID 133 BODY[1] \"da!\") // note: message is enclosed with " ...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ ArrayType(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(ap...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ ArrayType(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(ap...
public JarEntryResource clone(Object newParent) { JarEntryFile file = new JarEntryFile(simpleName); file.setParent(newParent); return file; }
public JarEntryResource clone(Object newParent) { JarEntryFile file = new JarEntryFile(this.simpleName); file.setParent(newParent); return file; }
public TypeBinding checkFieldAccess(BlockScope scope) { if (delegateThis == null) return super.checkFieldAccess(scope); FieldBinding fieldBinding = (FieldBinding) binding; bits &= ~RestrictiveFlagMASK; // clear bits bits |= FIELD; if (!fieldBinding.isStatic()) { // must check for the static status.... if (t...
public TypeBinding checkFieldAccess(BlockScope scope) { if (delegateThis == null) return super.checkFieldAccess(scope); FieldBinding fieldBinding = (FieldBinding) binding; bits &= ~RestrictiveFlagMASK; // clear bits bits |= FIELD; if (!fieldBinding.isStatic()) { // must check for the static status.... if (t...
public void addAttributes() { // update the method count contents[methodCountOffset++] = (byte) (methodCount >> 8); contents[methodCountOffset] = (byte) methodCount; int attributeNumber = 0; // leave two bytes for the number of attributes and store the current offset int attributeOffset = contentsOffset; ...
public void addAttributes() { // update the method count contents[methodCountOffset++] = (byte) (methodCount >> 8); contents[methodCountOffset] = (byte) methodCount; int attributeNumber = 0; // leave two bytes for the number of attributes and store the current offset int attributeOffset = contentsOffset; ...
protected void reportBinaryMemberDeclaration(IResource resource, IMember binaryMember, Binding binaryMemberBinding, IBinaryType info, int accuracy) throws CoreException { ClassFile classFile = (ClassFile) binaryMember.getClassFile(); ISourceRange range = classFile.isOpen() ? binaryMember.getNameRange() : SourceMapper...
protected void reportBinaryMemberDeclaration(IResource resource, IMember binaryMember, Binding binaryMemberBinding, IBinaryType info, int accuracy) throws CoreException { ClassFile classFile = (ClassFile) binaryMember.getClassFile(); ISourceRange range = classFile.isOpen() ? binaryMember.getNameRange() : SourceMapper...
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...
public TXTRecord(Name name, short dclass, int ttl, String string) { this(name, dclass, ttl); this.strings = new ArrayList(); this.strings.add(string); } Record rrFromWire(Name name, short type, short dclass, int ttl, int length, DataByteInputStream in) throws IOException { TXTRecord rec = new TXTRecord(name, d...
public TXTRecord(Name name, short dclass, int ttl, String string) { this(name, dclass, ttl); this.strings = new ArrayList(); this.strings.add(string); } Record rrFromWire(Name name, short type, short dclass, int ttl, int length, DataByteInputStream in) throws IOException { TXTRecord rec = new TXTRecord(name, d...
public void update(IPerspectiveDescriptor newDesc) { persp = newDesc; setToolTipText(WorkbenchMessages.format("SetPagePerspectiveAction.toolTip", new Object[] {persp.getLabel()})); ImageDescriptor image = persp.getImageDescriptor(); if (image != null) { setImageDescriptor(image); setHoverImageDescriptor(...
public void update(IPerspectiveDescriptor newDesc) { persp = newDesc; setToolTipText(WorkbenchMessages.format("SetPagePerspectiveAction.toolTip", new Object[] {persp.getLabel()})); //$NON-NLS-1$ ImageDescriptor image = persp.getImageDescriptor(); if (image != null) { setImageDescriptor(image); setHoverIm...
public static String getRMIProtocol(String url) { if (url != null) { StringTokenizer st = new StringTokenizer(url, ":"); String pref = st.nextToken().trim(); return mapping.getProperty(pref,pref); } else { return null; } }
public static String getRMIProtocol(String url) { if (url != null) { StringTokenizer st = new StringTokenizer(url, "://"); String pref = st.nextToken().trim(); return mapping.getProperty(pref,pref); } else { return null; } }
public void addLogger(Logger logger) { // Will use this later once I feel more sure what I want to do here. // -akv firstLog=false; cmLog=logger; }
public void addLogger(Logger logger) { // Will use this later once I feel more sure what I want to do here. // -akv firstLog=false; //cmLog=logger; }
protected WorkbenchWizardListSelectionPage(IWorkbench aWorkbench, IStructuredSelection currentSelection, AdaptableList wizardElements, String message) { super( "singleWizardSelectionPage", aWorkbench, currentSelection, wizardElements); //$NON-NLS-1$ setDescrip...
protected WorkbenchWizardListSelectionPage(IWorkbench aWorkbench, IStructuredSelection currentSelection, AdaptableList wizardElements, String message) { super( "singleWizardSelectionPage", aWorkbench, currentSelection, wizardElements); //$NON-NLS-1$ setDescrip...
public void selectType(char[] typeName, IType context) throws JavaModelException { try { this.acceptedAnswer = false; // only the type erasure are returned by IType.resolvedType(...) if (CharOperation.indexOf('<', typeName) != -1) { char[] typeSig = Signature.createCharArrayTypeSignature(typeName, f...
public void selectType(char[] typeName, IType context) throws JavaModelException { try { this.acceptedAnswer = false; // only the type erasure are returned by IType.resolvedType(...) if (CharOperation.indexOf('<', typeName) != -1) { char[] typeSig = Signature.createCharArrayTypeSignature(typeName, f...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // here requires to generate a sequence of finally blocks invocations depending corresponding // to each of the traversed try statements, so that execution will terminate properly. // lookup the label, thi...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // here requires to generate a sequence of finally blocks invocations depending corresponding // to each of the traversed try statements, so that execution will terminate properly. // lookup the label, thi...
public void diagnoseParse() { lexStream.reset(); currentToken = lexStream.getToken(); int prev_pos; int pos; int next_pos; int act = START_STATE; reallocateStacks(); // // Start parsing // stateStackTop = 0; stack[stateStackTop] = act; int tok = lexStream.kind(currentToken); locationSt...
public void diagnoseParse() { lexStream.reset(); currentToken = lexStream.getToken(); int prev_pos; int pos; int next_pos; int act = START_STATE; reallocateStacks(); // // Start parsing // stateStackTop = 0; stack[stateStackTop] = act; int tok = lexStream.kind(currentToken); locationSt...
protected TypeBinding getTypeBinding(Scope scope) { if (this.resolvedType != null) return this.resolvedType; Binding binding = scope.getPackage(this.tokens); if (binding != null && !binding.isValidBinding()) return (ReferenceBinding) binding; // not found PackageBinding packageBinding = binding =...
protected TypeBinding getTypeBinding(Scope scope) { if (this.resolvedType != null) return this.resolvedType; Binding binding = scope.getPackage(this.tokens); if (binding != null && !binding.isValidBinding()) return (ReferenceBinding) binding; // not found PackageBinding packageBinding = binding =...
private void generateCode( ClassScope classScope, ClassFile classFile, int clinitOffset) { ConstantPool constantPool = classFile.constantPool; int constantPoolOffset = constantPool.currentOffset; int constantPoolIndex = constantPool.currentIndex; classFile.generateMethodInfoHeaderForClinit(); int code...
private void generateCode( ClassScope classScope, ClassFile classFile, int clinitOffset) { ConstantPool constantPool = classFile.constantPool; int constantPoolOffset = constantPool.currentOffset; int constantPoolIndex = constantPool.currentIndex; classFile.generateMethodInfoHeaderForClinit(); int code...
public void resolve(BlockScope upperScope) { // special scope for secret locals optimization. this.scope = new BlockScope(upperScope); BlockScope tryScope = new BlockScope(scope); BlockScope finallyScope = null; if (finallyBlock != null && finallyBlock.statements != null) { finallyScope = new Bl...
public void resolve(BlockScope upperScope) { // special scope for secret locals optimization. this.scope = new BlockScope(upperScope); BlockScope tryScope = new BlockScope(scope); BlockScope finallyScope = null; if (finallyBlock != null && finallyBlock.statements != null) { finallyScope = new Bl...
public boolean forgotPassword(RunData data, TemplateContext context) throws Exception { IntakeTool intake = getIntakeTool(context); Group password = intake.get("ForgotPassword", IntakeTool.DEFAULT_KEY); String username = password.get("Username").toString(); ...
public boolean forgotPassword(RunData data, TemplateContext context) throws Exception { IntakeTool intake = getIntakeTool(context); Group password = intake.get("ForgotPassword", IntakeTool.DEFAULT_KEY); String username = password.get("Username").toString(); ...
public void codeComplete(int offset, CompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { String source = getSource(); if (source != null) { BinaryType type = (BinaryType) getType(); BasicCompilationUnit cu = new BasicCompilationUnit( getSource().toCharArray(), null, ...
public void codeComplete(int offset, CompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException { String source = getSource(); if (source != null) { BinaryType type = (BinaryType) getType(); BasicCompilationUnit cu = new BasicCompilationUnit( getSource().toCharArray(), null, ...
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } WorkbenchCommandAction action = new WorkbenchCommandAction("org.eclipse.ui.file.export", window); //$NON-NLS-1$ action.setId(ge...
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } WorkbenchCommandAction action = new WorkbenchCommandAction("org.eclipse.ui.file.export", window); //$NON-NLS-1$ action.setId(ge...
public boolean press(List potentialKeyStrokes, Event event) throws CommandException { // TODO remove event parameter once key-modified actions are removed if (DEBUG && DEBUG_VERBOSE) { System.out .println("KEYS >>> WorkbenchKeyboard.press(potentialKeyStrokes = " //$NO...
public boolean press(List potentialKeyStrokes, Event event) throws CommandException { // TODO remove event parameter once key-modified actions are removed if (DEBUG && DEBUG_VERBOSE) { System.out .println("KEYS >>> WorkbenchKeyboard.press(potentialKeyStrokes = " //$NO...
public void actionPerformed(ActionEvent e) { super.actionPerformed(e); Object source = e.getSource(); MNamespace oldNamespace = null; MNamespace newNamespace = null; MModelElement m = null; if (source instanceof UMLComboBox2) { UMLComboBox2 box = (UMLCombo...
public void actionPerformed(ActionEvent e) { super.actionPerformed(e); Object source = e.getSource(); MNamespace oldNamespace = null; MNamespace newNamespace = null; MModelElement m = null; if (source instanceof UMLComboBox2) { UMLComboBox2 box = (UMLCombo...
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding) { // ensure to jump back to toplevel type for first one (could be a member) // while (sourceTypes[0].getEnclosingType() != null) // sourceTypes[0] = sourceTypes[0].getEnclosingType(); CompilationResult result = new CompilationResul...
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding) { // ensure to jump back to toplevel type for first one (could be a member) // while (sourceTypes[0].getEnclosingType() != null) // sourceTypes[0] = sourceTypes[0].getEnclosingType(); CompilationResult result = new CompilationResul...
public void reload( Request req, Context ctx ) { ClassLoader newLoader = ctx.getServletLoader().getClassLoader(); StandardManager sM = getManager( ctx ); sM.handleReload(req, newLoader); }
public void reload( Request req, Context ctx ) { ClassLoader newLoader = ctx.getClassLoader(); StandardManager sM = getManager( ctx ); sM.handleReload(req, newLoader); }
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // record setting a variable: various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. LocalVariable...
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // record setting a variable: various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. LocalVariable...
public IStatus restoreState( IMemento memento, IPerspectiveDescriptor activeDescriptor) { Assert.isNotNull(getShell()); MultiStatus result = new MultiStatus(PlatformUI.PLUGIN_ID, IStatus.OK, WorkbenchMessages.getString("WorkbenchWindow.problemsRestoringWindow"), null); //$NON-NLS-1$ // Read window's bounds...
public IStatus restoreState( IMemento memento, IPerspectiveDescriptor activeDescriptor) { Assert.isNotNull(getShell()); MultiStatus result = new MultiStatus(PlatformUI.PLUGIN_ID, IStatus.OK, WorkbenchMessages.getString("WorkbenchWindow.problemsRestoringWindow"), null); //$NON-NLS-1$ // Read window's bounds...
public void actionPerformed(ActionEvent evt) { // copy selected URL to clipboard as string ((AbstractMailFrameController) frameController) .messageController .getView() .getToolkit() .getSystemClipboard() .setContents(new StringSelection(url.toString()), null); }
public void actionPerformed(ActionEvent evt) { // copy selected URL to clipboard as string ((AbstractMailFrameController) frameMediator) .messageController .getView() .getToolkit() .getSystemClipboard() .setContents(new StringSelection(url.toString()), null); }
public void resolveStatements(ClassScope upperScope) { // ========= abort on fatal error ============= if (this.returnType != null && this.binding != null) { this.returnType.binding = this.binding.returnType; // record the return type binding } // look if the name of the method is correct if (binding ...
public void resolveStatements(ClassScope upperScope) { // ========= abort on fatal error ============= if (this.returnType != null && this.binding != null) { this.returnType.resolvedType = this.binding.returnType; // record the return type binding } // look if the name of the method is correct if (bin...
public final boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) { if (isPublic()) return true; SourceTypeBinding invocationType = scope.enclosingSourceType(); if (invocationType == declaringClass && invocationType == receiverType) return true; if (invocationType == null) // ...
public final boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) { if (isPublic()) return true; SourceTypeBinding invocationType = scope.enclosingSourceType(); if (invocationType == declaringClass && invocationType == receiverType) return true; if (invocationType == null) // ...
public DocumentElementParser( final IDocumentElementRequestor requestor, IProblemFactory problemFactory) { this(requestor, problemFactory, new CompilerOptions(Compiler.getDefaultOptions(Locale.getDefault()))); }
public DocumentElementParser( final IDocumentElementRequestor requestor, IProblemFactory problemFactory) { this(requestor, problemFactory, new CompilerOptions()); }
public List getRModuleOptions(Attribute attribute, boolean activeOnly) throws Exception { Criteria crit = new Criteria(2); if ( activeOnly ) { crit.add(RModuleOptionPeer.ACTIVE, true); } crit.add(AttributeOptionPeer.ATTRIBUTE_ID, attribute.getAttribut...
public List getRModuleOptions(Attribute attribute, boolean activeOnly) throws Exception { Criteria crit = new Criteria(2); if ( activeOnly ) { crit.add(RModuleOptionPeer.ACTIVE, true); } crit.add(AttributeOptionPeer.ATTRIBUTE_ID, attribute.getAttribut...
public A6Record(Name _name, short _dclass, int _ttl, int _prefixBits, Inet6Address _suffix, Name _prefix) throws IOException { super(_name, Type.A6, _dclass, _ttl); prefixBits = (short) _prefixBits; suffix = _suffix; prefix = _prefix; } A6Record(Name _name, short _dclass, int _ttl, int length, DataByteInputStr...
public A6Record(Name _name, short _dclass, int _ttl, int _prefixBits, Inet6Address _suffix, Name _prefix) throws IOException { super(_name, Type.A6, _dclass, _ttl); prefixBits = (short) _prefixBits; suffix = _suffix; prefix = _prefix; } A6Record(Name _name, short _dclass, int _ttl, int length, DataByteInputStr...
extends BaseRModuleUserRole 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.StringUtil...
extends BaseRModuleUserRole 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.StringUtil...
public Compiler( INameEnvironment environment, IErrorHandlingPolicy policy, Map settings, ICompilerRequestor requestor, IProblemFactory problemFactory) { // create a problem handler given a handling policy this.options = new CompilerOptions(settings); this.requestor = requestor; this.problemReporter...
public Compiler( INameEnvironment environment, IErrorHandlingPolicy policy, Map settings, ICompilerRequestor requestor, IProblemFactory problemFactory) { // create a problem handler given a handling policy this.options = new CompilerOptions(settings); this.requestor = requestor; this.problemReporter...
private FilteredTree filterTree; PreferenceBoldLabelProvider(FilteredTree filterTree) { this.filterTree = filterTree; } /** * Using "false" to construct the filter so that this filter can filter * supernodes of a matching node */ PatternFilter filterForBoldElements = new PreferencePatternFilter(false);
private FilteredTree filterTree; PreferenceBoldLabelProvider(FilteredTree filterTree) { this.filterTree = filterTree; } /** * Using "false" to construct the filter so that this filter can filter * supernodes of a matching node */ PatternFilter filterForBoldElements = new PreferencePatternFilter();
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) return; int pc = codeStream.position; exception.generateCode(currentScope, codeStream, true); codeStream.athrow(); codeStream.recordPositionsFrom(pc, this.sourceStart); }
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachable) == 0) return; int pc = codeStream.position; exception.generateCode(currentScope, codeStream, true); codeStream.athrow(); codeStream.recordPositionsFrom(pc, this.sourceStart); }
public Message sendAXFR(Message query) throws IOException { return resolvers[0].sendAXFR(query);
public Message sendAXFR(Message query) { return resolvers[0].sendAXFR(query);
public LocalVariableBinding findVariable(char[] variableName) { int varLength = variableName.length; for (int i = this.localIndex-1; i >= 0; i--) { LocalVariableBinding local; char[] localName; if ((localName = (local = this.locals[i]).name).length == varLength && CharOperation.equals(localName, variableName)) ...
public LocalVariableBinding findVariable(char[] variableName) { int varLength = variableName.length; for (int i = this.localIndex-1; i >= 0; i--) { // lookup backward to reach latest additions first LocalVariableBinding local; char[] localName; if ((localName = (local = this.locals[i]).name).length == varLength...
public String format(LoggingEvent event) { // Reset working buffer. If the buffer is too large, then we need a new // one in order to avoid the penalty of creating a large array. if(buf.capacity() > UPPER_LIMIT) { buf = new StringBuffer(DEFAULT_SIZE); } else { buf.setLength(0); } ...
public String format(LoggingEvent event) { // Reset working buffer. If the buffer is too large, then we need a new // one in order to avoid the penalty of creating a large array. if(buf.capacity() > UPPER_LIMIT) { buf = new StringBuffer(DEFAULT_SIZE); } else { buf.setLength(0); } ...
public final boolean isTypeUseDeprecated(TypeBinding type, Scope scope) { if (type.isArrayType()) type = ((ArrayBinding) type).leafComponentType; if (type.isBaseType()) return false; ReferenceBinding refType = (ReferenceBinding) type; if (refType.isPrivate() && !scope.isDefinedInType(refType)) { //...
public final boolean isTypeUseDeprecated(TypeBinding type, Scope scope) { if (type.isArrayType()) type = ((ArrayBinding) type).leafComponentType; if (type.isBaseType()) return false; ReferenceBinding refType = (ReferenceBinding) type; if (refType.isPrivate() && !scope.isDefinedInType(refType)) { //...
private boolean checkSelection( char[] source, int selectionStart, int selectionEnd) { Scanner scanner = new Scanner(); scanner.setSourceBuffer(source); int lastIdentifierStart = -1; int lastIdentifierEnd = -1; char[] lastIdentifier = null; int token, identCount = 0; StringBuffer entireSelectio...
private boolean checkSelection( char[] source, int selectionStart, int selectionEnd) { Scanner scanner = new Scanner(); scanner.setSourceBuffer(source); int lastIdentifierStart = -1; int lastIdentifierEnd = -1; char[] lastIdentifier = null; int token, identCount = 0; StringBuffer entireSelectio...
public boolean isCheckAll() { POP3Server controller = MailInterface.popServerCollection.uidGet(accountUid); return controller.getAccountItem().getPopItem() .getBoolean("exclude_from_checkall", false); }
public boolean isCheckAll() { POP3Server controller = MailInterface.popServerCollection.uidGet(accountUid); return !controller.getAccountItem().getPopItem() .getBoolean("exclude_from_checkall", false); }
public List getStrings() { return strings; } void rrToWire(DataByteOutputStream out, Compression c) { if (strings == null) return; Iterator it = strings.iterator(); while (it.hasNext()) { String s = (String) it.next(); out.writeString(s); } }
public List getStrings() { return strings; } void rrToWire(DataByteOutputStream out, Compression c, boolean canonical) { if (strings == null) return; Iterator it = strings.iterator(); while (it.hasNext()) { String s = (String) it.next(); out.writeString(s); } }
public void contextInit(Context ctx) { if (! ctx.getDocumentBase().getProtocol().equalsIgnoreCase("war")) { return ; } // process base configuration WebApplicationReader webXmlReader=new WebApplicationReader(); try { // read default web.xml webXmlReader.processDefaultWebApp( ctx ); ...
public void contextInit(Context ctx) { if (! ctx.getDocumentBase().getProtocol().equalsIgnoreCase("war")) { return ; } // process base configuration WebApplicationReader webXmlReader=new WebApplicationReader(); try { // read default web.xml webXmlReader.processDefaultWebApp( ctx ); ...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update incomplete classpath marker */ IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true, true, JavaBuilder.preferredClasspaths, Java...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update incomplete classpath marker */ IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true, true, JavaBuilder.PreferredClasspaths, Java...
private ArrayList determineTypesInRegion(IProgressMonitor monitor) { try { ArrayList types = new ArrayList(); IJavaElement[] roots = ((RegionBasedTypeHierarchy) this.hierarchy).fRegion.getElements(); int length = roots.length; if (monitor != null) monitor.beginTask("", length); //$NON-NLS-1$ for ...
private ArrayList determineTypesInRegion(IProgressMonitor monitor) { try { ArrayList types = new ArrayList(); IJavaElement[] roots = ((RegionBasedTypeHierarchy) this.hierarchy).region.getElements(); int length = roots.length; if (monitor != null) monitor.beginTask("", length); //$NON-NLS-1$ for (...
protected void storeTasksFor(SourceFile sourceFile, IProblem[] tasks) throws CoreException { if (sourceFile == null || tasks == null || tasks.length == 0) return; IResource resource = sourceFile.resource; for (int i = 0, l = tasks.length; i < l; i++) { IProblem task = tasks[i]; if (task.getID() == IProblem.Task...
protected void storeTasksFor(SourceFile sourceFile, IProblem[] tasks) throws CoreException { if (sourceFile == null || tasks == null || tasks.length == 0) return; IResource resource = sourceFile.resource; for (int i = 0, l = tasks.length; i < l; i++) { IProblem task = tasks[i]; if (task.getID() == IProblem.Task...
public void actionPerformed(ActionEvent evt) { AddressbookFrameController addressbookFrameController = (AddressbookFrameController) frameController; Folder destinationFolder = (Folder) addressbookFrameController .getTree() .getView() .getSelectedFolder(); JFileChooser fc = new JFileChooser()...
public void actionPerformed(ActionEvent evt) { AddressbookFrameController addressbookFrameController = (AddressbookFrameController) frameMediator; Folder destinationFolder = (Folder) addressbookFrameController .getTree() .getView() .getSelectedFolder(); JFileChooser fc = new JFileChooser(); ...
public MethodBinding createsInternalConstructorWithBinding(MethodBinding inheritedConstructorBinding) { //Add to method'set, the default constuctor that just recall the //super constructor with the same arguments String baseName = "$anonymous"; TypeBinding[] argumentTypes = inheritedConstructorBinding.parameters; ...
public MethodBinding createsInternalConstructorWithBinding(MethodBinding inheritedConstructorBinding) { //Add to method'set, the default constuctor that just recall the //super constructor with the same arguments String baseName = "$anonymous"/*nonNLS*/; TypeBinding[] argumentTypes = inheritedConstructorBinding.pa...
public UMLComboBox2(UMLComboBoxModel2 arg0, UMLAction action, boolean showIcon) { super(arg0); addActionListener(action); setDoubleBuffered(true); setRenderer(new UMLListCellRenderer2(showIcon)); }
public UMLComboBox2(UMLComboBoxModel2 arg0, UMLAction action, boolean showIcon) { super(arg0); addActionListener(action); // setDoubleBuffered(true); setRenderer(new UMLListCellRenderer2(showIcon)); }
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { // various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. int pc = codeStream.position; lhs.ge...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { // various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. int pc = codeStream.position; lhs.ge...
public void removeCommandListener(ICommandListener commandListener) { if (commandListener == null) throw new NullPointerException(); if (commandListeners != null) commandListeners.remove(commandListener); if (commandListeners.isEmpty()) commandsWithListeners.remove(this); } boolean ...
public void removeCommandListener(ICommandListener commandListener) { if (commandListener == null) throw new NullPointerException(); if (commandListeners != null) commandListeners.remove(commandListener); if (commandListeners.isEmpty()) commandsWithListeners.remove(this); } boolean ...
private final void dumpTab(int tabNumber, StringBuffer buffer) { for (int i = 0; i < tabNumber; i++) { buffer.append(Util.bind("disassembler.identation")); //$NON-NLS-1$ } }
private final void dumpTab(int tabNumber, StringBuffer buffer) { for (int i = 0; i < tabNumber; i++) { buffer.append(Util.bind("disassembler.indentation")); //$NON-NLS-1$ } }
public Project getProject() { // only for testing... if (_project == null) _project = Project.makeEmptyProject(); return _project; }
public Project getProject() { // only for testing... // if (_project == null) _project = Project.makeEmptyProject(); return _project; }
public boolean isParameterizedType() { return this.binding.isParameterizedType(); }
public boolean isParameterizedType() { return this.binding.isParameterizedType() && ((ParameterizedTypeBinding) this.binding).arguments != null; }
protected void initializeDefaultPreferences(IPreferenceStore store) { JFacePreferences.setPreferenceStore(store); // new generic workbench preferences (for RCP APIs in org.eclipse.ui.application) store.setDefault(IWorkbenchPreferences.SHOULD_SAVE_WORKBENCH_STATE, false); store.setDefault(IWorkbenchPreferen...
protected void initializeDefaultPreferences(IPreferenceStore store) { JFacePreferences.setPreferenceStore(store); // new generic workbench preferences (for RCP APIs in org.eclipse.ui.application) store.setDefault(IWorkbenchPreferences.SHOULD_SAVE_WORKBENCH_STATE, false); store.setDefault(IWorkbenchPreferen...
protected String taskName; JobInfo jobInfo; /** * Create a new instance of the receiver. * @param parentJob * @param name */ SubTaskInfo(JobInfo parentJob, String name) { taskName = name; jobInfo = parentJob; } /* (non-Javadoc) * @see org.eclipse.ui.in...
protected String taskName; JobInfo jobInfo; /** * Create a new instance of the receiver. * @param parentJob * @param name */ SubTaskInfo(JobInfo parentJob, String name) { taskName = name; jobInfo = parentJob; } /* (non-Javadoc) * @see org.eclipse.ui.in...
public void testIsExpunged() throws Exception { // add message to folder Object uid = addMessage(); Flags flags = getSourceFolder().getFlags(uid); flags.setExpunged(true); // create filter configuration FilterCriteria criteria = new FilterCriteria(new...
public void testIsExpunged() throws Exception { // add message to folder Object uid = addMessage(); Flags flags = getSourceFolder().getFlags(uid); flags.setDeleted(true); // create filter configuration FilterCriteria criteria = new FilterCriteria(new ...
extends org.tigris.scarab.om.BaseAttributeTypePeer 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.tu...
extends org.tigris.scarab.om.BaseAttributeTypePeer 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.tu...
public CompletionScanner(boolean assertMode) { super(false /*comment*/, false /*whitespace*/, false /*nls*/, assertMode /*assert*/, null /*todo*/); }
public CompletionScanner(boolean assertMode) { super(false /*comment*/, false /*whitespace*/, false /*nls*/, assertMode /*assert*/, null /*task*/); }
private void initializeBuilder() throws CoreException { this.javaProject = (JavaProject) JavaCore.create(currentProject); this.workspaceRoot = currentProject.getWorkspace().getRoot(); // Flush the existing external files cache if this is the beginning of a build cycle String projectName = currentProject.getName();...
private void initializeBuilder() throws CoreException { this.javaProject = (JavaProject) JavaCore.create(currentProject); this.workspaceRoot = currentProject.getWorkspace().getRoot(); // Flush the existing external files cache if this is the beginning of a build cycle String projectName = currentProject.getName();...
public int getNodeType() { return TRY_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { TryStatement result = new TryStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLeadingComment(getLeadingComment(...
public int getNodeType() { return TRY_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { TryStatement result = new TryStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); result.s...
private void createMacrosMenu(JMenu menu, Vector vector, int start) { Vector menuItems = new Vector(); for(int i = start; i < vector.size(); i++) { Object obj = vector.elementAt(i); if(obj instanceof String) { menuItems.add(new EnhancedMenuItem( jEdit.getProperty(obj + ".label"), (String...
private void createMacrosMenu(JMenu menu, Vector vector, int start) { Vector menuItems = new Vector(); for(int i = start; i < vector.size(); i++) { Object obj = vector.elementAt(i); if(obj instanceof String) { menuItems.add(new EnhancedMenuItem( jEdit.getProperty(obj + ".label"), (String...
public JavaModelCache() { this.projectCache = new ElementCache(CACHE_RATIO); // average 38300 bytes per project -> maximum size : 38300*CACHE_RATIO bytes this.rootCache = new ElementCache(CACHE_RATIO*10); // average 2590 bytes per root -> maximum size : 25900*CACHE_RATIO bytes this.pkgCache = new ElementCache(CACHE_...
public JavaModelCache() { this.projectCache = new ElementCache(CACHE_RATIO*10); // average 38300 bytes per project -> maximum size : 38300*CACHE_RATIO bytes this.rootCache = new ElementCache(CACHE_RATIO*10); // average 2590 bytes per root -> maximum size : 25900*CACHE_RATIO bytes this.pkgCache = new ElementCache(CAC...
private TypeBinding[] getTypeArgumentsFromSignature(SignatureWrapper wrapper, TypeVariableBinding[] staticVariables, ReferenceBinding enclosingType, ReferenceBinding genericType) { java.util.ArrayList args = new java.util.ArrayList(2); int rank = 0; do { args.add(getTypeFromVariantTypeSignature(wrapper, staticVari...
private TypeBinding[] getTypeArgumentsFromSignature(SignatureWrapper wrapper, TypeVariableBinding[] staticVariables, ReferenceBinding enclosingType, ReferenceBinding genericType) { java.util.ArrayList args = new java.util.ArrayList(2); int rank = 0; do { args.add(getTypeFromVariantTypeSignature(wrapper, staticVari...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { // various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. int pc = codeStream.position; lhs.ge...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { // various scenarii are possible, setting an array reference, // a field reference, a blank final field reference, a field of an enclosing instance or // just a local variable. int pc = codeStream.position; lhs.ge...
public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(IWorkbenchConstants.ACCELERATOR_CONFIGURATION_ID)) { IWorkbenchPage page = window.getActivePage(); if(page != null) { IWorkbenchPart part = page.getActivePart(); if(part != null) { update(part,true...
public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals("org.eclipse.ui.commands")) { //$NON-NLS-1$ IWorkbenchPage page = window.getActivePage(); if(page != null) { IWorkbenchPart part = page.getActivePart(); if(part != null) { update(part,true); ...
public Object addMessage(InputStream in, Attributes attributes, Flags flags) throws Exception { // generate UID for new message Object newUid = generateNextMessageUid(); // save message stream to file getDataStorageInstance().saveMessage(newUid, in); // close stream in.close(); // parse header So...
public Object addMessage(InputStream in, Attributes attributes, Flags flags) throws Exception { // generate UID for new message Object newUid = generateNextMessageUid(); // save message stream to file getDataStorageInstance().saveMessage(newUid, in); // close stream in.close(); // parse header So...
protected void initPage(IPageBookViewPage page) { try { page.init(new PageSite(getViewSite())); } catch (PartInitException e) { WorkbenchPlugin.log(e.getMessage()); } }
protected void initPage(IPageBookViewPage page) { try { page.init(new PageSite(getViewSite())); } catch (PartInitException e) { WorkbenchPlugin.log(getClass(), "initPage", e); //$NON-NLS-1$ } }
protected String getURLContents(String docUrlValue) throws JavaModelException { InputStream stream = null; JarURLConnection connection2 = null; try { URL docUrl = new URL(docUrlValue); URLConnection connection = docUrl.openConnection(); if (connection instanceof JarURLConnection) { connection2 = (Ja...
protected String getURLContents(String docUrlValue) throws JavaModelException { InputStream stream = null; JarURLConnection connection2 = null; try { URL docUrl = new URL(docUrlValue); URLConnection connection = docUrl.openConnection(); if (connection instanceof JarURLConnection) { connection2 = (Ja...
public ToDoByPriority() { super("By Priority"); addSubTreeModel(new GoListToPriorityToItem()); }
public ToDoByPriority() { super("todo.perspective.priority"); addSubTreeModel(new GoListToPriorityToItem()); }
private static Icon trashIcon; static { collapsedFolderIcon = ImageLoader .getSmallImageIcon("folder-closed.png"); expandedFolderIcon = ImageLoader.getSmallImageIcon("folder-open.png"); virtualFolderIcon = ImageLoader.getSmallImageIcon("virtualfolder.png"); localRootFolderIcon = ImageLoader.getSmallImage...
private static Icon trashIcon; static { collapsedFolderIcon = ImageLoader .getSmallImageIcon("folder-closed.png"); expandedFolderIcon = ImageLoader.getSmallImageIcon("folder-open.png"); virtualFolderIcon = ImageLoader.getSmallImageIcon("virtualfolder.png"); localRootFolderIcon = ImageLoader.getSmallImage...
public TypeBinding resolveType(BlockScope scope) { super.resolveType(scope); // tolerate some error cases if (binding == null || !(binding.isValidBinding() || binding.problemId() == ProblemReasons.NotVisible || binding.problemId() == ProblemReasons.InheritedNameHidesEnclosingName || binding...
public TypeBinding resolveType(BlockScope scope) { super.resolveType(scope); // tolerate some error cases if (binding == null || !(binding.isValidBinding() || binding.problemId() == ProblemReasons.NotVisible || binding.problemId() == ProblemReasons.InheritedNameHidesEnclosingName || binding...
protected void addOption(StringBuffer sb, String value, String label, boolean matched) { sb.append("<option value=\""); sb.append(value); sb.append("\""); if (matched) sb.append(" selected=\"true\""); sb.append(">"); sb.append...
protected void addOption(StringBuffer sb, String value, String label, boolean matched) { sb.append("<option value=\""); sb.append(value); sb.append("\""); if (matched) sb.append(" selected=\"selected\""); sb.append(">"); sb.ap...
public interface IActiveKeyConfigurationDefinition extends Comparable { /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of ...
public interface IActiveKeyConfigurationDefinition extends Comparable { /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of ...
public void setTarget(Object item) { String message = ""; super.setTarget(item); Object target = TargetManager.getInstance().getTarget(); if (target == null) { _description.setText(Argo.localize("Cognitive", "message.no-item-selected")); } else if (target instanceof ToDoItem) { ToD...
public void setTarget(Object item) { String message = ""; super.setTarget(item); Object target = item; if (target == null) { _description.setText(Argo.localize("Cognitive", "message.no-item-selected")); } else if (target instanceof ToDoItem) { ToDoItem tdi = (ToDoItem) target; ...
public CodeFormatterParser( ProblemReporter problemReporter, boolean optimizeStringLiterals) { super(problemReporter, optimizeStringLiterals); this.annotationParser.checkAnnotation = false; }
public CodeFormatterParser( ProblemReporter problemReporter, boolean optimizeStringLiterals) { super(problemReporter, optimizeStringLiterals); this.javadocParser.checkJavadoc = false; }
public void actionPerformed(ActionEvent e) { if (logui.getCurrentLogPanel() != null) { logui.getCurrentLogPanel().toggleScrollToBottom(); } } }; action.putValue(Action.SHORT_DESCRIPTION, "Toggles Scroll to Bottom"); action.putValue("enabled", Boolea...
public void actionPerformed(ActionEvent e) { if (logui.getCurrentLogPanel() != null) { logui.getCurrentLogPanel().toggleScrollToBottom(); } } }; action.putValue(Action.SHORT_DESCRIPTION, "Toggles Scroll to Bottom"); action.putValue("enabled", Boolea...
private IBinaryType getBinaryTypeInfo(IFile file) throws JavaModelException { JavaElement le = (JavaElement) getParent(); if (le instanceof JarPackageFragment) { try { JarPackageFragmentRoot root = (JarPackageFragmentRoot) le.getParent(); IBinaryType info = null; ZipFile zip = null; try { zip = root...
private IBinaryType getBinaryTypeInfo(IFile file) throws JavaModelException { JavaElement le = (JavaElement) getParent(); if (le instanceof JarPackageFragment) { try { JarPackageFragmentRoot root = (JarPackageFragmentRoot) le.getParent(); IBinaryType info = null; ZipFile zip = null; try { zip = root...
public Annotation( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.typeIndex = u2At(classFileBytes, 0, offset); final int length = u2At(classFileBytes, 2, offset); this.componentsNumber = length; if (length != 0) { this.readOffset = 4; this.co...
public Annotation( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.typeIndex = u2At(classFileBytes, 0, offset); final int length = u2At(classFileBytes, 2, offset); this.componentsNumber = length; if (length != 0) { this.readOffset = 4; this.co...
public void setCurrentTheme(String id) { ITheme oldTheme = currentTheme; if (WorkbenchThemeManager.getInstance().doSetCurrentTheme(id)) { firePropertyChange(CHANGE_CURRENT_THEME, oldTheme, getCurrentTheme()); if (oldTheme != null) oldTheme....
public void setCurrentTheme(String id) { ITheme oldTheme = currentTheme; if (WorkbenchThemeManager.getInstance().doSetCurrentTheme(id)) { firePropertyChange(CHANGE_CURRENT_THEME, oldTheme, getCurrentTheme()); if (oldTheme != null) oldTheme....
public TabSpawnable spawn() { JDialog f = new JDialog(ProjectBrowser.TheInstance); f.getContentPane().setLayout(new BorderLayout()); f.setTitle(Argo.localize(BUNDLE, _title)); TabSpawnable newPanel = (TabSpawnable) clone(); if (newPanel == null) return null; //failed to clone if...
public TabSpawnable spawn() { JDialog f = new JDialog(ProjectBrowser.getInstance()); f.getContentPane().setLayout(new BorderLayout()); f.setTitle(Argo.localize(BUNDLE, _title)); TabSpawnable newPanel = (TabSpawnable) clone(); if (newPanel == null) return null; //failed to clone if (...
public HandleFactory(IWorkspace workspace) { this.workspace = workspace; this.javaModel = JavaModelManager.getJavaModel(workspace); }
public HandleFactory(IWorkspace workspace) { this.workspace = workspace; this.javaModel = JavaModelManager.getJavaModelManager().getJavaModel(); }
public IDropTarget drag(Control currentControl, Object draggedObject, Point position, Rectangle dragRectangle) { if (!(draggedObject instanceof LayoutPart)) { return null; } final LayoutPart sourcePart = (LayoutPart) draggedObject; if (!isStackType(sourcePa...
public IDropTarget drag(Control currentControl, Object draggedObject, Point position, Rectangle dragRectangle) { if (!(draggedObject instanceof LayoutPart)) { return null; } final LayoutPart sourcePart = (LayoutPart) draggedObject; if (!isStackType(sourcePa...
public int resolveLevel(Binding binding) { if (binding == null) return INACCURATE_MATCH; if (!(binding instanceof TypeBinding)) return IMPOSSIBLE_MATCH; TypeBinding type = (TypeBinding) binding; switch (this.pattern.classOrInterface) { case CLASS_SUFFIX: if (type.isInterface()) return IMPOSSIBLE_MATCH; br...
public int resolveLevel(Binding binding) { if (binding == null) return INACCURATE_MATCH; if (!(binding instanceof TypeBinding)) return IMPOSSIBLE_MATCH; TypeBinding type = (TypeBinding) binding; switch (this.pattern.typeSuffix) { case CLASS_SUFFIX: if (type.isInterface()) return IMPOSSIBLE_MATCH; break; ...
public void selectionChanged(DrawingView view) {} }
public void figureSelectionChanged(DrawingView view) {} }
public TestServer() { try { System.out.println( "Start local MBeanServer" ); MBeanServer lServer = MBeanServerFactory.createMBeanServer(); /* System.out.println( "Load and register the Logger Service" ); ObjectName lLoggerName = new ObjectName( lServer.getDefaultDomain(), "service", "Log" ); lLoggerN...
public TestServer() { try { System.out.println( "Start local MBeanServer" ); MBeanServer lServer = MBeanServerFactory.createMBeanServer(); /* System.out.println( "Load and register the Logger Service" ); ObjectName lLoggerName = new ObjectName( lServer.getDefaultDomain(), "service", "Log" ); lLoggerN...
public void end( SaxContext ctx) throws Exception { Stack st=ctx.getObjectStack(); Context tcCtx=(Context)st.pop(); // get the Context HostConfig hc=(HostConfig)st.peek(); st.push( tcCtx ); // put back the context, to be cleaned up corectly hc.addContext( tcCtx ); } }); ...
public void end( SaxContext ctx) throws Exception { Stack st=ctx.getObjectStack(); Context tcCtx=(Context)st.pop(); // get the Context HostConfig hc=(HostConfig)st.peek(); st.push( tcCtx ); // put back the context, to be cleaned up corectly hc.addContext( tcCtx ); } }); ...
public String toString() { StringBuffer sb = toStringNoData(); if (alg == null) return sb.toString(); sb.append(alg); sb.append(" (\n\t"); sb.append (timeSigned.getTime() / 1000); sb.append (" "); sb.append (Rcode.string(error)); sb.append ("\n"); sb.append (base64.formatString(signature, 64, "\t", false))...
public String toString() { StringBuffer sb = toStringNoData(); if (alg == null) return sb.toString(); sb.append(alg); sb.append(" (\n\t"); sb.append (timeSigned.getTime() / 1000); sb.append (" "); sb.append (Rcode.TSIGstring(error)); sb.append ("\n"); sb.append (base64.formatString(signature, 64, "\t", fal...
protected void validate(MethodValidator methodValidator) { methodValidator.validateAllMethods(); }
protected void validate(MethodValidator methodValidator) { methodValidator.validateMethodsForDefaultRunner(); }
public String getInitializer() { becomeDetailed(); if (hasInitializer()) { if (fInitializer != null) { return fInitializer; } else { return new String(CharOperation.subarray(fDocument, fInitializerRange[0], fInitializerRange[1] + 1)); } } else { return null; } }
public String getInitializer() { becomeDetailed(); if (hasInitializer()) { if (fInitializer != null) { return fInitializer; } else { return new String(fDocument, fInitializerRange[0], fInitializerRange[1] + 1 - fInitializerRange[0]); } } else { return null; } }
protected static void initClassLoader() { String name = "langpack_" + Locale.getDefault().toString() + ".jar"; File langpack = new File(MainInterface.config.getConfigDirectory(), name); if (!langpack.exists() || !langpack.isFile()) { langpack = new File(".", name); } ...
protected static void initClassLoader() { String name = "langpack_" + Locale.getDefault().toString() + ".jar"; File langpack = new File(MainInterface.config.getConfigDirectory(), name); if (!langpack.exists() || !langpack.isFile()) { langpack = new File(".", name); } ...
public static String[] INTERNAL_HEADERFIELDS = { // priority as integer value "columba.priority", // short from, containing only name of person "columba.from", // host from which this message was downloaded "columba.host", ...
public static String[] INTERNAL_HEADERFIELDS = { // priority as integer value "columba.priority", // short from, containing only name of person "columba.from", // host from which this message was downloaded "columba.host", ...