• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2012 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.ide.eclipse.monitor;
18 
19 import org.eclipse.jface.preference.PreferencePage;
20 import org.eclipse.swt.widgets.Composite;
21 import org.eclipse.swt.widgets.Control;
22 import org.eclipse.ui.IWorkbench;
23 import org.eclipse.ui.IWorkbenchPreferencePage;
24 
25 public class AndroidPreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
AndroidPreferencePage()26     public AndroidPreferencePage() {
27         super("");      //$NON-NLS-1$
28         setPreferenceStore(MonitorPlugin.getDefault().getPreferenceStore());
29     }
30 
31     @Override
init(IWorkbench workbench)32     public void init(IWorkbench workbench) {
33     }
34 
35     @Override
createContents(Composite parent)36     protected Control createContents(Composite parent) {
37         // TODO: This page is empty currently. It is only used as the top level
38         // to which DDMS & logcat attach their preference pages.
39         // ADT's root page contains the path to the Android SDK, and we should recreate
40         // that here once we figure out how to share this across plugins.
41         return null;
42     }
43 }
44