diff options
| author | slewis | 2005-02-09 06:59:11 +0000 |
|---|---|---|
| committer | slewis | 2005-02-09 06:59:11 +0000 |
| commit | 5806c67a2174d735f9e5c35b5e3fbe1c07eb2b5f (patch) | |
| tree | 8d83895a5c87f19bdc5310cd5ae3290475b4d08e | |
| parent | b0d93658159d565ba1c2e745efb31f1ec8282331 (diff) | |
| download | org.eclipse.ecf-5806c67a2174d735f9e5c35b5e3fbe1c07eb2b5f.tar.gz org.eclipse.ecf-5806c67a2174d735f9e5c35b5e3fbe1c07eb2b5f.tar.xz org.eclipse.ecf-5806c67a2174d735f9e5c35b5e3fbe1c07eb2b5f.zip | |
Added preference page and checkbox for separate chat window preference
| -rw-r--r-- | examples/bundles/org.eclipse.ecf.example.collab/plugin.xml | 8 | ||||
| -rw-r--r-- | examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ClientPreferencePage.java | 39 |
2 files changed, 47 insertions, 0 deletions
diff --git a/examples/bundles/org.eclipse.ecf.example.collab/plugin.xml b/examples/bundles/org.eclipse.ecf.example.collab/plugin.xml index 98238114f..0c2ed1ff4 100644 --- a/examples/bundles/org.eclipse.ecf.example.collab/plugin.xml +++ b/examples/bundles/org.eclipse.ecf.example.collab/plugin.xml @@ -2,6 +2,7 @@ <?eclipse version="3.0"?> <plugin> <extension + id="org.eclipse.ecf.example.collab.ui.ClientPreferencePage" point="org.eclipse.ui.views"> <view icon="icons/person.gif" @@ -51,5 +52,12 @@ id="org.eclipse.ecf.example.collab.newAction1"/> </objectContribution> </extension> + <extension + point="org.eclipse.ui.preferencePages"> + <page + class="org.eclipse.ecf.example.collab.ui.ClientPreferencePage" + name="ECF" + id="org.eclipse.ecf.example.collab.ui.preferences"/> + </extension> </plugin> diff --git a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ClientPreferencePage.java b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ClientPreferencePage.java new file mode 100644 index 000000000..cacc2dd75 --- /dev/null +++ b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ClientPreferencePage.java @@ -0,0 +1,39 @@ +/**************************************************************************** +* Copyright (c) 2004 Composent, Inc. and others. +* All rights reserved. This program and the accompanying materials +* are made available under the terms of the Eclipse Public License v1.0 +* which accompanies this distribution, and is available at +* http://www.eclipse.org/legal/epl-v10.html +* +* Contributors: +* Composent, Inc. - initial API and implementation +*****************************************************************************/ + +package org.eclipse.ecf.example.collab.ui; + +import org.eclipse.ecf.example.collab.ClientPlugin; +import org.eclipse.jface.preference.BooleanFieldEditor; +import org.eclipse.jface.preference.FieldEditorPreferencePage; +import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.IWorkbenchPreferencePage; + +public class ClientPreferencePage +extends FieldEditorPreferencePage +implements IWorkbenchPreferencePage { + +public ClientPreferencePage() { + super(GRID); + setPreferenceStore(ClientPlugin.getDefault().getPreferenceStore()); +} + +public void createFieldEditors() { + addField( + new BooleanFieldEditor( + ClientPlugin.USE_CHAT_WINDOW, + "Display ECF Collaboration in Separate Window", + getFieldEditorParent())); +} + +public void init(IWorkbench workbench) { +} +}
\ No newline at end of file |
