Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IResource.createMarker()


    Set problemAttributes = _problemMarkers.entrySet();
    for (Iterator iter = problemAttributes.iterator(); iter.hasNext();) {
      Map element = (Map) ((Map.Entry) iter.next()).getValue();
      IResource resource = (IResource) element.get(TargetBuilder.RESOURCE);
      Map attributes = (Map) element.get(TargetBuilder.ATTRIBUTES);
      IMarker marker = resource.createMarker(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER);
      marker.setAttributes(attributes);
    }
  }

  public void registerProblemMarkers(IMarker[] problemMarkers) throws CoreException {
View Full Code Here


                }
                IResource r = javaProject.getProject().getFile(ivyXmlPath);
                if (!r.exists()) {
                    r = p;
                }
                IMarker marker = r.createMarker(IvyPlugin.MARKER_ID);
                marker.setAttribute(IMarker.MESSAGE, status.getMessage());
                switch (status.getSeverity()) {
                    case IStatus.ERROR:
                        marker.setAttribute(IMarker.SEVERITY, IMarker.SEVERITY_ERROR);
                        break;
View Full Code Here

                }
            }

            IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
                public void run(IProgressMonitor monitor) throws CoreException {
                    IMarker marker = resource.createMarker(PyBreakpoint.PY_BREAK_MARKER);
                    marker.setAttributes(map);
                    PyBreakpoint br = new PyBreakpoint();
                    br.setMarker(marker);
                    IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager();
                    breakpointManager.addBreakpoint(br);
View Full Code Here

       IResource file = step.getSource();
       IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();

       HashMap<String, Integer> map = new HashMap<String, Integer>();
       map.put(IMarker.LINE_NUMBER, step.getLineNumber());
       IMarker marker = file.createMarker(IMarker.TEXT);
       marker.setAttributes(map);
       IDE.openEditor(page, marker);
       marker.delete();
      
  }
View Full Code Here

        try {
          final IMarker[] markers = new IMarker[1];
          IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
            public void run(IProgressMonitor monitor)
                throws CoreException {
              IMarker marker = resource
                  .createMarker(IMarker.TEXT);
              marker.setAttribute(IMarker.MESSAGE, toString());
              if (element instanceof ISourceModelElement) {
                marker.setAttribute(IMarker.LINE_NUMBER,
                    ((ISourceModelElement) element)
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.