当前位置: 首页>>代码示例>>Java>>正文


Java FieldEditor.setPropertyChangeListener方法代码示例

本文整理汇总了Java中org.eclipse.jface.preference.FieldEditor.setPropertyChangeListener方法的典型用法代码示例。如果您正苦于以下问题:Java FieldEditor.setPropertyChangeListener方法的具体用法?Java FieldEditor.setPropertyChangeListener怎么用?Java FieldEditor.setPropertyChangeListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jface.preference.FieldEditor的用法示例。


在下文中一共展示了FieldEditor.setPropertyChangeListener方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createFieldEditors

import org.eclipse.jface.preference.FieldEditor; //导入方法依赖的package包/类
/**
   * Creates the field editors. Field editors are abstractions of the common GUI
   * blocks needed to manipulate various types of preferences. Each field editor
   * knows how to save and restore itself.
   */
  public void createFieldEditors()
  {
    this.createBeyondCompareFieldEditors();
    this.addField(new EmptyFieldEitor(this.getFieldEditorParent()));
    this.createTortoiseFieldEditors("SVN", "TortoiseProc.exe", "TortoiseMerge.exe", PreferenceConstants.TORTOISE_SVN);
    this.addField(new EmptyFieldEitor(this.getFieldEditorParent()));
    this.createTortoiseFieldEditors("Git", "TortoiseGitProc.exe", "TortoiseGitMerge.exe", PreferenceConstants.TORTOISE_GIT);
    
    /*final String tortoiseHgExecutable = "thg.exe";
    this.addField(new EmptyFieldEitor(this.getFieldEditorParent()));
    this.createTortoiseFieldEditors("Hg", tortoiseHgExecutable, tortoiseHgExecutable, PreferenceConstants.TORTOISE_HG);
*/
    for (BooleanFieldEditor featureEnabledEditor : this.controlMapping.keySet())
    {
      featureEnabledEditor.setPropertyChangeListener(this);
      final boolean featureEnabled = this.getPreferenceStore().getBoolean(featureEnabledEditor.getPreferenceName());
      for (FieldEditor fieldEditor : this.controlMapping.get(featureEnabledEditor))
      {
        fieldEditor.setPropertyChangeListener(this);
        fieldEditor.setEnabled(featureEnabled, getFieldEditorParent());
      }
    }
  }
 
开发者ID:ContextQuickie,项目名称:ContextQuickie,代码行数:29,代码来源:ContextQuickie.java

示例2: addField

import org.eclipse.jface.preference.FieldEditor; //导入方法依赖的package包/类
protected void addField(final FieldEditor editor, Composite parent, IPreferenceStore preferenceStore) {
    fields.add(editor);

    editor.setPreferenceStore(preferenceStore);
    editor.load();
    editor.setPropertyChangeListener(new IPropertyChangeListener() {

        @Override
        public void propertyChange(PropertyChangeEvent event) {
            // Apply on any change!
            editor.store();
        }
    });
    if (editor instanceof BooleanFieldEditorCustom) {
        editor.fillIntoGrid(parent, 2);
    } else {
        editor.fillIntoGrid(parent, 1);
    }
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:20,代码来源:ProfileView.java

示例3: 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;
}
 
开发者ID:grosenberg,项目名称:fluentmark,代码行数:13,代码来源:AbstractOptionsBlock.java

示例4: 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();
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:14,代码来源:TypeScriptMainPreferencePage.java

示例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);
        }
    }
}
 
开发者ID:Talend,项目名称:tesb-studio-se,代码行数:19,代码来源:FieldLayoutPreferencePage.java

示例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();
        }
    }
}
 
开发者ID:Talend,项目名称:tesb-studio-se,代码行数:16,代码来源:FieldLayoutPreferencePage.java


注:本文中的org.eclipse.jface.preference.FieldEditor.setPropertyChangeListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。