Eclipse pluginノート
2211 ワード
wizard.setNeedsProgressMonitor(true);
WizardDialog wizardDialog = new WizardDialogAutoDAOLocation(shell, wizard, 600, 650); //$NON-NLS-1$
wizardDialog.setMinimumPageSize(500, 550);
wizardDialog.open();
構造関数WizardDialogAutoDAOLocationの2番目のパラメータタイプはorgである.eclipse.jface.wizard.IWizard import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class LayoutExample {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
// Create the layout.
RowLayout layout = new RowLayout();
// Optionally set layout fields.
layout.wrap = true;
// Set the layout into the composite.
shell.setLayout(layout);
// Create the children of the composite.
new Button(shell, SWT.PUSH).setText("B1");
new Button(shell, SWT.PUSH).setText("Wide Button 2");
new Button(shell, SWT.PUSH).setText("Button 3");
shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
}
}
org.eclipse.core.resources.IResource resource = javaProject
.getProject().getFolder(srcFolder);
resource.refreshLocal(IResource.DEPTH_INFINITE,
new NullProgressMonitor());