Examples of PhotovaultSettings


Examples of org.photovault.common.PhotovaultSettings

    }
   
    public void testIndexing() {
        int n;
        ExternalVolume v = new ExternalVolume( "extVol", extVolDir.getAbsolutePath() );
        PhotovaultSettings settings = PhotovaultSettings.getSettings();
        PVDatabase db = settings.getDatabase( "pv_junit" );
        try {
            db.addVolume( v );
        } catch (PhotovaultException ex) {
            fail( ex.getMessage() );
        }
View Full Code Here

Examples of org.photovault.common.PhotovaultSettings

    public void actionPerformed(ActionEvent actionEvent) {
        /*
         * Get a list of external volumes
         */
       
        PhotovaultSettings settings = PhotovaultSettings.getSettings();
        PVDatabase db = settings.getCurrentDatabase();
        List allVolumes = db.getVolumes();
        volumes = new Vector();
        Iterator iter = allVolumes.iterator();
        while ( iter.hasNext() ) {
            VolumeBase vol = (VolumeBase) iter.next();
View Full Code Here

Examples of org.photovault.common.PhotovaultSettings

     </ul>
     @return Absolute path to dcraw or <code>null</code> if no suitable executable
     is found.
     */
    static private String getDcrawCmd() {
        PhotovaultSettings settings = PhotovaultSettings.getSettings();
        String dcrawCmd = System.getProperty( "dcraw.cmd", settings.getProperty( "dcraw.cmd") );
        log.debug( "dcraw.cmd property value: " + dcrawCmd );
        if ( dcrawCmd == null ) {
            // Try to find dcraw in standard location
            String os = System.getProperty( "os.name" ).toLowerCase();
            String arch = System.getProperty( "os.arch" ).toLowerCase();
View Full Code Here

Examples of org.photovault.common.PhotovaultSettings

  passField = new JPasswordField( 15 );
  fieldConstraints.insets = new Insets( 4, 4, 4, 20 );
  gb.setConstraints( passField, fieldConstraints );
  loginPane.add( passField );

        PhotovaultSettings settings = PhotovaultSettings.getSettings();
        Collection databases = settings.getDatabases();
        Vector dbNames = new Vector();
        Iterator iter = databases.iterator();
        while ( iter.hasNext() ) {
            PVDatabase db = (PVDatabase) iter.next();
            dbNames.add( db.getName() );
        }
        Collections.sort( dbNames, Collator.getInstance() );
        Object[] dbs = dbNames.toArray();
  JLabel dbLabel = new JLabel( "Database" );
  gb.setConstraints( dbLabel, labelConstraints );
  loginPane.add( dbLabel );
  dbField = new JComboBox( dbs );
        dbField.addItemListener( new ItemListener() {
            public void itemStateChanged(ItemEvent itemEvent) {
                if ( itemEvent.getStateChange() == ItemEvent.SELECTED ) {
                    // Enable/disable the username & password fields based on
                    // database type
                    Object item = itemEvent.getItem();
                    String dbName = item.toString();
                    PhotovaultSettings settings = PhotovaultSettings.getSettings();
                    PVDatabase db = settings.getDatabase( dbName );
                    if ( db != null ) {
                        setCredentialsEnabled(
                                db.getInstanceType() == PVDatabase.TYPE_SERVER );
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.