< prev index next >
src/jdk.unsupported/share/classes/com/sun/nio/file/ExtendedWatchEventModifier.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 24,33 ****
--- 24,34 ----
*/
package com.sun.nio.file;
import java.nio.file.WatchEvent.Modifier;
+ import sun.nio.fs.ExtendedOptions;
/**
* Defines <em>extended</em> watch event modifiers supported on some platforms
* by Sun's provider implementation.
*
*** 37,43 ****
public enum ExtendedWatchEventModifier implements Modifier {
/**
* Register a file tree instead of a single directory.
*/
! FILE_TREE,
}
--- 38,48 ----
public enum ExtendedWatchEventModifier implements Modifier {
/**
* Register a file tree instead of a single directory.
*/
! FILE_TREE(ExtendedOptions.FILE_TREE);
!
! ExtendedWatchEventModifier(ExtendedOptions.InternalOption<Void> option) {
! option.register(this);
! }
}
< prev index next >