/* * SonarLint for Eclipse * Copyright (C) 2015-2017 SonarSource SA * sonarlint@sonarsource.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ package org.sonarlint.eclipse.ui.internal.views.issues; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.RowLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; import org.sonarlint.eclipse.ui.internal.SonarLintUiPlugin; public class IssuesView extends MarkerViewWithBottomPanel { public static final String ID = SonarLintUiPlugin.PLUGIN_ID + ".views.issues.IssuesView"; public IssuesView() { super(SonarLintUiPlugin.PLUGIN_ID + ".views.issues.issueMarkerGenerator"); } @Override protected void populateBottomPanel(Composite bottom) { RowLayout bottomLayout = new RowLayout(); bottomLayout.center = true; bottom.setLayout(bottomLayout); GridData bottomLayoutData = new GridData(SWT.FILL, SWT.FILL, true, false); bottom.setLayoutData(bottomLayoutData); Label label = new Label(bottom, SWT.NONE); label.setText("Issues reported \"on the fly\" by SonarLint on files you have recently opened/edited"); } }