Examples of CoreException


Examples of org.eclipse.core.runtime.CoreException

            Collection<Project> projects = null;
            try {
                Workspace ws = Central.getWorkspace();
                projects = ws.getBuildOrder();
            } catch (Exception e) {
                throw new CoreException(new Status(IStatus.ERROR, NewBuilder.PLUGIN_ID, 0, "Error rebuilding bnd projects after creating workspace configuration.", e));
            }
            if (projects == null || projects.isEmpty())
                return Status.OK_STATUS;

            SubMonitor progress = SubMonitor.convert(monitor, projects.size());
View Full Code Here

Examples of org.eclipse.core.runtime.CoreException

                            }
                        }
                        return true;
                    } catch (Exception e) {
                        e.printStackTrace();
                        throw new CoreException(new Status(Status.ERROR, BndtoolsConstants.CORE_PLUGIN_ID, "During checking project changes", e));
                    }
                }

            });
View Full Code Here

Examples of org.eclipse.core.runtime.CoreException

                                }
                            }
                        }
                        return true;
                    } catch (Exception e) {
                        throw new CoreException(new Status(Status.ERROR, BndtoolsConstants.CORE_PLUGIN_ID, "During checking project changes", e));
                    }
                }

            });
        } catch (CoreException e) {
View Full Code Here

Examples of org.eclipse.core.runtime.CoreException

            FileOutputStream out = null;
            try {
                out = new FileOutputStream(propertiesFile);
                props.store(out, new Date().toString());
            } catch (final IOException e) {
                throw new CoreException(new Status(Status.ERROR, NewBuilder.PLUGIN_ID, "Failure to write container source attachments", e));
            } finally {
                IO.close(out);
            }
        }
    }
View Full Code Here

Examples of org.eclipse.core.runtime.CoreException

            InputStream in = null;
            try {
                in = new FileInputStream(propertiesFile);
                props.load(in);
            } catch (final IOException e) {
                throw new CoreException(new Status(Status.ERROR, NewBuilder.PLUGIN_ID, "Failure to read container source attachments", e));
            } finally {
                IO.close(in);
            }
        }
View Full Code Here

Examples of org.jrebirth.af.core.exception.CoreException

            final Class<?> eventClass = getAnnotationApiEventClass();

            try {
                this.callbackObject.getClass().getDeclaredMethod(methodName, eventClass);
            } catch (NoSuchMethodException | SecurityException e) {
                throw new CoreException(NO_EVENT_CALLBACK.getText(this.callbackObject.getClass().getName(), methodName, eventClass.getName()), e);
            }
        }

    }
View Full Code Here

Examples of vg.core.exception.CoreException

  /**
   * This method runs system.
   */
  public static synchronized void run() throws CoreException {
    if(instance) return;
    if(config==null) throw new CoreException("config = null",EnumCriticalityException.FAILED);
    if(log==null) throw new CoreException("log = null",EnumCriticalityException.FAILED);
    if(windowMessage==null) throw new CoreException("windowMessage = null",EnumCriticalityException.FAILED);
    if(progressManager == null) throw new CoreException("progressManager = null",EnumCriticalityException.FAILED);
    //finalize of services
    Runtime.getRuntime().addShutdownHook(new Thread() {
      public void run() {
        config.save();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.