Example usage for org.springframework.ide.eclipse.core SpringCoreUtils getProjectBuilderCommand

List of usage examples for org.springframework.ide.eclipse.core SpringCoreUtils getProjectBuilderCommand

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.core SpringCoreUtils getProjectBuilderCommand.

Prototype

public static ICommand getProjectBuilderCommand(IProjectDescription description, String builderID)
        throws CoreException 

Source Link

Document

Returns specified builder from given project description.

Usage

From source file:org.eclipse.virgo.ide.bundlor.ui.BundlorUiPlugin.java

public static boolean isBundlorBuilderEnabled(IResource resource) {
    if (resource != null) {
        try {/*ww w  .  j  a  va  2s .c om*/
            ICommand command = SpringCoreUtils.getProjectBuilderCommand(resource.getProject().getDescription(),
                    BundlorCorePlugin.BUILDER_ID);
            return command != null && command.isBuilding(IncrementalProjectBuilder.FULL_BUILD);
        } catch (CoreException e) {
        }
    }
    return false;
}

From source file:org.eclipse.virgo.ide.ui.editors.BundleOverviewPage.java

private boolean isBundlorBuilderEnabled() {
    if (resource != null) {
        try {/*from  w  ww. ja  va  2  s. c  om*/
            ICommand command = SpringCoreUtils.getProjectBuilderCommand(resource.getProject().getDescription(),
                    BundlorCorePlugin.BUILDER_ID);
            return command != null && command.isBuilding(IncrementalProjectBuilder.FULL_BUILD);
        } catch (CoreException e) {
        }
    }
    return false;
}