Package org.epic.debug

Examples of org.epic.debug.PerlLineBreakpoint


         * breakpoint is for a regexp, along w/ the annotation icon.
         */

        try
        {
            new PerlLineBreakpoint(resource, lineNumber);
        }
        catch (DebugException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here


     * Creates the "suspend condition" editor
     */
    private void createCondition(Composite parent) throws CoreException
    {
        Composite composite = createComposite(parent, 1);
        PerlLineBreakpoint breakpoint = getBreakpoint();
       
        conditionText = new SourceViewer(
            composite, null, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
        IDocument document = new Document(breakpoint.getCondition());       
        IDocumentPartitioner partitioner =
            new PerlPartitioner(PerlDebugPlugin.getDefault().getLog());
       
        document.setDocumentPartitioner(partitioner);
        partitioner.connect(document);
View Full Code Here

     * Creates the "suspend condition" group
     */
    private void createConditionEditor(Composite parent) throws CoreException
    {
        Composite groupComposite = createGroup(parent);
        PerlLineBreakpoint breakpoint = getBreakpoint();

        // TODO: content assist
        String caLabel = PropertyPageMessages.enableConditionWithoutCA;

        enableConditionButton = createCheckButton(groupComposite, caLabel);
        enableConditionButton.setSelection(breakpoint.isConditionEnabled());
        enableConditionButton.addSelectionListener(new SelectionAdapter()
            {
                public void widgetSelected(SelectionEvent e)
                {
                    toggleConditionEnabled(enableConditionButton.getSelection());
View Full Code Here

     * Creates the line number, etc label fields
     */
    private void createLabels(Composite parent)
    {
        Composite label = createComposite(parent, 2);
        PerlLineBreakpoint breakpoint = (PerlLineBreakpoint) getElement();

        String lineNumber = null;
        try
        {
            lineNumber = Integer.toString(breakpoint.getLineNumber());

            createLabel(label, PropertyPageMessages.line);
            createLabel(label, lineNumber);
        }
        catch (CoreException e)
View Full Code Here

    /**
     * Stores the "condition" editor.
     */
    private void storeCondition() throws CoreException
    {
        PerlLineBreakpoint breakpoint = getBreakpoint();

        if (breakpoint.isConditionEnabled() != enableConditionButton.getSelection())
        {
            breakpoint.setConditionEnabled(enableConditionButton.getSelection());
        }

        if (!conditionText.getDocument().get().equals(breakpoint.getCondition()))
        {
            breakpoint.setCondition(conditionText.getDocument().get());
        }
    }
View Full Code Here

        for (Iterator i = getBreakpoints(path).iterator(); i.hasNext();)
        {
            Object obj = i.next();
            if (!(obj instanceof PerlLineBreakpoint)) continue;
           
            PerlLineBreakpoint bp = (PerlLineBreakpoint) obj;
            try
            {
                String bpPath = canonPath(bp.getResourcePath());
                if (bpPath.equals(canonPath) && line == bp.getLineNumber())
                {
                    return bp;
                }
            }
            catch (CoreException e)
View Full Code Here

TOP

Related Classes of org.epic.debug.PerlLineBreakpoint

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.