Update of /cvsroot/jpodder/jPodder3/plugin/player/src/java/com/jpodder/plugin/player/thumb
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv25119/plugin/player/src/java/com/jpodder/plugin/player/thumb
Modified Files:
ThumbDrivePanel.java ThumbPluginSWT.java
Log Message:
Index: ThumbDrivePanel.java
===================================================================
RCS file: /cvsroot/jpodder/jPodder3/plugin/player/src/java/com/jpodder/plugin/player/thumb/ThumbDrivePanel.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ThumbDrivePanel.java 20 May 2006 20:39:19 -0000 1.2
--- ThumbDrivePanel.java 4 Jun 2006 09:49:39 -0000 1.3
***************
*** 18,21 ****
--- 18,22 ----
import com.jpodder.plugin.PluginLogic;
+ import com.jpodder.plugin.PluginRegistryEntry;
import com.jpodder.ui.swt.UILauncher;
import com.jpodder.ui.swt.conf.IConfigurationBinder;
***************
*** 64,68 ****
formData.right = new FormAttachment(100, -5);
lGroup.setLayoutData(formData);
! lGroup.setText("[I18n] Thumb drive plugin settings");
GridLayout lLayout = new GridLayout();
--- 65,69 ----
formData.right = new FormAttachment(100, -5);
lGroup.setLayoutData(formData);
! lGroup.setText("Thumb drive plugin settings");
GridLayout lLayout = new GridLayout();
***************
*** 70,74 ****
lGroup.setLayout(lLayout);
Label lLabel = new Label(lGroup, SWT.NONE);
! lLabel.setText("[I18n] Select the path to your network drive");
mDrivePath = new Text(lGroup, SWT.SINGLE | SWT.BORDER);
GridData lData = new GridData(GridData.FILL_HORIZONTAL);
--- 71,75 ----
lGroup.setLayout(lLayout);
Label lLabel = new Label(lGroup, SWT.NONE);
! lLabel.setText("Select the path to your network drive");
mDrivePath = new Text(lGroup, SWT.SINGLE | SWT.BORDER);
GridData lData = new GridData(GridData.FILL_HORIZONTAL);
***************
*** 81,85 ****
lButton.addListener(SWT.Selection, new FolderSelector(UILauncher.lMainUI.getShell()));
// Get a specific property.
! mDrivePath.setText(PluginLogic.getInstance().getRegistryEntry("thumbdrive").getValue());
}
--- 82,89 ----
lButton.addListener(SWT.Selection, new FolderSelector(UILauncher.lMainUI.getShell()));
// Get a specific property.
! PluginRegistryEntry lEntry = PluginLogic.getInstance().getRegistryEntry("thumbdrive");
! if(lEntry != null){
! mDrivePath.setText(lEntry.getValue());
! }
}
Index: ThumbPluginSWT.java
===================================================================
RCS file: /cvsroot/jpodder/jPodder3/plugin/player/src/java/com/jpodder/plugin/player/thumb/ThumbPluginSWT.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ThumbPluginSWT.java 27 Apr 2006 06:16:53 -0000 1.1
--- ThumbPluginSWT.java 4 Jun 2006 09:49:39 -0000 1.2
***************
*** 40,44 ****
ThumbDrivePanel lView = new ThumbDrivePanel();
! lConfView.addPluginPanel( "[I18n] Thumb Drive",
lView
);
--- 40,44 ----
ThumbDrivePanel lView = new ThumbDrivePanel();
! lConfView.addPluginPanel( "Thumb Drive",
lView
);
|