Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornhauge2009-11-19 10:38:46 -0500
committernhauge2009-11-19 10:38:46 -0500
commit219ee57164b3f48a6a93b595eed47dfbcbe2750e (patch)
treec6bfc83f73d728d0b188e7edbdfa168f2631d3b6
parentd82c907cb9b2e8a45a30bf7dfbf6113ac6414db5 (diff)
downloadwebtools.dali-219ee57164b3f48a6a93b595eed47dfbcbe2750e.tar.gz
webtools.dali-219ee57164b3f48a6a93b595eed47dfbcbe2750e.tar.xz
webtools.dali-219ee57164b3f48a6a93b595eed47dfbcbe2750e.zip
Force build when applying changes.
-rw-r--r--jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/preferences/JpaProblemSeveritiesPage.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/preferences/JpaProblemSeveritiesPage.java b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/preferences/JpaProblemSeveritiesPage.java
index 3c6a4c7191..c73f29e27b 100644
--- a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/preferences/JpaProblemSeveritiesPage.java
+++ b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/preferences/JpaProblemSeveritiesPage.java
@@ -13,6 +13,7 @@ import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;
+
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IWorkspaceRunnable;
@@ -21,6 +22,7 @@ import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage;
import org.eclipse.jdt.internal.ui.preferences.ScrolledPageContent;
import org.eclipse.jface.dialogs.IDialogSettings;
@@ -35,7 +37,6 @@ import org.eclipse.jpt.core.internal.validation.JpaValidationPreferences;
import org.eclipse.jpt.ui.JptUiPlugin;
import org.eclipse.jpt.ui.internal.JptUiMessages;
import org.eclipse.jpt.ui.internal.JptUiValidationPreferenceMessages;
-import org.eclipse.jpt.ui.internal.properties.JpaProjectPropertiesPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@@ -682,6 +683,10 @@ public class JpaProblemSeveritiesPage extends PropertyAndPreferencePage {
}
void performOk_(IProgressMonitor monitor) throws CoreException {
- this.getProject().build(IncrementalProjectBuilder.FULL_BUILD, monitor);
+ //if project is null this is a workspace preference page
+ if (this.getProject()==null) {
+ JavaPlugin.getWorkspace().build(IncrementalProjectBuilder.FULL_BUILD, monitor);
+ }
+ else this.getProject().build(IncrementalProjectBuilder.FULL_BUILD, monitor);
}
} \ No newline at end of file

Back to the top