Skip to main content
summaryrefslogtreecommitdiffstats
blob: cfb80fe792a6ef4758a1d10de2128d8e30d72982 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************************
 * Copyright (c) 2003, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jst.j2ee.internal.dialogs;



import org.eclipse.jst.j2ee.internal.actions.IJ2EEUIContextIds;
import org.eclipse.jst.j2ee.internal.delete.DeleteOptions;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;


public class DeleteModuleDialog extends J2EEDeleteDialog implements J2EEDeleteUIConstants {

	protected DeleteModuleComposite deleteComposite;

	public DeleteModuleDialog(Shell parentShell) {
		super(parentShell, DELETE_MODULE_OPTIONS);
	}

	protected Control createCustomArea(Composite parent) {
		PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IJ2EEUIContextIds.DELEATE_MODULE_DIALOG_1); //$NON-NLS-1$
		deleteComposite = new DeleteModuleComposite(parent, SWT.NONE);
		GridData data = new GridData(GridData.FILL_BOTH);
		data.horizontalIndent = 10;
		deleteComposite.setLayoutData(data);
		return deleteComposite;
	}

	public void createDeleteOptions() {
		deleteOptions = new DeleteOptions();
		deleteOptions.setDeleteProjects(deleteComposite.shouldDeleteProjects());
		deleteOptions.setDeleteModules(deleteComposite.shouldDeleteModules());
		deleteOptions.setDeleteModuleDependencies(deleteComposite.shouldDeleteModuleDependencies());
	}

}

Back to the top