Examples of CodeQualificationMap


Examples of org.openquark.cal.compiler.CodeQualificationMap

        if (XMLPersistenceHelper.getChildElement(codeElement, CodeQualificationMap.QUALIFICATION_MAP_TAG) != null) {
            qualificationMap.loadFromXML(codeElement);
            if (!codeAnalyser.checkQualificationMapValidity(qualificationMap)) {
                // The code qualification mappings have become invalid. We'll create a blank
                // qualification map and likely end up with a broken code gem.
                qualificationMap = new CodeQualificationMap();
            }
        } else {
            qualificationMap = new CodeQualificationMap();
        }
       
        // Get the args
        Element argsElement = (childElems.size() < 4) ? null : childElems.get(3);
        XMLPersistenceHelper.checkIsElement(argsElement);
View Full Code Here

Examples of org.openquark.cal.compiler.CodeQualificationMap

        for (int k =0; k < oldArguments.length; k++) {
            newArguments[k] = new Argument.NameTypePair(oldArguments[k].getName(), oldArguments[k].getType());
            argNameToArgMap.put(newArguments[k].getName(), null);
        }
       
        CodeQualificationMap newQualificationMap = this.qualificationMap.makeCopy();
       
        // update everything!
        clone.setName(getUnqualifiedName());
        clone.definitionUpdate(oldCode, newArguments, getCodeResultType(), argNameToArgMap, newQualificationMap, visibleCode);
       
View Full Code Here

Examples of org.openquark.cal.compiler.CodeQualificationMap

     * Sets the expression text to display.
     * @param text the expression text
     */
    public void setExpressionText(String text) {
        if (userResolvedAmbiguities == null) {
            userResolvedAmbiguities = new CodeQualificationMap();
            editorTransferHandler.setUserQualifiedIdentifiers(userResolvedAmbiguities);
        }
       
        calEditor.setText(text);
        calEditor.setCaretPosition(0)// Ensure that the beginning of the text is visible
View Full Code Here

Examples of org.openquark.cal.compiler.CodeQualificationMap

        qualificationResults = codeAnalyser.qualifyExpression(calEditor.getText(), null, userResolvedAmbiguities, messageLogger);
       
        if (qualificationResults == null) {
            // Expression parsing failed.
            qualifiedExpressionText = calEditor.getText();
            qualificationMap = new CodeQualificationMap();
            calEditor.setSourceIdentifiers(null);
            calEditor.updateAmbiguityIndicators();
            qualificationsDisplay.generateQualificationPanels(qualificationMap, null, moduleTypeInfo);
           
        } else {
View Full Code Here

Examples of org.openquark.cal.compiler.CodeQualificationMap

        editorTransferHandler = new CodeGemEditor.EditorTextTransferHandler(getCALEditor().getTransferHandler(), codeAnalyser);
       
        // Module change may affect visibility of qualifications in code, so update them
        if (!calEditor.getText().equals("")) {
            if (userResolvedAmbiguities == null) {
                userResolvedAmbiguities = new CodeQualificationMap();
                editorTransferHandler.setUserQualifiedIdentifiers(userResolvedAmbiguities);
            }
            updateQualifications();
        } else {
            notifyEditorChanged();
View Full Code Here

Examples of org.openquark.cal.compiler.CodeQualificationMap

            public void actionPerformed(ActionEvent evt) {
               
                Object eventSource = evt.getSource();
                if (eventSource == this) {
                   
                    CodeQualificationMap qualificationMap = ExpressionPanel.this.userResolvedAmbiguities;
                    qualificationMap.putQualification(unqualifiedName, moduleName, type);
                   
                    updateQualifications();
                }
            }
View Full Code Here

Examples of org.openquark.cal.compiler.CodeQualificationMap

             */
            public void actionPerformed(ActionEvent evt) {
               
                Object eventSource = evt.getSource();
                if (eventSource == this) {
                    CodeQualificationMap qualificationMap = ExpressionPanel.this.userResolvedAmbiguities;
                    qualificationMap.removeQualification(unqualifiedName, type);
                    qualificationMap.putQualification(unqualifiedName, newModuleName, type);
                   
                    updateQualifications();
                }
            }
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.