buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void generateSyntheticFieldInitializationsIfNecessary( MethodScope methodScope, CodeStream codeStream, ReferenceBinding declaringClass) { if (!declaringClass.isNestedType()) return; NestedTypeBinding nestedType = (NestedTypeBinding) declaringClass; SyntheticArgumentBinding[] syntheticArgs = ...
public void generateSyntheticFieldInitializationsIfNecessary( MethodScope methodScope, CodeStream codeStream, ReferenceBinding declaringClass) { if (!declaringClass.isNestedType()) return; NestedTypeBinding nestedType = (NestedTypeBinding) declaringClass; SyntheticArgumentBinding[] syntheticArgs = ...
public LocalFilterPluginHandler() { super("filter_local", "org/columba/mail/filter/filter_local.xml", "filterlist"); }
public LocalFilterPluginHandler() { super("filter", "org/columba/mail/filter/filter.xml", "filterlist"); }
public void service( Request rrequest, Response rresponse ) { try { /* assert rrequest/rresponse are set up corectly - have cm, and one-one relation */ // wront request - parsing error int status=rresponse.getStatus(); if( status < 400 ) status= processRequest( rrequest ); ...
public void service( Request rrequest, Response rresponse ) { try { /* assert rrequest/rresponse are set up corectly - have cm, and one-one relation */ // wront request - parsing error int status=rresponse.getStatus(); if( status < 400 ) status= processRequest( rrequest ); ...
public void contextInit(Context ctx) throws TomcatException { if( ctx.getDebug() > 0 ) ctx.log("XmlReader - init " + ctx.getPath() + " " + ctx.getDocBase() ); // read default web.xml try { String home = ctx.getContextManager().getHome(); // XXX make it configurable File default_xml=new Fi...
public void contextInit(Context ctx) throws TomcatException { if( ctx.getDebug() > 0 ) ctx.log("XmlReader - init " + ctx.getPath() + " " + ctx.getDocBase() ); // read default web.xml try { String home = ctx.getContextManager().getHome(); // XXX make it configurable File default_xml=new Fi...
private void initializeRoots(IJavaModel model) { this.roots = new HashMap(); this.otherRoots = new HashMap(); IJavaProject[] projects; try { projects = model.getJavaProjects(); } catch (JavaModelException e) { // nothing can be done return; } for (int i = 0, length = projects.length; i < length; i++) { I...
private void initializeRoots(IJavaModel model) { this.roots = new HashMap(); this.otherRoots = new HashMap(); IJavaProject[] projects; try { projects = ((JavaModel)model).getOldJavaProjectsList(); } catch (JavaModelException e) { // nothing can be done return; } for (int i = 0, length = projects.length; i ...
public DeclarationOfReferencedTypesPattern(IJavaElement enclosingElement) { super(null, null, PATTERN_MATCH, false); this.enclosingElement = enclosingElement; this.needsResolve = true; this.knownTypes = new HashSet(); }
public DeclarationOfReferencedTypesPattern(IJavaElement enclosingElement) { super(null, null, PATTERN_MATCH, false); this.enclosingElement = enclosingElement; this.mustResolve = true; this.knownTypes = new HashSet(); }
private String processElement(ICompilationUnit unit, int[] positionsToMap, char[] source) { CompilerOptions options = new CompilerOptions(unit.getJavaProject().getOptions(true)); SortElementBuilder builder = new SortElementBuilder(source, positionsToMap, this.comparator, options); SourceElementParser parser = ne...
private String processElement(ICompilationUnit unit, int[] positionsToMap, char[] source) { CompilerOptions options = new CompilerOptions(unit.getJavaProject().getOptions(true)); SortElementBuilder builder = new SortElementBuilder(source, positionsToMap, this.comparator, options); SourceElementParser parser = ne...
public synchronized void readModels(Project p, URL url) throws IOException { _proj = p; Argo.log.info("======================================="); Argo.log.info("== READING MODEL " + url); try { XMIReader reader = new XMIReader(); InputSource source = new Inp...
public synchronized void readModels(Project p, URL url) throws IOException { _proj = p; Argo.log.info("======================================="); Argo.log.info("== READING MODEL " + url); try { XMIReader reader = new XMIReader(); InputSource source = new Inp...
public void approve( ScarabUser user, boolean approved ) throws Exception, ScarabException { Module module = getModule(); if (user.hasPermission(ScarabSecurity.ITEM__APPROVE, module)) { IssueTemplateInfo templateInfo = getTemplateInfo(); ...
public void approve( ScarabUser user, boolean approved ) throws Exception, ScarabException { Module module = getModule(); if (user.hasPermission(ScarabSecurity.ITEM__APPROVE, module)) { IssueTemplateInfo templateInfo = getTemplateInfo(); ...
public TypeBinding resolveTypeEnclosing(BlockScope scope, ReferenceBinding enclosingType) { ReferenceBinding memberType = scope.getMemberType(token, enclosingType); if (!memberType.isValidBinding()) { this.resolvedType = memberType; scope.problemReporter().invalidEnclosingType(this, memberType, enclosingTyp...
public TypeBinding resolveTypeEnclosing(BlockScope scope, ReferenceBinding enclosingType) { ReferenceBinding memberType = scope.getMemberType(token, enclosingType); if (!memberType.isValidBinding()) { this.resolvedType = memberType; scope.problemReporter().invalidEnclosingType(this, memberType, enclosingTyp...
public void setMaxSize(long maxSize) { this.maxSize = maxSize; ensureMaxSize(); } } class CacheEntry implements Serializable { Date lastAccess;
public CacheEntry(Object key, File file) {
+ ((modifiers & 0x0004) == 0x0004 ? "protected " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0008) == 0x000008 ? "static " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0010) == 0x0010 ? "final " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0040) == 0x0040 ? "volatile " : "") //$NON-NLS...
+ ((modifiers & 0x0004) == 0x0004 ? "protected " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0008) == 0x000008 ? "static " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0010) == 0x0010 ? "final " : "") //$NON-NLS-1$ //$NON-NLS-2$ + ((modifiers & 0x0040) == 0x0040 ? "bridge " : "") //$NON-NLS-1...
public int getNodeType() { return SUPER_CONSTRUCTOR_INVOCATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { SuperConstructorInvocation result = new SuperConstructorInvocation(target); result.setSourceRange(this.getStartPosition(), this.getLength()); ...
public int getNodeType() { return SUPER_CONSTRUCTOR_INVOCATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { SuperConstructorInvocation result = new SuperConstructorInvocation(target); result.setSourceRange(this.getStartPosition(), this.getLength()); ...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { FlowInfo thenFlowInfo, elseFlowInfo; // process the condition flowInfo = condition.analyseCode(currentScope, flowContext, flowInfo); Constant condConstant = this.condition.optimizedBooleanConstant(); //T...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { FlowInfo thenFlowInfo, elseFlowInfo; // process the condition flowInfo = condition.analyseCode(currentScope, flowContext, flowInfo); Constant condConstant = this.condition.constant; // process the THE...
public void resolve(MethodScope initializationScope) { // the two <constant = Constant.NotAConstant> could be regrouped into // a single line but it is clearer to have two lines while the reason of their // existence is not at all the same. See comment for the second one. //----------------------------------...
public void resolve(MethodScope initializationScope) { // the two <constant = Constant.NotAConstant> could be regrouped into // a single line but it is clearer to have two lines while the reason of their // existence is not at all the same. See comment for the second one. //----------------------------------...
public TypeBinding resolveType(BlockScope scope) { // Answer the signature type of the field. // constants are propaged when the field is final // and initialized with a (compile time) constant // regular receiver reference receiverType = receiver.resolveType(scope); if (receiverType == null){ constant = Not...
public TypeBinding resolveType(BlockScope scope) { // Answer the signature type of the field. // constants are propaged when the field is final // and initialized with a (compile time) constant // regular receiver reference receiverType = receiver.resolveType(scope); if (receiverType == null){ constant = Not...
private void runEventLoop() { // Only run the event loop so often, as it is expensive on some platforms // (namely Motif). long t = System.currentTimeMillis(); if (t - lastTime < T_THRESH) { return; } lastTime = t; // Run the event loop. Display disp = Display.getDefault(); if (disp == null) { ...
private void runEventLoop() { // Only run the event loop so often, as it is expensive on some platforms // (namely Motif). long t = System.currentTimeMillis(); if (t - lastTime < T_THRESH) { return; } lastTime = t; // Run the event loop. Display disp = Display.getDefault(); if (disp == null) { ...
public void execute(WorkerStatusController worker) throws Exception { this.worker = worker; // use wrapper class for easier handling of references array adapter = new FolderCommandAdapter( (FolderCommandReference[]) getReferences()); // get array of source reference...
public void execute(WorkerStatusController worker) throws Exception { this.worker = worker; // use wrapper class for easier handling of references array adapter = new FolderCommandAdapter( (FolderCommandReference[]) getReferences()); // get array of source reference...
public static String getWarningToken(int problemID){ long irritant = ProblemReporter.getIrritant(problemID); if (irritant != 0) { return CompilerOptions.warningTokenFromIrritant(irritant); } return null; }
public static String getWarningToken(int problemID){ int irritant = ProblemReporter.getIrritant(problemID); if (irritant != 0) { return CompilerOptions.warningTokenFromIrritant(irritant); } return null; }
public String toString() { // don't use + with char[] return new StringBuffer("AbstractMethodCollaboratorIndictment(").append(fName).append(")").toString(); //$NON-NLS-1$ //$NON-NLS-2$ }
public String toString() { // don't use + with char[] return new StringBuffer("AbstractMethodCollaboratorIndictment("/*nonNLS*/).append(fName).append(")"/*nonNLS*/).toString(); }
public String getDefaultChild() { return "CachedMHFolder"; }
public String getDefaultChild() { return "MHFolder"; }
public void setOwnedElement(Vector x) throws PropertyVetoException { if (_ownedElement == null) _ownedElement = new Vector(); fireVetoableChange("ownedElement", _ownedElement, x); _ownedElement = x; }
public void setOwnedElement(Vector x) throws PropertyVetoException { if (_ownedElement == null) _ownedElement = new Vector(); fireVetoableChangeNoCompare("ownedElement", _ownedElement, x); _ownedElement = x; }
public int match(MessageSend node, MatchingNodeSet nodeSet) { if (!this.pattern.findReferences) return IMPOSSIBLE_MATCH; if (!matchesName(this.pattern.selector, node.selector)) return IMPOSSIBLE_MATCH; if (this.pattern.parameterSimpleNames != null) { int length = this.pattern.parameterSimpleNames.length; ASTNod...
public int match(MessageSend node, MatchingNodeSet nodeSet) { if (!this.pattern.findReferences) return IMPOSSIBLE_MATCH; if (!matchesName(this.pattern.selector, node.selector)) return IMPOSSIBLE_MATCH; if (this.pattern.parameterSimpleNames != null && !this.pattern.varargs) { int length = this.pattern.parameterSim...
public ISourceImport[] getImports() { if (this.imports == null) { try { IImportDeclaration[] importDeclarations = this.fHandle.getCompilationUnit().getImports(); int length = importDeclarations.length; if (length == 0) { this.imports = NO_IMPORTS; } else { this.imports = new ISourceImport[importD...
public ISourceImport[] getImports() { if (this.imports == null) { try { IImportDeclaration[] importDeclarations = this.fHandle.getCompilationUnit().getImports(); int length = importDeclarations.length; if (length == 0) { this.imports = NO_IMPORTS; } else { this.imports = new ISourceImport[length]...
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } IWorkbenchAction action = new QuitAction(); action.setId(getId()); return action; }
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } IWorkbenchAction action = new QuitAction(window); action.setId(getId()); return action; }
public void activateOptions() { PatternParser patternParser = new PatternParser(conversionPattern); patternParser.setConverterRegistry(ruleRegistry); head = patternParser.parse(); handlesExceptions = PatternConverter.chainHandlesTrowable(head); }
public void activateOptions() { PatternParser patternParser = new PatternParser(conversionPattern); patternParser.setConverterRegistry(ruleRegistry); head = patternParser.parse(); handlesExceptions = PatternConverter.chainHandlesThrowable(head); }
public Type navigateQualified(String name, Type[] qualifiers) { if (classifier == null) { throw new OclTypeException("attempting to access features of Void"); } if (qualifiers != null) { throw new OclTypeException("qualified associations not supported yet!"); } ...
public Type navigateQualified(String name, Type[] qualifiers) { if (classifier == null) { throw new OclTypeException("attempting to access features of Void"); } if (qualifiers != null) { throw new OclTypeException("qualified associations not supported yet!"); } ...
public void resolve(BlockScope scope) { MethodScope methodScope = scope.methodScope(); MethodBinding methodBinding; TypeBinding methodType = (methodScope.referenceContext instanceof AbstractMethodDeclaration) ? ((methodBinding = ((AbstractMethodDeclaration) methodScope.referenceContext).binding) == null ...
public void resolve(BlockScope scope) { MethodScope methodScope = scope.methodScope(); MethodBinding methodBinding; TypeBinding methodType = (methodScope.referenceContext instanceof AbstractMethodDeclaration) ? ((methodBinding = ((AbstractMethodDeclaration) methodScope.referenceContext).binding) == null ...
protected boolean isAcceptableMethod(MethodBinding one, MethodBinding two) { TypeBinding[] oneParams = one.parameters; TypeBinding[] twoParams = two.parameters; int oneParamsLength = oneParams.length; int twoParamsLength = twoParams.length; if (oneParamsLength == twoParamsLength) { for (int i = 0; i < one...
protected boolean isAcceptableMethod(MethodBinding one, MethodBinding two) { TypeBinding[] oneParams = one.parameters; TypeBinding[] twoParams = two.parameters; int oneParamsLength = oneParams.length; int twoParamsLength = twoParams.length; if (oneParamsLength == twoParamsLength) { for (int i = 0; i < one...
public static boolean isDeclaringPackageFragment(IPackageFragment packageFragment, ReferenceBinding typeBinding) { char[] fileName = typeBinding.getFileName(); if (fileName != null) { // retrieve the actual file name from the full path (sources are generally only containing it already) CharOperation.replace(fileN...
public static boolean isDeclaringPackageFragment(IPackageFragment packageFragment, ReferenceBinding typeBinding) { char[] fileName = typeBinding.getFileName(); if (fileName != null) { // retrieve the actual file name from the full path (sources are generally only containing it already) fileName = CharOperation.re...
public void selectionChanged(SelectionChangedEvent e) { if (((TreeSelectionChangedEvent) e).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) e).getSelected()[0]; if ((folder != null) && folder instanceof MessageFolder) { FolderItem ite...
public void selectionChanged(SelectionChangedEvent e) { if (((TreeSelectionChangedEvent) e).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) e).getSelected()[0]; if ((folder != null) && folder instanceof MessageFolder) { FolderItem ite...
private boolean canHandleFolderImport(TreeView treeView, AbstractFolder dropTarget) { boolean canImport = false; AbstractFolder dragTarget = treeView.getSelectedNodeBeforeDragAction(); if ((dragTarget != null) && (!dragTarget.isNodeDescendant(dropTarget)) && (dragTarget != dropTarget)) { canImport = ...
private boolean canHandleFolderImport(TreeView treeView, AbstractFolder dropTarget) { boolean canImport = false; AbstractFolder dragTarget = treeView.getSelectedNodeBeforeDragAction(); if ((dragTarget != null) && (!dragTarget.isNodeDescendant(dropTarget)) && (dragTarget != dropTarget)) { canImport = ...
private 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 InsideLog =...
private 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 InsideLog =...
public boolean isSubRoutine() { return true; } boolean recordFinalAssignment( VariableBinding binding, Reference finalAssignment) { if (assignCount == 0) { finalAssignments = new Reference[5]; finalVariables = new VariableBinding[5]; } else { if (assignCount == finalAssignments.length) System...
public boolean isSubRoutine() { return true; } boolean recordFinalAssignment( VariableBinding binding, Reference finalAssignment) { if (assignCount == 0) { finalAssignments = new Reference[5]; finalVariables = new VariableBinding[5]; } else { if (assignCount == finalAssignments.length) System...
public void generatePostIncrement( BlockScope currentScope, CodeStream codeStream, CompoundAssignment postIncrement, boolean valueRequired) { receiver.generateCode(currentScope, codeStream, true); if (receiver instanceof CastExpression // ((type[])null)[0] && ((CastExpression)receiver).innermostCasted...
public void generatePostIncrement( BlockScope currentScope, CodeStream codeStream, CompoundAssignment postIncrement, boolean valueRequired) { receiver.generateCode(currentScope, codeStream, true); if (receiver instanceof CastExpression // ((type[])null)[0] && ((CastExpression)receiver).innermostCasted...
private void initializeKnownFileNames(String[] initialFileNames) { if (initialFileNames == null) { this.knownFileNames = new HashSet(0); return; } this.knownFileNames = new HashSet(initialFileNames.length * 2); for (int i = initialFileNames.length; --i >= 0;) { char[] fileName = initialFileNames[i].toCharArra...
private void initializeKnownFileNames(String[] initialFileNames) { if (initialFileNames == null) { this.knownFileNames = new HashSet(0); return; } this.knownFileNames = new HashSet(initialFileNames.length * 2); for (int i = initialFileNames.length; --i >= 0;) { char[] fileName = initialFileNames[i].toCharArra...
public void setTarget(Object target) { //System.out.println("MultiEditorPane setTarget: " + target); int firstEnabled = -1; boolean jumpToFirstEnabledTab = false; int currentTab = _tabs.getSelectedIndex(); if (_target == target) return; _target = target; for (int i = 0; i < _tabPanels.size...
public void setTarget(Object target) { //System.out.println("MultiEditorPane setTarget: " + target); int firstEnabled = -1; boolean jumpToFirstEnabledTab = false; int currentTab = _tabs.getSelectedIndex(); if (_target == target) return; _target = target; for (int i = 0; i < _tabPanels.size...
public void run() { JobProgressManager provider = JobProgressManager.getInstance(); provider.debug = !provider.debug; setChecked(provider.debug); provider.refreshViewers(null); } }); }
public void run() { JobProgressManager provider = JobProgressManager.getInstance(); provider.debug = !provider.debug; setChecked(provider.debug); provider.refreshAll(); } }); }
public void resolve(BlockScope scope) { // create a binding and add it to the scope TypeBinding variableType = type.resolveType(scope); checkModifiers(); if (variableType != null) { if (variableType == VoidBinding) { scope.problemReporter().variableTypeCannotBeVoid(this); return; } if (vari...
public void resolve(BlockScope scope) { // create a binding and add it to the scope TypeBinding variableType = type.resolveType(scope); checkModifiers(); if (variableType != null) { if (variableType == VoidBinding) { scope.problemReporter().variableTypeCannotBeVoid(this); return; } if (vari...
private void addEvent() { mEventSink.addEvent( new EventDetails( mTimeStamp, mPriority, mCategoryName, mNDC, mThreadName, mMessage, mThrowableStrRep, mLocationDetails)); mNumEvents++; }
private void addEvent() { mEventSink.addEvent( new EventDetails( mTimeStamp, mPriority, mCategoryName, mNDC, null, mThreadName, mMessage, mThrowableStrRep, mLocationDetails)); mNumEvents++; }
public void run() { // If the same message is still shown // Mark it as read if(controller.getShownFolder() != null && controller.getShownFolder().equals(r.getSourceFolder()) && controller.getShownUid() != null && controller.getShownUid().equals(r.getUids()[0])) { r.setMarkVariant(MarkMessageCommand.MARK_AS...
public void run() { // If the same message is still shown // Mark it as read if(controller.getSelectedFolder() != null && controller.getSelectedFolder().equals(r.getSourceFolder()) && controller.getSelectedMessageId() != null && controller.getSelectedMessageId().equals(r.getUids()[0])) { r.setMarkVariant(Mark...
public ErrorInfo(IStatus status, Job job) { errorStatus = status; this.job = job; timestamp = System.currentTimeMillis(); } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.JobTreeElement#getParent() */ Object getParent() { return null; } /* * (non-Javadoc) * * @see org.eclip...
public ErrorInfo(IStatus status, Job job) { errorStatus = status; this.job = job; timestamp = System.currentTimeMillis(); } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.JobTreeElement#getParent() */ Object getParent() { return null; } /* * (non-Javadoc) * * @see org.eclip...
public int getNodeType() { return TYPE_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { TypeDeclaration result = new TypeDeclaration(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setJavadoc( (Javadoc) AS...
public int getNodeType() { return TYPE_DECLARATION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { TypeDeclaration result = new TypeDeclaration(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setJavadoc( (Javadoc) A...
public void testIgnore() { runner.run(IgnoreTest.class); assertThat(results.toString(), both(containsString("Antimilos")).and(containsString("ignored test:"))); }
public void testIgnore() { runner.run(IgnoreTest.class); assertThat(results.toString(), both(containsString("Antimilos")).and(containsString("ignored test:")).and(containsString("IGNORED TEST 1)"))); }
public Collection getChildren(Object parent) { if (!(parent instanceof Project)) return null; Vector res = new Vector(); Vector models = ((Project)parent).getModels(); if (models == null) return null; java.util.Enumeration enum = models.elements(); while (enum.hasMoreElements()) { Object...
public Collection getChildren(Object parent) { if (!(parent instanceof Project)) return null; Vector res = new Vector(); Vector models = ((Project)parent).getUserDefinedModels(); if (models == null) return null; java.util.Enumeration enum = models.elements(); while (enum.hasMoreElements()) { ...
public ReferenceBinding findMemberType(char[] typeName, ReferenceBinding enclosingType) { if ((enclosingType.tagBits & TagBits.HasNoMemberTypes) != 0) return null; // know it has no member types (nor inherited member types) ReferenceBinding enclosingSourceType = enclosingSourceType(); PackageBinding currentP...
public ReferenceBinding findMemberType(char[] typeName, ReferenceBinding enclosingType) { if ((enclosingType.tagBits & TagBits.HasNoMemberTypes) != 0) return null; // know it has no member types (nor inherited member types) ReferenceBinding enclosingSourceType = enclosingSourceType(); PackageBinding currentP...
public IJavaElementDelta getDelta() { return (IJavaElementDelta) source; }
public IJavaElementDelta getDelta() { return (IJavaElementDelta) this.source; }
private void locatePackageDeclarations( SearchPattern searchPattern, IWorkspace workspace) throws JavaModelException { if (searchPattern instanceof OrPattern) { OrPattern orPattern = (OrPattern) searchPattern; this.locatePackageDeclarations(orPattern.leftPattern, workspace); this.locatePackageDeclarat...
private void locatePackageDeclarations( SearchPattern searchPattern, IWorkspace workspace) throws JavaModelException { if (searchPattern instanceof OrPattern) { OrPattern orPattern = (OrPattern) searchPattern; this.locatePackageDeclarations(orPattern.leftPattern, workspace); this.locatePackageDeclarat...
public int authorize( Request req, Response response ) { Context ctx=req.getContext(); SecurityConstraints ctxSec=(SecurityConstraints)ctx.getContainer().getNote( secMapNote ); if( ctxSec.patterns==0 ) return 0; // fast exit String reqURI = req.getRequestURI(); String ctxPath= ctx.getPath(); String path...
public int authorize( Request req, Response response ) { Context ctx=req.getContext(); SecurityConstraints ctxSec=(SecurityConstraints)ctx.getContainer().getNote( secMapNote ); if( ctxSec.patterns==0 ) return 0; // fast exit String reqURI = req.getRequestURI(); String ctxPath= ctx.getPath(); String path...
public void updateKeys() { IWorkbenchWindow workbenchWindow = getActiveWorkbenchWindow(); if (workbenchWindow != null && workbenchWindow instanceof WorkbenchWindow) { WWinKeyBindingService wWinKeyBindingService = ((WorkbenchWindow) workbenchWindow).getKeyBindingService(); if (wWinKeyBindingService != nu...
public void updateKeys() { IWorkbenchWindow workbenchWindow = getActiveWorkbenchWindow(); if (workbenchWindow != null && workbenchWindow instanceof WorkbenchWindow) { WWinKeyBindingService wWinKeyBindingService = ((WorkbenchWindow) workbenchWindow).getKeyBindingService(); if (wWinKeyBindingService != nu...
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 boolean equalTo(Object other) { return true; } // } // interface Equivalent<T> { boolean equalTo(T other); } // interface EqualityComparable { boolean equalTo(Object other); } // class A<T extends Number> { void m(T t) {} } // class B<S extends Integer> extends A<S> { void m(S t) {}} // class ...
// public boolean equalTo(Object other) { return true; } // } // interface Equivalent<T> { boolean equalTo(T other); } // interface EqualityComparable { boolean equalTo(Object other); } // class A<T extends Number> { void m(T t) {} } // class B<S extends Integer> extends A<S> { void m(S t) {}} // class ...
private void internalAnalyseCode(FlowContext flowContext, FlowInfo flowInfo) { if ((this.binding.isPrivate() || (this.binding.tagBits & (TagBits.IsAnonymousType|TagBits.IsLocalType)) == TagBits.IsLocalType) && !this.binding.isUsed()) { if (!this.scope.referenceCompilationUnit().compilationResult.hasSyntaxError) { ...
private void internalAnalyseCode(FlowContext flowContext, FlowInfo flowInfo) { if (!this.binding.isUsed() && this.binding.isOrEnclosedByPrivateType()) { if (!this.scope.referenceCompilationUnit().compilationResult.hasSyntaxError) { this.scope.problemReporter().unusedPrivateType(this); } } InitializationFlowCo...
protected JavaModelOperation getNestedOperation(IJavaElement element) { try { IJavaElement dest = getDestinationParent(element); switch (element.getElementType()) { case IJavaElement.PACKAGE_DECLARATION : return new CreatePackageDeclarationOperation(element.getElementName(), (ICompilationUnit) dest); cas...
protected JavaModelOperation getNestedOperation(IJavaElement element) { try { IJavaElement dest = getDestinationParent(element); switch (element.getElementType()) { case IJavaElement.PACKAGE_DECLARATION : return new CreatePackageDeclarationOperation(element.getElementName(), (ICompilationUnit) dest); cas...
private static KeyStroke deprecatedStrokeToKeyStroke(int stroke) { return KeySupport.convertFromSWT(stroke); }
private static KeyStroke deprecatedStrokeToKeyStroke(int stroke) { return KeySupport.convertAcceleratorToKeyStroke(stroke); }
public DefaultContainer(ViewItem viewItem) { super(); this.viewItem = viewItem; mediator = new DefaultFrameController(this, viewItem); this.setIconImage(ImageLoader.getImageIcon("icon16.png").getImage()); if (MainInterface.DEBUG) { setTitle("Columba - version: " + org.columba.core.main.MainInterface....
public DefaultContainer(ViewItem viewItem) { super(); this.viewItem = viewItem; mediator = new DefaultFrameController(this, viewItem); this.setIconImage(ImageLoader.getImageIcon("icon16.png").getImage()); if (MainInterface.DEBUG) { setTitle("Columba - version: " + org.columba.core.main.MainInterface....
public long time = 0; long lineCount; Hashtable options; String[] filenames; String[] classpaths; String destinationPath; String log; int repetitions; int globalProblemsCount; int globalErrorsCount; int globalWarningsCount; String versionID = "0.133+ stream 2.0"; //$NON-NLS-1$ private static final char[]...
public long time = 0; long lineCount; Hashtable options; String[] filenames; String[] classpaths; String destinationPath; String log; int repetitions; int globalProblemsCount; int globalErrorsCount; int globalWarningsCount; String versionID = "0.201.1"; //$NON-NLS-1$ private static final char[] CLASS_FIL...
public interface IContactStorage extends IFolder{ // The contents of this file are subject to the Mozilla Public License Version // 1.1 //(the "License"); you may not use this file except in compliance with the //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ // //Software distributed und...
public interface IContactStorage extends IFolder{ // The contents of this file are subject to the Mozilla Public License Version // 1.1 //(the "License"); you may not use this file except in compliance with the //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ // //Software distributed und...
public static String[] getTrimmedSimpleNames(String name) { String[] result = splitOn(Signature.C_DOT, name, 0, name.length()); for (int i = 0, length = result.length; i < length; i++) { result[i] = result[i].trim(); }
public static String[] getTrimmedSimpleNames(String name) { String[] result = Signature.getSimpleNames(name); for (int i = 0, length = result.length; i < length; i++) { result[i] = result[i].trim(); }
public void run() { lineSelectionLabel.setText( selectedLine+""); eventCountLabel.setText(selectedLine==0?"":lineCount + ":" + total); } }); }
public void run() { lineSelectionLabel.setText( selectedLine+""); eventCountLabel.setText(lineCount + ":" + total); } }); }
public MethodBinding tiebreakMethod() { if (this.tiebreakMethod == null) { // if (this.isRaw) { // this.tiebreakMethod = this; // } else { // this.tiebreakMethod = new ParameterizedGenericMethodBinding(this.originalMethod, (RawTypeBinding)null, this.environment); TypeVariableBinding[] originalVariables...
public MethodBinding tiebreakMethod() { if (this.tiebreakMethod == null) { // if (this.isRaw) { // this.tiebreakMethod = this; // } else { // this.tiebreakMethod = new ParameterizedGenericMethodBinding(this.originalMethod, (RawTypeBinding)null, this.environment); TypeVariableBinding[] originalVariables...
protected IType resolveType(char[] packageName, char[] typeName, int acceptFlags) { IType type= null; if (fCodeResolve instanceof WorkingCopy) { WorkingCopy wc = (WorkingCopy) fCodeResolve; try { if(((packageName == null || packageName.length == 0) && wc.getPackageDeclarations().length == 0) || (!(packa...
protected IType resolveType(char[] packageName, char[] typeName, int acceptFlags) { IType type= null; if (fCodeResolve instanceof WorkingCopy) { WorkingCopy wc = (WorkingCopy) fCodeResolve; try { if(((packageName == null || packageName.length == 0) && wc.getPackageDeclarations().length == 0) || (!(packa...
public static boolean isDottedQuad(String s) { MyStringTokenizer st = new MyStringTokenizer(s, "."); int labels = 0; int i; int [] values = new int[4]; for (i = 0; i < 4; i++) { if (st.hasMoreTokens() == false) break; try { values[i] = Integer.parseInt(st.nextToken()); } catch (NumberFormatException ...
public static boolean isDottedQuad(String s) { MyStringTokenizer st = new MyStringTokenizer(s, "."); int labels = 0; int i; int [] values = new int[4]; for (i = 0; i < 4; i++) { if (st.hasMoreTokens() == false) break; try { values[i] = Integer.parseInt(st.nextToken()); } catch (NumberFormatException ...
public static void readAdditions(WorkbenchMenuService menuService) { final IExtensionRegistry registry = Platform.getExtensionRegistry(); final IConfigurationElement[] menusExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_MENUS); // Create a cache entry for every menu addition for (int i =...
public static void readAdditions(WorkbenchMenuService menuService) { final IExtensionRegistry registry = Platform.getExtensionRegistry(); final IConfigurationElement[] menusExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_MENUS); // Create a cache entry for every menu addition for (int i =...
public NXTRecord(Name _name, short _dclass, int _ttl, Name _next, BitSet _bitmap) { super(_name, Type.NXT, _dclass, _ttl); next = _next; bitmap = _bitmap; } NXTRecord(Name _name, short _dclass, int _ttl, int length, DataByteInputStream in) throws IOException { super(_name, Type.NXT, _dclass, _ttl); if (in == n...
public NXTRecord(Name _name, short _dclass, int _ttl, Name _next, BitSet _bitmap) { super(_name, Type.NXT, _dclass, _ttl); next = _next; bitmap = _bitmap; } NXTRecord(Name _name, short _dclass, int _ttl, int length, DataByteInputStream in) throws IOException { super(_name, Type.NXT, _dclass, _ttl); if (in == n...
private void add(PerspectiveDescriptor desc) { perspectives.add(desc); IConfigurationElement element = desc.getConfigElement(); if (element != null) { Workbench.getInstance().getConfigurationElementTracker().registerObject(element, desc); } }
private void add(PerspectiveDescriptor desc) { perspectives.add(desc); IConfigurationElement element = desc.getConfigElement(); if (element != null) { Workbench.getInstance().getConfigurationElementTracker().registerObject(element, desc, IConfigurationElementTracker.REF_WEAK); } }
public ChUseCase() { setNextCategory("Naming"); addItem("Does the name '{name}' clearly describe the class?"); addItem("Is '{name}' a noun or noun phrase?"); addItem("Could the name '{name}' be misinterpreted to mean something else?"); setNextCategory("Encoding"); addItem("Should {name} be its own class...
public ChUseCase() { setNextCategory("Naming"); addItem("Does the name '{name}' clearly describe the class?"); addItem("Is '{name}' a noun or noun phrase?"); addItem("Could the name '{name}' be misinterpreted to mean something else?"); setNextCategory("Encoding"); addItem("Should {name} be its own class...
public int getNodeType() { return BREAK_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { BreakStatement result = new BreakStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLeadingComment(getLeadingCo...
public int getNodeType() { return BREAK_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { BreakStatement result = new BreakStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); re...
protected void toStringInfo(int tab, StringBuffer buffer, Object info) { buffer.append(this.tabString(tab)); buffer.append("package "); //$NON-NLS-1$ toStringName(buffer); if (info == null) { buffer.append(" (not open)"); //$NON-NLS-1$ } } }
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(this.tabString(tab)); buffer.append("package "); //$NON-NLS-1$ toStringName(buffer); if (info == null) { buffer.append(" (not open)"); //$NON-NLS-1$ } } }
public void computeLocalVariablePositions(int initOffset, CodeStream codeStream) { boolean isReportingUnusedArgument = false; if (referenceContext instanceof AbstractMethodDeclaration) { AbstractMethodDeclaration methodDecl = (AbstractMethodDeclaration)referenceContext; MethodBinding method = methodDecl.bi...
public void computeLocalVariablePositions(int initOffset, CodeStream codeStream) { boolean isReportingUnusedArgument = false; if (referenceContext instanceof AbstractMethodDeclaration) { AbstractMethodDeclaration methodDecl = (AbstractMethodDeclaration)referenceContext; MethodBinding method = methodDecl.bi...
public double doubleValue() { return (double) value; }
public double doubleValue() { return this.value; }
public void actionPerformed(ActionEvent e) { // when the action is performed, i.e. someone clicked on the menuitem, // create a new writer, get the Project and its curent Model, // then store it. Simple as this. DBWriter writer = new DBWriter(); if (writer.hasConnection()) { ProjectBrowser pb = Project...
public void actionPerformed(ActionEvent e) { // when the action is performed, i.e. someone clicked on the menuitem, // create a new writer, get the Project and its curent Model, // then store it. Simple as this. DBWriter writer = new DBWriter(); if (writer.hasConnection()) { ProjectBrowser pb = Project...
public int getNodeType() { return VARIABLE_DECLARATION_FRAGMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { VariableDeclarationFragment result = new VariableDeclarationFragment(target); result.setSourceRange(this.getStartPosition(), this.getLength());...
public int getNodeType() { return VARIABLE_DECLARATION_FRAGMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { VariableDeclarationFragment result = new VariableDeclarationFragment(target); result.setSourceRange(this.getStartPosition(), this.getLength())...
public IKeyBindingService getKeyBindingService() { if (keyBindingService == null) { keyBindingService = new KeyBindingService(workbenchPartSiteCommandSupport.getMutableCommandHandlerService(), workbenchPartSiteContextSupport.getMutableContextActivationService()); if (this instanceof EditorSite) { Edito...
public IKeyBindingService getKeyBindingService() { if (keyBindingService == null) { keyBindingService = new KeyBindingService(getId(), workbenchPartSiteCommandSupport.getMutableCommandHandlerService(), workbenchPartSiteContextSupport.getMutableContextActivationService()); if (this instanceof EditorSite) { ...
public TypeBinding resolveTypeEnclosing(BlockScope scope, ReferenceBinding enclosingType) { TypeBinding memberType = scope.getMemberType(token, enclosingType); if (!memberType.isValidBinding()) { this.resolvedType = memberType; scope.problemReporter().invalidEnclosingType(this, memberType, enclosingType); ...
public TypeBinding resolveTypeEnclosing(BlockScope scope, ReferenceBinding enclosingType) { TypeBinding memberType = scope.getMemberType(token, enclosingType); if (!memberType.isValidBinding()) { this.resolvedType = memberType; scope.problemReporter().invalidEnclosingType(this, memberType, enclosingType); ...
public void checkPermission(Permission perm) { if (perm instanceof java.lang.RuntimePermission) { if ("exitVM".equals(perm.getName())) { if (! _allowExit) { throw new SecurityException(); } } } }
public void checkPermission(Permission perm) { if (perm instanceof java.lang.RuntimePermission) { if ("exitVM".equals(perm.getName())) { if (! _allowExit) { throw new ArgoSecurityException(true); } } } }
private Context context; String docBase; int debug=1;
private Context context; String docBase; int debug=0;
public void setAccessRestriction(ReferenceBinding type, AccessRestriction accessRestriction) { if (accessRestriction == null) return; type.modifiers |= CompilerModifiers.AccRestrictedAccess; this.accessRestrictions.put(type, accessRestriction); }
public void setAccessRestriction(ReferenceBinding type, AccessRestriction accessRestriction) { if (accessRestriction == null) return; type.modifiers |= ExtraCompilerModifiers.AccRestrictedAccess; this.accessRestrictions.put(type, accessRestriction); }
public FieldBinding getSyntheticField(ReferenceBinding targetEnclosingType, boolean onlyExactMatch) { if (synthetics == null || synthetics[FIELD_EMUL] == null) return null; FieldBinding field = (FieldBinding) synthetics[FIELD_EMUL].get(targetEnclosingType); if (field != null) return field; // type compatibility :...
public FieldBinding getSyntheticField(ReferenceBinding targetEnclosingType, boolean onlyExactMatch) { if (synthetics == null || synthetics[FIELD_EMUL] == null) return null; FieldBinding field = (FieldBinding) synthetics[FIELD_EMUL].get(targetEnclosingType); if (field != null) return field; // type compatibility :...
public static PropertyDialog createDialogOn(Shell shell,final String propertyPageId, IAdaptable element){ PropertyPageManager pageManager = new PropertyPageManager(); String title = "";//$NON-NLS-1$ if (element == null) return null; // load pages for the selection // fill the manager with contribut...
public static PropertyDialog createDialogOn(Shell shell,final String propertyPageId, IAdaptable element){ PropertyPageManager pageManager = new PropertyPageManager(); String title = "";//$NON-NLS-1$ if (element == null) return null; // load pages for the selection // fill the manager with contribut...
public FlowInfo analyseAssignment(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, Assignment assignment, boolean isCompound) { boolean isReachable = (flowInfo.tagBits & FlowInfo.UNREACHABLE) == 0; // compound assignment extra work if (isCompound) { // check the variable part is initialized...
public FlowInfo analyseAssignment(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, Assignment assignment, boolean isCompound) { boolean isReachable = (flowInfo.tagBits & FlowInfo.UNREACHABLE) == 0; // compound assignment extra work if (isCompound) { // check the variable part is initialized...
private IFile getFile() { if (this.file == null) this.file = (IFile) ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(getPath())); return this.file; }
private IFile getFile() { if (this.file == null) this.file = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(getPath())); return this.file; }
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String pathInfo = (String)request.getAttribute( "javax.servlet.include.path_info"); String requestURI = (String)request.getAttribute( "javax.servlet.include.reque...
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String pathInfo = (String)request.getAttribute( "javax.servlet.include.path_info"); String requestURI = (String)request.getAttribute( "javax.servlet.include.reque...
protected void printOptions(PrintWriter out, Category cat) { Enumeration appenders = cat.getAllAppenders(); Level prio = cat.getLevel(); String appenderString = (prio == null ? "" : prio.toString()); while (appenders.hasMoreElements()) { Appender app = (Appender) appenders.nextElement(); ...
protected void printOptions(PrintWriter out, Logger cat) { Enumeration appenders = cat.getAllAppenders(); Level prio = cat.getLevel(); String appenderString = (prio == null ? "" : prio.toString()); while (appenders.hasMoreElements()) { Appender app = (Appender) appenders.nextElement(); ...
protected Logger(String name) { super(name); } /** Log a message object with the {@link Level#FINE FINE} level which is just an alias for the {@link Level#DEBUG DEBUG} level. <p>This method first checks if this category is <code>DEBUG</code> enabled by comparing the level of this category ...
protected Logger(String name) { super(name); } /** Log a message object with the {@link Level#FINE FINE} level which is just an alias for the {@link Level#DEBUG DEBUG} level. <p>This method first checks if this category is <code>DEBUG</code> enabled by comparing the level of this category ...
public static Object runCachedBlock(String id, View view, NameSpace namespace) { if(namespace == null) namespace = internal; Object[] args = { namespace }; try { if(view != null) { namespace.setVariable("view",view); EditPane editPane = view.getEditPane(); namespace.setVariable("editPan...
public static Object runCachedBlock(String id, View view, NameSpace namespace) { if(namespace == null) namespace = global; Object[] args = { namespace }; try { if(view != null) { namespace.setVariable("view",view); EditPane editPane = view.getEditPane(); namespace.setVariable("editPane"...
public static Stroke parseStroke(String string) throws IllegalArgumentException { if (string == null) throw new IllegalArgumentException(); List list = new ArrayList(); StringTokenizer stringTokenizer = new StringTokenizer(string, MODIFIER_SEPARATOR, true); while (stringTokenizer.hasMoreTokens()) ...
public static Stroke parseStroke(String string) throws IllegalArgumentException { if (string == null) throw new IllegalArgumentException(); List list = new ArrayList(); StringTokenizer stringTokenizer = new StringTokenizer(string, MODIFIER_SEPARATOR, true); while (stringTokenizer.hasMoreTokens()) ...
public int resolveLevel(Binding binding) { if (binding == null) return INACCURATE_MATCH; if (!(binding instanceof MethodBinding)) return IMPOSSIBLE_MATCH; MethodBinding method = (MethodBinding) binding; if (!method.isConstructor()) return IMPOSSIBLE_MATCH; // declaring type, simple name has already been matched ...
public int resolveLevel(Binding binding) { if (binding == null) return INACCURATE_MATCH; if (!(binding instanceof MethodBinding)) return IMPOSSIBLE_MATCH; MethodBinding method = ((MethodBinding) binding).original(); if (!method.isConstructor()) return IMPOSSIBLE_MATCH; // declaring type, simple name has already ...
public boolean isEquivalent(Plugin testPlugin) { return (repository == testPlugin.getLoggerRepository()) && ((this.name == null && testPlugin.getName() == null) || (this.name != null && name.equals(testPlugin.getName()))); }
public boolean isEquivalent(Plugin testPlugin) { return (repository == testPlugin.getLoggerRepository()) && ((this.name == null && testPlugin.getName() == null) || (this.name != null && name.equals(testPlugin.getName()))) && this.getClass().equals(testPlugin.getClass()); }
public StartUpFrame() { super(); try { window = new TransparentWindow(ImageLoader.getImageIcon( "startup.png")); Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize(); window.setLocation((screenDim.width - window.getWidth()) /...
public StartUpFrame() { super(); try { window = new TransparentWindow(ImageLoader.getMiscIcon( "startup.png")); Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize(); window.setLocation((screenDim.width - window.getWidth()) / ...
private long targetLevel; public CodeStream(ClassFile classFile, long targetLevel) { this.targetLevel = targetLevel; this.generateLineNumberAttributes = (classFile.produceDebugAttributes & CompilerOptions.Lines) != 0; this.generateLocalVariableTableAttributes = (classFile.produceDebugAttributes & CompilerOptions....
private long targetLevel; public CodeStream(ClassFile classFile, long targetLevel) { this.targetLevel = targetLevel; this.generateLineNumberAttributes = (classFile.produceDebugAttributes & CompilerOptions.Lines) != 0; this.generateLocalVariableTableAttributes = (classFile.produceDebugAttributes & CompilerOptions....
public Expression getExpression() { if (this.expression == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.expression == null) { preLazyInit(); this.expression = new MethodInvocation(this.ast); postLazyInit(this.expression, EXPRESSION_PROPERTY); } ...
public Expression getExpression() { if (this.expression == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.expression == null) { preLazyInit(); this.expression = new MethodInvocation(this.ast); postLazyInit(this.expression, EXPRESSION_PROPERTY); } }...
public static char[] createCharArrayTypeSignature(char[] typeName, boolean isResolved) { if (typeName == null) throw new IllegalArgumentException("null"); //$NON-NLS-1$ int length = typeName.length; if (length == 0) throw new IllegalArgumentException(new String(typeName)); int arrayCount = CharOperation.occurence...
public static char[] createCharArrayTypeSignature(char[] typeName, boolean isResolved) { if (typeName == null) throw new IllegalArgumentException("null"); //$NON-NLS-1$ int length = typeName.length; if (length == 0) throw new IllegalArgumentException(new String(typeName)); int arrayCount = CharOperation.occurence...
public void fireCreateActivity(IDateRange range) { new NewAppointmentAction(this).actionPerformed(null); }
public void fireCreateActivity(IDateRange range) { new NewAppointmentAction(this, range).actionPerformed(null); }
public interface LayoutedNode extends LayoutedObject { // Copyright (c) 1996-01 The Regents of the University of California. All // Rights Reserved. Permission to use, copy, modify, and distribute this // software and its documentation without fee, and without a written // agreement is hereby granted, provided that th...
public interface LayoutedNode extends LayoutedObject { // Copyright (c) 1996-01 The Regents of the University of California. All // Rights Reserved. Permission to use, copy, modify, and distribute this // software and its documentation without fee, and without a written // agreement is hereby granted, provided that th...
public boolean checkAnnotation;
public static final char[] TAG_SEE = "see".toCharArray(); //$NON-NLS-1$ Scanner scanner; Parser sourceParser; Annotation annotation; int index, tagSourceStart, tagSourceEnd, lineEnd; char[] source; boolean checkAnnotation;
public static StackPresentation createPresentation(AbstractPresentationFactory factory, int role, Composite parent, IStackPresentationSite site, IPresentationSerializer serializer, IMemento memento) { StackPresentation presentation = null; switch (role) { case ROLE_EDITOR: presentation = facto...
public static StackPresentation createPresentation(AbstractPresentationFactory factory, int role, Composite parent, IStackPresentationSite site, IPresentationSerializer serializer, IMemento memento) { StackPresentation presentation = null; switch (role) { case ROLE_EDITOR: presentation = facto...
public void fill(Composite parent) { label= new CLabel(parent, SWT.SHADOW_IN); StatusLineLayoutData data = new StatusLineLayoutData(); if (fixedWidth < 0) { GC gc = new GC(parent); gc.setFont(parent.getFont()); fixedWidth = gc.getFontMetrics().getAverageCharWidth() * 22; gc.dispose(); } ...
public void fill(Composite parent) { label= new CLabel(parent, SWT.SHADOW_IN); StatusLineLayoutData data = new StatusLineLayoutData(); if (fixedWidth < 0) { GC gc = new GC(parent); gc.setFont(parent.getFont()); fixedWidth = gc.getFontMetrics().getAverageCharWidth() * 40; gc.dispose(); } ...
private CaptureEvent(int data, int pen, Point[] points) throws IllegalArgumentException { super(); this.data = data; this.pen = pen; if (points == null) throw new IllegalArgumentException(); points = (Point[]) points.clone(); for (int i = 0; i < points.length; i++) if (points[i] == null) t...
private CaptureEvent(int data, int pen, Point[] points) throws IllegalArgumentException { super(); this.data = data; this.pen = pen; if (points == null) throw new NullPointerException(); points = (Point[]) points.clone(); for (int i = 0; i < points.length; i++) if (points[i] == null) throw...
public IJavaElement getPrimaryElement(boolean checkOwner) { CompilationUnit cu = (CompilationUnit)getAncestor(COMPILATION_UNIT); if (checkOwner && cu.isPrimary()) return this; return cu.getPackageDeclaration(fName); }
public IJavaElement getPrimaryElement(boolean checkOwner) { CompilationUnit cu = (CompilationUnit)getAncestor(COMPILATION_UNIT); if (checkOwner && cu.isPrimary()) return this; return cu.getPackageDeclaration(this.name); }