buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void execute(ContextManager cm) throws TomcatException { try { String tomcatHome = cm.getHome(); String apacheHome = findApache(); //log("Tomcat home= " + tomcatHome); FileWriter configW=new FileWriter(tomcatHome + APACHE_CONFIG); PrintWriter pw=new PrintWriter(configW); P...
public void execute(ContextManager cm) throws TomcatException { try { String tomcatHome = cm.getHome(); String apacheHome = findApache(); //log("Tomcat home= " + tomcatHome); FileWriter configW=new FileWriter(tomcatHome + APACHE_CONFIG); PrintWriter pw=new PrintWriter(configW); P...
public static boolean validateKeySequence(KeySequence keySequence) { List keyStrokes = keySequence.getKeyStrokes(); int size = keyStrokes.size(); if (size == 0) return false; else for (int i = 0; i < size; i++) { KeyStroke keyStroke = (KeyStroke) keyStrokes.get(i); if (!validateKeyStroke(...
public static boolean validateKeySequence(KeySequence keySequence) { List keyStrokes = keySequence.getKeyStrokes(); int size = keyStrokes.size(); if (size == 0 || size > 4) return false; else for (int i = 0; i < size; i++) { KeyStroke keyStroke = (KeyStroke) keyStrokes.get(i); if (!valida...
public VariablePattern(int patternKind, boolean findDeclarations, boolean readAccess, boolean writeAccess, char[] name, int matchRule) { super(patternKind, matchRule); this.findDeclarations = findDeclarations; // set to find declarations & all occurences this.readAccess = readAccess; // set to find any reference, r...
public VariablePattern(int patternKind, boolean findDeclarations, boolean readAccess, boolean writeAccess, char[] name, int matchRule) { super(patternKind, matchRule); this.findDeclarations = findDeclarations; // set to find declarations & all occurences this.readAccess = readAccess; // set to find any reference, r...
public CloseAllPerspectivesAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("CloseAllPerspectivesAction.text")); //$NON-NLS-1$ if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setActionDefinitionId("or...
public CloseAllPerspectivesAction(IWorkbenchWindow window) { super(WorkbenchMessages.getString("CloseAllPerspectivesAction.text")); //$NON-NLS-1$ if (window == null) { throw new IllegalArgumentException(); } this.workbenchWindow = window; setActionDefinitionId("or...
public void resolve(BlockScope scope) { // create a binding and add it to the scope TypeBinding variableType = type.resolveType(scope, true /* check bounds*/); checkModifiers(); if (variableType != null) { if (variableType == VoidBinding) { scope.problemReporter().variableTypeCannotBeVoid(this); r...
public void resolve(BlockScope scope) { // create a binding and add it to the scope TypeBinding variableType = type.resolveType(scope, true /* check bounds*/); checkModifiers(); if (variableType != null) { if (variableType == VoidBinding) { scope.problemReporter().variableTypeCannotBeVoid(this); r...
public boolean visit( ConstructorDeclaration constructorDeclaration, ClassScope scope) { if (constructorDeclaration.ignoreFurtherInvestigation) { this.scribe.printComment(); this.scribe.scanner.resetTo(constructorDeclaration.declarationSourceEnd + 1, this.scribe.scannerEndPosition); this.scribe.prin...
public boolean visit( ConstructorDeclaration constructorDeclaration, ClassScope scope) { if (constructorDeclaration.ignoreFurtherInvestigation) { this.scribe.printComment(); this.scribe.scanner.resetTo(constructorDeclaration.declarationSourceEnd + 1, this.scribe.scannerEndPosition); this.scribe.prin...
public String toString(int tab) { String s = tabString(tab); s += "<SelectionOnLocalName:"; //$NON-NLS-1$ if (modifiers != AccDefault) { s += modifiersString(modifiers); } s += type.toString(0) + " " + new String(name()); //$NON-NLS-1$ if (initialization != null) s += " = " + initialization.toStringExpr...
public String toString(int tab) { String s = tabString(tab); s += "<SelectionOnLocalName:"; //$NON-NLS-1$ if (modifiers != AccDefault) { s += modifiersString(modifiers); } s += type.toString(0) + " " + new String(name()); //$NON-NLS-1$ if (initialization != null) s += " = " + initialization.toStringExpr...
public boolean visit(PackageDeclaration node) { if (!hasChildrenChanges(node)) { return doVisitUnchangedChildren(node); } if (node.getAST().apiLevel() >= AST.JLS3) { int pos= rewriteJavadoc(node, PackageDeclaration.JAVADOC_PROPERTY); rewriteNodeList(node, PackageDeclaration.ANNOTATIONS_PROPERTY, pos, ""...
public boolean visit(PackageDeclaration node) { if (!hasChildrenChanges(node)) { return doVisitUnchangedChildren(node); } if (node.getAST().apiLevel() >= AST.JLS3) { int pos= rewriteJavadoc(node, PackageDeclaration.JAVADOC_PROPERTY); rewriteModifiers2(node, PackageDeclaration.ANNOTATIONS_PROPERTY, pos);...
private int getCommentIndex(int start, int position, int exact) { if (position == 0) { if (this.comments.length > 0 && this.comments[0].getStartPosition() == 0) { return 0; } return -1; } int bottom = start, top = this.comments.length - 1; int i = 0, index = -1; Comment comment = null; while (...
private int getCommentIndex(int start, int position, int exact) { if (position == 0) { if (this.comments.length > 0 && this.comments[0].getStartPosition() == 0) { return 0; } return -1; } int bottom = start, top = this.comments.length - 1; int i = 0, index = -1; Comment comment = null; while (...
public static void main(String argv[]) { if(argv.length == 1) init(argv[0]); else usage("Wrong number of arguments."); test(); } static void usage(String msg) { System.err.println(msg); System.err.println( "Usage: java "+ Shallow.class.getName()+"configFile"); System.exi...
public static void main(String argv[]) { if(argv.length == 1) init(argv[0]); else usage("Wrong number of arguments."); test(); } static void usage(String msg) { System.err.println(msg); System.err.println( "Usage: java "+ Shallow.class.getName()+"configFile"); System.exi...
public IResolvedAnnotation resolveAnnotation() { return this.ast.getBindingResolver().resolveAnnotation(this); } }
public IAnnotationBinding resolveAnnotationBinding() { return this.ast.getBindingResolver().resolveAnnotation(this); } }
public void execute(WorkerStatusController worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); inboxFolder = (MessageFolder) r[0].getFolder(); ColumbaMessage message = (ColumbaMessage) r[0].getMessage(); // add message to folder ...
public void execute(WorkerStatusController worker) throws Exception { FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); inboxFolder = (MessageFolder) r[0].getFolder(); ColumbaMessage message = (ColumbaMessage) r[0].getMessage(); // add message to folder ...
public void propertyChange(PropertyChangeEvent evt) { // the project changed if (evt .getPropertyName() .equals(ProjectManager.CURRENT_PROJECT_PROPERTY_NAME)) { Project p = (Project) evt.getNewValue(); if (p != null) { setTitle(p.getNa...
public void propertyChange(PropertyChangeEvent evt) { // the project changed if (evt .getPropertyName() .equals(ProjectManager.CURRENT_PROJECT_PROPERTY_NAME)) { Project p = (Project) evt.getNewValue(); if (p != null) { setTitle(p.getNa...
DSAKey dsakey = (DSAKey) privateKey; signature = DSASignature.create(dsakey.getParams(), signature); } SIGRecord sig = new SIGRecord(Name.root, DClass.ANY, 0, 0, algorithm, 0, timeExpires, timeSigned, footprint, name, signature); m.addRecord(sig, Section.ADDITIONAL); }
DSAKey dsakey = (DSAKey) privateKey; signature = DSASignature.toDNS(dsakey.getParams(), signature); } SIGRecord sig = new SIGRecord(Name.root, DClass.ANY, 0, 0, algorithm, 0, timeExpires, timeSigned, footprint, name, signature); m.addRecord(sig, Section.ADDITIONAL); }
public NameParser getNameParser(String name) throws NamingException { if (TraceCarol.isDebugJndiCarol()) { TraceCarol.debugJndiCarol("MultiOrbInitialContext.getNameParser(\""+name+"\")/rmi name=\""+pcur.getCurrent().getCurrentRMIName()+"\""); } try { return pcur.getCurrentInitialContext()...
public NameParser getNameParser(String name) throws NamingException { if (TraceCarol.isDebugJndiCarol()) { TraceCarol.debugJndiCarol("MultiOrbInitialContext.getNameParser(\""+name+"\")/rmi name=\""+pcur.getCurrentRMIName()+"\""); } try { return pcur.getCurrentInitialContext().getNameParse...
protected boolean readElement(IConfigurationElement element) { if (!element.getName().equals(TAG_EDITOR)) return false; String id = element.getAttribute(EditorDescriptor.ATT_ID); if (element.getAttribute(EditorDescriptor.ATT_ID) == null) { logMissingAttribute(element...
protected boolean readElement(IConfigurationElement element) { if (!element.getName().equals(TAG_EDITOR)) return false; String id = element.getAttribute(EditorDescriptor.ATT_ID); if (element.getAttribute(EditorDescriptor.ATT_ID) == null) { logMissingAttribute(element...
public void initialize() { super.initialize(); try { IJavaProject[] projects = JavaModelManager.getJavaModelManager().getJavaModel().getJavaProjects(); for (int i = 0, length = projects.length; i < length; i++) { int includeMask = SOURCES | APPLICATION_LIBRARIES | SYSTEM_LIBRARIES; this.add((JavaProject) pr...
public void initialize() { super.initialize(); try { IJavaProject[] projects = JavaModelManager.getJavaModelManager().getJavaModel().getJavaProjects(); for (int i = 0, length = projects.length; i < length; i++) { int includeMask = SOURCES | APPLICATION_LIBRARIES | SYSTEM_LIBRARIES; add((JavaProject) project...
public static Class parseConfigLine(String line, String panelName, int lineNum, String configFile, StatusBar sb) { if (line.startsWith("tabpath")) { String newPath = stripBeforeColon(line).trim(); if (newPath.length() > 0) TabPath = newPath; return null; } else if (line.startsWith(panelName)...
public static Class parseConfigLine(String line, String panelName, int lineNum, String configFile, StatusBar sb) { if (line.startsWith("tabpath")) { String newPath = stripBeforeColon(line).trim(); if (newPath.length() > 0) TabPath = newPath; return null; } else if (line.startsWith(panelName)...
public String getKey() { return new String(this.scanner.source); } LocalVariableBinding getLocalVariableBinding(BlockScope scope) { if (this.scanner.nextToken() != Scanner.LOCAL_VAR) return null; // malformed key char[] varName = this.scanner.getTokenSource(); if (Character.isDigit(varName[0])) { ...
public String getKey() { return new String(this.scanner.source); } LocalVariableBinding getLocalVariableBinding(BlockScope scope) { if (this.scanner.nextToken() != Scanner.LOCAL_VAR) return null; // malformed key char[] varName = this.scanner.getTokenSource(); if (Character.isDigit(varName[0])) { ...
public void traverse(ASTVisitor visitor, ClassScope scope) { visitor.visit(this, scope); visitor.endVisit(this, scope); } /* * We need to modify resolving behavior to handle package references */ TypeBinding internalResolveType(Scope scope) { // handle the error here this.constant = Constant.NotAConsta...
public void traverse(ASTVisitor visitor, ClassScope scope) { visitor.visit(this, scope); visitor.endVisit(this, scope); } /* * We need to modify resolving behavior to handle package references */ TypeBinding internalResolveType(Scope scope) { // handle the error here this.constant = Constant.NotAConsta...
public static String[] split(String src, char delim) { if (src == null) return null; String[] splitStr = new String[2]; int delimIndex = src.indexOf(delim); if (delimIndex == -1 || delimIndex == 0 || delimIndex == src.length()-1) { splitStr[0] = src; splitStr[1] = ZERO_LENGTH_STRING; } split...
public static String[] split(String src, char delim) { if (src == null) return null; String[] splitStr = new String[2]; int delimIndex = src.indexOf(delim); if (delimIndex == -1 || delimIndex == 0 || delimIndex == src.length()-1) { splitStr[0] = src; splitStr[1] = ZERO_LENGTH_STRING; } split...
public static ICodeFormatter createDefaultCodeFormatter(Map options){ if (options == null) options = JavaCore.getOptions(); return new org.eclipse.jdt.internal.formatter.CodeFormatter(options); }
public static ICodeFormatter createDefaultCodeFormatter(Map options){ if (options == null) options = JavaCore.getOptions(); return new org.eclipse.jdt.internal.formatter.old.CodeFormatter(options); }
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; boolean needRuntimeCheckcast = (this.bits & GenerateCheckcast) != 0; if (constant != Constant.NotAConstant) { if (valueRequired || needRuntimeCheckcast) { // Added for: 1F1W9IG: IV...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; boolean needRuntimeCheckcast = (this.bits & GenerateCheckcast) != 0; if (constant != Constant.NotAConstant) { if (valueRequired || needRuntimeCheckcast) { // Added for: 1F1W9IG: IV...
private void reAllocBuff (int len) { //Need to re-allocate the buffer since it is to be //unbounded according to the updated spec.. char[] tmp = null; //XXX Should it be multiple of DEFAULT_BUFFER_SIZE?? if (len <= Constants.DEFAULT_BUFFER_SIZE) { tmp = new char [bufferSize + Constants.DE...
private void reAllocBuff (int len) { //Need to re-allocate the buffer since it is to be //unbounded according to the updated spec.. char[] tmp = null; //XXX Should it be multiple of DEFAULT_BUFFER_SIZE?? if (len <= Constants.DEFAULT_BUFFER_SIZE) { tmp = new char [bufferSize + Constants.DE...
public boolean isDeclaration() { ASTNode parent = getParent(); if (parent == null) { // unparented node return false; } if (parent instanceof TypeDeclaration) { // could only be the name of the type return true; } if (parent instanceof MethodDeclaration) { // could be the name of the method ...
public boolean isDeclaration() { ASTNode parent = getParent(); if (parent == null) { // unparented node return false; } if (parent instanceof TypeDeclaration) { // could only be the name of the type return true; } if (parent instanceof MethodDeclaration) { // could be the name of the method ...
// The private access will be managed through the code generation if (!flowInfo.isReachable()) return; // if field from parameterized type got found, use the original field at codegen time if (this.binding instanceof ParameterizedFieldBinding) { ParameterizedFieldBinding parameterizedField = (ParameterizedFie...
// The private access will be managed through the code generation if (!flowInfo.isReachable()) return; // if field from parameterized type got found, use the original field at codegen time if (this.binding instanceof ParameterizedFieldBinding) { ParameterizedFieldBinding parameterizedField = (ParameterizedFie...
public TypeBinding checkFieldAccess(BlockScope scope) { FieldBinding fieldBinding = (FieldBinding) this.binding; this.constant = fieldBinding.constant(); this.bits &= ~ASTNode.RestrictiveFlagMASK; // clear bits this.bits |= Binding.FIELD; MethodScope methodScope = scope.methodScope(); if (fieldBinding.isStatic()...
public TypeBinding checkFieldAccess(BlockScope scope) { FieldBinding fieldBinding = (FieldBinding) this.binding; this.constant = fieldBinding.constant(); this.bits &= ~ASTNode.RestrictiveFlagMASK; // clear bits this.bits |= Binding.FIELD; MethodScope methodScope = scope.methodScope(); if (fieldBinding.isStatic()...
public void initialize(AnimationEngine engine) { theShell = new Shell(getAnimationShell(), SWT.NO_TRIM | SWT.ON_TOP); display = theShell.getDisplay(); Color color = display.getSystemColor(SWT.COLOR_WIDGET_FOREGROUND); theShell.setBackground(color); // Ensure that the background won't show on the initial di...
public void initialize(AnimationEngine engine) { theShell = new Shell(getAnimationShell(), SWT.NO_TRIM | SWT.ON_TOP); display = theShell.getDisplay(); Color color = display.getSystemColor(SWT.COLOR_WIDGET_DARK_SHADOW); theShell.setBackground(color); // Ensure that the background won't show on the initial d...
protected void addSet(Name name, short type, Object set) { if (!hasWild && name.isWild())
protected void addSet(Name name, short type, TypedObject set) { if (!hasWild && name.isWild())
public String getTabResourceBundleKey() { return "NotationResourceBundle"; } }
public String getTabResourceBundleKey() { return "CoreSettings"; } }
public ViewRegisters(View view) { super(view,jEdit.getProperty("view-registers.title"),true); JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); JPanel panel = new JPanel(new BorderLayout()); panel.setBorder(new EmptyBorder(0,12,0,0...
public ViewRegisters(View view) { super(view,jEdit.getProperty("view-registers.title"),true); JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); JPanel panel = new JPanel(new BorderLayout()); panel.setBorder(new EmptyBorder(0,12,0,0...
protected int determineKind(IResource underlyingResource) throws JavaModelException { IClasspathEntry[] entries= getJavaProject().getExpandedClasspath(true); for (int i= 0; i < entries.length; i++) { IClasspathEntry entry= entries[i]; if (entry.getPath().equals(underlyingResource.getFullPath())) { return entry...
protected int determineKind(IResource underlyingResource) throws JavaModelException { IClasspathEntry[] entries= ((JavaProject)getJavaProject()).getExpandedClasspath(true); for (int i= 0; i < entries.length; i++) { IClasspathEntry entry= entries[i]; if (entry.getPath().equals(underlyingResource.getFullPath())) { ...
public static void printVersionInfo () { System.out.println("columba " + MainInterface.version); }
public static void printVersionInfo () { System.out.println("Columba " + VersionInfo.getVersion()); }
public void execute(IProgressMonitor monitor) { monitor.beginTask(MOVE_PROGRESS_TITLE, 100); try { if (monitor.isCanceled()) throw new OperationCanceledException(); //Get a copy of the current description and modify it IProjectDescription newDescription = createDescription(project, projec...
public void execute(IProgressMonitor monitor) { monitor.beginTask(MOVE_PROGRESS_TITLE, 100); try { if (monitor.isCanceled()) throw new OperationCanceledException(); //Get a copy of the current description and modify it IProjectDescription newDescription = createDescription(project, projec...
public void checkUnusedImports(){ if (this.scope.imports != null){ for (int i = 0, max = this.scope.imports.length; i < max; i++){ ImportBinding importBinding = this.scope.imports[i]; ImportReference importReference = importBinding.reference; if (importReference != null && !importReference.used){ ...
public void checkUnusedImports(){ if (this.scope.imports != null){ for (int i = 0, max = this.scope.imports.length; i < max; i++){ ImportBinding importBinding = this.scope.imports[i]; ImportReference importReference = importBinding.reference; if (importReference != null && ((importReference.bits & AS...
public Object getValueAt(int row, int column) { CheckableItem item= (CheckableItem) data.get(row); if (column == 0) return new Boolean(item.isSelected()); else return item.toString(); }
public Object getValueAt(int row, int column) { CheckableItem item= (CheckableItem) data.get(row); if (column == 0) return Boolean.valueOf(item.isSelected()); else return item.toString(); }
public Vector getChildren(Object parent) { Set allPosters = Designer.TheDesigner.getToDoList().getPosters(); if (parent instanceof ToDoList) { return allPosters.asVector(); } //otherwise parent must be an offending design material if (allPosters.contains(parent)) { Vector res = new Vec...
public Vector getChildren(Object parent) { VectorSet allPosters = Designer.TheDesigner.getToDoList().getPosters(); if (parent instanceof ToDoList) { return allPosters.asVector(); } //otherwise parent must be an offending design material if (allPosters.contains(parent)) { Vector res = n...
public CodeFormatterVisitor() { this(DefaultCodeFormatterOptions.getSunSetttings(), JavaCore.getDefaultOptions(), 0, -1); }
public CodeFormatterVisitor() { this(new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getJavaConventionsSetttings()), JavaCore.getDefaultOptions(), 0, -1); }
public String getTypeQualifiedName(char enclosingTypeSeparator, boolean showParameters) throws JavaModelException { NamedMember declaringType; switch (this.parent.getElementType()) { case IJavaElement.COMPILATION_UNIT: if (showParameters) { StringBuffer buffer = new StringBuffer(this.name); append...
public String getTypeQualifiedName(char enclosingTypeSeparator, boolean showParameters) throws JavaModelException { NamedMember declaringType; switch (this.parent.getElementType()) { case IJavaElement.COMPILATION_UNIT: if (showParameters) { StringBuffer buffer = new StringBuffer(this.name); append...
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); Action action = (Action)_actions.get(o); if (action != null) { e.setSource(this); action.actionPerformed(e); } }
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); Action action = (Action)_actions.get(o); if (action != null) { // e.setSource(this); action.actionPerformed(e); } }
protected boolean writeClassFileCheck(IFile file, String fileName, byte[] newBytes) throws CoreException { try { byte[] oldBytes = Util.getResourceContentsAsByteArray(file); if (this.compileLoop > 1) { // only optimize files which were recompiled during the dependent pass notEqual : if (newBytes.length == oldBy...
protected boolean writeClassFileCheck(IFile file, String fileName, byte[] newBytes) throws CoreException { try { byte[] oldBytes = Util.getResourceContentsAsByteArray(file); if (this.compileLoop > 1) { // only optimize files which were recompiled during the dependent pass, see 33990 notEqual : if (newBytes.leng...
public IEditorReference getVisibleEditor() { EditorStack activeWorkbook = editorArea.getActiveWorkbook(); EditorPane pane = (EditorPane)activeWorkbook.getSelection(); if (pane != null) { IEditorReference result = pane.getEditorReference(); IEditorPart editorPart = (IE...
public IEditorReference getVisibleEditor() { EditorStack activeWorkbook = editorArea.getActiveWorkbook(); EditorPane pane = (EditorPane)activeWorkbook.getSelection(); if (pane != null) { IEditorReference result = pane.getEditorReference(); IEditorPart editorPart = (IE...
public DependencyTree () { moduleDependTree = new Hashtable(); issueDependTree = new Hashtable(); issueIdTable = new Hashtable(); cat = Category.getInstance(org.tigris.scarab.util.xml.DBImport.class); }
public DependencyTree () { moduleDependTree = new Hashtable(); issueDependTree = new Hashtable(); issueIdTable = new Hashtable(); cat = Category.getInstance(org.tigris.scarab.util.xml.XMLImport.class); }
public void addSenderToAddressbook(String sender) { if (sender != null) { if (sender.length() > 0) { org.columba.addressbook.folder.Folder selectedFolder = MainInterface.addressbookInterface.tree.getFolder(102); String address = AddressParser.getAddress(sender); System.out.println("address:" + ...
public void addSenderToAddressbook(String sender) { if (sender != null) { if (sender.length() > 0) { org.columba.addressbook.folder.Folder selectedFolder = (org.columba.addressbook.folder.Folder) MainInterface.addressbookInterface.treeModel.getFolder(102); String address = AddressParser.getAddress(...
private PublicKey findCachedKey(Cache cache, Name name, int algorithm, int footprint) { RRset [] keysets = cache.findAnyRecords(name, Type.KEY, DClass.ANY); if (keysets == null)
private PublicKey findCachedKey(Cache cache, Name name, int algorithm, int footprint) { RRset [] keysets = cache.findAnyRecords(name, Type.KEY); if (keysets == null)
public static void setTheme() { // get configuration XmlElement themeConfig = Config.get("options").getElement("/options/gui/theme"); try { // get plugin-handler ThemePluginHandler handler = (ThemePluginHandler) MainInterface.pluginManager.getHandler( "org.columba.core.theme"); // if no the...
public static void setTheme() { // get configuration XmlElement themeConfig = Config.get("options").getElement("/options/gui/theme"); try { // get plugin-handler ThemePluginHandler handler = (ThemePluginHandler) MainInterface.pluginManager.getHandler( "org.columba.core.theme"); // if no the...
public IMemberValuePairBinding[] getAllMemberValuePairs() { IMemberValuePairBinding[] pairs = getDeclaredMemberValuePairs(); ReferenceBinding typeBinding = this.internalAnnotation.getAnnotationType(); if (typeBinding == null) return pairs; MethodBinding[] methods = typeBinding.methods(); int methodLength = m...
public IMemberValuePairBinding[] getAllMemberValuePairs() { IMemberValuePairBinding[] pairs = getDeclaredMemberValuePairs(); ReferenceBinding typeBinding = this.internalAnnotation.getAnnotationType(); if (typeBinding == null) return pairs; MethodBinding[] methods = typeBinding.availableMethods(); // resilience...
protected void matchReportReference(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, MatchLocator locator) throws CoreException { if (this.isDeclarationOfAccessedFieldsPattern) { // need exact match to be able to open on type ref if (accuracy != SearchMatch.A_ACCURATE) return; // e...
protected void matchReportReference(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, MatchLocator locator) throws CoreException { if (this.isDeclarationOfAccessedFieldsPattern) { // need exact match to be able to open on type ref if (accuracy != SearchMatch.A_ACCURATE) return; // e...
private static void installFont(FontDefinition definition, FontRegistry registry, IPreferenceStore store) { String id = definition.getId(); FontData [] prefFont = store != null ? PreferenceConverter.getFontDataArray(store, id) : null; FontData [] defaultFont = null; if (definition.getValue() != null) ...
private static void installFont(FontDefinition definition, FontRegistry registry, IPreferenceStore store) { String id = definition.getId(); FontData [] prefFont = store != null ? PreferenceConverter.getFontDataArray(store, id) : null; FontData [] defaultFont = null; if (definition.getValue() != null) ...
public void recordUsingNullReference(Scope scope, LocalVariableBinding local, Expression reference, int checkType, FlowInfo flowInfo) { if ((flowInfo.tagBits & FlowInfo.UNREACHABLE) == 0 && !flowInfo.isDefinitelyUnknown(local)) { if (this.deferNullDiagnostic) { // within an enclosing loop, be conservative ...
public void recordUsingNullReference(Scope scope, LocalVariableBinding local, Expression reference, int checkType, FlowInfo flowInfo) { if ((flowInfo.tagBits & FlowInfo.UNREACHABLE) == 0 && !flowInfo.isDefinitelyUnknown(local)) { if (this.deferNullDiagnostic) { // within an enclosing loop, be conservative ...
public static void main(String argv[]) throws IOException { String server; int arg; Message query, response; Record rec; Record opt = null; Resolver res = null; boolean printQuery = false; long startTime, endTime; if (argv.length < 1) { usage(); } try { arg = 0; if (argv[arg].startsWith("@")) { se...
public static void main(String argv[]) throws IOException { String server; int arg; Message query, response; Record rec; Record opt = null; Resolver res = null; boolean printQuery = false; long startTime, endTime; if (argv.length < 1) { usage(); } try { arg = 0; if (argv[arg].startsWith("@")) { se...
private final void openOther() { final IWorkbenchWindow window = PlatformUI.getWorkbench() .getActiveWorkbenchWindow(); final IWorkbenchPage page = window.getActivePage(); if (page == null) { return; } final ShowViewDialog dialog = new ShowViewDialog(window.getShell(), WorkbenchPlugin.getDefaul...
private final void openOther() { final IWorkbenchWindow window = PlatformUI.getWorkbench() .getActiveWorkbenchWindow(); final IWorkbenchPage page = window.getActivePage(); if (page == null) { return; } final ShowViewDialog dialog = new ShowViewDialog(window, WorkbenchPlugin.getDefault().getView...
public boolean compile(String[] argv) { // decode command line arguments try { configure(argv); if (proceed) { if (showProgress) out.println(Main.bind("progress.compiling")); //$NON-NLS-1$ for (int i = 0; i < repetitions; i++) { globalProblemsCount = 0; globalErrorsCount = 0; glo...
public boolean compile(String[] argv) { // decode command line arguments try { configure(argv); if (proceed) { if (showProgress) out.println(Main.bind("progress.compiling")); //$NON-NLS-1$ for (int i = 0; i < repetitions; i++) { globalProblemsCount = 0; globalErrorsCount = 0; glo...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // mark the synthetic variable as being used synchroVariable.used = true; // simple propagation to subnodes flowInfo = block.analyseCode( scope, new InsideSubRoutineFlowContext(flowContext, th...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { // mark the synthetic variable as being used synchroVariable.useFlag = LocalVariableBinding.USED; // simple propagation to subnodes flowInfo = block.analyseCode( scope, new InsideSubRoutineFlo...
public String getLeadingComment() { return optionalLeadingComment; }
public String getLeadingComment() { return this.optionalLeadingComment; }
protected void beginToCompile(org.eclipse.jdt.internal.compiler.env.ICompilationUnit[] sourceUnits, String[] bindingKeys) { int sourceLength = sourceUnits.length; int keyLength = bindingKeys.length; int maxUnits = sourceLength + keyLength; this.totalUnits = 0; this.unitsToProcess = new CompilationUnitDeclara...
protected void beginToCompile(org.eclipse.jdt.internal.compiler.env.ICompilationUnit[] sourceUnits, String[] bindingKeys) { int sourceLength = sourceUnits.length; int keyLength = bindingKeys.length; int maxUnits = sourceLength + keyLength; this.totalUnits = 0; this.unitsToProcess = new CompilationUnitDeclara...
public Expression getExpression() { if (!expressionInitialized) { // lazy initialize - use setter to ensure parent link set too setExpression(null); } return optionalExpression; }
public Expression getExpression() { if (!expressionInitialized) { // lazy initialize - use setter to ensure parent link set too setExpression(new SimpleName(getAST())); } return optionalExpression; }
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; block.generateCode(currentScope, codeStream); codeStream.recordPositionsFrom(pc, this); }
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; block.generateCode(currentScope, codeStream); codeStream.recordPositionsFrom(pc, this.sourceStart); }
private TypeBinding internalResolveType(Scope scope) { // Answer the signature return type // Base type promotion this.constant = Constant.NotAConstant; if (this.receiver == null) { this.actualReceiverType = scope.enclosingSourceType(); } else if (scope.kind == Scope.CLASS_SCOPE) { this.actualReceiverT...
private TypeBinding internalResolveType(Scope scope) { // Answer the signature return type // Base type promotion this.constant = Constant.NotAConstant; if (this.receiver == null) { this.actualReceiverType = scope.enclosingSourceType(); } else if (scope.kind == Scope.CLASS_SCOPE) { this.actualReceiverT...
public void addExtension(String id, XmlElement extension) { XmlElement interpreter = extension.getElement("interpreter"); try { interpreterTable.put(interpreter.getAttribute("name"), PluginLoader.loadExternalPlugin(interpreter.getAttribute("main_class"), pluginManager.getPluginType(id),pluginManager.getPlugi...
public void addExtension(String id, XmlElement extension) { XmlElement interpreter = extension.getElement("interpreter"); try { interpreterTable.put(interpreter.getAttribute("name"), PluginLoader.loadExternalPlugin(interpreter.getAttribute("main_class"), pluginManager.getPluginType(id),pluginManager.getJarFi...
public void rollover() { // Note: synchronization not necessary since doAppend is already synched rollingPolicy.rollover(file); file = rollingPolicy.getLogFile(fileName); try { // This will also close the file. This is OK since multiple // close operations are safe. this.set...
public void rollover() { // Note: synchronization not necessary since doAppend is already synched rollingPolicy.rollover(file); file = rollingPolicy.getActiveLogFile(fileName); try { // This will also close the file. This is OK since multiple // close operations are safe. th...
public IProblem createProblem( char[] originatingFileName, int problemId, String[] arguments, int severity, int startPosition, int endPosition, int lineNumber) { IProblem problem = super.createProblem( originatingFileName, problemId, arguments, severity, ...
public IProblem createProblem( char[] originatingFileName, int problemId, String[] arguments, int severity, int startPosition, int endPosition, int lineNumber) { IProblem problem = super.createProblem( originatingFileName, problemId, arguments, severity, ...
public TypeBinding resolveType(BlockScope scope) { boolean argsContainCast = false; if (left instanceof CastExpression) { left.bits |= IgnoreNeedForCastCheckMASK; // will check later on argsContainCast = true; } TypeBinding leftType = left.resolveType(scope); if (right instanceof CastExpression) { ...
public TypeBinding resolveType(BlockScope scope) { boolean argsContainCast = false; if (left instanceof CastExpression) { left.bits |= IgnoreNeedForCastCheckMASK; // will check later on argsContainCast = true; } TypeBinding leftType = left.resolveType(scope); if (right instanceof CastExpression) { ...
private ActionUtilities() { throw new Error("ActionUtilities is just a container for static methods"); }
private ActionUtilities() { throw new UnsupportedOperationException("ActionUtilities is just a container for static methods"); }
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); LoopingFlowContext loopingContext = new LoopingFlowContext( flowContext, this, breakLabel, continueLabel, currentScope); Cons...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); LoopingFlowContext loopingContext = new LoopingFlowContext( flowContext, this, breakLabel, continueLabel, currentScope); Cons...
public interface IImageBindingDefinition 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 the Common...
public interface IImageBindingDefinition 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 the Common...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((this.bits & ASTNode.IsReachable) == 0) { return; } int pc = codeStream.position; // generation of code responsible for invoking the finally // blocks in sequence if (this.subroutines != null){ for (int i = 0, max = this.subrouti...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((this.bits & ASTNode.IsReachable) == 0) { return; } int pc = codeStream.position; // generation of code responsible for invoking the finally // blocks in sequence if (this.subroutines != null){ for (int i = 0, max = this.subrouti...
private boolean isAffectedByJavaProject(IJavaElementDelta delta, IJavaElement element) { switch (delta.getKind()) { case IJavaElementDelta.ADDED : try { // if the added project is on the classpath, then the hierarchy has changed IClasspathEntry[] classpath = this.javaProject().getResolvedClasspath(true); ...
private boolean isAffectedByJavaProject(IJavaElementDelta delta, IJavaElement element) { switch (delta.getKind()) { case IJavaElementDelta.ADDED : try { // if the added project is on the classpath, then the hierarchy has changed IClasspathEntry[] classpath = this.javaProject().getExpandedClasspath(true); ...
protected static String stripJunk(String s) { String res = ""; int len = s.length(); for (int i = 0; i < len; i++) { char c = s.charAt(i); if (Character.isJavaLetterOrDigit(c)) res += c; } return res; }
protected static String stripJunk(String s) { String res = ""; int len = s.length(); for (int i = 0; i < len; i++) { char c = s.charAt(i); if (Character.isJavaIdentifierPart(c)) res += c; } return res; }
protected void executeOperation() throws JavaModelException { if (this.progressMonitor != null){ if (this.progressMonitor.isCanceled()) return; this.progressMonitor.beginTask(Util.bind("element.reconciling"), 2); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkingCopy(); boolean wasConsistent = wo...
protected void executeOperation() throws JavaModelException { if (this.progressMonitor != null){ if (this.progressMonitor.isCanceled()) return; this.progressMonitor.beginTask(Util.bind("element.reconciling"), 2); //$NON-NLS-1$ } CompilationUnit workingCopy = getWorkingCopy(); boolean wasConsistent = wo...
public Project() { _saveRegistry = new UMLChangeRegistry(); // Jaap Branderhorst 2002-12-09 // load the default model // this is NOT the way how it should be since this makes argo depend on Java even more. setDefaultModel(ProfileJava.getInstance().getProfileModel()); }
public Project() { _saveRegistry = new UMLChangeRegistry(); // Jaap Branderhorst 2002-12-09 // load the default model // this is NOT the way how it should be since this makes argo depend on Java even more. setDefaultModel(ProfileJava.loadProfileModel()); }
public void build(boolean computeSubtypes) { if (this.hierarchy.fType == null || computeSubtypes) { ArrayList allTypesInRegion = determineTypesInRegion(); this.hierarchy.initialize(allTypesInRegion.size()); createTypeHierarchyBasedOnRegion(allTypesInRegion); } else { this.hierarchy.initialize(1); ...
public void build(boolean computeSubtypes) { if (this.hierarchy.type == null || computeSubtypes) { ArrayList allTypesInRegion = determineTypesInRegion(); this.hierarchy.initialize(allTypesInRegion.size()); createTypeHierarchyBasedOnRegion(allTypesInRegion); } else { this.hierarchy.initialize(1); ...
protected TypeBinding getTypeBinding(Scope scope) { if (this.resolvedType != null) { return this.resolvedType; } Binding binding = scope.getPackage(this.tokens); if (binding != null && !binding.isValidBinding()) { if (binding instanceof ProblemReferenceBinding && binding.problemId() == ProblemReasons.No...
protected TypeBinding getTypeBinding(Scope scope) { if (this.resolvedType != null) { return this.resolvedType; } Binding binding = scope.getPackage(this.tokens); if (binding != null && !binding.isValidBinding()) { if (binding instanceof ProblemReferenceBinding && binding.problemId() == ProblemReasons.No...
private void updateTabList(IWorkbenchPart part) { PartSite site = (PartSite) part.getSite(); PartPane pane = site.getPane(); if (pane instanceof ViewPane) { ViewPane viewPane = (ViewPane) pane; Control[] tabList = viewPane.getTabList(); if (pane.getWindow() instanceof DetachedWindow) { viewPane.getC...
private void updateTabList(IWorkbenchPart part) { PartSite site = (PartSite) part.getSite(); PartPane pane = site.getPane(); if (pane instanceof ViewPane) { ViewPane viewPane = (ViewPane) pane; Control[] tabList = viewPane.getTabList(); if (pane.getWindow() instanceof DetachedWindow) { viewPane.getC...
public void setDrawing(Drawing d) { super.setDrawing(d); Rectangle r = ((StandardDrawing) d).displayBox(); Dimension drawingSize = new Dimension(r.width, r.height); Dimension viewportSize = new Dimension(r.width, r.height); if (getParent() != null) { viewportSize = getViewportSize(); } /* Dimension u...
public void setDrawing(Drawing d) { super.setDrawing(d); Rectangle r = ((StandardDrawing) d).displayBox(); //Dimension drawingSize = new Dimension(r.width, r.height); Dimension viewportSize = new Dimension(r.width, r.height); if (getParent() != null) { viewportSize = getViewportSize(); } /* Dimension...
private void processPackageFragmentResource(IPackageFragment source, IPackageFragmentRoot root, String newName) throws JavaModelException { try { String newFragName = (newName == null) ? source.getElementName() : newName; IPackageFragment newFrag = root.getPackageFragment(newFragName); IResource[] resources...
private void processPackageFragmentResource(IPackageFragment source, IPackageFragmentRoot root, String newName) throws JavaModelException { try { String newFragName = (newName == null) ? source.getElementName() : newName; IPackageFragment newFrag = root.getPackageFragment(newFragName); IResource[] resources...
public boolean isAlwaysAsk() { String s = profiles.getAttribute("dont_ask"); if (s == null) s = "false"; if (s.equals("true")) return false; return true; }
public boolean isAlwaysAsk() { String s = profiles.getAttribute("dont_ask"); if (s == null) s = "true"; if (s.equals("true")) return false; return true; }
public CreateVFolderOnMessageCommand(IFrameMediator frameController, ICommandReference reference, String vfolderType) { super(reference); this.vfolderType = vfolderType; this.mediator = mediator; }
public CreateVFolderOnMessageCommand(IFrameMediator frameController, ICommandReference reference, String vfolderType) { super(reference); this.vfolderType = vfolderType; this.mediator = frameController; }
public Expression getValue() { if (this.value == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.value == null) { preLazyInit(); this.value = new SimpleName(this.ast); postLazyInit(this.value, VALUE_PROPERTY); } } } return this.value; }
public Expression getValue() { if (this.value == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.value == null) { preLazyInit(); this.value = new SimpleName(this.ast); postLazyInit(this.value, VALUE_PROPERTY); } } } return this.value; }
public static IJavaElement determineIfOnClasspath(IResource resource, IJavaProject project) { IPath resourcePath = resource.getFullPath(); boolean isExternal = ExternalFoldersManager.isExternal(resourcePath); if (isExternal) resourcePath = resource.getLocation(); try { JavaProjectElementInfo projectIn...
public static IJavaElement determineIfOnClasspath(IResource resource, IJavaProject project) { IPath resourcePath = resource.getFullPath(); boolean isExternal = ExternalFoldersManager.isInternalPathForExternalFolder(resourcePath); if (isExternal) resourcePath = resource.getLocation(); try { JavaProject...
extends org.tigris.scarab.om.BaseTransactionPeer 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.turb...
extends org.tigris.scarab.om.BaseTransactionPeer 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.turb...
public IDOMCompilationUnit createCompilationUnit(ICompilationUnit compilationUnit) { initializeBuild(compilationUnit.getContents(), true, true); getParser(JavaCore.getOptions()).parseCompilationUnit(compilationUnit, false/*diet parse*/); return super.createCompilationUnit(compilationUnit); }
public IDOMCompilationUnit createCompilationUnit(ICompilationUnit compilationUnit) { initializeBuild(compilationUnit.getContents(), true, true); getParser(JavaCore.getOptions()).parseCompilationUnit(compilationUnit, false/*diet parse*/, null/*no progress*/); return super.createCompilationUnit(compilationUnit); }
public QuadTree(Rectangle2D absoluteBoundingRectangle2D) { this(6, absoluteBoundingRectangle2D); }
public QuadTree(Rectangle2D absoluteBoundingRectangle2D) { this(2, absoluteBoundingRectangle2D); }
public DeclarationOfReferencedMethodsPattern(IJavaElement enclosingElement) { super(false, true, null, null, null, null, null, null, null, null, R_PATTERN_MATCH); this.enclosingElement = enclosingElement; this.knownMethods = new SimpleSet(); ((InternalSearchPattern)this).mustResolve = true; }
public DeclarationOfReferencedMethodsPattern(IJavaElement enclosingElement) { super(false, true, null, null, null, null, null, null, null, false, null, R_PATTERN_MATCH); this.enclosingElement = enclosingElement; this.knownMethods = new SimpleSet(); ((InternalSearchPattern)this).mustResolve = true; }
public void login() throws IOException, POP3Exception, CommandCancelledException { PasswordDialog dialog; boolean login = false; char[] password = new char[0]; String user = ""; String method = ""; boolean save = false; // open a port to the server ...
public void login() throws IOException, POP3Exception, CommandCancelledException { PasswordDialog dialog; boolean login = false; char[] password = new char[0]; String user = ""; String method = ""; boolean save = false; // open a port to the server ...
int MAJOR_VERSION_1_5 = 49; // TODO : (olivier) 1.5. major version value need to be confirmed /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made availab...
int MAJOR_VERSION_1_5 = 49; // TODO : (olivier) 1.5. major version value need to be confirmed /******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made availab...
public TypeBinding resolveType(BlockScope scope) { // due to syntax lhs may be only a NameReference, a FieldReference or an ArrayReference constant = NotAConstant; this.lhsType = lhs.resolveType(scope); TypeBinding expressionTb = expression.resolveType(scope); if (this.lhsType == null || expressionTb == nul...
public TypeBinding resolveType(BlockScope scope) { // due to syntax lhs may be only a NameReference, a FieldReference or an ArrayReference constant = NotAConstant; this.lhsType = lhs.resolveType(scope); TypeBinding expressionTb = expression.resolveType(scope); if (this.lhsType == null || expressionTb == nul...
private void initBody(Message message, boolean preferHtml) throws Exception { MimeTree mimeTree = message.getMimePartTree(); // Which Bodypart shall be shown? (html/plain) LocalMimePart bodyPart = null; if (preferHtml) { bodyPart = (LocalMimePart) mimeTree.getFirstTextPart("html"); } else { bodyPart ...
private void initBody(Message message, boolean preferHtml) throws Exception { MimeTree mimeTree = message.getMimePartTree(); // Which Bodypart shall be shown? (html/plain) LocalMimePart bodyPart = null; if (preferHtml) { bodyPart = (LocalMimePart) mimeTree.getFirstTextPart("html"); } else { bodyPart ...
protected void initComponents() { defaultAccountCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString( "dialog", "account", "use_default_account_settings")); //defaultAccountCheckBox.setEnabled(false); defaultAccountCheckBox.setActionCommand("DEFAULT_ACCOUNT")...
protected void initComponents() { defaultAccountCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString( "dialog", "account", "use_default_account_settings")); //defaultAccountCheckBox.setEnabled(false); defaultAccountCheckBox.setActionCommand("DEFAULT_ACCOUNT")...
public char[] getPackageName() { if (this.packageIndex == -1) return this.qualification; return CharOperation.subarray(this.qualification, 0, this.packageIndex); }
public char[] getPackageName() { if (this.packageIndex == -1) return this.qualification; return internedPackageNames.add(CharOperation.subarray(this.qualification, 0, this.packageIndex)); }
public void generateCompoundAssignment( BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired) { FieldBinding lastFieldBinding = generateReadSequence(currentScope, codeStream); SyntheticMethodBinding accessor = ...
public void generateCompoundAssignment( BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired) { FieldBinding lastFieldBinding = generateReadSequence(currentScope, codeStream); SyntheticMethodBinding accessor = ...
protected void reportDeclaration(ReferenceBinding typeBinding, int maxType, MatchLocator locator, SimpleSet knownTypes) throws CoreException { IType type = locator.lookupType(typeBinding); if (type == null) return; // case of a secondary type IResource resource = type.getResource(); boolean isBinary = type.isBinar...
protected void reportDeclaration(ReferenceBinding typeBinding, int maxType, MatchLocator locator, SimpleSet knownTypes) throws CoreException { IType type = locator.lookupType(typeBinding); if (type == null) return; // case of a secondary type IResource resource = type.getResource(); boolean isBinary = type.isBinar...
private IStatus openErrorDialog(String title, String msg, final ErrorInfo errorInfo) { IWorkbench workbench = PlatformUI.getWorkbench(); //Abort on shutdown if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) return Status.CANCEL_STATUS; ...
private IStatus openErrorDialog(String title, String msg, final ErrorInfo errorInfo) { IWorkbench workbench = PlatformUI.getWorkbench(); //Abort on shutdown if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) return Status.CANCEL_STATUS; ...
public static synchronized void loadCarolConfiguration(Properties allProps) throws RMIConfigurationException { // prefix String jvmPref = CarolDefaultValues.CAROL_PREFIX + "." + CarolDefaultValues.JVM_PREFIX; String jndiPref = CarolDefaultValues.CAROL_PREFIX + "." + CarolDefaultValues.JNDI_...
public static synchronized void loadCarolConfiguration(Properties allProps) throws RMIConfigurationException { // prefix String jvmPref = CarolDefaultValues.CAROL_PREFIX + "." + CarolDefaultValues.JVM_PREFIX; String jndiPref = CarolDefaultValues.CAROL_PREFIX + "." + CarolDefaultValues.JNDI_...
protected void updateProblemsFor(String sourceLocation, CompilationResult result) throws CoreException { IProblem[] problems = result.getProblems(); if (problems == null || problems.length == 0) return; notifier.updateProblemCounts(problems); storeProblemsFor(resourceForLocation(sourceLocation), problems); } prot...
protected void updateProblemsFor(String sourceLocation, CompilationResult result) throws CoreException { IProblem[] problems = result.getProblems(); if (problems == null || problems.length == 0) return; notifier.updateProblemCounts(problems); storeProblemsFor(resourceForLocation(sourceLocation), problems); } prot...
public void resourceChanged(IResourceChangeEvent event) { if (definitionsToNatures == null) return; IResourceDelta[] deltas = event.getDelta().getAffectedChildren(); for (int i = 0; i < deltas.length; i++) { if ((deltas[i].getFlags() | IResourceDelta.DESCRIPTION) > 0) { IResource resource = deltas[i]...
public void resourceChanged(IResourceChangeEvent event) { if (definitionsToNatures == null || event.getDelta() == null) return; IResourceDelta[] deltas = event.getDelta().getAffectedChildren(); for (int i = 0; i < deltas.length; i++) { if ((deltas[i].getFlags() | IResourceDelta.DESCRIPTION) > 0) { IR...
public Message send(Message query) throws IOException { byte [] out, in; Message response; DatagramSocket s; DatagramPacket dp; short udpLength = 512; if (Options.check("verbosemsg")) System.err.println("Sending to " + addr.getHostAddress() + ":" + port); if (query.getQuestion().getType() == Type.AXFR...
public Message send(Message query) throws IOException { byte [] out, in; Message response; DatagramSocket s; DatagramPacket dp; short udpLength = 512; if (Options.check("verbose")) System.err.println("Sending to " + addr.getHostAddress() + ":" + port); if (query.getQuestion().getType() == Type.AXFR) ...
protected MethodBinding findDefaultAbstractMethod( ReferenceBinding receiverType, char[] selector, TypeBinding[] argumentTypes, InvocationSite invocationSite, ReferenceBinding classHierarchyStart, ObjectVector found, MethodBinding concreteMatch) { int startFoundSize = found.size; ReferenceBinding cu...
protected MethodBinding findDefaultAbstractMethod( ReferenceBinding receiverType, char[] selector, TypeBinding[] argumentTypes, InvocationSite invocationSite, ReferenceBinding classHierarchyStart, ObjectVector found, MethodBinding concreteMatch) { int startFoundSize = found.size; ReferenceBinding cu...
public StringBuffer printExpression(int indent, StringBuffer output) { output.append("<CompleteOnJavadocSingleNameReference:"); //$NON-NLS-1$ if (this.token != null) super.printExpression(indent, output); return output.append('>'); }
public StringBuffer printExpression(int indent, StringBuffer output) { output.append("<CompleteOnJavadocSingleTypeReference:"); //$NON-NLS-1$ if (this.token != null) super.printExpression(indent, output); return output.append('>'); }
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ DoStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ DoStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(...