Search in sources :

Example 1 with AnalysisPreferencesStub

use of com.python.pydev.analysis.AnalysisPreferencesStub in project Pydev by fabioz.

the class UndefinedVariableFixParticipantTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    participant = new UndefinedVariableFixParticipant();
    super.restorePythonPath(false);
    prefs = new AnalysisPreferencesStub();
    props = new ArrayList<ICompletionProposalHandle>();
}
Also used : AnalysisPreferencesStub(com.python.pydev.analysis.AnalysisPreferencesStub) ICompletionProposalHandle(org.python.pydev.shared_core.code_completion.ICompletionProposalHandle)

Example 2 with AnalysisPreferencesStub

use of com.python.pydev.analysis.AnalysisPreferencesStub in project Pydev by fabioz.

the class IgnoreErrorFixParticipantTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    format = new FormatStd();
    format.spacesBeforeComment = 2;
    participant = new IgnoreErrorParticipant(format);
    prefs = new AnalysisPreferencesStub();
    props = new ArrayList<ICompletionProposalHandle>();
    CompletionProposalFactory.set(new DefaultCompletionProposalFactory());
}
Also used : FormatStd(org.python.pydev.core.formatter.FormatStd) AnalysisPreferencesStub(com.python.pydev.analysis.AnalysisPreferencesStub) ICompletionProposalHandle(org.python.pydev.shared_core.code_completion.ICompletionProposalHandle) DefaultCompletionProposalFactory(org.python.pydev.editor.codecompletion.proposals.DefaultCompletionProposalFactory)

Aggregations

AnalysisPreferencesStub (com.python.pydev.analysis.AnalysisPreferencesStub)2 ICompletionProposalHandle (org.python.pydev.shared_core.code_completion.ICompletionProposalHandle)2 FormatStd (org.python.pydev.core.formatter.FormatStd)1 DefaultCompletionProposalFactory (org.python.pydev.editor.codecompletion.proposals.DefaultCompletionProposalFactory)1