當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。