本文整理匯總了Java中org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener類的典型用法代碼示例。如果您正苦於以下問題:Java IStatusChangeListener類的具體用法?Java IStatusChangeListener怎麽用?Java IStatusChangeListener使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
IStatusChangeListener類屬於org.eclipse.jdt.internal.ui.wizards包,在下文中一共展示了IStatusChangeListener類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: NewJavaProjectWizardPage
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
/**
* Creates a Java project wizard creation page.
* <p>
* The Java project wizard reads project name and location from the main page.
* </p>
*
* @param root the workspace root
* @param mainpage the main page of the wizard
*/
public NewJavaProjectWizardPage(IWorkspaceRoot root, WizardNewProjectCreationPage mainpage) {
super(PAGE_NAME);
setTitle(NewWizardMessages.NewJavaProjectWizardPage_title);
setDescription(NewWizardMessages.NewJavaProjectWizardPage_description);
fMainPage= mainpage;
IStatusChangeListener listener= new IStatusChangeListener() {
public void statusChanged(IStatus status) {
updateStatus(status);
}
};
fBuildPathsBlock= new BuildPathsBlock(new BusyIndicatorRunnableContext(), listener, 0, false, null);
fProjectModified= true;
fOutputLocation= null;
fClasspathEntries= null;
}
示例2: ComplianceConfigurationBlock
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
public ComplianceConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) {
super(context, project, getKeys(project != null), container);
setDefaultCompilerComplianceValues();
fBlockEnableState= null;
fComplianceFollowsEEControls= new ArrayList<Control>();
fComplianceControls= new ArrayList<Control>();
fComplianceChildControls= new ArrayList<Control>();
fComplianceStatus= new StatusInfo();
fRememberedUserCompliance= new String[] { // caution: order depends on IDX_* constants
getValue(PREF_PB_ASSERT_AS_IDENTIFIER),
getValue(PREF_PB_ENUM_AS_IDENTIFIER),
getValue(PREF_SOURCE_COMPATIBILITY),
getValue(PREF_CODEGEN_TARGET_PLATFORM),
getValue(PREF_COMPLIANCE),
getValue(PREF_CODEGEN_INLINE_JSR_BYTECODE),
getValue(PREF_CODEGEN_METHOD_PARAMETERS_ATTR)
};
}
示例3: NativeLibrariesConfigurationBlock
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
public NativeLibrariesConfigurationBlock(IStatusChangeListener listener, Shell parent, String nativeLibPath, IClasspathEntry parentEntry) {
fListener= listener;
fEntry= parentEntry;
NativeLibrariesAdapter adapter= new NativeLibrariesAdapter();
fPathField= new StringDialogField();
fPathField.setLabelText(NewWizardMessages.NativeLibrariesDialog_location_label);
fPathField.setDialogFieldListener(adapter);
fBrowseWorkspace= new SelectionButtonDialogField(SWT.PUSH);
fBrowseWorkspace.setLabelText(NewWizardMessages.NativeLibrariesDialog_workspace_browse);
fBrowseWorkspace.setDialogFieldListener(adapter);
fBrowseExternal= new SelectionButtonDialogField(SWT.PUSH);
fBrowseExternal.setLabelText(NewWizardMessages.NativeLibrariesDialog_external_browse);
fBrowseExternal.setDialogFieldListener(adapter);
if (nativeLibPath != null) {
fPathField.setText(Path.fromPortableString(nativeLibPath).toString());
fOrginalValue= nativeLibPath;
} else {
fOrginalValue= ""; //$NON-NLS-1$
}
}
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:26,代碼來源:NativeLibrariesConfigurationBlock.java
示例4: ComplianceConfigurationBlock
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
public ComplianceConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) {
super(context, project, getKeys(project != null), container);
setDefaultCompilerComplianceValues();
fBlockEnableState= null;
fComplianceFollowsEEControls= new ArrayList<Control>();
fComplianceControls= new ArrayList<Control>();
fComplianceChildControls= new ArrayList<Control>();
fComplianceStatus= new StatusInfo();
fRememberedUserCompliance= new String[] { // caution: order depends on IDX_* constants
getValue(PREF_PB_ASSERT_AS_IDENTIFIER),
getValue(PREF_PB_ENUM_AS_IDENTIFIER),
getValue(PREF_SOURCE_COMPATIBILITY),
getValue(PREF_CODEGEN_TARGET_PLATFORM),
getValue(PREF_COMPLIANCE),
getValue(PREF_CODEGEN_INLINE_JSR_BYTECODE),
};
}
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion-Juno38,代碼行數:21,代碼來源:ComplianceConfigurationBlock.java
示例5: createDialogArea
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
@Override
protected Control createDialogArea(Composite composite) {
fConfigurationBlock= new ExpandWithConstructorsConfigurationBlock(new IStatusChangeListener() {
public void statusChanged(IStatus status) {
//Do nothing
}
}, null);
GridData data= new GridData(GridData.FILL, GridData.FILL, true, true);
fConfigurationBlockControl= fConfigurationBlock.createContents(composite);
fConfigurationBlockControl.setLayoutData(data);
Dialog.applyDialogFont(composite);
return composite;
}
示例6: TodoTaskConfigurationBlock
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
public TodoTaskConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) {
super(context, project, getKeys(), container);
TaskTagAdapter adapter= new TaskTagAdapter();
String[] buttons= new String[] {
PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_add_button,
PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_edit_button,
PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_remove_button,
null,
PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_setdefault_button,
};
fTodoTasksList= new ListDialogField<TodoTask>(adapter, buttons, new TodoTaskLabelProvider());
fTodoTasksList.setDialogFieldListener(adapter);
fTodoTasksList.setRemoveButtonIndex(IDX_REMOVE);
String[] columnsHeaders= new String[] {
PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_name_column,
PreferencesMessages.TodoTaskConfigurationBlock_markers_tasks_priority_column,
};
fTodoTasksList.setTableColumns(new ListDialogField.ColumnsDescription(columnsHeaders, true));
fTodoTasksList.setViewerComparator(new TodoTaskSorter());
fCaseSensitiveCheckBox= new SelectionButtonDialogField(SWT.CHECK);
fCaseSensitiveCheckBox.setLabelText(PreferencesMessages.TodoTaskConfigurationBlock_casesensitive_label);
fCaseSensitiveCheckBox.setDialogFieldListener(adapter);
unpackTodoTasks();
if (fTodoTasksList.getSize() > 0) {
fTodoTasksList.selectFirstElement();
} else {
fTodoTasksList.enableButton(IDX_EDIT, false);
fTodoTasksList.enableButton(IDX_DEFAULT, false);
}
fTaskTagsStatus= new StatusInfo();
}
示例7: ProblemSeveritiesConfigurationBlock
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
public ProblemSeveritiesConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) {
super(context, project, getKeys(), container);
// Compatibility code for the merge of the two option PB_SIGNAL_PARAMETER:
if (ENABLED.equals(getValue(PREF_PB_SIGNAL_PARAMETER_IN_ABSTRACT))) {
setValue(PREF_PB_SIGNAL_PARAMETER_IN_OVERRIDING, ENABLED);
}
}
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:9,代碼來源:ProblemSeveritiesConfigurationBlock.java
示例8: getNewStatusChangedListener
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
/**
* Returns a new status change listener that calls {@link #setPreferenceContentStatus(IStatus)}
* when the status has changed
* @return The new listener
*/
protected IStatusChangeListener getNewStatusChangedListener() {
return new IStatusChangeListener() {
public void statusChanged(IStatus status) {
setPreferenceContentStatus(status);
}
};
}
示例9: SpellingConfigurationBlock
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
/**
* Creates a new spelling configuration block.
*
* @param context the status change listener
* @param project the Java project
* @param container the preference container
*/
public SpellingConfigurationBlock(final IStatusChangeListener context, final IProject project, IWorkbenchPreferenceContainer container) {
super(context, project, getAllKeys(), container);
IStatus status= validateAbsoluteFilePath(getValue(PREF_SPELLING_USER_DICTIONARY));
if (status.getSeverity() != IStatus.OK)
setValue(PREF_SPELLING_USER_DICTIONARY, ""); //$NON-NLS-1$
status= validateLocale(getValue(PREF_SPELLING_LOCALE));
if (status.getSeverity() != IStatus.OK)
setValue(PREF_SPELLING_LOCALE, SpellCheckEngine.getDefaultLocale().toString());
}
示例10: SourceAttachmentDialog
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
/**
* Creates an instance of the SourceAttachmentDialog. After
* <code>open</code>, the edited paths can be accessed from
* the classpath entry returned by <code>getResult</code>
* @param parent Parent shell for the dialog
* @param entry The entry to edit.
* @param canEditEncoding whether the source attachment encoding can be edited
*/
public SourceAttachmentDialog(Shell parent, IClasspathEntry entry, boolean canEditEncoding) {
super(parent);
IStatusChangeListener listener= new IStatusChangeListener() {
public void statusChanged(IStatus status) {
updateStatus(status);
}
};
fSourceAttachmentBlock= new SourceAttachmentBlock(listener, entry, canEditEncoding);
setTitle(NewWizardMessages.SourceAttachmentDialog_title);
}
示例11: JavadocLocationDialog
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
/**
* Shows the UI for configuring a javadoc location.
* Use {@link org.eclipse.jdt.ui.JavaUI} to access and configure Javadoc locations.
*
* @param parent The parent shell for the dialog.
* @param libraryName Name of of the library to which configured javadoc location belongs.
* @param initialURL The initial URL or <code>null</code>.
*/
public JavadocLocationDialog(Shell parent, String libraryName, URL initialURL) {
super(parent);
IStatusChangeListener listener= new IStatusChangeListener() {
public void statusChanged(IStatus status) {
updateStatus(status);
}
};
setTitle(Messages.format(NewWizardMessages.LibrariesWorkbookPage_JavadocPropertyDialog_title, libraryName));
fJavadocConfigurationBlock= new JavadocConfigurationBlock(parent, listener, initialURL, false);
}
示例12: NativeLibrariesDialog
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
public NativeLibrariesDialog(Shell parent, String nativeLibPath, IClasspathEntry parentEntry) {
super(parent);
setTitle(NewWizardMessages.NativeLibrariesDialog_title);
IStatusChangeListener listener= new IStatusChangeListener() {
public void statusChanged(IStatus status) {
updateStatus(status);
}
};
fConfigurationBlock= new NativeLibrariesConfigurationBlock(listener, parent, nativeLibPath, parentEntry);
setHelpAvailable(false);
}
示例13: NameConventionConfigurationBlock
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
public NameConventionConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) {
super(context, project, getAllKeys(), container);
NameConventionAdapter adapter= new NameConventionAdapter();
String[] buttons= new String[] {
PreferencesMessages.NameConventionConfigurationBlock_list_edit_button
};
fNameConventionList= new ListDialogField<NameConventionEntry>(adapter, buttons, new NameConventionLabelProvider()) {
@Override
protected int getListStyle() {
return super.getListStyle() & ~SWT.MULTI | SWT.SINGLE;
}
};
fNameConventionList.setDialogFieldListener(adapter);
fNameConventionList.setLabelText(PreferencesMessages.NameConventionConfigurationBlock_list_label);
String[] columnsHeaders= new String[] {
PreferencesMessages.NameConventionConfigurationBlock_list_name_column,
PreferencesMessages.NameConventionConfigurationBlock_list_prefix_column,
PreferencesMessages.NameConventionConfigurationBlock_list_suffix_column,
};
ColumnLayoutData[] data= new ColumnLayoutData[] {
new ColumnWeightData(3),
new ColumnWeightData(2),
new ColumnWeightData(2)
};
fNameConventionList.setTableColumns(new ListDialogField.ColumnsDescription(data, columnsHeaders, true));
if (fNameConventionList.getSize() > 0) {
fNameConventionList.selectFirstElement();
} else {
fNameConventionList.enableButton(0, false);
}
fExceptionName= new StringDialogField();
fExceptionName.setDialogFieldListener(adapter);
fExceptionName.setLabelText(PreferencesMessages.NameConventionConfigurationBlock_exceptionname_label);
fUseKeywordThisBox= new SelectionButtonDialogField(SWT.CHECK | SWT.WRAP);
fUseKeywordThisBox.setDialogFieldListener(adapter);
fUseKeywordThisBox.setLabelText(PreferencesMessages.NameConventionConfigurationBlock_keywordthis_label);
fUseIsForBooleanGettersBox= new SelectionButtonDialogField(SWT.CHECK | SWT.WRAP);
fUseIsForBooleanGettersBox.setDialogFieldListener(adapter);
fUseIsForBooleanGettersBox.setLabelText(PreferencesMessages.NameConventionConfigurationBlock_isforbooleangetters_label);
fUseOverrideAnnotation= new SelectionButtonDialogField(SWT.CHECK | SWT.WRAP);
fUseOverrideAnnotation.setDialogFieldListener(adapter);
fUseOverrideAnnotation.setLabelText(PreferencesMessages.NameConventionConfigurationBlock_use_override_annotation_label);
updateControls();
}
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:55,代碼來源:NameConventionConfigurationBlock.java
示例14: CodeAssistFavoritesConfigurationBlock
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
public CodeAssistFavoritesConfigurationBlock(IStatusChangeListener statusListener, IWorkbenchPreferenceContainer workbenchcontainer) {
super(statusListener, null, getAllKeys(), workbenchcontainer);
}
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:4,代碼來源:CodeAssistFavoritesConfigurationBlock.java
示例15: JavadocProblemsConfigurationBlock
import org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener; //導入依賴的package包/類
public JavadocProblemsConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) {
super(context, project, getKeys(), container);
fBlockEnableState= null;
}
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:5,代碼來源:JavadocProblemsConfigurationBlock.java