Example usage for org.springframework.ide.eclipse.boot.dash BootDashActivator log

List of usage examples for org.springframework.ide.eclipse.boot.dash BootDashActivator log

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.dash BootDashActivator log.

Prototype

@Deprecated
public static void log(Throwable e) 

Source Link

Document

Deprecated.

Usage

From source file:org.springframework.ide.eclipse.boot.dash.cloudfoundry.CloudAppDashElement.java

public void log(String message, LogType logType) {
    try {/*from   w w  w  .  j a  va  2  s  .  c  o  m*/
        getCloudModel().getElementConsoleManager().writeToConsole(this, message, logType);
    } catch (Exception e) {
        BootDashActivator.log(e);
    }
}

From source file:org.springframework.ide.eclipse.boot.dash.cloudfoundry.CloudAppDashElement.java

public IFile getDeploymentManifestFile() {
    String text = getPersistentProperties().get(DEPLOYMENT_MANIFEST_FILE_PATH);
    try {//from   w w w .  j  av  a 2s. com
        return text == null ? null : ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(text));
    } catch (IllegalArgumentException e) {
        BootDashActivator.log(e);
        return null;
    }
}

From source file:org.springframework.ide.eclipse.boot.dash.cloudfoundry.CloudAppDashElement.java

public void setDeploymentManifestFile(IFile file) {
    try {//ww w.  j a  v  a2s  .c  om
        if (file == null) {
            getPersistentProperties().put(DEPLOYMENT_MANIFEST_FILE_PATH, (String) null);
        } else {
            getPersistentProperties().put(DEPLOYMENT_MANIFEST_FILE_PATH, file.getFullPath().toString());
        }
    } catch (Exception e) {
        BootDashActivator.log(e);
    }
}

From source file:org.springframework.ide.eclipse.boot.dash.cloudfoundry.ApplicationManifestHandler.java

/**
 *
 * @param applicationName/*from w  w  w.  jav  a  2 s  .co m*/
 *            name of application to lookup in the manifest file.
 * @param propertyName
 *            String value property to retrieve from manifest for given
 *            application entry.
 * @return Value of property, or null if not found, or entry for application
 *         in manifest does not exist.
 */
public String getApplicationProperty(String appName, String propertyName, IProgressMonitor monitor) {
    try {
        Map<?, ?> appMap = getApplicationMap(appName, monitor);
        if (appMap != null) {
            return getStringValue(appMap, propertyName);
        }
    } catch (Exception e) {
        BootDashActivator.log(e);
    }
    return null;
}

From source file:org.springframework.ide.eclipse.boot.dash.model.LaunchConfDashElement.java

@Override
public void delete(UserInteractions ui) {
    try {//  w  ww .  j av a  2  s .  c  om
        delegate.delete();
    } catch (Exception e) {
        BootDashActivator.log(e);
        ui.errorPopup("Could not delete: '" + getName() + "'", ExceptionUtil.getMessage(e));
    }
}