Java Code Examples for org.eclipse.jdt.internal.ui.wizards.NewWizardMessages#ExclusionInclusionDialog_inclusion_pattern_remove

The following examples show how to use org.eclipse.jdt.internal.ui.wizards.NewWizardMessages#ExclusionInclusionDialog_inclusion_pattern_remove . 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: SetFilterWizardPage.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
public SetFilterWizardPage(CPListElement entryToEdit, ArrayList<CPListElement> existingEntries, IPath outputLocation) {
	super(PAGE_NAME);
	fExistingEntries= existingEntries;
	fOutputLocation= outputLocation;

	setTitle(NewWizardMessages.ExclusionInclusionDialog_title);
	setDescription(NewWizardMessages.ExclusionInclusionDialog_description2);

	fCurrElement= entryToEdit;
	fCurrProject= entryToEdit.getJavaProject().getProject();
	IWorkspaceRoot root= fCurrProject.getWorkspace().getRoot();
	IResource res= root.findMember(entryToEdit.getPath());
	if (res instanceof IContainer) {
		fCurrSourceFolder= (IContainer) res;
	}

	String excLabel= NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_label;
	ImageDescriptor excDescriptor= JavaPluginImages.DESC_OBJS_EXCLUSION_FILTER_ATTRIB;
	String[] excButtonLabels= new String[] {
			NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_add,
			NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_add_multiple,
			NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_edit,
			null,
			NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_remove
		};


	String incLabel= NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_label;
	ImageDescriptor incDescriptor= JavaPluginImages.DESC_OBJS_INCLUSION_FILTER_ATTRIB;
	String[] incButtonLabels= new String[] {
			NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_add,
			NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_add_multiple,
			NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_edit,
			null,
			NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_remove
		};

	fExclusionPatternList= createListContents(entryToEdit, CPListElement.EXCLUSION, excLabel, excDescriptor, excButtonLabels);
	fInclusionPatternList= createListContents(entryToEdit, CPListElement.INCLUSION, incLabel, incDescriptor, incButtonLabels);
}
 
Example 2
Source File: ExclusionInclusionDialog.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public ExclusionInclusionDialog(Shell parent, CPListElement entryToEdit, boolean focusOnExcluded) {
	super(parent);

	fCurrElement= entryToEdit;

	setTitle(NewWizardMessages.ExclusionInclusionDialog_title);

	fCurrProject= entryToEdit.getJavaProject().getProject();
	IWorkspaceRoot root= fCurrProject.getWorkspace().getRoot();
	IResource res= root.findMember(entryToEdit.getPath());
	if (res instanceof IContainer) {
		fCurrSourceFolder= (IContainer) res;
	}

	String excLabel= NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_label;
	ImageDescriptor excDescriptor= JavaPluginImages.DESC_OBJS_EXCLUSION_FILTER_ATTRIB;
	String[] excButtonLabels= new String[] {
			NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_add,
			NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_add_multiple,
			NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_edit,
			null,
			NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_remove
		};


	String incLabel= NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_label;
	ImageDescriptor incDescriptor= JavaPluginImages.DESC_OBJS_INCLUSION_FILTER_ATTRIB;
	String[] incButtonLabels= new String[] {
			NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_add,
			NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_add_multiple,
			NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_edit,
			null,
			NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_remove
		};

	fExclusionPatternList= createListContents(entryToEdit, CPListElement.EXCLUSION, excLabel, excDescriptor, excButtonLabels);
	fInclusionPatternList= createListContents(entryToEdit, CPListElement.INCLUSION, incLabel, incDescriptor, incButtonLabels);
	if (focusOnExcluded) {
		fExclusionPatternList.postSetFocusOnDialogField(parent.getDisplay());
	} else {
		fInclusionPatternList.postSetFocusOnDialogField(parent.getDisplay());
	}
}