buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected String[] getPathsOfDeclaringType() { if (this.typeQualification == null && this.typeSimpleName == null) return null; final PathCollector pathCollector = new PathCollector(); IJavaSearchScope scope = SearchEngine.createWorkspaceScope(); IndexManager indexManager = JavaModelManager.getJavaModelManager().ge...
protected String[] getPathsOfDeclaringType() { if (this.typeQualification == null && this.typeSimpleName == null) return null; final PathCollector pathCollector = new PathCollector(); IJavaSearchScope scope = SearchEngine.createWorkspaceScope(); IndexManager indexManager = JavaModelManager.getIndexManager(); Sear...
protected void toString(int tab, StringBuffer buffer) { buffer.append(this.tabString(tab)); buffer.append("(working copy)\n"/*nonNLS*/); super.toString(tab, buffer); }
protected void toString(int tab, StringBuffer buffer) { buffer.append(this.tabString(tab)); buffer.append("(working copy)\n"); //$NON-NLS-1$ super.toString(tab, buffer); }
public String toString(){ return "indexing "/*nonNLS*/ + resource.getName(); }
public String toString(){ return "indexing " + resource.getName(); //$NON-NLS-1$ }
public String toString(int tab) { return tabString(tab) + "Recovered local variable:\n"/*nonNLS*/ + localDeclaration.toString(tab + 1); }
public String toString(int tab) { return tabString(tab) + "Recovered local variable:\n" + localDeclaration.toString(tab + 1); //$NON-NLS-1$ }
public void bind(MethodScope scope, TypeBinding typeBinding, boolean used) { if (this.type != null) this.type.binding = typeBinding; // record the resolved type into the type reference int modifierFlag = this.modifiers; if ((this.binding = scope.duplicateName(this.name)) != null) { //the name already ex...
public void bind(MethodScope scope, TypeBinding typeBinding, boolean used) { if (this.type != null) this.type.binding = typeBinding; // record the resolved type into the type reference int modifierFlag = this.modifiers; if ((this.binding = scope.duplicateName(this.name)) != null) { //the name already ex...
public List getContexts() { return Collections.unmodifiableList(contexts); }
public List getContexts() { return contexts; }
void actionServiceChanged(ActionServiceEvent actionServiceEvent); /******************************************************************************* * 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 Co...
void actionServiceChanged(ActionServiceEvent actionServiceEvent); /******************************************************************************* * 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 Co...
public void focusLost(FocusEvent event) { FocusOwner lost = (FocusOwner) map.get(event.getSource()); last = current; current = null; //current = lost; updateActions(); }
public void focusLost(FocusEvent event) { //FocusOwner lost = (FocusOwner) map.get(event.getSource()); last = current; current = null; //current = lost; updateActions(); }
// abstract private methods cannot occur nor abstract static............ } if (isMethodUseDeprecated(binding, scope)) scope.problemReporter().deprecatedMethod(binding, this); // from 1.5 compliance on, array#clone() returns the array type (but binding still shows Object) if (actualReceiverType.isArrayType() ...
// abstract private methods cannot occur nor abstract static............ } if (isMethodUseDeprecated(binding, scope)) scope.problemReporter().deprecatedMethod(binding, this); // from 1.5 compliance on, array#clone() returns the array type (but binding still shows Object) if (actualReceiverType.isArrayType() ...
public void open(IProgressMonitor pm, IBuffer buffer) throws JavaModelException { if (this.useCount == 0) { throw newNotPresentException(); } else { super.open(pm, buffer); } }
public void open(IProgressMonitor pm, IBuffer buffer) throws JavaModelException { if (this.useCount == 0) { // was destroyed throw newNotPresentException(); } else { super.open(pm, buffer); } }
final static public String toString(char[][] array) { char[] result = concatWith(array, '.'); if (result == null) return ""/*nonNLS*/; return new String(result); }
final static public String toString(char[][] array) { char[] result = concatWith(array, '.'); if (result == null) return ""; //$NON-NLS-1$ return new String(result); }
public static String[] getUserDefinedHeaderfieldArray() { String additionalHeaderfields = headercache.getAttribute("headerfields"); if ((additionalHeaderfields != null) && (additionalHeaderfields.length() > 0)) { List list = new Vector(); StringTokenizer tok ...
public static String[] getUserDefinedHeaderfieldArray() { String additionalHeaderfields = headercache.getAttribute("headerfields"); if ((additionalHeaderfields != null) && (additionalHeaderfields.length() > 0)) { List list = new Vector(); StringTokenizer tok ...
public IType[] getBuiltClasses(IPath path) { Vector vResult = new Vector(); // try { String extension = path.getFileExtension().toLowerCase(); if (extension.equals("java") || extension.equals("class")) { //$NON-NLS-1$ //$NON-NLS-2$ IPath pkgPath = path.removeLastSegments(1); IPackage pkg = fState.getP...
public IType[] getBuiltClasses(IPath path) { Vector vResult = new Vector(); // try { String extension = path.getFileExtension().toLowerCase(); if (extension.equals("java"/*nonNLS*/) || extension.equals("class"/*nonNLS*/)) { IPath pkgPath = path.removeLastSegments(1); IPackage pkg = fState.getPathMap()...
public dnsNXTRecord(dnsName _name, short _dclass, int _ttl, StringTokenizer st) throws IOException
public dnsNXTRecord(dnsName _name, short _dclass, int _ttl, MyStringTokenizer st) throws IOException
extends BaseDependType package org.tigris.scarab.om; // JDK classes import java.util.*; // Turbine classes import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.ObjectUtils; import org.apache.turbine.util.StringUtils; im...
extends BaseDependType package org.tigris.scarab.om; // JDK classes import java.util.*; // Turbine classes import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.ObjectUtils; import org.apache.turbine.util.StringUtils; im...
public ImportAction(IFrameMediator frameMediator) { super(frameMediator, MailResourceLoader.getString("menu", "mainframe", "menu_utilities_importmailbox")); // tooltip text putValue(SHORT_DESCRIPTION, MailResourceLoader.getString("menu", "mainframe", ...
public ImportAction(IFrameMediator frameMediator) { super(frameMediator, MailResourceLoader.getString("menu", "mainframe", "menu_utilities_importmailbox")); // tooltip text putValue(SHORT_DESCRIPTION, MailResourceLoader.getString("menu", "mainframe", ...
public long getAnnotationTagBits() { FieldBinding originalField = this.original(); if ((originalField.tagBits & TagBits.AnnotationResolved) == 0 && originalField.declaringClass instanceof SourceTypeBinding) { ClassScope scope = ((SourceTypeBinding) originalField.declaringClass).scope; if (scope == null) { // synt...
public long getAnnotationTagBits() { FieldBinding originalField = this.original(); if ((originalField.tagBits & TagBits.AnnotationResolved) == 0 && originalField.declaringClass instanceof SourceTypeBinding) { ClassScope scope = ((SourceTypeBinding) originalField.declaringClass).scope; if (scope == null) { // synt...
private Statement body = null; /** * Creates a new AST node for an enchanced for statement owned by the * given AST. By default, the parameter and expression are unspecified * but legal subtrees, and the body is an empty block. * * @param ast the AST that is to own this node */ EnhancedForStatement(...
private Statement body = null; /** * Creates a new AST node for an enchanced for statement owned by the * given AST. By default, the parameter and expression are unspecified * but legal subtrees, and the body is an empty block. * * @param ast the AST that is to own this node */ EnhancedForStatement(...
public IMailFolder add(XmlElement childNode, IMailFolder parentFolder) { FolderItem item = new FolderItem(childNode); if (item == null) { return null; } // i18n stuff String name = null; // XmlElement.printNode(item.getRoot(), ""); int uid = item.getInteger("uid"); try { if (uid == 100) { ...
public IMailFolder add(XmlElement childNode, IMailFolder parentFolder) { FolderItem item = new FolderItem(childNode); if (item == null) { return null; } // i18n stuff String name = null; // XmlElement.printNode(item.getRoot(), ""); int uid = item.getInteger("uid"); try { if (uid == 100) { ...
public Vector getStrings() { return strings; } byte [] rrToWire(Compression c) throws IOException { if (strings == null) return null; ByteArrayOutputStream bs = new ByteArrayOutputStream(); CountedDataOutputStream ds = new CountedDataOutputStream(bs); Enumeration e = strings.elements(); while (e.hasMoreEleme...
public Vector getStrings() { return strings; } byte [] rrToWire(Compression c, int index) throws IOException { if (strings == null) return null; ByteArrayOutputStream bs = new ByteArrayOutputStream(); CountedDataOutputStream ds = new CountedDataOutputStream(bs); Enumeration e = strings.elements(); while (e.h...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ BreakStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescripto...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ BreakStatement(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescripto...
public void initialize(JavaProject project, int possibleMatchSize) throws JavaModelException { // clean up name environment only if there are several possible match as it is reused // when only one possible match (bug 58581) if (this.nameEnvironment != null && possibleMatchSize != 1) this.nameEnvironment.cleanup()...
public void initialize(JavaProject project, int possibleMatchSize) throws JavaModelException { // clean up name environment only if there are several possible match as it is reused // when only one possible match (bug 58581) if (this.nameEnvironment != null && possibleMatchSize != 1) this.nameEnvironment.cleanup()...
public void doPost(LoggingEvent event) { // get the "local" logger for this event from the // configured repository. Logger localLogger = getLoggerRepository().getLogger(event.categoryName); // if the logger level is greater or equal to the level // of the event, use the logger to append t...
public void doPost(LoggingEvent event) { // get the "local" logger for this event from the // configured repository. Logger localLogger = getLoggerRepository().getLogger(event.categoryName); // if the logger level is greater or equal to the level // of the event, use the logger to append t...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update cycle marker */ IMarker cycleMarker = javaProject.getCycleMarker(); if (cycleMarker != null) { int severity = JavaCore.ERROR.equals(javaProject.get...
private void computeClasspathLocations( IWorkspaceRoot root, JavaProject javaProject, SimpleLookupTable binaryLocationsPerProject) throws CoreException { /* Update cycle marker */ IMarker cycleMarker = javaProject.getCycleMarker(); if (cycleMarker != null) { int severity = JavaCore.ERROR.equals(javaProject.get...
public StringBuffer print(int tab, StringBuffer output) { return returnType.print(tab, output); }
public StringBuffer print(int tab, StringBuffer output) { return this.returnType.print(tab, output); }
protected void resetToolBarLayout() { window.getCoolBarManager().resetLayout(); }
protected void resetToolBarLayout() { window.getCoolBarManager().resetItemOrder(); }
private void createGeneralEntry(IPreferenceNode node) { createEntry(node, "General", 0); IPreferenceNode[] subnodes = node.getSubNodes(); for (int i = 0; i < subnodes.length; i++) { createEntry(subnodes[i], subnodes[i].getLabelText(), 1); } }
private void createGeneralEntry(IPreferenceNode node) { createEntry(node, "General", 0); //$NON-NLS-1$ IPreferenceNode[] subnodes = node.getSubNodes(); for (int i = 0; i < subnodes.length; i++) { createEntry(subnodes[i], subnodes[i].getLabelText(), 1); } }
public boolean performOk() { List preferenceActiveKeyConfigurationDefinitions = new ArrayList(); preferenceActiveKeyConfigurationDefinitions.add(new ActiveKeyConfigurationDefinition(getKeyConfigurationId(), null)); PreferenceCommandRegistry preferenceCommandRegistry = (PreferenceCommandRegistry) commandManager...
public boolean performOk() { List preferenceActiveKeyConfigurationDefinitions = new ArrayList(); preferenceActiveKeyConfigurationDefinitions.add(new ActiveKeyConfigurationDefinition(getKeyConfigurationId(), null)); PreferenceCommandRegistry preferenceCommandRegistry = (PreferenceCommandRegistry) commandManager...
public void selectTabNamed(String tabName) { Iterator it = detailsPanesByCompassPoint.values().iterator(); while (it.hasNext()) { DetailsPane detailsPane = (DetailsPane)it.next(); if (detailsPane.selectTabNamed(tabName)) return; } throw new Ill...
public void selectTabNamed(String tabName) { Iterator it = detailsPanesByCompassPoint.values().iterator(); while (it.hasNext()) { DetailsPane detailsPane = (DetailsPane)it.next(); if (detailsPane.selectTabNamed(Argo.localize("UMLMenu", tabName))) return; ...
public void contextInit(Context ctx) throws TomcatException { ContextManager cm=ctx.getContextManager(); if( cm.getState() >= ContextManager.STATE_INIT ) { // a context has been added after the server was started. // regenerate the config ( XXX send a restart signal to // the server ) exe...
public void contextInit(Context ctx) throws TomcatException { ContextManager cm=ctx.getContextManager(); if( cm.getState() >= ContextManager.STATE_INIT ) { // a context has been added after the server was started. // regenerate the config ( XXX send a restart signal to // the server ) exe...
static private RepositorySelector repositorySelector; static { // By default we use a DefaultRepositorySelector which always returns 'h'. Hierarchy h = new Hierarchy(new RootCategory(Level.DEBUG)); repositorySelector = new DefaultRepositorySelector(h); /** Search for the properties file log4j.prop...
static private RepositorySelector repositorySelector; static { // By default we use a DefaultRepositorySelector which always returns 'h'. Hierarchy h = new Hierarchy(new RootCategory((Level) Level.DEBUG)); repositorySelector = new DefaultRepositorySelector(h); /** Search for the properties file lo...
private static final String HOSTNAME_REGEXP = "^[a-zA-Z0-9-]+\\.[a-zA-Z0-9-\\.]+\\.[a-zA-Z]{2,4}+$", DOTTED_IPV4_REGEXP =
private static final String HOSTNAME_REGEXP = "^[a-zA-Z0-9-]+\\.[a-zA-Z0-9-\\.]+\\.[a-zA-Z]{2,}+$", DOTTED_IPV4_REGEXP =
public void run() { IViewDescriptor desc = viewReg.find(viewID); if (desc == null) { result[0] = new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, WorkbenchMessages.format("ViewFactory.couldNotCreate", new Object[] { viewID }), //$NON-NLS-1$ null); return; } // Create the view. I...
public void run() { IViewDescriptor desc = viewReg.find(viewID); if (desc == null) { result[0] = new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, WorkbenchMessages.format("ViewFactory.couldNotCreate", new Object[] { viewID }), //$NON-NLS-1$ null); return; } // Create the view. I...
public PropPanelOperation() { super("Operation Properties",2); Class mclass = MOperation.class; addCaption(new JLabel("Name:"),0,0,0); addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),0,0,0); addCaption(new JLabel("Stereotype:"),1,0,0)...
public PropPanelOperation() { super("Operation Properties",2); Class mclass = MOperation.class; addCaption(new JLabel("Name:"),0,0,0); addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),0,0,0); addCaption(new JLabel("Stereotype:"),1,0,0)...
public void engineInit(ContextManager cm) throws TomcatException { // Make sure we know about all contexts added before. Enumeration loadedCtx=cm.getContexts(); // loaded but not initialized - since we are still configuring // the server while( loadedCtx.hasMoreElements() ) { Context ctx=(Context)loadedCt...
public void engineInit(ContextManager cm) throws TomcatException { // Make sure we know about all contexts added before. Enumeration loadedCtx=cm.getContexts(); // loaded but not initialized - since we are still configuring // the server while( loadedCtx.hasMoreElements() ) { Context ctx=(Context)loadedCt...
private void makeActions() { // The actions in jface do not have menu vs. enable, vs. disable vs. color // There are actions in here being passed the workbench - problem // Get services for notification. IPartService partService = getWindow().getPartService(); WWinKeyBindingService keyBindingService = ...
private void makeActions() { // The actions in jface do not have menu vs. enable, vs. disable vs. color // There are actions in here being passed the workbench - problem // Get services for notification. IPartService partService = getWindow().getPartService(); WWinKeyBindingService keyBindingService = ...
protected int matchLevel(NameReference nameRef, boolean resolve) { if (!resolve) { if (this.simpleName == null) return this.mustResolve ? POTENTIAL_MATCH : ACCURATE_MATCH; if (nameRef instanceof SingleNameReference) return matchesName(this.simpleName, ((SingleNameReference)nameRef).token) ? POTENTIAL_MAT...
protected int matchLevel(NameReference nameRef, boolean resolve) { if (!resolve) { if (this.simpleName == null) return this.mustResolve ? POTENTIAL_MATCH : ACCURATE_MATCH; if (nameRef instanceof SingleNameReference) return matchesName(this.simpleName, ((SingleNameReference)nameRef).token) ? POTENTIAL_MAT...
public String toString(int tab) { StringBuffer result = new StringBuffer(tabString(tab)); result.append("Recovered unit: [\n"); //$NON-NLS-1$ result.append(unitDeclaration.toString(tab + 1)); result.append(tabString(tab + 1)); result.append("]"); //$NON-NLS-1$ if (this.imports != null) { for (int i = 0; i < thi...
public String toString(int tab) { StringBuffer result = new StringBuffer(tabString(tab)); result.append("Recovered unit: [\n"); //$NON-NLS-1$ result.append(unitDeclaration.print(tab + 1, result)); result.append(tabString(tab + 1)); result.append("]"); //$NON-NLS-1$ if (this.imports != null) { for (int i = 0; i ...
private int matchLevel(FieldBinding binding) { if (binding == null) return INACCURATE_MATCH; int level; // receiver type ReferenceBinding receiverBinding = binding.declaringClass; if (receiverBinding == null) { if (binding == ArrayBinding.LengthField) { // optimized case for length field of an array if (...
private int matchLevel(FieldBinding binding) { if (binding == null) return INACCURATE_MATCH; int level; // receiver type ReferenceBinding receiverBinding = binding.declaringClass; if (receiverBinding == null) { if (binding == ArrayBinding.ArrayLength) { // optimized case for length field of an array if (...
private BlockedJobsDialog(Shell parentShell, IProgressMonitor blocking, IStatus blockingStatus) { super(parentShell == null ? ProgressManagerUtil.getDefaultParent() : parentShell); blockingMonitor = blocking; setShellStyle(SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX | getDefa...
private BlockedJobsDialog(Shell parentShell, IProgressMonitor blocking, IStatus blockingStatus) { super(parentShell == null ? ProgressManagerUtil.getDefaultParent() : parentShell); blockingMonitor = blocking; setShellStyle(SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX | getDefa...
public final boolean checkCastTypesCompatibility( Scope scope, TypeBinding castType, TypeBinding expressionType, Expression expression) { // see specifications 5.5 // handle errors and process constant when needed // if either one of the type is null ==> // some error has been already reported some...
public final boolean checkCastTypesCompatibility( Scope scope, TypeBinding castType, TypeBinding expressionType, Expression expression) { // see specifications 5.5 // handle errors and process constant when needed // if either one of the type is null ==> // some error has been already reported some...
public boolean isCheckAll() { IMAPRootFolder imapRootFolder = (IMAPRootFolder) MailInterface.treeModel.getImapFolder(accountUid); return imapRootFolder.getAccountItem().getImapItem().getBoolean("exclude_from_checkall", false); }
public boolean isCheckAll() { IMAPRootFolder imapRootFolder = (IMAPRootFolder) MailInterface.treeModel.getImapFolder(accountUid); return !imapRootFolder.getAccountItem().getImapItem().getBoolean("exclude_from_checkall", false); }
private void adjustScrollbars(Point contentSize) { Point size = control.getSize(); scrolled.setMinHeight(size.y + contentSize.y); scrolled.setMinWidth(Math.max(size.x, contentSize.x)); } /** * A cateory has been selected. Shows its children. * * @param category */ void show(WorkbenchPreferenceCateg...
private void adjustScrollbars(Point contentSize) { Point size = control.getSize(); scrolled.setMinHeight(size.y + contentSize.y); scrolled.setMinWidth(Math.max(size.x, contentSize.x)); } /** * A cateory has been selected. Shows its children. * * @param category */ void show(WorkbenchPreferenceGroup...
public Zone(String file, Cache cache) throws IOException { super(); type = PRIMARY; Master m = new Master(file); Record record; while ((record = m.nextRecord()) != null) { if (origin == null || record.getName().subdomain(origin)) { addRR(record); if (origin == null && record.getType() == Type.SOA) o...
public Zone(String file, Cache cache) throws IOException { super(); type = PRIMARY; Master m = new Master(file); Record record; while ((record = m.nextRecord()) != null) { if (origin == null || record.getName().subdomain(origin)) { addRR(record); if (origin == null && record.getType() == Type.SOA) o...
public String individualToString(){ return "Switch flow context"/*nonNLS*/; }
public String individualToString(){ return "Switch flow context"; //$NON-NLS-1$ }
public int discardPerWorkingCopyInfo(CompilationUnit workingCopy) throws JavaModelException { synchronized(perWorkingCopyInfos) { WorkingCopyOwner owner = workingCopy.owner; Map pathToPerWorkingCopyInfos = (Map)this.perWorkingCopyInfos.get(owner); if (pathToPerWorkingCopyInfos == null) return -1; IPa...
public int discardPerWorkingCopyInfo(CompilationUnit workingCopy) throws JavaModelException { synchronized(perWorkingCopyInfos) { WorkingCopyOwner owner = workingCopy.owner; Map pathToPerWorkingCopyInfos = (Map)this.perWorkingCopyInfos.get(owner); if (pathToPerWorkingCopyInfos == null) return -1; IPa...
public int getNodeType() { return EMPTY_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { EmptyStatement result = new EmptyStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLeadingComment(getLeadingCo...
public int getNodeType() { return EMPTY_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { EmptyStatement result = new EmptyStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); re...
private void connectMemberTypes() { SourceTypeBinding sourceType = referenceContext.binding; ReferenceBinding[] memberTypes = sourceType.memberTypes; if (memberTypes != null && memberTypes != NoMemberTypes) { for (int i = 0, size = memberTypes.length; i < size; i++) ((SourceTypeBinding) memberTypes[i]).s...
private void connectMemberTypes() { SourceTypeBinding sourceType = referenceContext.binding; ReferenceBinding[] memberTypes = sourceType.memberTypes; if (memberTypes != null && memberTypes != NoMemberTypes) { for (int i = 0, size = memberTypes.length; i < size; i++) ((SourceTypeBinding) memberTypes[i]).s...
protected String getMainTaskName() { return Util.bind("operation.renameElementProgress"/*nonNLS*/); }
protected String getMainTaskName() { return Util.bind("operation.renameElementProgress"); //$NON-NLS-1$ }
protected void executeOperation() throws JavaModelException { // open the working copy now to ensure contents are that of the current state of this element CompilationUnit workingCopy = getWorkingCopy(); JavaModelManager.getJavaModelManager().getPerWorkingCopyInfo(workingCopy, this.path, true/*create if needed*...
protected void executeOperation() throws JavaModelException { // open the working copy now to ensure contents are that of the current state of this element CompilationUnit workingCopy = getWorkingCopy(); JavaModelManager.getJavaModelManager().getPerWorkingCopyInfo(workingCopy, this.path, true/*create if needed*...
protected void toStringInfo(int tab, StringBuffer buffer, Object info) { buffer.append(this.tabString(tab)); if (info == null) { buffer.append("<initializer #"); //$NON-NLS-1$ buffer.append(this.occurrenceCount); buffer.append("> (not open)"); //$NON-NLS-1$ } else if (info == NO_INFO) { buffer.append("<initi...
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(this.tabString(tab)); if (info == null) { buffer.append("<initializer #"); //$NON-NLS-1$ buffer.append(this.occurrenceCount); buffer.append("> (not open)"); //$NON-NLS-1$ } else if (info == NO_INFO)...
public Color getForeground(Object element) { if (element instanceof IViewDescriptor) { IWorkbenchPage activePage = window.getActivePage(); if (activePage != null) { if (activePage .findView(((IViewDescriptor) element).getId()) != null) { return dimmedForeground; } } } return null; }
public Color getForeground(Object element) { if (element instanceof IViewDescriptor) { IWorkbenchPage activePage = window.getActivePage(); if (activePage != null) { if (activePage .findViewReference(((IViewDescriptor) element).getId()) != null) { return dimmedForeground; } } } return ...
public void setEscapedValue(String token) { if (token == null) { throw new IllegalArgumentException(); } Scanner scanner = this.getAST().scanner; char[] source = token.toCharArray(); scanner.setSourceBuffer(source); scanner.resetTo(0, source.length); try { int tokenType = scanner.getNextToken(); ...
public void setEscapedValue(String token) { if (token == null) { throw new IllegalArgumentException(); } Scanner scanner = getAST().scanner; char[] source = token.toCharArray(); scanner.setSourceBuffer(source); scanner.resetTo(0, source.length); try { int tokenType = scanner.getNextToken(); swit...
protected void executeOperation() throws JavaModelException { try { beginTask(Util.bind("workingCopy.commit"), 2); //$NON-NLS-1$ CompilationUnit workingCopy = getCompilationUnit(); IFile resource = (IFile)workingCopy.getResource(); ICompilationUnit primary = workingCopy.getPrimary(); boolean isPrimary...
protected void executeOperation() throws JavaModelException { try { beginTask(Util.bind("workingCopy.commit"), 2); //$NON-NLS-1$ CompilationUnit workingCopy = getCompilationUnit(); IFile resource = (IFile)workingCopy.getResource(); ICompilationUnit primary = workingCopy.getPrimary(); boolean isPrimary...
public String toString() { return "UnmodifiedBuilderType("/*nonNLS*/ + fNewTSEntry.getType().getName() + ")"/*nonNLS*/; }
public String toString() { return "UnmodifiedBuilderType(" + fNewTSEntry.getType().getName() + ")"; //$NON-NLS-1$ //$NON-NLS-2$ }
private RecordedParsingInformation getRecordedParsingInformation(CompilationResult compilationResult, CommentRecorderParser parser) { int problemsCount = compilationResult.problemCount; IProblem[] problems = null; if (problemsCount != 0) { final IProblem[] compilationResultProblems = compilationResult.problem...
private RecordedParsingInformation getRecordedParsingInformation(CompilationResult compilationResult, CommentRecorderParser parser) { int problemsCount = compilationResult.problemCount; IProblem[] problems = null; if (problemsCount != 0) { final IProblem[] compilationResultProblems = compilationResult.problem...
protected boolean writeClassFileCheck(IFile file, String fileName, byte[] newBytes, boolean isSecondaryType) throws CoreException { // Before writing out the class file, compare it to the previous file // If structural changes occured then add dependent source files if (file.exists()) { try { byte[] oldBytes = ...
protected boolean writeClassFileCheck(IFile file, String fileName, byte[] newBytes, boolean isSecondaryType) throws CoreException { // Before writing out the class file, compare it to the previous file // If structural changes occured then add dependent source files if (file.exists()) { try { byte[] oldBytes = ...
static public final String RELATIVE_TIME_PAT = "^\\d{3,10}"; String filter(String in) throws UnexpectedFormatException; }
static public final String RELATIVE_TIME_PAT = "^\\d{1,10}"; String filter(String in) throws UnexpectedFormatException; }
public String toString(int tab){ return tabString(tab) + "Recovered statement:\n" + statement.toString(tab + 1); //$NON-NLS-1$ }
public String toString(int tab){ return tabString(tab) + "Recovered statement:\n"/*nonNLS*/ + statement.toString(tab + 1); }
public String getMainTaskName(){ return Util.bind("operation.createInitializerProgress"); //$NON-NLS-1$ }
public String getMainTaskName(){ return Util.bind("operation.createInitializerProgress"/*nonNLS*/); }
protected void openWhenClosed(IProgressMonitor pm) throws JavaModelException { try { if (JavaModelManager.VERBOSE){ System.out.println("OPENING Element ("+ Thread.currentThread()+"): " + this.toStringWithAncestors()); //$NON-NLS-1$//$NON-NLS-2$ } // 1) Parent must be open - open the parent if necessary ...
protected void openWhenClosed(IProgressMonitor pm) throws JavaModelException { try { if (JavaModelManager.VERBOSE){ System.out.println("OPENING Element ("+ Thread.currentThread()+"): " + this.toStringWithAncestors()); //$NON-NLS-1$//$NON-NLS-2$ } // 1) Parent must be open - open the parent if necessary ...
public dnsSOARecord(dnsName _name, short _dclass, int _ttl, StringTokenizer st) throws IOException
public dnsSOARecord(dnsName _name, short _dclass, int _ttl, MyStringTokenizer st) throws IOException
public boolean process(Object[] args, Folder folder, Object uid) throws Exception { boolean result = false; String headerField = (String) args[1]; int condition = FilterCriteria.getCriteria((String) args[0]); String searchHeaderField = null; if (headerField.equalsIgnoreCase("Answered")) { searchHead...
public boolean process(Object[] args, Folder folder, Object uid) throws Exception { boolean result = false; String headerField = (String) args[1]; int condition = FilterCriteria.getCriteria((String) args[0]); String searchHeaderField = null; if (headerField.equalsIgnoreCase("Answered")) { searchHead...
public static void permutationDump() { System.out.print("Current permutation is - "); for(int i = 0; i < LENGTH; i++) { System.out.print(names[i] + " "); } System.out.println(); } // Loop through all possible 3^n combinations of not instantiating, // instantiating and setting/not se...
public static void permutationDump() { System.out.print("Current permutation is - "); for(int i = 0; i < LENGTH; i++) { System.out.print(names[i] + " "); } System.out.println(); } // Loop through all possible 3^n combinations of not instantiating, // instantiating and setting/not se...
public String toStringStatements(int tab) { String s = " {"; //$NON-NLS-1$ if (constructorCall != null) { s = s + "\n" + constructorCall.toString(tab) + ";"; //$NON-NLS-1$ //$NON-NLS-2$ } if (statements != null) { for (int i = 0; i < statements.length; i++) { s = s + "\n" + statements[i].toString(ta...
public String toStringStatements(int tab) { String s = " {"; //$NON-NLS-1$ if (constructorCall != null) { s = s + "\n" + constructorCall.toString(tab) + ";"; //$NON-NLS-1$ //$NON-NLS-2$ } if (statements != null) { for (int i = 0; i < statements.length; i++) { s = s + "\n" + statements[i].toString(ta...
private IViewRegistry viewReg; /** * Separates a view's primary id from its secondary id in view key strings. */ static final String ID_SEP = ":"; /** * Returns a string representing a view with the given id and (optional) secondary id, * suitable for use as a key in a map. * * @para...
private IViewRegistry viewReg; /** * Separates a view's primary id from its secondary id in view key strings. */ static final String ID_SEP = ":"; //$NON-NLS-1$ /** * Returns a string representing a view with the given id and (optional) secondary id, * suitable for use as a key in a map. *...
public AccessRestriction getViolatedRestriction(char[] targetTypeFilePath) { for (int i = 0, length = this.accessRules.length; i < length; i++) { AccessRule accessRule = this.accessRules[i]; if (CharOperation.pathMatch(accessRule.pattern, targetTypeFilePath, true/*case sensitive*/, '/')) { switch (accessRu...
public AccessRestriction getViolatedRestriction(char[] targetTypeFilePath) { for (int i = 0, length = this.accessRules.length; i < length; i++) { AccessRule accessRule = this.accessRules[i]; if (CharOperation.pathMatch(accessRule.pattern, targetTypeFilePath, true/*case sensitive*/, '/')) { switch (accessRu...
// int InvalidClassInstantiationWithWildcards = Internal + 537; /******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Comm...
// int InvalidClassInstantiationWithWildcards = Internal + 537; /******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Comm...
public void lazyBuild(PackageElement unit) { // String msg = "Attempt to lazy build " + unit.getPackage().getName() + "." + unit.getFileName(); // System.err.println(msg + ". " + "Lazy building has been disabled."); Assert.isTrue(false, Util.bind("build.lazyBuildDisabled"/*nonNLS*/)); }
public void lazyBuild(PackageElement unit) { // String msg = "Attempt to lazy build " + unit.getPackage().getName() + "." + unit.getFileName(); // System.err.println(msg + ". " + "Lazy building has been disabled."); Assert.isTrue(false, "Internal Error - Lazy building has been disabled"/*nonNLS*/); }
public void acceptPath(String path) { paths.add(path); } } PathCollector collector = new PathCollector(); IProject project = this.hierarchy.javaProject().getProject(); searchAllPossibleSubTypes( project.getWorkspace(), this.getType(), this.scope, this.binariesFromIndexMatches, collector, IJavaS...
public void acceptPath(String path) { paths.add(path); } } PathCollector collector = new PathCollector(); IProject project = this.hierarchy.javaProject().getProject(); searchAllPossibleSubTypes( project.getWorkspace(), this.getType(), this.scope, this.binariesFromIndexMatches, collector, IJavaS...
public OSTask[] getOSTasks(Install installer) { return null; }
public OSTask[] getOSTasks(Install installer) { return new OSTask[0]; }
public static String readFileInString(File fromFile) throws IOException { StringBuffer strbuf = new StringBuffer((int) fromFile.length()); BufferedReader in = new BufferedReader( new InputStreamReader( new FileInputStream(fromFile), "ISO-8859-1")); String str; strbuf = new StringBuffer(); ...
public static String readFileInString(File fromFile) throws IOException { StringBuffer strbuf = new StringBuffer((int) fromFile.length()); BufferedReader in = new BufferedReader( new InputStreamReader( new FileInputStream(fromFile), "ISO-8859-1")); String str; strbuf = new StringBuffer((int)...
* &#064;Ignore("not ready yet") &#064;Test public void something() { ... * </pre> * */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Ignore { /** * The optional reason why the test is ignored. */ String value() default ""; }
* &#064;Ignore("not ready yet") &#064;Test public void something() { ... * </pre> * */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) public @interface Ignore { /** * The optional reason why the test is ignored. */ String value() default ""; }
public void addContainer( Container ct ) throws TomcatException { Context ctx=ct.getContext(); String vhost=ctx.getHost(); String path=ct.getPath(); String ctxP=ctx.getPath(); if(ct.getHandler() == null ) { // it was only a security map, no handler defined return; } switch( ct.getMapType() ...
public void addContainer( Container ct ) throws TomcatException { Context ctx=ct.getContext(); String vhost=ctx.getHost(); String path=ct.getPath(); String ctxP=ctx.getPath(); if(ct.getRoles() != null || ct.getTransport() != null ) { // it was only a security map, no handler defined return; } ...
public void indexDocument() { // Create a new Parser SourceIndexerRequestor requestor = new SourceIndexerRequestor(this); String documentPath = this.document.getPath(); SourceElementParser parser = ((InternalSearchDocument) this.document).parser; if (parser == null) { IPath path = new Path(documentPath); ...
public void indexDocument() { // Create a new Parser SourceIndexerRequestor requestor = new SourceIndexerRequestor(this); String documentPath = this.document.getPath(); SourceElementParser parser = ((InternalSearchDocument) this.document).parser; if (parser == null) { IPath path = new Path(documentPath); ...
private int decodeRequest( Request req, Ajp13Packet msg ) throws IOException { // XXX Awful return values boolean isSSL = false; // Translate the HTTP method code to a String. byte methodCode = msg.getByte(); req.method().setString( methodTransArray[(int)methodCode - 1] ); ...
private int decodeRequest( Request req, Ajp13Packet msg ) throws IOException { // XXX Awful return values boolean isSSL = false; // Translate the HTTP method code to a String. byte methodCode = msg.getByte(); req.method().setString( methodTransArray[(int)methodCode - 1] ); ...
public void run(IProgressMonitor monitor) { IProgressMonitor monitorWrap = new EventLoopProgressMonitor(monitor); monitorWrap.beginTask("", dirtyModels.size()); //$NON-NLS-1$ for (Iterator i = dirtyModels.iterator(); i.hasNext();) { Saveable model = (Saveable) i.next(); // handle case where thi...
public void run(IProgressMonitor monitor) { IProgressMonitor monitorWrap = new EventLoopProgressMonitor(monitor); monitorWrap.beginTask(WorkbenchMessages.Save, dirtyModels.size()); for (Iterator i = dirtyModels.iterator(); i.hasNext();) { Saveable model = (Saveable) i.next(); // handle case whe...
protected final void createResourcesGroup(Composite parent) { //create the input element, which has the root resource //as its only child List input = new ArrayList(); IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); for (int i = 0; i < projects.length; i++) { if (projects...
protected final void createResourcesGroup(Composite parent) { //create the input element, which has the root resource //as its only child List input = new ArrayList(); IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); for (int i = 0; i < projects.length; i++) { if (projects...
public void addRecord(Record r, byte cred, Object o) { Name name = r.getName(); short type = r.getRRsetType(); int src = (o != null) ? o.hashCode() : 0; if (r.getTTL() == 0) return; CacheElement element = (CacheElement) findSet(name, type); if (element == null || cred > element.credibility)
public void addRecord(Record r, byte cred, Object o) { Name name = r.getName(); short type = r.getRRsetType(); int src = (o != null) ? o.hashCode() : 0; if (r.getTTL() == 0) return; CacheElement element = (CacheElement) findExactSet(name, type); if (element == null || cred > element.credibility)
protected void executeOperation() throws JavaModelException { try { beginTask(Util.bind("operation.createUnitProgress"), 2); //$NON-NLS-1$ JavaElementDelta delta = newJavaElementDelta(); ICompilationUnit unit = getCompilationUnit(); IPackageFragment pkg = (IPackageFragment) getParentElement(); IContainer fol...
protected void executeOperation() throws JavaModelException { try { beginTask(Util.bind("operation.createUnitProgress"), 2); //$NON-NLS-1$ JavaElementDelta delta = newJavaElementDelta(); ICompilationUnit unit = getCompilationUnit(); IPackageFragment pkg = (IPackageFragment) getParentElement(); IContainer fol...
private FileRegistry(File file) { super(); if (file == null) throw new NullPointerException(); this.file = file; }
private File file; FileRegistry(File file) { super(); if (file == null) throw new NullPointerException(); this.file = file; }
public TypeReferencePattern( char[] qualification, char[] simpleName, int matchMode, boolean isCaseSensitive) { super(matchMode, isCaseSensitive); this.qualification = isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = isCaseSensitive ? simpleName : CharOperation.toL...
public TypeReferencePattern( char[] qualification, char[] simpleName, int matchMode, boolean isCaseSensitive) { super(matchMode, isCaseSensitive); this.qualification = isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification); this.simpleName = isCaseSensitive ? simpleName : CharOperation.toL...
public long warningThreshold = MethodWithConstructorName | UsingDeprecatedAPI | MaskedCatchBlock | OverriddenPackageDefaultMethod | UnusedImport | NonStaticAccessToStatic | NoEffectAssignment | IncompatibleNonInheritedInterfaceMethod | NoImplicitStringConversion | FinallyBlockNotCompleting | Asse...
public long warningThreshold = MethodWithConstructorName | UsingDeprecatedAPI | MaskedCatchBlock | OverriddenPackageDefaultMethod | UnusedImport | NonStaticAccessToStatic | NoEffectAssignment | IncompatibleNonInheritedInterfaceMethod | NoImplicitStringConversion | FinallyBlockNotCompleting | Asse...
public void view(IMailbox folder, Object uid, MailFrameMediator mediator) throws Exception { // add headerfields which are about to show up XmlElement headerviewerElement = MailConfig.getInstance() .get("options").getElement("/options/headerviewer"); IDefaultItem item = new DefaultItem(headerviewerElement...
public void view(IMailbox folder, Object uid, MailFrameMediator mediator) throws Exception { // add headerfields which are about to show up XmlElement headerviewerElement = MailConfig.getInstance() .get("options").getElement("/options/headerviewer"); IDefaultItem item = new DefaultItem(headerviewerElement...
public update(InputStream in) throws IOException { Vector inputs = new Vector(); Vector istreams = new Vector(); query = new Message(); query.getHeader().setOpcode(Opcode.UPDATE); InputStreamReader isr = new InputStreamReader(in); BufferedReader br = new BufferedReader(isr); inputs.addElement(br); istreams.a...
public update(InputStream in) throws IOException { Vector inputs = new Vector(); Vector istreams = new Vector(); query = new Message(); query.getHeader().setOpcode(Opcode.UPDATE); InputStreamReader isr = new InputStreamReader(in); BufferedReader br = new BufferedReader(isr); inputs.addElement(br); istreams.a...
protected String getMainTaskName() { return Util.bind("operation.renameResourceProgress"/*nonNLS*/); }
protected String getMainTaskName() { return Util.bind("operation.renameResourceProgress"); //$NON-NLS-1$ }
if (isPrivate()) s += "private "; //$NON-NLS-1$ if (isAbstract() && isClass()) s += "abstract "; //$NON-NLS-1$ if (isStatic() && isNestedType()) s += "static "; //$NON-NLS-1$ if (isFinal()) s += "final "; //$NON-NLS-1$ s += isInterface() ? "interface " : "class "; //$NON-NLS-1$ //$NON-NLS-2$ s += (compoundName !...
if (isPrivate()) s += "private "; //$NON-NLS-1$ if (isAbstract() && isClass()) s += "abstract "; //$NON-NLS-1$ if (isStatic() && isNestedType()) s += "static "; //$NON-NLS-1$ if (isFinal()) s += "final "; //$NON-NLS-1$ s += isInterface() ? "interface " : "class "; //$NON-NLS-1$ //$NON-NLS-2$ s += (compoundName !...
public void actionPerformed(ActionEvent evt) { AddressbookFrameController addressbookFrameController = (AddressbookFrameController) frameController; Object[] uids = addressbookFrameController.getTable().getView().getSelectedUids(); AddressbookFolder folder = (AddressbookFolder) addressbookFrameControll...
public void actionPerformed(ActionEvent evt) { AddressbookFrameController addressbookFrameController = (AddressbookFrameController) frameMediator; Object[] uids = addressbookFrameController.getTable().getView().getSelectedUids(); AddressbookFolder folder = (AddressbookFolder) addressbookFrameController...
public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean assertMode, boolean recordLineSeparator){ PublicScanner scanner = new PublicScanner(tokenizeComments, tokenizeWhiteSpace, false/*nls*/, assertMode /*assert*/, null/*taskTags*/, null/*taskPriorities*/); scanner.recor...
public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean assertMode, boolean recordLineSeparator){ PublicScanner scanner = new PublicScanner(tokenizeComments, tokenizeWhiteSpace, false/*nls*/, CompilerOptions.JDK1_3/*sourceLevel*/, null/*taskTags*/, null/*taskPriorities*/);...
private Hashtable data; TypeMap() { data = new Hashtable(); }
private Hashtable data; TypeMap() { data = new Hashtable(3); }
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 SubjectView( ComposerModel model ) { super(MailResourceLoader.getString("action","mainframe","composer_no_subject")); //$NON-NLS-1$ this.model = model; }
public SubjectView( ComposerModel model ) { super(MailResourceLoader.getString("dialog","composer","composer_no_subject")); //$NON-NLS-1$ this.model = model; }
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { this.preAssertInitStateIndex = currentScope.methodScope().recordInitializationStates(flowInfo); Constant cst = this.assertExpression.optimizedBooleanConstant(); if ((this.assertExpression.implicitConversion & TypeIds....
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { this.preAssertInitStateIndex = currentScope.methodScope().recordInitializationStates(flowInfo); Constant cst = this.assertExpression.optimizedBooleanConstant(); if ((this.assertExpression.implicitConversion & TypeIds....
private Object[] computeFolderNonJavaResources(IJavaProject project, IContainer folder) throws JavaModelException { Object[] nonJavaResources = new IResource[5]; int nonJavaResourcesCounter = 0; try { IResource[] members = folder.members(); for (int i = 0, max = members.length; i < max; i++) { IResource membe...
private Object[] computeFolderNonJavaResources(IJavaProject project, IContainer folder) throws JavaModelException { Object[] nonJavaResources = new IResource[5]; int nonJavaResourcesCounter = 0; try { IResource[] members = folder.members(); for (int i = 0, max = members.length; i < max; i++) { IResource membe...
public Object lookupData() { return pluginHandler; } }); WizardModel model = new DefaultWizardModel(new Step[]{ new PluginStep(data), new LocationStep(data) ...
public Object lookupData() { return pluginHandler; } }); WizardModel model = new DefaultWizardModel(new Step[]{ new PluginStep(data), new LocationStep(data) ...
public void updateGUI() throws Exception { //controller.showComposerWindow(); }
public void updateGUI() throws Exception { controller.updateComponents(true); }
public ParameterizedFieldBinding(ParameterizedTypeBinding parameterizedDeclaringClass, FieldBinding originalField) { super ( originalField.name, parameterizedDeclaringClass.substitute(originalField.type), originalField.modifiers, parameterizedDeclaringClass, ...
public ParameterizedFieldBinding(ParameterizedTypeBinding parameterizedDeclaringClass, FieldBinding originalField) { super ( originalField.name, originalField.isStatic() ? originalField.type : parameterizedDeclaringClass.substitute(originalField.type), originalField.modifie...
public void doConfigure(java.net.URL configURL, Hierarchy hierarchy) { Properties props = new Properties(); LogLog.debug("Reading configuration from URL " + configURL); try { props.load(configURL.openStream()); } catch (java.io.IOException e) { LogLog.error("Could not read configurat...
public void doConfigure(java.net.URL configURL, Hierarchy hierarchy) { Properties props = new Properties(); LogLog.debug("Reading configuration from URL " + configURL); try { props.load(configURL.openStream()); } catch (java.io.IOException e) { LogLog.error("Could not read configurat...
private static TypeReference createTypeReference(char[] type, IType contextType) { try { String[][] resolvedName = contextType.resolveType(new String(type)); if(resolvedName != null && resolvedName.length == 1) { type= CharOperation.concat(resolvedName[0][0].toCharArray(), resolvedName[0][1].toCharArray(),...
private static TypeReference createTypeReference(char[] type, IType contextType) { try { String[][] resolvedName = contextType.resolveType(new String(type)); if(resolvedName != null && resolvedName.length == 1) { type= CharOperation.concat(resolvedName[0][0].toCharArray(), resolvedName[0][1].toCharArray(),...
private String getTimeString() { Date date = FinishedJobs.getInstance().getFinishDate(info); if (date != null) return DateFormat.getTimeInstance(DateFormat.SHORT).format(date); return null; } /** * Refresh the contents of the receiver. * */ void refresh() { if (isDisposed()) return; progre...
private String getTimeString() { Date date = FinishedJobs.getInstance().getFinishDate(info); if (date != null) return DateFormat.getTimeInstance(DateFormat.SHORT).format(date); return null; } /** * Refresh the contents of the receiver. * */ void refresh() { if (isDisposed()) return; progre...