properties.page.info = Info
properties.page.permission = Permission
+tools.name = Tools
connectionexplorer.name = Connection Explorer
command.category = Connection Explorer
<extension
point="org.eclipse.ui.preferencePages">
<page
+ class="org.tizen.common.connection.preference.TizenToolsPreferencePage"
+ id="org.tizen.common.connection.preferences.tizentools"
+ name="%tools.name"
+ category="org.tizen.common.preferences.tizencommon">
+ </page>
+ </extension>
+
+ <extension
+ point="org.eclipse.ui.preferencePages">
+ <page
class="org.tizen.common.connection.preference.TizenConnectionExplorerPreferencePage"
- id="org.tizen.common.connection.preferences.tizencommon"
+ id="org.tizen.common.connection.preferences.tizenconnectionexplorer"
name="%connectionexplorer.name"
- category="org.tizen.common.preferences.tizencommon">
+ category="org.tizen.common.connection.preferences.tizentools">
</page>
</extension>
*
* Contact:
* Kangho Kim <kh5325.kim@samsung.com>
+* Hyunsik Noh <hyunsik.noh@samsung.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
public static String CONNECTION_EXPLORER_DESCRIPTION;
public static String CONNECTION_EXPLORER_GROUP_TIMEOUT;
- public static String CONNECTION_EXPLORER_TIMEOUT_DESCRIPTION;
+ public static String CONNECTION_EXPLORER_TIMEOUT_CAUTION;
public static String CONNECTION_EXPLORER_LABEL_TIMEOUT;
public static String CONNECTION_EXPLORER_GROUP_EMULATOR_MANAGER;
-CONNECTION_EXPLORER_DESCRIPTION=Settings for Connection Explorer
-CONNECTION_EXPLORER_GROUP_TIMEOUT=Setting Timeout
-CONNECTION_EXPLORER_TIMEOUT_DESCRIPTION=Set timeout to push/pull files through the Connection Explorer
-CONNECTION_EXPLORER_LABEL_TIMEOUT=Timeout (milliseconds, 0 means waiting forever) :
+CONNECTION_EXPLORER_DESCRIPTION=Settings for Connection Explorer :
+CONNECTION_EXPLORER_GROUP_TIMEOUT=Timeouts
+CONNECTION_EXPLORER_TIMEOUT_CAUTION='0' means waiting forever
+
+CONNECTION_EXPLORER_LABEL_TIMEOUT=Timeout to transfer files (in milliseconds):
CONNECTION_EXPLORER_GROUP_EMULATOR_MANAGER=Emulator Manager Path
CONNECTION_EXPLORER_LABEL_LOCATION=Location :
\ No newline at end of file
*
* Contact:
* Kangho Kim <kh5325.kim@samsung.com>
+* Hyunsik Noh <hyunsik.noh@samsung.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import java.io.File;
-import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.FileFieldEditor;
import org.eclipse.jface.preference.IntegerFieldEditor;
Composite comp = createGroup( parent, PreferenceMessages.CONNECTION_EXPLORER_GROUP_EMULATOR_MANAGER, 1 );
Composite formatComposite = createCompositeEx( comp, 1, GridData.FILL_HORIZONTAL);
FileFieldEditor fileField = new FileFieldEditor(KEY_EMULATOR_MANAGER_PATH, PreferenceMessages.CONNECTION_EXPLORER_LABEL_LOCATION, formatComposite);
+ fileField.getTextControl(formatComposite).setEditable(false);
addField(fileField);
}
private void createPushPullTimeoutPreferences( Composite parent ) {
Composite comp = createGroup( parent, PreferenceMessages.CONNECTION_EXPLORER_GROUP_TIMEOUT, 1 );
- Label desc = new Label(comp, SWT.NONE);
- desc.setText(PreferenceMessages.CONNECTION_EXPLORER_TIMEOUT_DESCRIPTION);
- Composite formatComposite = createCompositeEx( comp, 1, GridData.FILL_HORIZONTAL);
+ Composite formatComposite = createCompositeEx( comp, 2, GridData.FILL_HORIZONTAL);
IntegerFieldEditor intField = new IntegerFieldEditor(KEY_PUSHPULL_TIMEOUT, PreferenceMessages.CONNECTION_EXPLORER_LABEL_TIMEOUT, formatComposite);
intField.setValidRange(0, Integer.MAX_VALUE);
+ intField.getTextControl(formatComposite).setToolTipText(PreferenceMessages.CONNECTION_EXPLORER_TIMEOUT_CAUTION);
+ Label nullLabel = new Label(formatComposite, SWT.None);
+ nullLabel.setText("");
+ Label cautionLabel = new Label(formatComposite, SWT.None);
+ cautionLabel.setText(PreferenceMessages.CONNECTION_EXPLORER_TIMEOUT_CAUTION);
+
addField(intField);
}
--- /dev/null
+/*
+* Common
+*
+* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+*
+* Contact:
+* Kangho Kim <kh5325.kim@samsung.com>
+* Hyunsik Noh <hyunsik.noh@samsung.com>
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+* Contributors:
+* - S-Core Co., Ltd
+*
+*/
+package org.tizen.common.connection.preference;
+
+import org.eclipse.jface.preference.PreferencePage;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+
+public class TizenToolsPreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
+
+ public TizenToolsPreferencePage() {
+ String description = "Expand the tree to edit preferences for a specific feature";
+ setDescription( description );
+ }
+ @Override
+ public void init(IWorkbench workbench) {
+ }
+
+ @Override
+ protected Control createContents(Composite parent) {
+ noDefaultAndApplyButton();
+ return null;
+ }
+}