buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void mapViewsToCategories() { if (dirtyViewCategoryMappings) { dirtyViewCategoryMappings = false; // clear all category mappings for (Iterator i = categories.iterator(); i.hasNext(); ) { Category category = (Category) i.next(); category.clear(); // this is bad ...
public void mapViewsToCategories() { if (dirtyViewCategoryMappings) { dirtyViewCategoryMappings = false; // clear all category mappings for (Iterator i = categories.iterator(); i.hasNext(); ) { Category category = (Category) i.next(); category.clear(); // this is bad ...
public IFolder getFolder(String name) { AddressbookTreeNode root = (AddressbookTreeNode) getRoot(); for (Enumeration e = root.breadthFirstEnumeration(); e .hasMoreElements();) { AddressbookTreeNode node = (AddressbookTreeNode) e.nextElement(); if (node.getName().equals(name)) return node; } r...
public IFolder getFolderByName(String name) { AddressbookTreeNode root = (AddressbookTreeNode) getRoot(); for (Enumeration e = root.breadthFirstEnumeration(); e .hasMoreElements();) { AddressbookTreeNode node = (AddressbookTreeNode) e.nextElement(); if (node.getName().equals(name)) return node; ...
protected void updateTimeStamp(CompilationUnit original) throws JavaModelException { long timeStamp = ((IFile) original.getUnderlyingResource()).getModificationStamp(); if (timeStamp == IResource.NULL_STAMP) { throw new JavaModelException( new JavaModelStatus(IJavaModelStatusConstants.INVALID_RESOURCE)); } (...
protected void updateTimeStamp(CompilationUnit original) throws JavaModelException { long timeStamp = ((IFile) original.getResource()).getModificationStamp(); if (timeStamp == IResource.NULL_STAMP) { throw new JavaModelException( new JavaModelStatus(IJavaModelStatusConstants.INVALID_RESOURCE)); } ((Compilati...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE; try { IIndex index = manager.getIndex(this.indexedContainer, true /*reuse index file*/, true /*create if none*/); if (index == null) return COMPLETE; /* ensur...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE; try { IIndex index = manager.getIndex(this.indexedContainer, true /*reuse index file*/, true /*create if none*/); if (index == null) return COMPLETE; /* ensur...
private int initializeBuilder(int kind, boolean forBuild) throws CoreException { // some calls just need the nameEnvironment initialized so skip the rest this.javaProject = (JavaProject) JavaCore.create(currentProject); this.workspaceRoot = currentProject.getWorkspace().getRoot(); if (forBuild) { // cache the kn...
private int initializeBuilder(int kind, boolean forBuild) throws CoreException { // some calls just need the nameEnvironment initialized so skip the rest this.javaProject = (JavaProject) JavaCore.create(currentProject); this.workspaceRoot = currentProject.getWorkspace().getRoot(); if (forBuild) { // cache the kn...
private void copyQueryResults(HashtableOfObject categoryToWords, int newPosition) { char[][] categoryNames = categoryToWords.keyTable; Object[] wordSets = categoryToWords.valueTable; for (int i = 0, l = categoryNames.length; i < l; i++) { char[] categoryName = categoryNames[i]; if (categoryName != null) { Sim...
private void copyQueryResults(HashtableOfObject categoryToWords, int newPosition) { char[][] categoryNames = categoryToWords.keyTable; Object[] wordSets = categoryToWords.valueTable; for (int i = 0, l = categoryNames.length; i < l; i++) { char[] categoryName = categoryNames[i]; if (categoryName != null) { Sim...
public static List getAllTemplates(Module me, IssueType issueType, ScarabUser user, String sortColumn, String sortPolarity) throws Exception { List templates = null; Object obj = ScarabCache.get("IssueTemplateInfoPeer",GET_...
public static List getAllTemplates(Module me, IssueType issueType, ScarabUser user, String sortColumn, String sortPolarity) throws Exception { List templates = null; Object obj = ScarabCache.get("IssueTemplateInfoPeer",GET_...
public TypeBinding resolveType(BlockScope scope) { this.constant = NotAConstant; TypeBinding typeBinding = this.type.resolveType(scope); if (typeBinding == null) return null; this.resolvedType = typeBinding; // ensure type refers to an annotation type if (!typeBinding.isAnnotationType()) { scop...
public TypeBinding resolveType(BlockScope scope) { this.constant = NotAConstant; TypeBinding typeBinding = this.type.resolveType(scope); if (typeBinding == null) return null; this.resolvedType = typeBinding; // ensure type refers to an annotation type if (!typeBinding.isAnnotationType()) { scop...
protected void printOptions(PrintWriter out, Category cat) { Enumeration appenders = cat.getAllAppenders(); Level prio = cat.getLevel(); String appenderString = (prio == null ? "" : prio.toString()); while (appenders.hasMoreElements()) { Appender app = (Appender) appenders.nextElement(); ...
protected void printOptions(PrintWriter out, Category cat) { Enumeration appenders = cat.getAllAppenders(); Level prio = cat.getLevel(); String appenderString = (prio == null ? "" : prio.toString()); while (appenders.hasMoreElements()) { Appender app = (Appender) appenders.nextElement(); ...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ TypeParameter(AST ast) { super(ast); unsupportedIn2(); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { re...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ TypeParameter(AST ast) { super(ast); unsupportedIn2(); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { re...
public String toString(int tab) { StringBuffer result = new StringBuffer(tabString(tab)); result.append("Recovered initializer:\n"); //$NON-NLS-1$ result.append(this.fieldDeclaration.toString(tab + 1)); if (this.initializerBody != null) { result.append("\n"); //$NON-NLS-1$ result.append(this.initializerBody.toS...
public String toString(int tab) { StringBuffer result = new StringBuffer(tabString(tab)); result.append("Recovered initializer:\n"); //$NON-NLS-1$ result.append(this.fieldDeclaration.print(tab + 1, result)); if (this.initializerBody != null) { result.append("\n"); //$NON-NLS-1$ result.append(this.initializerBod...
protected String getInitialScopeId() { return "org.eclipse.ui.globalScope"; }
protected String getInitialScopeId() { return IWorkbenchConstants.DEFAULT_ACCELERATOR_SCOPE_ID; }
public void addColumbaHeaderFields(ColumbaHeader h) { long OneDay = 24 * 60 * 60 * 1000; TimeZone localTimeZone = TimeZone.getDefault(); h.set("columba.flags.recent", new Boolean(false)); //m.setHost( item.getHost() ); h.set("columba.host", new String("")); Date date = DateParser.parseString((String) h.g...
public void addColumbaHeaderFields(ColumbaHeader h) { long OneDay = 24 * 60 * 60 * 1000; TimeZone localTimeZone = TimeZone.getDefault(); h.set("columba.flags.recent", new Boolean(false)); //m.setHost( item.getHost() ); h.set("columba.host", new String("")); Date date = DateParser.parseString((String) h.g...
public SearchFrame(MailFrameController frameController, Folder folder) { super(); this.frameController = frameController; setTitle( MailResourceLoader.getString( "dialog", "filter", "searchdialog_title")); //this.folder = folder; //this.vFolderNode = vFolderNode; this.destFolder = (Virtual...
public SearchFrame(MailFrameController frameController, Folder folder) { super(); this.frameController = frameController; setTitle( MailResourceLoader.getString( "dialog", "filter", "searchdialog_title")); //this.folder = folder; //this.vFolderNode = vFolderNode; this.destFolder = (Virtual...
public java.security.cert.Certificate[] getPeerCertificateChain() throws IOException; /** * Get the keysize. * * What we're supposed to put here is ill-defined by the * Servlet spec (S 4.7 again). There are at least 4 potential * values that might go here: * * (a) The size o...
public Object[] getPeerCertificateChain() throws IOException; /** * Get the keysize. * * What we're supposed to put here is ill-defined by the * Servlet spec (S 4.7 again). There are at least 4 potential * values that might go here: * * (a) The size of the encryption key ...
public String individualToString(){ return "Looping flow context"; //$NON-NLS-1$ }
public String individualToString(){ return "Looping flow context"/*nonNLS*/; }
public static IStatus validatePackageName(String name) { if (name == null) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.package.nullName"), null); //$NON-NLS-1$ } int length; if ((length = name.length()) == 0) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1,...
public static IStatus validatePackageName(String name) { if (name == null) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.package.nullName"), null); //$NON-NLS-1$ } int length; if ((length = name.length()) == 0) { return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1,...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE; try { if (this.resource != null) { if (!this.resource.isLocal(IResource.DEPTH_ZERO)) { return FAILED; } } IPath indexedPath = this.path; // if index a...
public boolean execute(IProgressMonitor progressMonitor) { if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE; try { if (this.resource != null) { if (!this.resource.isLocal(IResource.DEPTH_ZERO)) { return FAILED; } } IPath indexedPath = this.path; // if index a...
public void acceptLocalMethod(SourceTypeBinding typeBinding, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, String[] parameterSignatures, boolean isConstructor, CompilationUnitDeclaration parsedUnit, boolean isDeclaration, int start, int end) { IType type = (IType)this.handleFactory.crea...
public void acceptLocalMethod(SourceTypeBinding typeBinding, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, String[] parameterSignatures, boolean isConstructor, CompilationUnitDeclaration parsedUnit, boolean isDeclaration, int start, int end) { IType type = (IType)this.handleFactory.crea...
public boolean visit(SwitchStatement switchStatement, BlockScope scope) { this.scribe.printNextToken(TerminalTokens.TokenNameswitch); this.scribe.printNextToken(TerminalTokens.TokenNameLPAREN, this.preferences.insert_space_before_switch_condition); if (this.preferences.insert_space_in_switch_condition) { t...
public boolean visit(SwitchStatement switchStatement, BlockScope scope) { this.scribe.printNextToken(TerminalTokens.TokenNameswitch); this.scribe.printNextToken(TerminalTokens.TokenNameLPAREN, this.preferences.insert_space_before_switch_condition); if (this.preferences.insert_space_in_switch_condition) { t...
public void testMarkAsExpungedMessage() throws Exception { // create Command reference FolderCommandReference[] ref = new FolderCommandReference[2]; ref[0] = new FolderCommandReference(getSourceFolder(), new Object[] { uid}); ref[0].setMarkVariant(MarkMessageCommand....
public void testMarkAsExpungedMessage() throws Exception { // create Command reference FolderCommandReference[] ref = new FolderCommandReference[2]; ref[0] = new FolderCommandReference(getSourceFolder(), new Object[] { uid}); ref[0].setMarkVariant(MarkMessageCommand....
public int requestMap(Request req) { // If we have an explicit mapper - return Container ct=req.getContainer(); // log( "Ct: " + ct.getHandler() + " " + // ct.getPath() + " " + ct.getMapType()); if( req.getHandler()!=null && ct!=null && ct.getMapType() != Container.DEFAULT_MAP ) ret...
public int requestMap(Request req) { // If we have an explicit mapper - return Container ct=req.getContainer(); // log( "Ct: " + ct.getHandler() + " " + // ct.getPath() + " " + ct.getMapType()); if( req.getHandler()!=null && ct!=null && ct.getMapType() != Container.DEFAULT_MAP ) ret...
public FolderComboBox() { super(); IFolderFacade folderFacade = null; try { folderFacade = ServiceConnector.getFolderFacade(); Iterator<IFolder> it = folderFacade.getFolderIterator(); while (it.hasNext()) { addItem(it.next()); } } catch (ServiceNotFoundException e) { e.printStackTrace(); ...
public FolderComboBox() { super(); IFolderFacade folderFacade = null; try { folderFacade = ServiceConnector.getFolderFacade(); Iterator<IFolder> it = folderFacade.getFolderIterator().listIterator(); while (it.hasNext()) { addItem(it.next()); } } catch (ServiceNotFoundException e) { e.prin...
public Object lookupData() { return pluginHandler; } }); WizardModel model = new DefaultWizardModel( new Step[] { new PluginStep(data), new LocationStep(data)}); model.addWizardModelListener(new AddressbookImporter(data)); Wizard wizard = new Wizard( model, AddressbookResourceLoader....
public Object lookupData() { return pluginHandler; } }); WizardModel model = new DefaultWizardModel( new Step[] { new PluginStep(data), new LocationStep(data)}); model.addWizardModelListener(new AddressbookImporter(data)); Wizard wizard = new Wizard( model, AddressbookResourceLoader....
protected TableViewer createTableViewer(Composite parent, int style) { Table table = new Table(parent, SWT.SINGLE | (style & ~SWT.MULTI)); table.setLayoutData(new GridData(GridData.FILL_BOTH)); TableViewer tableViewer = new TableViewer(table);
protected TableViewer createTableViewer(Composite parent, int style) { Table table = new Table(parent, SWT.SINGLE | (style & ~SWT.MULTI)); table.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING)); TableViewer tableViewer = new TableViewer(table);
public SortedSet getDefinedContextIds() { return Collections.unmodifiableSortedSet(activeContextIds); }
public SortedSet getDefinedContextIds() { return Collections.unmodifiableSortedSet(definedContextIds); }
public void synchronizeFlags() throws Exception, IOException, CommandCancelledException, IMAPException { headerList = super.getHeaderList(); printStatusMessage(MailResourceLoader.getString("statusbar", "message", "sync_flags")); // Build the remote lists of messages that are UNSEEN, FLAGGED, DELETED, ...
public void synchronizeFlags() throws Exception, IOException, CommandCancelledException, IMAPException { headerList = super.getHeaderList(); printStatusMessage(MailResourceLoader.getString("statusbar", "message", "sync_flags")); // Build the remote lists of messages that are UNSEEN, FLAGGED, DELETED, ...
public void close() throws Exception { try { // close all file streams oos.close(); ostream.close(); } catch (IOException e) { if (Logging.DEBUG) e.printStackTrace(); // wasn't able to successfully finish saving the ".backup" file // -> simply leave the original message untouched // --> ...
public void close() throws IOException { try { // close all file streams oos.close(); ostream.close(); } catch (IOException e) { if (Logging.DEBUG) e.printStackTrace(); // wasn't able to successfully finish saving the ".backup" file // -> simply leave the original message untouched // --...
public void execute(WorkerStatusController worker) throws Exception { // get source folder parentFolder = (LocalFolder) ((FolderCommandReference) getReferences()[0]).getFolder(); // resync search engine // -> this is only needed for Lucene right now DefaultSearchEngi...
public void execute(WorkerStatusController worker) throws Exception { // get source folder parentFolder = (LocalFolder) ((FolderCommandReference) getReferences()[0]).getFolder(); // resync search engine // -> this is only needed for Lucene right now DefaultSearchEngi...
protected int determineKind(IResource underlyingResource) throws JavaModelException { IClasspathEntry[] entries= getJavaProject().getResolvedClasspath(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= getJavaProject().getExpandedClasspath(true); for (int i= 0; i < entries.length; i++) { IClasspathEntry entry= entries[i]; if (entry.getPath().equals(underlyingResource.getFullPath())) { return entry...
private int rewriteModifiers2(ASTNode node, ChildListPropertyDescriptor property, int pos) { RewriteEvent event= getEvent(node, property); if (event == null || event.getChangeKind() == RewriteEvent.UNCHANGED) { return doVisit(node, property, pos); } RewriteEvent[] children= event.getChildren(); boolean is...
private int rewriteModifiers2(ASTNode node, ChildListPropertyDescriptor property, int pos) { RewriteEvent event= getEvent(node, property); if (event == null || event.getChangeKind() == RewriteEvent.UNCHANGED) { return doVisit(node, property, pos); } RewriteEvent[] children= event.getChildren(); boolean is...
private AbstractMethodDeclaration convert(SourceMethodElementInfo methodInfo, CompilationResult compilationResult) { AbstractMethodDeclaration method; /* only source positions available */ int start = methodInfo.getNameSourceStart(); int end = methodInfo.getNameSourceEnd(); /* convert type parameters */ ...
private AbstractMethodDeclaration convert(SourceMethodElementInfo methodInfo, CompilationResult compilationResult) { AbstractMethodDeclaration method; /* only source positions available */ int start = methodInfo.getNameSourceStart(); int end = methodInfo.getNameSourceEnd(); /* convert type parameters */ ...
public void actionPerformed(ActionEvent e) { if( chooser == null ){ chooser = new JFileChooser(); } chooser.setAcceptAllFileFilterUsed(true); chooser.setDialogTitle("Save Events to XML file..."); chooser.showSaveDialog(parent); File selectedFile = chooser.getSelectedFile(); XM...
public void actionPerformed(ActionEvent e) { if( chooser == null ){ chooser = new JFileChooser(); } chooser.setAcceptAllFileFilterUsed(true); chooser.setDialogTitle("Save Events to XML file..."); chooser.showSaveDialog(parent); File selectedFile = chooser.getSelectedFile(); XM...
public void setEnabledContextIds(Set enabledContextIds) { enabledContextIds = Util.safeCopy(enabledContextIds, String.class); Set requiredContextIds = new HashSet(enabledContextIds); getRequiredContextIds(enabledContextIds, requiredContextIds); enabledContextIds = requiredContextIds; boolean contextManagerCh...
public void setEnabledContextIds(Set enabledContextIds) { enabledContextIds = Util.safeCopy(enabledContextIds, String.class); Set requiredContextIds = new HashSet(enabledContextIds); getRequiredContextIds(enabledContextIds, requiredContextIds); enabledContextIds = requiredContextIds; boolean contextManagerCh...
public FolderTreeNode addFolder(String name, String type) throws Exception { FolderPluginHandler handler = (FolderPluginHandler) MainInterface.pluginManager.getHandler( "folder"); Class childClass = handler.getPluginClass(type); Method m_getDefaultProperties = childClass.getMethod("getDefault...
public FolderTreeNode addFolder(String name, String type) throws Exception { FolderPluginHandler handler = (FolderPluginHandler) MainInterface.pluginManager.getHandler( "org.columba.mail.folder"); Class childClass = handler.getPluginClass(type); Method m_getDefaultProperties = childClass.getM...
public void testAddAttributesTest() throws Exception { Object[] uids1 = getSourceFolder().getUids(); assertEquals("starting with empty folder", 0, uids1.length); MailboxInfo info1 = getSourceFolder().getMessageFolderInfo(); assertEquals("starting with empty folder", 0, info1.getExi...
public void testAddAttributesTest() throws Exception { Object[] uids1 = getSourceFolder().getUids(); assertEquals("starting with empty folder", 0, uids1.length); MailboxInfo info1 = getSourceFolder().getMessageFolderInfo(); assertEquals("starting with empty folder", 0, info1.getExi...
private boolean normalize( ByteChunk bc ) { int start=bc.getStart(); int end=bc.getEnd(); byte buff[]=bc.getBytes(); int i=0; int j=0; boolean modified=false; String orig=null; if( debug>0 ) orig=new String( buff, start, end-start); // remove // for( i=start, j=start; i<end-1; i++ ) { if( buff[i]=...
private boolean normalize( ByteChunk bc ) { int start=bc.getStart(); int end=bc.getEnd(); byte buff[]=bc.getBytes(); int i=0; int j=0; boolean modified=false; String orig=null; if( debug>0 ) orig=new String( buff, start, end-start); // remove // for( i=start, j=start; i<end-1; i++ ) { if( buff[i]=...
public void load() throws IOException { if (contextDefinitions == null) contextDefinitions = new ArrayList(); else contextDefinitions.clear(); if (pluginRegistryReader == null) pluginRegistryReader = new PluginRegistryReader(); pluginRegistryReader.readRegistry(pluginRegistry, PlatformUI.PLUGIN_...
public void load() throws IOException { if (contextDefinitions == null) contextDefinitions = new ArrayList(); else contextDefinitions.clear(); if (pluginRegistryReader == null) pluginRegistryReader = new PluginRegistryReader(); pluginRegistryReader.readRegistry(pluginRegistry, PlatformUI.PLUGIN_...
public IJavaModelStatus verify() { IJavaModelStatus status = super.verify(); if (!status.isOK()) { return status; } if (this.source == null) { return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CONTENTS); } if (!force) { //check for name collisions try { ICompilationUnit cu = getCompilationUn...
public IJavaModelStatus verify() { IJavaModelStatus status = super.verify(); if (!status.isOK()) { return status; } if (this.source == null) { return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CONTENTS); } if (!this.force) { //check for name collisions try { ICompilationUnit cu = getCompilat...
private int initializeBuilder(int kind) throws CoreException { this.javaProject = (JavaProject) JavaCore.create(currentProject); this.workspaceRoot = currentProject.getWorkspace().getRoot(); // cache the known participants for this project this.participants = JavaModelManager.getJavaModelManager().compilationParti...
private int initializeBuilder(int kind) throws CoreException { this.javaProject = (JavaProject) JavaCore.create(currentProject); this.workspaceRoot = currentProject.getWorkspace().getRoot(); // cache the known participants for this project this.participants = JavaModelManager.getJavaModelManager().compilationParti...
public static Object getTarget(IContainer container, IPath path, boolean checkResourceExistence) { if (path == null) return null; // lookup - inside the container IResource resource = container.findMember(path); if (resource != null){ if (!checkResourceExistence ||resource.exists()) return resource; return n...
public static Object getTarget(IContainer container, IPath path, boolean checkResourceExistence) { if (path == null) return null; // lookup - inside the container IResource resource = container.findMember(path); if (resource != null){ if (!checkResourceExistence ||resource.exists()) return resource; return n...
public static Priority[] getAllPossiblePriorities() { return new Priority[] {Level.FATAL, Level.ERROR, Level.WARN, Level.INFO, Level.DEBUG}; } /** Convert the string passed as argument to a priority. If the conversion fails, then this method returns {@link #DEBUG}. @deprecated ...
public static Priority[] getAllPossiblePriorities() { return new Priority[] {Level.FATAL, Level.ERROR, Level.WARN, Level.INFO, Level.DEBUG}; } /** Convert the string passed as argument to a priority. If the conversion fails, then this method returns {@link #DEBUG}. @deprecated ...
private static final SBar readBarFromRegistry( final IConfigurationElement parentElement, final List warningsToLog, final String id) { // Check to see if we have a bar element. final IConfigurationElement[] barElements = parentElement .getChildren(ELEMENT_BAR); if (barElements.length > 0) { // Check...
private static final SBar readBarFromRegistry( final IConfigurationElement parentElement, final List warningsToLog, final String id) { // Check to see if we have a bar element. final IConfigurationElement[] barElements = parentElement .getChildren(ELEMENT_BAR); if (barElements.length > 0) { // Check...
public int getNodeType() { return FOR_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { ForStatement result = new ForStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); result.i...
public int getNodeType() { return FOR_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { ForStatement result = new ForStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); result....
public java.security.cert.Certificate[] getPeerCertificateChain() throws IOException { Vector v=ssl.getCertificateChain(); if(v==null) return null; java.security.cert.X509Certificate[] chain= new java.security.cert.X509Certificate[v.size()]; try { for(int i=1;i<=v.size();i++){ ...
public Object[] getPeerCertificateChain() throws IOException { Vector v=ssl.getCertificateChain(); if(v==null) return null; java.security.cert.X509Certificate[] chain= new java.security.cert.X509Certificate[v.size()]; try { for(int i=1;i<=v.size();i++){ // PureTLS provides cert...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameController()).getTableSelection(); MainInterface.processor.addOp(new ForwardInlineCommand(r)); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()).getTableSelection(); MainInterface.processor.addOp(new ForwardInlineCommand(r)); }
public void run() { //Collect dirtyEditors ArrayList dirtyEditors = new ArrayList(); ArrayList dirtyEditorsInput = new ArrayList(); IWorkbenchWindow windows[] = getWorkbenchWindows(); ...
public void run() { //Collect dirtyEditors ArrayList dirtyEditors = new ArrayList(); ArrayList dirtyEditorsInput = new ArrayList(); IWorkbenchWindow windows[] = getWorkbenchWindows(); ...
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 void printTrailingComment() { try { // if we have a space between two tokens we ensure it will be dumped in the formatted string int currentTokenStartPosition = this.scanner.currentPosition; boolean hasComment = false; boolean hasLineComment = false; while ((this.currentToken = this.scanner.get...
public void printTrailingComment() { try { // if we have a space between two tokens we ensure it will be dumped in the formatted string int currentTokenStartPosition = this.scanner.currentPosition; boolean hasComment = false; boolean hasLineComment = false; while ((this.currentToken = this.scanner.get...
private IPackageFragmentRoot getJarPkgFragmentRoot(String jarPathString) { IPath jarPath= new Path(jarPathString); IResource jarFile= this.workspace.getRoot().findMember(jarPath); if (jarFile != null) { // internal jar return this.javaModel.getJavaProject(jarFile).getPackageFragmentRoot(jarFile); } else...
private IPackageFragmentRoot getJarPkgFragmentRoot(String jarPathString) { IPath jarPath= new Path(jarPathString); IResource jarFile= this.workspace.getRoot().findMember(jarPath); if (jarFile != null) { // internal jar return this.javaModel.getJavaProject(jarFile).getPackageFragmentRoot(jarFile); } else...
public Collection getExtendingClasses(MClassifier clazz) { if (clazz == null) return new ArrayList(); Iterator it = clazz.getSpecializations().iterator(); List list = new ArrayList(); while (it.hasNext()) { MGeneralization gen = (MGeneralization)it.next(); MGeneralizableElement client = gen.getChild(); ...
public Collection getExtendingClasses(MClassifier clazz) { if (clazz == null) return new ArrayList(); Iterator it = clazz.getSpecializations().iterator(); List list = new ArrayList(); while (it.hasNext()) { MGeneralization gen = (MGeneralization)it.next(); MGeneralizableElement client = gen.getChild(); ...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { receiver.checkNPE(currentScope, flowContext, flowInfo, true); flowInfo = receiver.analyseCode(currentScope, flowContext, flowInfo); return position.analyseCode(currentScope, flowContext, flowInfo); }
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { receiver.checkNPE(currentScope, flowContext, flowInfo); flowInfo = receiver.analyseCode(currentScope, flowContext, flowInfo); return position.analyseCode(currentScope, flowContext, flowInfo); }
protected void notifyModelChanged(MElementEvent mee) { // TODO: Change the project dirty flag outside this package // using an event listener. // TODO: post an event of some type. // // Should this be a property change event? // if (mee.getAddedValue() != null || mee.getRemovedValue() != null || (mee...
protected void notifyModelChanged(MElementEvent mee) { // TODO: Change the project dirty flag outside this package // using an event listener. // TODO: post an event of some type. // // Should this be a property change event? // if (mee.getAddedValue() != null || mee.getRemovedValue() != null || (mee...
public void actionPerformed(ActionEvent evt) { AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator; FocusOwner focusOwner = FocusManager.getInstance().getCurrentOwner(); TableController table = ((AddressbookFrameMediator) frameMediator) .getTable(); boolean tableHasFocus = false...
public void actionPerformed(ActionEvent evt) { AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator; FocusOwner focusOwner = FocusManager.getInstance().getCurrentOwner(); TableController table = ((AddressbookFrameMediator) frameMediator) .getTable(); boolean tableHasFocus = false...
public void locateMatches(String[] filePaths, IWorkspace workspace, org.eclipse.jdt.core.ICompilationUnit[] copies) throws JavaModelException { if (SearchEngine.VERBOSE) { System.out.println("Locating matches in files ["); //$NON-NLS-1$ for (int i = 0, length = filePaths.length; i < length; i++) System.out.prin...
public void locateMatches(String[] filePaths, IWorkspace workspace, org.eclipse.jdt.core.ICompilationUnit[] copies) throws JavaModelException { if (SearchEngine.VERBOSE) { System.out.println("Locating matches in files ["); //$NON-NLS-1$ for (int i = 0, length = filePaths.length; i < length; i++) System.out.prin...
public int getNodeType() { return IF_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { IfStatement result = new IfStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLeadingComment(getLeadingComment());...
public int getNodeType() { return IF_STATEMENT; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { IfStatement result = new IfStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); result.setE...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (constant != Constant.NotAConstant) { // inlined value if (valueRequired) codeStream.generateConstant(constant, implicitConversion); codeStream.recordPositionsFrom(pc, th...
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (constant != Constant.NotAConstant) { // inlined value if (valueRequired) codeStream.generateConstant(constant, implicitConversion); codeStream.recordPositionsFrom(pc, th...
private CacheResponse() {} CacheResponse(byte _type, Object _data) { type = _type; data = _data; } CacheResponse(byte _type) { this(_type, null); } /** * Sets a CacheResponse to have a different value without destroying the * backtrace */ void set(byte _type, Object _data) { type = _type; data = _data; } v...
private CacheResponse() {} CacheResponse(byte _type, Object _data) { type = _type; data = _data; } CacheResponse(byte _type) { this(_type, null); } /** * Sets a CacheResponse to have a different value without destroying the * backtrace */ void set(byte _type, Object _data) { type = _type; data = _data; } v...
private static String[] allModelElements = { "CallEvent", "ChangeEvent", "CompositeState", "Event", "FinalState", "Guard", "Pseudostate", "SignalEvent", "SimpleState", "State", "StateMachine", "StateVertex", "Stu...
public void testDeleteComplete() { CheckUMLModelHelper.deleteComplete(this, StateMachinesFactory.getFactory(), allModelElements); } }
public FlowInfo initsOnBreak() { return FlowInfo.DeadEnd; }
public FlowInfo initsOnBreak() { return FlowInfo.DEAD_END; }
public String toString() { return "ClasspathDirectory "/*nonNLS*/ + path; }
public String toString() { return "ClasspathDirectory " + path; //$NON-NLS-1$ }
public void handleTagBegin(Mark start, Mark stop, Hashtable attrs, String prefix, String shortTagName, TagLibraryInfo tli, TagInfo ti) throws JasperException { TagBeginGenerator tbg = new TagBeginGenerator(start, prefix, shortTagName, attrs, tli, ti, libraries, getTagHandlerSta...
public void handleTagBegin(Mark start, Mark stop, Hashtable attrs, String prefix, String shortTagName, TagLibraryInfo tli, TagInfo ti) throws JasperException { TagBeginGenerator tbg = new TagBeginGenerator(start, prefix, shortTagName, attrs, tli, ti, libraries, getTagHandlerSta...
public void resolve(BlockScope scope) { // the return type should be void for a constructor. // the test is made into getConstructor // mark the fact that we are in a constructor call..... // unmark at all returns MethodScope methodScope = scope.methodScope(); try { AbstractMethodDeclaration methodDecl...
public void resolve(BlockScope scope) { // the return type should be void for a constructor. // the test is made into getConstructor // mark the fact that we are in a constructor call..... // unmark at all returns MethodScope methodScope = scope.methodScope(); try { AbstractMethodDeclaration methodDecl...
public CodeSnippetClassFile( org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding aType, org.eclipse.jdt.internal.compiler.ClassFile enclosingClassFile, boolean creatingProblemType) { /** * INTERNAL USE-ONLY * This methods creates a new instance of the receiver. * * @param aType org.eclipse.jdt.intern...
public CodeSnippetClassFile( org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding aType, org.eclipse.jdt.internal.compiler.ClassFile enclosingClassFile, boolean creatingProblemType) { /** * INTERNAL USE-ONLY * This methods creates a new instance of the receiver. * * @param aType org.eclipse.jdt.intern...
private int parseTTL(MyStringTokenizer st) throws IOException { if (!st.hasMoreTokens()) throw new IOException ("Missing TTL"); return new Integer(st.nextToken()).intValue(); }
private int parseTTL(MyStringTokenizer st) throws IOException { if (!st.hasMoreTokens()) throw new IOException ("Missing TTL"); return Integer.parseInt(st.nextToken()); }
private void checkDebug() { Boolean debugValue = (Boolean) parser.getOptionValue(debug); if (debugValue != null) { MainInterface.DEBUG = debugValue.booleanValue(); } }
private void checkDebug() { Boolean debugValue = (Boolean) parser.getOptionValue(debug); if (debugValue != null) { Main.DEBUG = debugValue.booleanValue(); } }
public static final int GZIP_MAGIC_2 = 0x8b; Vector plugins; Hashtable pluginHash; Vector pluginSets; PluginList() throws Exception { plugins = new Vector(); pluginHash = new Hashtable(); pluginSets = new Vector(); String path = jEdit.getProperty("plugin-manager.url"); String id = jEdit.getProperty("...
public static final int GZIP_MAGIC_2 = 0x8b; Vector plugins; Hashtable pluginHash; Vector pluginSets; PluginList() throws Exception { plugins = new Vector(); pluginHash = new Hashtable(); pluginSets = new Vector(); String path = jEdit.getProperty("plugin-manager.export-url"); String id = jEdit.getPro...
private void processServlets(Context ctx, Enumeration servlets) { // XXX // oh my ... this has suddenly turned rather ugly // perhaps the reader should do this normalization work while (servlets.hasMoreElements()) { WebComponentDescriptor webComponentDescriptor = (WebC...
private void processServlets(Context ctx, Enumeration servlets) { // XXX // oh my ... this has suddenly turned rather ugly // perhaps the reader should do this normalization work while (servlets.hasMoreElements()) { WebComponentDescriptor webComponentDescriptor = (WebC...
public ExternalJavaProject(IClasspathEntry[] rawClasspath) { super(ResourcesPlugin.getWorkspace().getRoot().getProject(EXTERNAL_PROJECT_NAME), JavaModelManager.getJavaModelManager().getJavaModel()); try { getPerProjectInfo().setClasspath(rawClasspath, defaultOutputLocation(), JavaModelStatus.VERIFIED_OK/*no .cl...
public ExternalJavaProject(IClasspathEntry[] rawClasspath) { super(ResourcesPlugin.getWorkspace().getRoot().getProject(EXTERNAL_PROJECT_NAME), JavaModelManager.getJavaModelManager().getJavaModel()); try { getPerProjectInfo().setRawClasspath(rawClasspath, defaultOutputLocation(), JavaModelStatus.VERIFIED_OK/*no ...
public void init( TreeView tree, TableView table, FilterToolbar filterToolbar, MessageView message, AttachmentView attachment, StatusBar statusBar) { this.filterToolbar = filterToolbar; this.getContentPane().setLayout(new BorderLayout()); JPanel panel = (JPanel) this.getContentPane(); setTitle("...
public void init( TreeView tree, TableView table, FilterToolbar filterToolbar, MessageView message, AttachmentView attachment, StatusBar statusBar) { this.filterToolbar = filterToolbar; this.getContentPane().setLayout(new BorderLayout()); JPanel panel = (JPanel) this.getContentPane(); setTitle("...
protected boolean containsRecentChildren(MessageNode parent) { for (int i = 0; i < parent.getChildCount(); i++) { MessageNode child = (MessageNode) parent.getChildAt(i); if (((ColumbaHeader) child.getHeader()).getFlags().getRecent()) { // recent found ...
protected boolean containsRecentChildren(MessageNode parent) { for (int i = 0; i < parent.getChildCount(); i++) { MessageNode child = (MessageNode) parent.getChildAt(i); if (((ColumbaHeader) child.getHeader()).getFlags().getRecent()) { // recent found ...
public void process(CompilationUnitDeclaration unit, int i) throws CoreException { MatchingNodeSet matchingNodeSet = null; try { this.currentPotentialMatch = this.matchesToProcess[i]; if (this.currentPotentialMatch == null) return; matchingNodeSet = this.currentPotentialMatch.matchingNodeSet; if (u...
public void process(CompilationUnitDeclaration unit, int i) throws CoreException { MatchingNodeSet matchingNodeSet = null; try { this.currentPotentialMatch = this.matchesToProcess[i]; if (this.currentPotentialMatch == null) return; matchingNodeSet = this.currentPotentialMatch.matchingNodeSet; if (u...
public int addMatch(ASTNode node, int matchLevel) { switch (matchLevel) { case PatternLocator.INACCURATE_MATCH: addTrustedMatch(node, POTENTIAL_MATCH); break; case PatternLocator.POSSIBLE_MATCH: addPossibleMatch(node); break; case PatternLocator.ERASURE_MATCH: addTrustedMatch(node, ERASURE_MATCH);...
public int addMatch(ASTNode node, int matchLevel) { switch (matchLevel & PatternLocator.NODE_SET_MASK) { case PatternLocator.INACCURATE_MATCH: addTrustedMatch(node, POTENTIAL_MATCH); break; case PatternLocator.POSSIBLE_MATCH: addPossibleMatch(node); break; case PatternLocator.ERASURE_MATCH: addTru...
private void createNeededPackageFragments(IPackageFragmentRoot root, String newFragName, boolean moveFolder) throws JavaModelException { IContainer parentFolder = (IContainer) root.getResource(); JavaElementDelta projectDelta = null; String[] names = org.eclipse.jdt.internal.core.Util.getTrimmedSimpleNames(newFr...
private void createNeededPackageFragments(IPackageFragmentRoot root, String newFragName, boolean moveFolder) throws JavaModelException { IContainer parentFolder = (IContainer) root.getResource(); JavaElementDelta projectDelta = null; String[] names = org.eclipse.jdt.internal.core.Util.getTrimmedSimpleNames(newFr...
public Module getModule() throws TorqueException { Module module = null; ObjectKey id = getPrimaryKey(); if ( id != null ) { module = ModuleManager.getInstance(id); } return module; }
public Module getModule() throws TorqueException { Module module = null; Integer id = getModuleId(); if ( id != null ) { module = ModuleManager.getInstance(id); } return module; }
public boolean belongsTo(Object family) { return PLUGIN_ID.equals(family); } }; job.setPriority(Job.SHORT); job.schedule(); }
public boolean belongsTo(Object family) { return PLUGIN_ID.equals(family); } }; job.setPriority(Job.SHORT); job.schedule(2000); // wait for the startup activity to calm down }
private static final String LIKE_RULE = "like"; static { rules.add(AND_RULE); rules.add(OR_RULE); rules.add(NOT_RULE); rules.add(NOT_EQUALS_RULE); rules.add(EQUALS_RULE); rules.add(PARTIAL_TEXT_MATCH_RULE); rules.add(LIKE_RULE); } static boolean isRule(String symbol) { return r...
private static final String LIKE_RULE = "like"; static { rules.add(AND_RULE); rules.add(OR_RULE); rules.add(NOT_RULE); rules.add(NOT_EQUALS_RULE); rules.add(EQUALS_RULE); rules.add(PARTIAL_TEXT_MATCH_RULE); rules.add(LIKE_RULE); } static boolean isRule(String symbol) { return r...
public int getNodeType() { return QUALIFIED_TYPE; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { QualifiedType result = new QualifiedType(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setQualifier((Type) ((ASTNode) ge...
public int getNodeType() { return QUALIFIED_TYPE; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { QualifiedType result = new QualifiedType(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setQualifier((Type) ((ASTNode) g...
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = MailInterface.treeModel.getSelectFolderDialog(); if (dialog.success()) { Folder destFolder = dialog.getSelectedFolder(); FolderCommandReference[] result = new FolderCommandReference[2]; FolderCommandReference[] r1 = ((Abstr...
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = MailInterface.treeModel.getSelectFolderDialog(); if (dialog.success()) { Folder destFolder = dialog.getSelectedFolder(); FolderCommandReference[] result = new FolderCommandReference[2]; FolderCommandReference[] r1 = ((Abstr...
public void charSetup(String str) { char ch = str.charAt(0); if(ch == '\\') { // get next character ch = str.charAt(1); if(Character.isDigit(ch)) ch = (char)Integer.parseInt(str.substring(1), 8); else ch = g...
public void charSetup(String str) { char ch = str.charAt(0); if(ch == '\\') { // get next character ch = str.charAt(1); if(Character.isDigit(ch)) ch = (char)Integer.parseInt(str.substring(1), 8); else ch = g...
public static ImageIcon getImageIcon(String contentType, String contentSubtype) { StringBuffer buf = new StringBuffer(); buf.append("mime/gnome-"); buf.append(contentType); buf.append("-"); buf.append(contentSubtype); buf.append(".png"); if (LOG.isLoggable(Le...
public static ImageIcon getImageIcon(String contentType, String contentSubtype) { StringBuffer buf = new StringBuffer(); buf.append("mime/gnome-"); buf.append(contentType); buf.append("-"); buf.append(contentSubtype); buf.append(".png"); if (LOG.isLoggable(Le...
public Object getValueAt(int row, int col) { if (row < 0 || row >= _rowObjects.size()) return "bad row!"; if (col < 0 || col >= 4) return "bad col!"; Object rowObj = _rowObjects.elementAt(row); if (rowObj instanceof Diagram) { Diagram d = (Diagram) rowObj; switch (col) { case 0: if ...
public Object getValueAt(int row, int col) { if (row < 0 || row >= _rowObjects.size()) return "bad row!"; if (col < 0 || col >= 4) return "bad col!"; Object rowObj = _rowObjects.elementAt(row); if (rowObj instanceof Diagram) { Diagram d = (Diagram) rowObj; switch (col) { case 0: if ...
public Object eval(CallStack callstack, Interpreter interpreter) throws EvalError { Object value; if(jjtGetNumChildren() > 0) value = ((SimpleNode)jjtGetChild(0)).eval(callstack, interpreter); else value = Primitive.VOID; return new ReturnControl( kind, value ); }
public Object eval(CallStack callstack, Interpreter interpreter) throws EvalError { Object value; if(jjtGetNumChildren() > 0) value = ((SimpleNode)jjtGetChild(0)).eval(callstack, interpreter); else value = Primitive.VOID; return new ReturnControl( kind, value, this ); }
public void actionPerformed(ActionEvent evt) { ComposerController composerController = ((ComposerController) getFrameMediator()); composerController.getHeaderController().getView() .cleanupHeaderItemList(); SelectAddressDialog dialog = new SelectAddressDialog(comp...
public void actionPerformed(ActionEvent evt) { ComposerController composerController = ((ComposerController) getFrameMediator()); composerController.getHeaderController().getView() .cleanupHeaderItemList(); SelectAddressDialog dialog = new SelectAddressDialog(comp...
public void resolve() { int startingTypeIndex = 0; boolean isPackageInfo = isPackageInfo(); if (this.types != null && isPackageInfo) { // resolve synthetic type declaration final TypeDeclaration syntheticTypeDeclaration = types[0]; // set empty javadoc to avoid missing warning (see bug https://...
public void resolve() { int startingTypeIndex = 0; boolean isPackageInfo = isPackageInfo(); if (this.types != null && isPackageInfo) { // resolve synthetic type declaration final TypeDeclaration syntheticTypeDeclaration = types[0]; // set empty javadoc to avoid missing warning (see bug https://...
public class dnsCNAMERecord extends dnsNS_CNAME_PTR_Record { public class dnsCNAMERecord extends dnsNS_CNAME_MX_Record { public dnsCNAMERecord(dnsName rname, short rclass) { super(rname, dns.CNAME, rclass); } public dnsCNAMERecord(dnsName rname, short rclass, int rttl, dnsName name) { super(rname, dns.CNAME, rclas...
public class dnsCNAMERecord extends dnsNS_CNAME_PTR_Record { public class dnsCNAMERecord extends dnsNS_CNAME_PTR_Record { public dnsCNAMERecord(dnsName rname, short rclass) { super(rname, dns.CNAME, rclass); } public dnsCNAMERecord(dnsName rname, short rclass, int rttl, dnsName name) { super(rname, dns.CNAME, rcla...
public String toString() { StringBuffer sb = toStringNoData(); if (host != null) { sb.append(host); sb.append(" "); sb.append(admin); sb.append(" (\n\t\t\t\t\t"); sb.append(serial); sb.append("\t; serial\n\t\t\t\t\t"); sb.append(refresh); sb.append("\t; refresh\n\t\t\t\t\t"); sb.append(retry); sb....
public String toString() { StringBuffer sb = toStringNoData(); if (host != null) { sb.append(host); sb.append(" "); sb.append(admin); sb.append(" (\n\t\t\t\t\t"); sb.append(serial); sb.append("\t; serial\n\t\t\t\t\t"); sb.append(refresh); sb.append("\t; refresh\n\t\t\t\t\t"); sb.append(retry); sb....
private char[] decodeReturnType(char[] signature) throws ClassFormatException { if (signature == null) return null; int indexOfClosingParen = CharOperation.lastIndexOf(')', signature); if (indexOfClosingParen == -1) throw new ClassFormatException(ClassFormatException.ErrInvalidMethodSignature); int arrayDim = ...
private char[] decodeReturnType(char[] signature) throws ClassFormatException { if (signature == null) return null; int indexOfClosingParen = CharOperation.lastIndexOf(')', signature); if (indexOfClosingParen == -1) throw new ClassFormatException(ClassFormatException.ErrInvalidMethodSignature); int arrayDim = ...
String getContextId(); /******************************************************************************* * 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 License v1.0 * which accompani...
String getContextId(); /******************************************************************************* * 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 License v1.0 * which accompani...
private String getValue(String name, PGPItem item) { if (name.equals("user")) { return item.get("id"); } if (name.equals("recipients")) { return item.get("recipients"); } if (name.equals("sigfile")) { return item.get("sigfile"); } return null; }
private String getValue(String name, PGPItem item) { if (name.equals("user")) { return item.get("id"); } if (name.equals("recipients")) { return item.get("id"); } if (name.equals("sigfile")) { return item.get("sigfile"); } return null; }
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((this.bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; Label endifLabel = new Label(codeStream); // optimizing the then/else part code gen Constant cst; boolean hasThenPart = !(((cst = this.cond...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { if ((this.bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; Label endifLabel = new Label(codeStream); // optimizing the then/else part code gen Constant cst; boolean hasThenPart = !(((cst = this.cond...
public List getComments(boolean full) throws Exception { List result = null; Boolean fullBool = (full ? Boolean.TRUE : Boolean.FALSE); Object obj = getMethodResult().get(this, GET_COMMENTS, fullBool); if ( obj == null ) { Criteria crit = new Criteria...
public List getComments(boolean full) throws Exception { List result = null; Boolean fullBool = (full ? Boolean.TRUE : Boolean.FALSE); Object obj = getMethodResult().get(this, GET_COMMENTS, fullBool); if ( obj == null ) { Criteria crit = new Criteria...
extends org.tigris.scarab.om.BaseDependPeer package org.tigris.scarab.om; // JDK classes import java.util.*; // Village classes import com.workingdogs.village.*; // Turbine classes import org.apache.turbine.om.peer.*; import org.apache.turbine.util.*; import org.apache.turbine.util.db.*; import org.apache.turbine.u...
extends org.tigris.scarab.om.BaseDependPeer package org.tigris.scarab.om; // JDK classes import java.util.*; // Village classes import com.workingdogs.village.*; // Turbine classes import org.apache.turbine.om.peer.*; import org.apache.turbine.util.*; import org.apache.turbine.util.db.*; import org.apache.turbine.u...
private Object loadFromRegistry(Class key, IServiceLocator parentLocator, IServiceLocator locator) { Object service = null; IExtensionRegistry reg = Platform.getExtensionRegistry(); IExtensionPoint ep = reg.getExtensionPoint(EXT_ID_SERVICES); IConfigurationElement[] serviceFactories = ep .getConfigurati...
private Object loadFromRegistry(Class key, IServiceLocator parentLocator, IServiceLocator locator) { Object service = null; IExtensionRegistry reg = Platform.getExtensionRegistry(); IExtensionPoint ep = reg.getExtensionPoint(EXT_ID_SERVICES); IConfigurationElement[] serviceFactories = ep .getConfigurati...
public void generateCode() { if (ignoreFurtherInvestigation) { if (types != null) { for (int i = 0, count = types.length; i < count; i++) { types[i].ignoreFurtherInvestigation = true; // propagate the flag to request problem type creation types[i].generateCode(scope); } } return; }...
public void generateCode() { if (ignoreFurtherInvestigation) { if (types != null) { for (int i = 0, count = types.length; i < count; i++) { types[i].ignoreFurtherInvestigation = true; // propagate the flag to request problem type creation types[i].generateCode(scope); } } return; }...
protected CompilationUnitProblemFinder( INameEnvironment environment, IErrorHandlingPolicy policy, Map settings, ICompilerRequestor requestor, IProblemFactory problemFactory) { super(environment, policy, settings, requestor, problemFactory, false); }
protected CompilationUnitProblemFinder( INameEnvironment environment, IErrorHandlingPolicy policy, Map settings, ICompilerRequestor requestor, IProblemFactory problemFactory) { super(environment, policy, settings, requestor, problemFactory, true); }
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 LongLiteralMinValue(){ super(CharValue,0,0,Long.MIN_VALUE); constant = MIN_VALUE; }
public LongLiteralMinValue(){ super(CharValue,0,0); constant = MIN_VALUE; }
public void valueChanged(ListSelectionEvent lse) { Object src = lse.getSource(); System.out.println("got valueChanged from " + src); } } /* end class TabChecklist */ class TableModelChecklist extends AbstractTableModel implements VetoableChangeListener, DelayedVetoableChangeListener { ///////////////...
public void valueChanged(ListSelectionEvent lse) { Object src = lse.getSource(); System.out.println("got valueChanged from " + src); } } /* end class TabChecklist */ class TableModelChecklist extends AbstractTableModel implements VetoableChangeListener, DelayedVChangeListener { ////////////////
public void propertyChange(PropertyChangeEvent pce) { cat.info ("Notation change:" + pce.getOldValue() + " to " + pce.getNewValue()); ArgoEventPump.getInstance().fireEvent( new ArgoNotationEvent(ArgoEvent.NOTATION_CHANGED, pce)); }
public void propertyChange(PropertyChangeEvent pce) { cat.info ("Notation change:" + pce.getOldValue() + " to " + pce.getNewValue()); ArgoEventPump.fireEvent( new ArgoNotationEvent(ArgoEvent.NOTATION_CHANGED, pce)); }