Results 1 to 2 of 2
  1. #1
    X-ion is offline Member
    Join Date
    Feb 2010
    Posts
    9
    Rep Power
    0

    Default ErrorDialog & Manual build

    Hi Guys,

    I have 2 questions i'd like to ask,

    1st one: I've created a plugin that creates custom markers when errors are found. The compiler of eclipse doesnt recognize these errors so it wont popup the message box "errors exist in required projects, proceed with launch?". What i did is add a listener to the run button, and i can catch the run and cancel the launch if errors exists, but i cant find the normal eclipse error dialog (the one saying errors exist in project). I did add my own error message but i would like to know if i can use the eclipse one. Thanks :)

    The second question i have is regarding a manual build. In my plugin i created a preference page to manually disable some errors and warning. When you change these preferences it only starts working after a new build. I would like to know if its possible to call a build in the java code? I do have a listener for changed preferences, so i only need to know how to call a build codewise.

    Greetz and thaniks in advance, if u need more information feel free to ask.

    Michiel

  2. #2
    X-ion is offline Member
    Join Date
    Feb 2010
    Posts
    9
    Rep Power
    0

    Default

    I got a solution for my last question, i only need an answer on the first, how to get to the default eclipse error messages...

    Here is the code for the first part:

    Java Code:
    try {
    	Activator.getDefault();
    	for (IProject project : Activator.getWorkspace().getRoot().getProjects()) {
    		//check if project has the right nature.
    		if(project.getNature(PluginConstants.NATURE_ID) != null) {
    			//call the build function
    		       project.build(IncrementalProjectBuilder.FULL_BUILD, PluginConstants.BUILDER_ID, null, new NullProgressMonitor());
    		}
    	} 
    } catch(CoreException e) {
    	e.printStackTrace();
    }

Similar Threads

  1. Manual Content upload
    By masterrs.mind in forum Advanced Java
    Replies: 1
    Last Post: 03-06-2010, 07:37 PM
  2. JCreator Pro Manual in PDF or DOC
    By aga010607 in forum JCreator
    Replies: 2
    Last Post: 11-22-2009, 10:46 AM
  3. JFace's ErrorDialog Demonstration
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-07-2008, 04:40 PM
  4. Manual, good tutorial
    By sin in forum JavaServer Faces (JSF)
    Replies: 5
    Last Post: 05-25-2008, 06:16 AM
  5. Manual of websphere
    By Marcus in forum Web Frameworks
    Replies: 1
    Last Post: 06-27-2007, 04:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •