Package org.epic.core.util

Examples of org.epic.core.util.MarkerUtilities


    public void buildResource(IResource resource)
    {
     
        Object[] violations = doJob(resource);

        final MarkerUtilities factory = new MarkerUtilities(PerlEditorPlugin.getDefault().getLog(), PerlEditorPlugin.getPluginId());
        factory.deleteMarkers(resource, METRICS_MARKER);

        for (int i = 0; i < violations.length; i++)
        {
            Map attributes = createMarkerAttributes(factory, violations[i]);
            factory.createMarker(resource, METRICS_MARKER, attributes);
        }
    }
View Full Code Here


       
        // TODO: check if editor is dirty before running
        final String marker = getMarker();
        final IResource resource = getResource();

        final MarkerUtilities factory = new MarkerUtilities(getLog(), getPluginId());

        Job job =
            new Job(getJobTitle(resource))
        {
            protected IStatus run(IProgressMonitor monitor)
            {
                // cancelled while sitting in queue
                if (monitor.isCanceled()) { return Status.CANCEL_STATUS; }

                factory.deleteMarkers(resource, marker);

                /*
                 * this should be able to support multiple resources as well in the future - the
                 * loop would just need to include a check against the monitor for cancellation
                 */
                Object[] violations = doJob(resource);

                // check if we were cancelled while the thread was running
                if (monitor.isCanceled()) { return Status.CANCEL_STATUS; }

                for (int i = 0; i < violations.length; i++)
                {
                    Map attributes = createMarkerAttributes(factory, violations[i]);
                    factory.createMarker(resource, marker, attributes);
                }

                return Status.OK_STATUS;
            }
        };
View Full Code Here

        Job job =
            new Job("Clear EPIC Marker(s)")
        {
            protected IStatus run(IProgressMonitor monitor)
            {
                MarkerUtilities factory = new MarkerUtilities(getLog(), getPluginId());
                factory.deleteMarkers(getResource(), markerType);

                return Status.OK_STATUS;
            }
        };
View Full Code Here

TOP

Related Classes of org.epic.core.util.MarkerUtilities

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.