org.eclipse.jdt.ui.wizards.NewInterfaceWizardPage Java Examples

The following examples show how to use org.eclipse.jdt.ui.wizards.NewInterfaceWizardPage. 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: CreateJavaTypeQuickfixes.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
protected void newJavaInterfaceQuickfix(final String typeName, final String explicitPackage, final XtextResource resource, Issue issue,
		IssueResolutionAcceptor issueResolutionAcceptor) {
	String packageDescription = getPackageDescription(explicitPackage);
	issueResolutionAcceptor.accept(issue, "Create Java interface '" + typeName + "'" + packageDescription,
			"Opens the new Java interface wizard to create the type '" + typeName + "'" + packageDescription,
			"java_interface.gif", new IModification() {
				@Override
				public void apply(/* @Nullable */ IModificationContext context) throws Exception {
					runAsyncInDisplayThread(new Runnable() {
						@Override
						public void run() {
							NewInterfaceWizardPage classWizardPage = new NewInterfaceWizardPage();
							NewInterfaceCreationWizard wizard = new NewInterfaceCreationWizard(classWizardPage, true);
							WizardDialog dialog = createWizardDialog(wizard);
							configureWizardPage(classWizardPage, resource.getURI(), typeName, explicitPackage);
							dialog.open();
						}
					});
				}
			});
}
 
Example #2
Source File: NewInterfaceCreationWizard.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
public NewInterfaceCreationWizard(NewInterfaceWizardPage page, boolean openEditorOnFinish) {
	setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_NEWINT);
	setDialogSettings(JavaPlugin.getDefault().getDialogSettings());
	setWindowTitle(NewWizardMessages.NewInterfaceCreationWizard_title);

	fPage= page;
	fOpenEditorOnFinish= openEditorOnFinish;
}
 
Example #3
Source File: NewAsyncRemoteServiceInterfaceCreationWizard.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 4 votes vote down vote up
public NewAsyncRemoteServiceInterfaceCreationWizard(NewInterfaceWizardPage page,
    boolean openEditorOnFinish) {
  super(page, openEditorOnFinish);
}
 
Example #4
Source File: OpenNewInterfaceWizardAction.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Sets a page to be used by the wizard or <code>null</code> to use a page initialized with values
 * from the current selection (see {@link #getSelection()} and {@link #setSelection(IStructuredSelection)}).
 * @param page the page to use or <code>null</code>
 */
public void setConfiguredWizardPage(NewInterfaceWizardPage page) {
	fPage= page;
}