Java Code Examples for org.eclipse.ui.internal.ide.IDEWorkbenchMessages#DeleteResourceAction_text

The following examples show how to use org.eclipse.ui.internal.ide.IDEWorkbenchMessages#DeleteResourceAction_text . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DeleteResourceAndCloseEditorAction.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new delete resource action.
 * @param shell
 *            the shell for any dialogs
 * @deprecated Should take an IShellProvider, see {@link #DeleteResourceAction(IShellProvider)}
 */
public DeleteResourceAndCloseEditorAction(final Shell shell) {
	super(IDEWorkbenchMessages.DeleteResourceAction_text);
	Assert.isNotNull(shell);
	initAction();
	setShellProvider(new IShellProvider() {
		public Shell getShell() {
			return shell;
		}
	});
}
 
Example 2
Source File: DeleteResourceAndCloseEditorAction.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new delete resource action.
 * @param provider
 *            the shell provider to use. Must not be <code>null</code>.
 * @since 3.4
 */
public DeleteResourceAndCloseEditorAction(IShellProvider provider) {
	super(IDEWorkbenchMessages.DeleteResourceAction_text);
	Assert.isNotNull(provider);
	initAction();
	setShellProvider(provider);
}
 
Example 3
Source File: DeleteResourceAndCloseEditorAction.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new delete resource action.
 * @param shell
 *            the shell for any dialogs
 * @deprecated Should take an IShellProvider, see {@link #DeleteResourceAction(IShellProvider)}
 */
public DeleteResourceAndCloseEditorAction(final Shell shell) {
	super(IDEWorkbenchMessages.DeleteResourceAction_text);
	Assert.isNotNull(shell);
	initAction();
	setShellProvider(new IShellProvider() {
		public Shell getShell() {
			return shell;
		}
	});
}
 
Example 4
Source File: DeleteResourceAndCloseEditorAction.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new delete resource action.
 * @param provider
 *            the shell provider to use. Must not be <code>null</code>.
 * @since 3.4
 */
public DeleteResourceAndCloseEditorAction(IShellProvider provider) {
	super(IDEWorkbenchMessages.DeleteResourceAction_text);
	Assert.isNotNull(provider);
	initAction();
	setShellProvider(provider);
}
 
Example 5
Source File: DeleteResourceAction.java    From gama with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Creates a new delete resource action.
 *
 * @param provider
 *            the shell provider to use. Must not be <code>null</code>.
 * @since 3.4
 */
public DeleteResourceAction(final IShellProvider provider) {
	super(IDEWorkbenchMessages.DeleteResourceAction_text);
	Assert.isNotNull(provider);
	initAction();
	// setShellProvider(provider);
}