APISonar


org.jkiss.dbeaver.Log.log

> org > jkiss > dbeaver > Log > log
org APIs jkiss APIs dbeaver APIs Log APIs log APIs

Example 1
private static final Log log = Log.getLog(DatabaseDebugTarget.class);

    protected DBGBreakpointDescriptor describeBreakpoint(IBreakpoint breakpoint) {
        Map<String, Object> description = new HashMap<>();
        try {
            Map<String, Object> attributes = breakpoint.getMarker().getAttributes();
            Map<String, Object> remote = DebugUtils.toBreakpointDescriptor(attributes);
            description.putAll(remote);
        } catch (CoreException e) {
            log.log(e.getStatus());
            return null;
        }
        return controller.describeBreakpoint(description);
    }
Example 2
private static final Log log = Log.getLog(DatabaseDebugTarget.class);

    public void handleDebugEvents(DebugEvent[] events) {
        for (DebugEvent event : events) {
            switch (event.getKind()) {
                case DebugEvent.TERMINATE:
                    if (event.getSource().equals(process)) {
                        try {
                            terminated();
                        } catch (DebugException e) {
                            log.log(e.getStatus());
                        }
                    }
                    break;
            }
        }
    }
Example 3
private static final Log log = Log.getLog(DatabaseMarkerAnnotationModel.class);

    protected boolean isAcceptable(IMarker marker) {
        boolean acceptable = super.isAcceptable(marker);
        if (!acceptable) {
            return false;
        }
        try {
            Object[] attributes = marker.getAttributes(ATTRIBUTE_NAMES);
            return datasourceId.equals(attributes[0]) &&
                nodeItemPath.equals(attributes[1]);
        } catch (CoreException e) {
            log.log(e.getStatus());
            return false;
        }
    }
Example 4
private static final Log log = Log.getLog(DatabaseDebugTarget.class);

    public void handleDebugEvent(DBGEvent event) {
        int kind = event.getKind();
        if (DBGEvent.SUSPEND == kind) {
            suspended(event.getDetails());
        }
        if (DBGEvent.TERMINATE == kind) {
            try {
                process.terminate();
            } catch (DebugException e) {
                log.log(e.getStatus());
            }
        }
    }
Example 5
private static final Log log = Log.getLog(DatabaseDebugDetailPane.class);

    public void doSave(IProgressMonitor monitor) {
        IStatusLineManager statusLine = ActionBars.extractStatusLineManager(partSite);
        if (statusLine != null) {
            statusLine.setErrorMessage(null);
        }
        try {
            editor.doSave();
        } catch (CoreException e) {
            if (statusLine != null) {
                statusLine.setErrorMessage(e.getMessage());
            } else {
                log.log(e.getStatus());
            }
        }
    }
Example 6
private static Log log = Log.getLog(DatabaseDebugModelPresentation.class);

    public void computeDetail(IValue value, IValueDetailListener listener) {
        try {
            String valueString = value.getValueString();
            listener.detailComputed(value, valueString);
        } catch (DebugException e) {
            String message = NLS.bind("Unable to compute valie for {0}", value);
            IStatus status = DebugUtils.newErrorStatus(message, e);
            log.log(status);
            listener.detailComputed(value, e.getMessage());
        }
    }