Package com.aptana.shared_core.structure

Examples of com.aptana.shared_core.structure.Tuple


            }
        }
        boolean force = false;
        if (info.argsToReparse != null && info.argsToReparse.length > 0) {
            if (info.argsToReparse[0] instanceof Tuple) {
                Tuple t = (Tuple) info.argsToReparse[0];
                if (t.o1 instanceof String && t.o2 instanceof Boolean) {
                    if (t.o1.equals(ANALYSIS_PARSER_OBSERVER_FORCE)) {
                        //if this message is passed, it will decide whether we will force the analysis or not
                        force = (Boolean) t.o2;
                    }
View Full Code Here


    @Override
    @SuppressWarnings("rawtypes")
    protected void restoreSavedInfo(Object o) throws MisconfigurationException {
        synchronized (lock) {
            Tuple readFromFile = (Tuple) o;
            if (!(readFromFile.o1 instanceof Tuple3)) {
                throw new RuntimeException("Type Error: the info must be regenerated (changed across versions).");
            }

            completeIndex = (DiskCache) readFromFile.o2;
View Full Code Here

            InputStreamReader reader = new InputStreamReader(fileInputStream);
            FastBufferedReader bufferedReader = new FastBufferedReader(reader);
            FastStringBuffer string = bufferedReader.readLine();
            ObjectsPoolMap objectsPoolMap = new ObjectsPool.ObjectsPoolMap();
            if (string != null && string.startsWith("-- VERSION_")) {
                Tuple tupWithResults = new Tuple(new Tuple3(null, null, null), null);
                Tuple3 superTupWithResults = (Tuple3) tupWithResults.o1;
                //tupWithResults.o2 = DiskCache
                if (string.toString().equals(expected)) {
                    //OK, proceed with new I/O format!
                    try {
View Full Code Here

            public String call(Object arg) {
                if (arg instanceof String) {
                    return "STR" + (String) arg;
                }
                if (arg instanceof Tuple) {
                    Tuple tuple = (Tuple) arg;
                    if (tuple.o1 instanceof ModulesKey && tuple.o2 instanceof List) {
                        ModulesKey modName = (ModulesKey) tuple.o1;
                        List<IInfo> l = (List<IInfo>) tuple.o2;
                        String infoToString = InfoStrFactory.infoToString(l);
                        String fileStr = modName.file.toString();
View Full Code Here

                }
            }
            //make all pings before a send.
            for (Object cmd : local) {
                if (cmd instanceof Tuple) {
                    Tuple tuple = (Tuple) cmd;
                    if ("addEncodedMessage".equals(tuple.o1)) {
                        internal.addEncodedMessage((String) tuple.o2);
                        continue;
                    }
                }
View Full Code Here

                if (breakpoint != null && breakpointManager.isRegistered(breakpoint)) {
                    Position pos = getMarkerPosition(document, marker, annotationModel);

                    if (!isExternalFile) {
                        if (!onlyIncludeLastLineActivity) {
                            breakpoints.add(new Tuple(marker, breakpoint));
                        } else if (includesRulerLine(pos, document, lastLineActivity)) {
                            breakpoints.add(new Tuple(marker, breakpoint));
                        }
                    } else {

                        if (isInSameExternalEditor(marker, externalFileEditorInput)) {
                            if (!onlyIncludeLastLineActivity) {
                                breakpoints.add(new Tuple(marker, breakpoint));
                            } else if (includesRulerLine(pos, document, lastLineActivity)) {
                                breakpoints.add(new Tuple(marker, breakpoint));
                            }
                        }
                    }
                }
            }
View Full Code Here

     *
     * @note we don't have to worry about the ast, as it won't change after we create the source module with it.
     */
    @SuppressWarnings("unchecked")
    private FindScopeVisitor getScopeVisitor(int line, int col) throws Exception {
        Tuple key = new Tuple(line, col);
        FindScopeVisitor scopeVisitor = this.scopeVisitorCache.getObj(key);
        if (scopeVisitor == null) {
            scopeVisitor = new FindScopeVisitor(line, col);
            if (ast != null) {
                ast.accept(scopeVisitor);
View Full Code Here

        public int startScope(int offset, int type) {
            scopeId++;
            List<ScopeEntry> list = getAtOffset(offset);
            ScopeEntry startEntry = new ScopeEntry(scopeId, type, true, offset);
            list.add(startEntry);
            idToStartEnd.put(scopeId, new Tuple(startEntry, null));
            return scopeId;
        }
View Full Code Here

    @Override
    protected void onGetCompleteTokenOccurrences(Tuple3<Found, Integer, ASTEntry> found, Set<IToken> f,
            ArrayList<Tuple4<IToken, Integer, ASTEntry, Found>> ret) {

        //other matches for the imports that we had already found.
        Tuple matchingImportEntries = getImportEntries(found, f);
        List<Tuple4<IToken, Integer, ASTEntry, Found>> fromModule = (List<Tuple4<IToken, Integer, ASTEntry, Found>>) matchingImportEntries.o1;
        List<Tuple4<IToken, Integer, ASTEntry, Found>> fromImports = (List<Tuple4<IToken, Integer, ASTEntry, Found>>) matchingImportEntries.o2;

        ret.addAll(fromModule);
        ret.addAll(fromImports);
View Full Code Here

            checkImportEntries(fromModuleRet, f, fromModule, found.o2);
            checkImportEntries(fromImportsRet, f, fromImports, found.o2);

        }
        return new Tuple(fromModuleRet, fromImportsRet);
    }
View Full Code Here

TOP

Related Classes of com.aptana.shared_core.structure.Tuple

Copyright © 2018 www.massapicom. 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.