本文整理汇总了Java中org.eclipse.jface.preference.FieldEditor.setPage方法的典型用法代码示例。如果您正苦于以下问题:Java FieldEditor.setPage方法的具体用法?Java FieldEditor.setPage怎么用?Java FieldEditor.setPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.preference.FieldEditor
的用法示例。
在下文中一共展示了FieldEditor.setPage方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import org.eclipse.jface.preference.FieldEditor; //导入方法依赖的package包/类
protected void initialize()
{
if (fields != null)
{
Iterator e = fields.iterator();
while (e.hasNext())
{
FieldEditor fieldEditor = (FieldEditor) e.next();
fieldEditor.setPage(this);
fieldEditor.setPreferenceStore(getPreferenceStore());
fieldEditor.load();
}
}
}
示例2: dispose
import org.eclipse.jface.preference.FieldEditor; //导入方法依赖的package包/类
public void dispose() {
for (FieldEditor ed : actives) {
ed.setPage(null);
ed.setPropertyChangeListener(null);
ed.setPreferenceStore(null);
}
actives.clear();
comp.getParent().dispose();
comp = null;
page = null;
}
示例3: initEditor
import org.eclipse.jface.preference.FieldEditor; //导入方法依赖的package包/类
/**
* Initializes and sets up the given editor
*
* @param editor
* @param store
*/
void initEditor(FieldEditor editor, IPreferenceStore store) {
addField(editor);
editor.setPage(this);
editor.setPropertyChangeListener(this);
editor.setPreferenceStore(store);
editor.load();
}
示例4: addFieldEditor
import org.eclipse.jface.preference.FieldEditor; //导入方法依赖的package包/类
/**
* Hooks up a field editor to performOk and performDefaults.
*
* @param fieldEditor
* The field editor
*/
protected void addFieldEditor( FieldEditor fieldEditor )
{
fieldEditors.add( fieldEditor );
fieldEditor.setPage( this );
fieldEditor.setPreferenceStore( getPreferenceStore() );
fieldEditor.load();
}
示例5: dispose
import org.eclipse.jface.preference.FieldEditor; //导入方法依赖的package包/类
/**
* The field editor preference page implementation of an <code>IDialogPage</code> method disposes of this page's
* controls and images. Subclasses may override to release their own allocated SWT resources, but must call
* <code>super.dispose</code>.
*/
@Override
public void dispose() {
super.dispose();
if (m_fields != null) {
Iterator<FieldEditor> I = m_fields.iterator();
while (I.hasNext()) {
FieldEditor editor = I.next();
editor.setPage(null);
editor.setPropertyChangeListener(null);
editor.setPreferenceStore(null);
}
}
}
示例6: initialize
import org.eclipse.jface.preference.FieldEditor; //导入方法依赖的package包/类
/**
* Initializes all field editors.
*/
protected void initialize() {
if (m_fields != null) {
Iterator<FieldEditor> I = m_fields.iterator();
while (I.hasNext()) {
FieldEditor editor = I.next();
editor.setPage(null);
editor.setPropertyChangeListener(this);
editor.setPreferenceStore(getPreferenceStore());
editor.load();
}
}
}
示例7: createContents
import org.eclipse.jface.preference.FieldEditor; //导入方法依赖的package包/类
@Override
protected Control createContents(Composite parent) {
setTitle("Iso options");
Composite top = new Composite(parent, SWT.NONE);
fieldEditors = new ArrayList<FieldEditor>();
FieldEditor editor = new FileFieldEditor("mkisofs.path", "MKISOFS Path", true,
StringButtonFieldEditor.VALIDATE_ON_FOCUS_LOST, top);
fieldEditors.add(editor);
Group optionsGroup = new Group(top, SWT.NONE);
optionsGroup.setText("Iso creations options");
editor = new BooleanFieldEditor("mkisofs.rockridge.use", "Use RockRidge Extension", optionsGroup);
fieldEditors.add(editor);
editor = new BooleanFieldEditor("mkisofs.joliet.use", "Use Joliet Extension", optionsGroup);
fieldEditors.add(editor);
editor = new BooleanFieldEditor("mkisofs.symlinks.follow", "Follow symbolic links", optionsGroup);
fieldEditors.add(editor);
for (FieldEditor fieldEditor : fieldEditors) {
fieldEditor.setPage(this);
fieldEditor.setPreferenceStore(getPreferenceStore());
fieldEditor.load();
}
GridDataFactory.defaultsFor(optionsGroup).grab(true, false).span(3, 1).applyTo(optionsGroup);
GridLayoutFactory.swtDefaults().generateLayout(optionsGroup);
GridLayoutFactory.fillDefaults().numColumns(3).generateLayout(top);
return top;
}
示例8: setupEditor
import org.eclipse.jface.preference.FieldEditor; //导入方法依赖的package包/类
/**
* Adds the editor to the current preference page. Links it with the
* page IPreferenceStore and then load stored value.
*
* @param editor the field editor to setup
*/
public void setupEditor(FieldEditor editor)
{
editor.setPage(this);
editor.setPreferenceStore(getPreferenceStore());
editor.load();
}
示例9: addField
import org.eclipse.jface.preference.FieldEditor; //导入方法依赖的package包/类
private void addField(FieldEditor editor) {
editors.add(editor);
editor.setPage(this);
editor.setPreferenceStore(getPreferenceStore());
editor.load();
}