Search in sources :

Example 6 with JDOMExternalizableStringList

use of com.intellij.openapi.util.JDOMExternalizableStringList in project intellij-community by JetBrains.

the class MethodParameterInjection method readOldFormat.

private void readOldFormat(final Element e) {
    final JDOMExternalizableStringList list = new JDOMExternalizableStringList();
    try {
        list.readExternal(e);
    } catch (IllegalDataException ignored) {
    }
    if (list.isEmpty())
        return;
    final boolean[] selection = new boolean[list.size()];
    for (int i = 0; i < list.size(); i++) {
        selection[i] = Boolean.parseBoolean(list.get(i));
    }
    final String methodSignature = fixSignature(JDOMExternalizer.readString(e, "METHOD"), false);
    myParameterMap.put(methodSignature, new MethodInfo(methodSignature, selection, false));
}
Also used : JDOMExternalizableStringList(com.intellij.openapi.util.JDOMExternalizableStringList) IllegalDataException(org.jdom.IllegalDataException)

Aggregations

JDOMExternalizableStringList (com.intellij.openapi.util.JDOMExternalizableStringList)6 Element (org.jdom.Element)3 HighlightSeverity (com.intellij.lang.annotation.HighlightSeverity)2 InspectionProfile (com.intellij.codeInspection.InspectionProfile)1 SmartRefElementPointer (com.intellij.codeInspection.reference.SmartRefElementPointer)1 HashMap (com.intellij.util.containers.HashMap)1 TObjectIntProcedure (gnu.trove.TObjectIntProcedure)1 StringTokenizer (java.util.StringTokenizer)1 IllegalDataException (org.jdom.IllegalDataException)1 Nullable (org.jetbrains.annotations.Nullable)1