*/
public class ProjectView extends TmfView {
- public static final String ID = "org.eclipse.linuxtools.tmf.ui.views.project";
+ public static final String ID = "org.eclipse.linuxtools.tmf.ui.views.project"; //$NON-NLS-1$
// ------------------------------------------------------------------------
// Main data structures
static public IFile createLink(URI uri) throws CoreException {
IFolder folder = getActiveProjectTracesFolder();
if (folder == null || !folder.exists()) {
- throw new CoreException(new Status(Status.ERROR, TmfUiPlugin.PLUGIN_ID,
- "No active project set"));
+ throw new CoreException(new Status(Status.ERROR, TmfUiPlugin.PLUGIN_ID, "No active project set"));
}
String path = uri.getPath();
// TODO: support duplicate file names
// ------------------------------------------------------------------------
public ProjectView() {
- super("Projects");
+ super("Projects"); //$NON-NLS-1$
fWorkspace = ResourcesPlugin.getWorkspace();
try {
// ------------------------------------------------------------------------
@Override
+ @SuppressWarnings("nls")
public String toString() {
return "[ProjectView]";
}
IWorkbenchWindow win = wb.getActiveWorkbenchWindow();
IHandlerService handlerService = (IHandlerService) win.getService(IHandlerService.class);
try {
- handlerService.executeCommand("org.eclipse.linuxtools.tmf.ui.command.project.trace.open", null);
+ handlerService.executeCommand("org.eclipse.linuxtools.tmf.ui.command.project.trace.open", null); //$NON-NLS-1$
} catch (ExecutionException e) {
e.printStackTrace();
} catch (NotDefinedException e) {
// Populated from the plug-in
private void createContextMenu() {
- MenuManager menuManager = new MenuManager("#PopupMenu");
+ MenuManager menuManager = new MenuManager("#PopupMenu"); //$NON-NLS-1$
menuManager.setRemoveAllWhenShown(true);
Menu menu = menuManager.createContextMenu(fViewer.getControl());
fViewer.getControl().setMenu(menu);