Package com.aptana.shared_core.string

Examples of com.aptana.shared_core.string.FastStringBuffer.clear()


                if (fullRep.startsWith(mod)) {

                    if (fullRep.length() == mod.length() //it does not only start with, but it is equal to it.
                            || (fullRep.length() > mod.length() && fullRep.charAt(mod.length()) == '.')) {
                        buffer.clear();
                        String realImportRep = buffer.append("import ").append(mod).toString();
                        buffer.clear();
                        String displayString = buffer.append("Import ").append(mod).toString();
                        addProp(props, realImportRep, displayString, packageImage, offset, mods);
                    }
View Full Code Here


                    if (fullRep.length() == mod.length() //it does not only start with, but it is equal to it.
                            || (fullRep.length() > mod.length() && fullRep.charAt(mod.length()) == '.')) {
                        buffer.clear();
                        String realImportRep = buffer.append("import ").append(mod).toString();
                        buffer.clear();
                        String displayString = buffer.append("Import ").append(mod).toString();
                        addProp(props, realImportRep, displayString, packageImage, offset, mods);
                    }
                }
View Full Code Here

                String packageName = strings[0];
                String importRep = strings[1];

                if (importRep.equals(markerContents)) {
                    if (packageName.length() > 0) {
                        buffer.clear();
                        String realImportRep = buffer.append("from ").append(packageName).append(" ").append("import ")
                                .append(strings[1]).toString();
                        buffer.clear();
                        String displayString = buffer.append("Import ").append(importRep).append(" (")
                                .append(packageName).append(")").toString();
View Full Code Here

                if (importRep.equals(markerContents)) {
                    if (packageName.length() > 0) {
                        buffer.clear();
                        String realImportRep = buffer.append("from ").append(packageName).append(" ").append("import ")
                                .append(strings[1]).toString();
                        buffer.clear();
                        String displayString = buffer.append("Import ").append(importRep).append(" (")
                                .append(packageName).append(")").toString();
                        addProp(props, realImportRep, displayString, packageImage, offset, mods);

                    } else {
View Full Code Here

                        String displayString = buffer.append("Import ").append(importRep).append(" (")
                                .append(packageName).append(")").toString();
                        addProp(props, realImportRep, displayString, packageImage, offset, mods);

                    } else {
                        buffer.clear();
                        String realImportRep = buffer.append("import ").append(strings[1]).toString();
                        buffer.clear();
                        String displayString = buffer.append("Import ").append(importRep).toString();
                        addProp(props, realImportRep, displayString, packageImage, offset, mods);
                    }
View Full Code Here

                        addProp(props, realImportRep, displayString, packageImage, offset, mods);

                    } else {
                        buffer.clear();
                        String realImportRep = buffer.append("import ").append(strings[1]).toString();
                        buffer.clear();
                        String displayString = buffer.append("Import ").append(importRep).toString();
                        addProp(props, realImportRep, displayString, packageImage, offset, mods);
                    }
                }
            }
View Full Code Here

            }
            if (filesVisited.contains(f)) {
                continue;
            }
            filesVisited.add(f);
            monitor.setTaskName(buf.clear().append("Scheduling: ").append(f.getName()).toString());
            IDocument doc = FileUtilsFileBuffer.getDocFromResource(f);
            visitor.memo = new HashMap<String, Object>();
            visitor.memo.put(PyDevBuilderVisitor.IS_FULL_BUILD, false);
            long documentTime = f.getModificationStamp();
            visitor.memo.put(PyDevBuilderVisitor.DOCUMENT_TIME, documentTime);
View Full Code Here

                FastStringBuffer tempBuf = new FastStringBuffer();
                tempBuf.append("-- VERSION_");
                tempBuf.append(AbstractAdditionalTokensInfo.version);
                tempBuf.append('\n');
                writer.write(tempBuf.getInternalCharsArray(), 0, tempBuf.length());
                tempBuf.clear();

                saveTo(writer, tempBuf, persistingLocation);
            } finally {
                try {
                    writer.close();
View Full Code Here

                    } catch (Exception e) {
                        Log.log(e);
                    }
                }

                temp = temp.clear();
                if (def.value != null) {
                    if (astToPrint instanceof FunctionDef) {
                        temp.append("def ");

                    } else if (astToPrint instanceof ClassDef) {
View Full Code Here

                        return ret;
                    }
                    long current = System.currentTimeMillis();
                    if (last + 200 < current) {
                        last = current;
                        monitor.setTaskName(bufProgress.clear().append("Searching: ").append(indexKey.key.name)
                                .toString());
                        monitor.worked(worked);
                    }
                    check(indexKey, obj, temp, token, ret);
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.