Search in sources :

Example 1 with NLS

use of org.eclipse.osgi.util.NLS in project linuxtools by eclipse.

the class AbstractTest method buildProject.

protected void buildProject(IProject proj) throws CoreException {
    IWorkspace wsp = ResourcesPlugin.getWorkspace();
    final IProject curProject = proj;
    ISchedulingRule rule = wsp.getRuleFactory().buildRule();
    Job buildJob = new // $NON-NLS-1$
    Job(// $NON-NLS-1$
    "project build job") {

        @Override
        protected IStatus run(IProgressMonitor monitor) {
            try {
                curProject.build(IncrementalProjectBuilder.FULL_BUILD, null);
            } catch (CoreException e) {
                fail(e.getStatus().getMessage());
            } catch (OperationCanceledException e) {
                fail(NLS.bind(Messages.getString("AbstractTest.Build_cancelled"), curProject.getName(), // $NON-NLS-1$
                e.getMessage()));
            }
            return Status.OK_STATUS;
        }
    };
    buildJob.setRule(rule);
    buildJob.schedule();
    try {
        buildJob.join();
    } catch (InterruptedException e) {
        fail(NLS.bind(Messages.getString("AbstractTest.Build_interrupted"), curProject.getName(), // $NON-NLS-1$
        e.getMessage()));
    }
    IStatus status = buildJob.getResult();
    if (status.getCode() != IStatus.OK) {
        fail(NLS.bind(Messages.getString("AbstractTest.Build_failed"), curProject.getName(), // $NON-NLS-1$
        status.getMessage()));
    }
    IWorkspaceRunnable runnable = monitor -> curProject.refreshLocal(IResource.DEPTH_INFINITE, null);
    wsp.run(runnable, wsp.getRoot(), IWorkspace.AVOID_UPDATE, null);
}
Also used : DebugPlugin(org.eclipse.debug.core.DebugPlugin) URL(java.net.URL) URISyntaxException(java.net.URISyntaxException) LocalFile(org.eclipse.core.internal.filesystem.local.LocalFile) CoreException(org.eclipse.core.runtime.CoreException) CProjectHelper(org.eclipse.linuxtools.internal.profiling.tests.CProjectHelper) ILaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration) IncrementalProjectBuilder(org.eclipse.core.resources.IncrementalProjectBuilder) ManagedCProjectNature(org.eclipse.cdt.managedbuilder.core.ManagedCProjectNature) IStatus(org.eclipse.core.runtime.IStatus) OperationCanceledException(org.eclipse.core.runtime.OperationCanceledException) IPath(org.eclipse.core.runtime.IPath) IOverwriteQuery(org.eclipse.ui.dialogs.IOverwriteQuery) Assert.fail(org.junit.Assert.fail) URI(java.net.URI) Bundle(org.osgi.framework.Bundle) EFS(org.eclipse.core.filesystem.EFS) ISchedulingRule(org.eclipse.core.runtime.jobs.ISchedulingRule) ImportOperation(org.eclipse.ui.wizards.datatransfer.ImportOperation) NLS(org.eclipse.osgi.util.NLS) Status(org.eclipse.core.runtime.Status) IBinary(org.eclipse.cdt.core.model.IBinary) EFSExtensionManager(org.eclipse.cdt.utils.EFSExtensionManager) ILaunchConfigurationType(org.eclipse.debug.core.ILaunchConfigurationType) ILaunchManager(org.eclipse.debug.core.ILaunchManager) InvocationTargetException(java.lang.reflect.InvocationTargetException) IProgressMonitor(org.eclipse.core.runtime.IProgressMonitor) IWorkspaceDescription(org.eclipse.core.resources.IWorkspaceDescription) ScannerConfigNature(org.eclipse.cdt.build.core.scannerconfig.ScannerConfigNature) Path(org.eclipse.core.runtime.Path) IWorkspaceRunnable(org.eclipse.core.resources.IWorkspaceRunnable) ResourcesPlugin(org.eclipse.core.resources.ResourcesPlugin) FileSystemStructureProvider(org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider) IWorkspaceRoot(org.eclipse.core.resources.IWorkspaceRoot) CCorePlugin(org.eclipse.cdt.core.CCorePlugin) IProject(org.eclipse.core.resources.IProject) IWorkspace(org.eclipse.core.resources.IWorkspace) ICProject(org.eclipse.cdt.core.model.ICProject) IFileStore(org.eclipse.core.filesystem.IFileStore) Job(org.eclipse.core.runtime.jobs.Job) Assert.assertNotNull(org.junit.Assert.assertNotNull) Assert.assertTrue(org.junit.Assert.assertTrue) IOException(java.io.IOException) ILaunchConfigurationWorkingCopy(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) File(java.io.File) IDebugUIConstants(org.eclipse.debug.ui.IDebugUIConstants) FileLocator(org.eclipse.core.runtime.FileLocator) ICDTLaunchConfigurationConstants(org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants) IIndexManager(org.eclipse.cdt.core.index.IIndexManager) NullProgressMonitor(org.eclipse.core.runtime.NullProgressMonitor) IProjectDescription(org.eclipse.core.resources.IProjectDescription) IResource(org.eclipse.core.resources.IResource) IWorkspaceRunnable(org.eclipse.core.resources.IWorkspaceRunnable) IProgressMonitor(org.eclipse.core.runtime.IProgressMonitor) IStatus(org.eclipse.core.runtime.IStatus) CoreException(org.eclipse.core.runtime.CoreException) IWorkspace(org.eclipse.core.resources.IWorkspace) OperationCanceledException(org.eclipse.core.runtime.OperationCanceledException) Job(org.eclipse.core.runtime.jobs.Job) IProject(org.eclipse.core.resources.IProject) ISchedulingRule(org.eclipse.core.runtime.jobs.ISchedulingRule)

Example 2 with NLS

use of org.eclipse.osgi.util.NLS in project linuxtools by eclipse.

the class ValgrindOptionsTab method createErrorOptions.

private void createErrorOptions(Composite top) {
    Group errorGroup = new Group(top, SWT.NONE);
    errorGroup.setLayout(new GridLayout());
    errorGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    // $NON-NLS-1$
    errorGroup.setText(Messages.getString("ValgrindOptionsTab.Error_Options"));
    Composite errorTop = new Composite(errorGroup, SWT.NONE);
    errorTop.setLayout(new GridLayout(2, true));
    errorTop.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    demangleButton = new Button(errorTop, SWT.CHECK);
    // $NON-NLS-1$
    demangleButton.setText(Messages.getString("ValgrindOptionsTab.demangle"));
    demangleButton.addSelectionListener(selectListener);
    demangleButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Composite numCallersTop = new Composite(errorTop, SWT.NONE);
    numCallersTop.setLayout(new GridLayout(2, false));
    Label numCallersLabel = new Label(numCallersTop, SWT.NONE);
    // $NON-NLS-1$
    numCallersLabel.setText(Messages.getString("ValgrindOptionsTab.num_callers"));
    numCallersSpinner = new Spinner(numCallersTop, SWT.BORDER);
    numCallersSpinner.setMaximum(50);
    numCallersSpinner.addModifyListener(modifyListener);
    numCallersSpinner.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    errorLimitButton = new Button(errorTop, SWT.CHECK);
    // $NON-NLS-1$
    errorLimitButton.setText(Messages.getString("ValgrindOptionsTab.limit_errors"));
    errorLimitButton.addSelectionListener(selectListener);
    errorLimitButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    showBelowMainButton = new Button(errorTop, SWT.CHECK);
    // $NON-NLS-1$
    showBelowMainButton.setText(Messages.getString("ValgrindOptionsTab.show_errors_below_main"));
    showBelowMainButton.addSelectionListener(selectListener);
    showBelowMainButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Composite maxStackFrameTop = new Composite(errorTop, SWT.NONE);
    maxStackFrameTop.setLayout(new GridLayout(2, false));
    Label maxStackFrameLabel = new Label(maxStackFrameTop, SWT.NONE);
    // $NON-NLS-1$
    maxStackFrameLabel.setText(Messages.getString("ValgrindOptionsTab.max_size_of_stack_frame"));
    maxStackFrameSpinner = new Spinner(maxStackFrameTop, SWT.BORDER);
    maxStackFrameSpinner.setMaximum(Integer.MAX_VALUE);
    maxStackFrameSpinner.addModifyListener(modifyListener);
    maxStackFrameSpinner.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    // Option only visible for valgrind > 3.4.0
    mainStackSizeTop = new Composite(errorTop, SWT.NONE);
    GridLayout mainStackSizeLayout = new GridLayout(2, false);
    mainStackSizeLayout.marginHeight = mainStackSizeLayout.marginWidth = 0;
    mainStackSizeTop.setLayout(mainStackSizeLayout);
    mainStackSizeButton = new Button(mainStackSizeTop, SWT.CHECK);
    // $NON-NLS-1$
    mainStackSizeButton.setText(Messages.getString("ValgrindOptionsTab.Main_stack_size"));
    mainStackSizeButton.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> {
        checkMainStackEnablement();
        updateLaunchConfigurationDialog();
    }));
    mainStackSizeSpinner = new Spinner(mainStackSizeTop, SWT.BORDER);
    mainStackSizeSpinner.setMaximum(Integer.MAX_VALUE);
    mainStackSizeSpinner.addModifyListener(modifyListener);
    mainStackSizeSpinner.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    mainStackSizeTop.setVisible(false);
    // Option only visible for valgrind > 3.6.0
    dSymUtilButton = new Button(errorTop, SWT.CHECK);
    // $NON-NLS-1$
    dSymUtilButton.setText(Messages.getString("ValgrindOptionsTab.dsymutil"));
    dSymUtilButton.addSelectionListener(selectListener);
    dSymUtilButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    dSymUtilButton.setVisible(false);
}
Also used : WorkbenchContentProvider(org.eclipse.ui.model.WorkbenchContentProvider) Arrays(java.util.Arrays) TabFolder(org.eclipse.swt.widgets.TabFolder) ResourcesPlugin(org.eclipse.core.resources.ResourcesPlugin) ConfigUtils(org.eclipse.linuxtools.profiling.launch.ConfigUtils) Image(org.eclipse.swt.graphics.Image) CoreException(org.eclipse.core.runtime.CoreException) Spinner(org.eclipse.swt.widgets.Spinner) IDialogConstants(org.eclipse.jface.dialogs.IDialogConstants) Point(org.eclipse.swt.graphics.Point) ILaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration) IStatus(org.eclipse.core.runtime.IStatus) IProject(org.eclipse.core.resources.IProject) IPath(org.eclipse.core.runtime.IPath) AbstractLaunchConfigurationTab(org.eclipse.debug.ui.AbstractLaunchConfigurationTab) VariablesPlugin(org.eclipse.core.variables.VariablesPlugin) Composite(org.eclipse.swt.widgets.Composite) AbstractUIPlugin(org.eclipse.ui.plugin.AbstractUIPlugin) GridData(org.eclipse.swt.layout.GridData) WorkbenchLabelProvider(org.eclipse.ui.model.WorkbenchLabelProvider) TabItem(org.eclipse.swt.widgets.TabItem) Text(org.eclipse.swt.widgets.Text) Combo(org.eclipse.swt.widgets.Combo) Button(org.eclipse.swt.widgets.Button) NLS(org.eclipse.osgi.util.NLS) FileDialog(org.eclipse.swt.widgets.FileDialog) GridDataFactory(org.eclipse.jface.layout.GridDataFactory) ResourceComparator(org.eclipse.ui.views.navigator.ResourceComparator) Status(org.eclipse.core.runtime.Status) ILaunchConfigurationWorkingCopy(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) Version(org.osgi.framework.Version) Group(org.eclipse.swt.widgets.Group) ModifyListener(org.eclipse.swt.events.ModifyListener) IResource(org.eclipse.core.resources.IResource) SWT(org.eclipse.swt.SWT) List(org.eclipse.swt.widgets.List) IValgrindToolPage(org.eclipse.linuxtools.valgrind.launch.IValgrindToolPage) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) Label(org.eclipse.swt.widgets.Label) Control(org.eclipse.swt.widgets.Control) ElementTreeSelectionDialog(org.eclipse.ui.dialogs.ElementTreeSelectionDialog) SelectionListener(org.eclipse.swt.events.SelectionListener) GridLayout(org.eclipse.swt.layout.GridLayout) Group(org.eclipse.swt.widgets.Group) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) Button(org.eclipse.swt.widgets.Button) Spinner(org.eclipse.swt.widgets.Spinner) GridData(org.eclipse.swt.layout.GridData) Label(org.eclipse.swt.widgets.Label)

Example 3 with NLS

use of org.eclipse.osgi.util.NLS in project linuxtools by eclipse.

the class AbstractRegistry method retrieveTagsFromRegistryV1.

/**
 * Retrieves the list of tags for a given repository, assuming that the
 * target registry is a registry v2 instance.
 *
 * @param client
 *            the client to use
 * @param repository
 *            the repository to look-up
 * @return the list of tags for the given repository
 * @throws CancellationException
 *             - if the computation was cancelled
 * @throws ExecutionException
 *             - if the computation threw an exception
 * @throws InterruptedException
 *             - if the current thread was interrupted while waiting
 */
private List<IRepositoryTag> retrieveTagsFromRegistryV1(final Client client, final String repository) throws InterruptedException, ExecutionException {
    final GenericType<Map<String, String>> REPOSITORY_TAGS_RESULT_LIST = new GenericType<Map<String, String>>() {
    };
    final WebTarget queryTagsResource = client.target(getHTTPServerAddress()).path(// $NON-NLS-1$
    "v1").path("repositories").path(repository).path(// $NON-NLS-1$ //$NON-NLS-2$
    "tags");
    return queryTagsResource.request(APPLICATION_JSON_TYPE).async().method(GET, REPOSITORY_TAGS_RESULT_LIST).get().entrySet().stream().map(e -> new RepositoryTag(e.getKey(), e.getValue())).collect(Collectors.toList());
}
Also used : GET(javax.ws.rs.HttpMethod.GET) ClientConfig(org.glassfish.jersey.client.ClientConfig) Client(javax.ws.rs.client.Client) TimeoutException(java.util.concurrent.TimeoutException) ArrayList(java.util.ArrayList) RepositoryTag(org.eclipse.linuxtools.internal.docker.core.RepositoryTag) ClientBuilder(javax.ws.rs.client.ClientBuilder) ImageSearchResultV1(org.eclipse.linuxtools.internal.docker.core.ImageSearchResultV1) Map(java.util.Map) Status(javax.ws.rs.core.Response.Status) ObjectMapperProvider(com.spotify.docker.client.ObjectMapperProvider) CancellationException(java.util.concurrent.CancellationException) NLS(org.eclipse.osgi.util.NLS) JacksonFeature(org.glassfish.jersey.jackson.JacksonFeature) Collectors(java.util.stream.Collectors) ImageSearchResultV2(org.eclipse.linuxtools.internal.docker.core.ImageSearchResultV2) BearerTokenResponse(org.eclipse.linuxtools.internal.docker.core.OAuth2Utils.BearerTokenResponse) ExecutionException(java.util.concurrent.ExecutionException) TimeUnit(java.util.concurrent.TimeUnit) GenericType(javax.ws.rs.core.GenericType) List(java.util.List) ImageSearchResult(com.spotify.docker.client.messages.ImageSearchResult) Response(javax.ws.rs.core.Response) DockerImageSearchResult(org.eclipse.linuxtools.internal.docker.core.DockerImageSearchResult) RepositoryTagV2(org.eclipse.linuxtools.internal.docker.core.RepositoryTagV2) APPLICATION_JSON_TYPE(javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE) WebTarget(javax.ws.rs.client.WebTarget) OAuth2Utils(org.eclipse.linuxtools.internal.docker.core.OAuth2Utils) GenericType(javax.ws.rs.core.GenericType) RepositoryTag(org.eclipse.linuxtools.internal.docker.core.RepositoryTag) WebTarget(javax.ws.rs.client.WebTarget) Map(java.util.Map)

Example 4 with NLS

use of org.eclipse.osgi.util.NLS in project linuxtools by eclipse.

the class AbstractRegistry method getImages.

@Override
public List<IDockerImageSearchResult> getImages(String term) throws DockerException {
    final Client client = ClientBuilder.newClient(DEFAULT_CONFIG);
    List<IDockerImageSearchResult> result = new ArrayList<>();
    WebTarget queryImagesResource;
    if (isVersion2()) {
        final GenericType<ImageSearchResultV2> IMAGE_SEARCH_RESULT_LIST = new GenericType<ImageSearchResultV2>() {
        };
        ImageSearchResultV2 cisr = null;
        queryImagesResource = client.target(getHTTPServerAddress()).path("v2").path(// $NON-NLS-1$ //$NON-NLS-2$
        "_catalog");
        try {
            cisr = queryImagesResource.request(APPLICATION_JSON_TYPE).async().method(GET, IMAGE_SEARCH_RESULT_LIST).get();
        } catch (InterruptedException | ExecutionException e) {
            throw new DockerException(e);
        }
        List<ImageSearchResult> tmp = cisr.getRepositories().stream().filter(e -> e.name().contains(term)).collect(Collectors.toList());
        result.addAll(tmp.stream().map(r -> new DockerImageSearchResult(r.description(), r.official(), r.automated(), r.name(), r.starCount())).collect(Collectors.toList()));
    } else {
        ImageSearchResultV1 pisr = null;
        final GenericType<ImageSearchResultV1> IMAGE_SEARCH_RESULT_LIST = new GenericType<ImageSearchResultV1>() {
        };
        int page = 0;
        try {
            while (pisr == null || pisr.getPage() < pisr.getTotalPages()) {
                page++;
                queryImagesResource = client.target(getHTTPServerAddress()).path("v1").path(// $NON-NLS-1$ //$NON-NLS-2$
                "search").queryParam("q", // $NON-NLS-1$
                term).queryParam("page", // $NON-NLS-1$
                page);
                pisr = queryImagesResource.request(APPLICATION_JSON_TYPE).async().method(GET, IMAGE_SEARCH_RESULT_LIST).get();
                List<ImageSearchResult> tmp = pisr.getResult();
                result.addAll(tmp.stream().map(r -> new DockerImageSearchResult(r.description(), r.official(), r.automated(), r.name(), r.starCount())).collect(Collectors.toList()));
            }
        } catch (InterruptedException | ExecutionException e) {
            throw new DockerException(e);
        }
    }
    return result;
}
Also used : GET(javax.ws.rs.HttpMethod.GET) ClientConfig(org.glassfish.jersey.client.ClientConfig) Client(javax.ws.rs.client.Client) TimeoutException(java.util.concurrent.TimeoutException) ArrayList(java.util.ArrayList) RepositoryTag(org.eclipse.linuxtools.internal.docker.core.RepositoryTag) ClientBuilder(javax.ws.rs.client.ClientBuilder) ImageSearchResultV1(org.eclipse.linuxtools.internal.docker.core.ImageSearchResultV1) Map(java.util.Map) Status(javax.ws.rs.core.Response.Status) ObjectMapperProvider(com.spotify.docker.client.ObjectMapperProvider) CancellationException(java.util.concurrent.CancellationException) NLS(org.eclipse.osgi.util.NLS) JacksonFeature(org.glassfish.jersey.jackson.JacksonFeature) Collectors(java.util.stream.Collectors) ImageSearchResultV2(org.eclipse.linuxtools.internal.docker.core.ImageSearchResultV2) BearerTokenResponse(org.eclipse.linuxtools.internal.docker.core.OAuth2Utils.BearerTokenResponse) ExecutionException(java.util.concurrent.ExecutionException) TimeUnit(java.util.concurrent.TimeUnit) GenericType(javax.ws.rs.core.GenericType) List(java.util.List) ImageSearchResult(com.spotify.docker.client.messages.ImageSearchResult) Response(javax.ws.rs.core.Response) DockerImageSearchResult(org.eclipse.linuxtools.internal.docker.core.DockerImageSearchResult) RepositoryTagV2(org.eclipse.linuxtools.internal.docker.core.RepositoryTagV2) APPLICATION_JSON_TYPE(javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE) WebTarget(javax.ws.rs.client.WebTarget) OAuth2Utils(org.eclipse.linuxtools.internal.docker.core.OAuth2Utils) ImageSearchResultV2(org.eclipse.linuxtools.internal.docker.core.ImageSearchResultV2) GenericType(javax.ws.rs.core.GenericType) ImageSearchResultV1(org.eclipse.linuxtools.internal.docker.core.ImageSearchResultV1) ArrayList(java.util.ArrayList) ImageSearchResult(com.spotify.docker.client.messages.ImageSearchResult) DockerImageSearchResult(org.eclipse.linuxtools.internal.docker.core.DockerImageSearchResult) DockerImageSearchResult(org.eclipse.linuxtools.internal.docker.core.DockerImageSearchResult) WebTarget(javax.ws.rs.client.WebTarget) Client(javax.ws.rs.client.Client) ExecutionException(java.util.concurrent.ExecutionException)

Example 5 with NLS

use of org.eclipse.osgi.util.NLS in project rt.equinox.framework by eclipse.

the class BundleContextImpl method getService.

/**
 * Get a service's service object.
 * Retrieves the service object for a service.
 * A bundle's use of a service is tracked by a
 * use count. Each time a service's service object is returned by
 * {@link #getService}, the context bundle's use count for the service
 * is incremented by one. Each time the service is release by
 * {@link #ungetService}, the context bundle's use count
 * for the service is decremented by one.
 * When a bundle's use count for a service
 * drops to zero, the bundle should no longer use the service.
 * See {@link #getBundle()} for a definition of context bundle.
 *
 * <p>This method will always return <code>null</code> when the
 * service associated with this reference has been unregistered.
 *
 * <p>The following steps are followed to get the service object:
 * <ol>
 * <li>If the service has been unregistered,
 * <code>null</code> is returned.
 * <li>The context bundle's use count for this service is incremented by one.
 * <li>If the context bundle's use count for the service is now one and
 * the service was registered with a {@link ServiceFactory},
 * the {@link ServiceFactory#getService ServiceFactory.getService} method
 * is called to create a service object for the context bundle.
 * This service object is cached by the framework.
 * While the context bundle's use count for the service is greater than zero,
 * subsequent calls to get the services's service object for the context bundle
 * will return the cached service object.
 * <br>If the service object returned by the {@link ServiceFactory}
 * is not an <code>instanceof</code>
 * all the classes named when the service was registered or
 * the {@link ServiceFactory} throws an exception,
 * <code>null</code> is returned and a
 * {@link FrameworkEvent} of type {@link FrameworkEvent#ERROR} is broadcast.
 * <li>The service object for the service is returned.
 * </ol>
 *
 * @param reference A reference to the service whose service object is desired.
 * @return A service object for the service associated with this
 * reference, or <code>null</code> if the service is not registered.
 * @exception java.lang.SecurityException If the caller does not have
 * {@link ServicePermission} permission to "get" the service
 * using at least one of the named classes the service was registered under
 * and the Java runtime environment supports permissions.
 * @exception java.lang.IllegalStateException
 * If the bundle context has stopped.
 * @see #ungetService
 * @see ServiceFactory
 */
public <S> S getService(ServiceReference<S> reference) {
    checkValid();
    if (reference == null)
        // $NON-NLS-1$
        throw new NullPointerException("A null service reference is not allowed.");
    provisionServicesInUseMap();
    S service = container.getServiceRegistry().getService(this, (ServiceReferenceImpl<S>) reference);
    return service;
}
Also used : NLS(org.eclipse.osgi.util.NLS)

Aggregations

NLS (org.eclipse.osgi.util.NLS)17 CoreException (org.eclipse.core.runtime.CoreException)10 ILaunchConfiguration (org.eclipse.debug.core.ILaunchConfiguration)8 IPath (org.eclipse.core.runtime.IPath)7 SWT (org.eclipse.swt.SWT)7 SelectionListener (org.eclipse.swt.events.SelectionListener)7 GridData (org.eclipse.swt.layout.GridData)7 GridLayout (org.eclipse.swt.layout.GridLayout)7 Button (org.eclipse.swt.widgets.Button)7 Composite (org.eclipse.swt.widgets.Composite)7 Label (org.eclipse.swt.widgets.Label)7 Text (org.eclipse.swt.widgets.Text)7 IResource (org.eclipse.core.resources.IResource)6 ResourcesPlugin (org.eclipse.core.resources.ResourcesPlugin)6 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)6 IStatus (org.eclipse.core.runtime.IStatus)5 Path (org.eclipse.core.runtime.Path)5 Status (org.eclipse.core.runtime.Status)5 File (java.io.File)4 IProject (org.eclipse.core.resources.IProject)4