Ejemplo n.º 1
0
 public static void log(Exception e) {
   if (e instanceof CoreException) {
     plugin.getLog().log(((CoreException) e).getStatus());
   } else {
     plugin.getLog().log(new Status(IStatus.ERROR, Activator.getId(), e.getLocalizedMessage(), e));
   }
 }
Ejemplo n.º 2
0
 @Override
 public IScannerInfo getScannerInformation(IResource resource) {
   try {
     IProject project = resource.getProject();
     IBuildConfiguration config = project.getActiveBuildConfig();
     ArduinoBuildConfiguration arduinoConfig = config.getAdapter(ArduinoBuildConfiguration.class);
     return arduinoConfig.getScannerInfo(resource);
   } catch (CoreException e) {
     Activator.log(e);
     return null;
   }
 }