コード例 #1
0
ファイル: Activator.java プロジェクト: zhaog/cdt
 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));
   }
 }
コード例 #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;
   }
 }