Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2025 IBM Corporation and others.
* Copyright (c) 2025, 2026 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -32,6 +32,7 @@
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.swt.dnd.TextTransfer;
import org.eclipse.swt.graphics.Image;
Expand Down Expand Up @@ -178,6 +179,7 @@ protected Object prepareInput(IProgressMonitor monitor)

}
};
compareInput.setTitle(NLS.bind(CompareMessages.CompareWithClipboardTitle, fileName));
CompareUI.openCompareEditor(compareInput);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2015 IBM Corporation and others.
* Copyright (c) 2000, 2026 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -132,6 +132,7 @@ private CompareMessages() {
public static String CompareStructureViewerSwitchingPane_discoveredLabel;

public static String ReaderCreator_fileIsNotAccessible;
public static String CompareWithClipboardTitle;

static {
NLS.initializeMessages(BUNDLE_NAME, CompareMessages.class);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2000, 2019 IBM Corporation and others.
# Copyright (c) 2000, 2026 IBM Corporation and others.
#
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -146,3 +146,5 @@ CompareStructureViewerSwitchingPane_switchButtonTooltip=Switch Structure Compare
CompareStructureViewerSwitchingPane_discoveredLabel={0} Structure Compare

ReaderCreator_fileIsNotAccessible=Cannot create a reader because the file is inaccessible.

CompareWithClipboardTitle=Compare {0} and Clipboard
Loading