Results 1 to 2 of 2
Thread: ErrorDialog & Manual build
- 03-22-2010, 09:16 AM #1
Member
- Join Date
- Feb 2010
- Posts
- 9
- Rep Power
- 0
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
- 03-23-2010, 10:56 AM #2
Member
- Join Date
- Feb 2010
- Posts
- 9
- Rep Power
- 0
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
-
Manual Content upload
By masterrs.mind in forum Advanced JavaReplies: 1Last Post: 03-06-2010, 07:37 PM -
JCreator Pro Manual in PDF or DOC
By aga010607 in forum JCreatorReplies: 2Last Post: 11-22-2009, 10:46 AM -
JFace's ErrorDialog Demonstration
By Java Tip in forum SWTReplies: 0Last Post: 07-07-2008, 04:40 PM -
Manual, good tutorial
By sin in forum JavaServer Faces (JSF)Replies: 5Last Post: 05-25-2008, 06:16 AM -
Manual of websphere
By Marcus in forum Web FrameworksReplies: 1Last Post: 06-27-2007, 04:01 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks