@@ -149,7 +149,7 @@ public boolean performOk() {
149
149
((IResource ) getElement ()).setPersistentProperty (
150
150
new QualifiedName ("" , "OF_ROOT" ),
151
151
ofRoot );
152
- IProject project = ((IResource ) getElement ()).getProject ();
152
+ final IProject project = ((IResource ) getElement ()).getProject ();
153
153
IManagedBuildInfo buildInfo = ManagedBuildManager .getBuildInfo (project );
154
154
IConfiguration debugConfig = buildInfo .getManagedProject ().getConfiguration ("cc.openframeworks.configurations.debug" );
155
155
IBuilder bld = debugConfig .getEditableBuilder ();
@@ -172,7 +172,7 @@ public boolean performOk() {
172
172
}else {
173
173
bld .setIncrementalBuildTarget ("Release" );
174
174
}
175
- WorkspaceModifyOperation op = new WorkspaceModifyOperation () {
175
+ final WorkspaceModifyOperation op = new WorkspaceModifyOperation () {
176
176
public void execute (IProgressMonitor monitor ) throws CoreException {
177
177
try {
178
178
project .build (project .getActiveBuildConfig (),IncrementalProjectBuilder .CLEAN_BUILD ,monitor );
@@ -188,7 +188,10 @@ public void execute(IProgressMonitor monitor) throws CoreException{
188
188
public void run (IProgressMonitor monitor ) throws CoreException {
189
189
try {
190
190
op .run (monitor );
191
- } catch (InvocationTargetException | InterruptedException e ) {
191
+ } catch (InvocationTargetException e ) {
192
+ // TODO Auto-generated catch block
193
+ e .printStackTrace ();
194
+ } catch (InterruptedException e ) {
192
195
// TODO Auto-generated catch block
193
196
e .printStackTrace ();
194
197
}
0 commit comments