Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2010-2012 Agrosense Licensed under the Eclipse Public License - v 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at 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.
package nl.cloudfarming.client.isobus.model;

Timon Veenstra
public enum IsobusPreference {
    LAST_DIR("lastDir", System.getProperty("user.dir")),
    LAST_EXPORT_DIR("lastDir", System.getProperty("user.dir"))
    private String propertyName;
    private String defaultProperty;
    private IsobusPreference(String propertyNameString defaultProperty) {
        this. = propertyName;
        this. = defaultProperty;
    public String getDefaultProperty() {
        return ;
    public String getPropertyName() {
        return ;
    public String getValue() {
        return NbPreferences.forModule(this.getClass()).get(this.getPropertyName(), this.getDefaultProperty());
    public void saveValue(String value) {
        NbPreferences.forModule(this.getClass()).put(this.getPropertyName(), value);
New to GrepCode? Check out our FAQ X