Java Code Examples for org.openide.util.Utilities#activeReferenceQueue()

The following examples show how to use org.openide.util.Utilities#activeReferenceQueue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KeyBindingSettingsImpl.java    From netbeans with Apache License 2.0 5 votes vote down vote up
public Listener (
    KeyBindingSettingsImpl kb,
    KeyBindingSettingsFactory baseKBS
) {
    super(kb, Utilities.activeReferenceQueue());
    this.baseKBS = baseKBS;
    this.storage = EditorSettingsStorage.get(KeyMapsStorage.ID);

    addListeners ();
}
 
Example 2
Source File: TimesCollectorPeer.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public CleanableWeakReference(T o) {
    super(o, Utilities.activeReferenceQueue());
}
 
Example 3
Source File: RepositoryImpl.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public MapReference(DATA d, WRAPPER w) {
    super(w, Utilities.activeReferenceQueue());
    this.key = d;
}
 
Example 4
Source File: XMLHintPreferences.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public CleaneableSoftReference(HintPreferencesProviderImpl referent, URI settings) {
    super(referent, Utilities.activeReferenceQueue());
}
 
Example 5
Source File: ProjectAwareCodeStylePreferences.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public CleaningWeakReference(Document referent) {
    super(referent, Utilities.activeReferenceQueue());
}
 
Example 6
Source File: TreeEditorCookieImpl.java    From netbeans with Apache License 2.0 4 votes vote down vote up
TreeReference (TreeDocumentRoot root) {
    super(root, Utilities.activeReferenceQueue());
}
 
Example 7
Source File: OffsetsBag.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public DocL(OffsetsBag bag) {
    super(bag, Utilities.activeReferenceQueue());
    this.document = bag.getDocument();
}
 
Example 8
Source File: FxBeanCache.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public CacheRef(ClasspathCache referent, String key) {
    super(referent, Utilities.activeReferenceQueue());
    this.refKey = key;
}
 
Example 9
Source File: AbstractLogicalViewProvider.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public OpenManagersWeakListener(final PropertyChangeListener listener) {
    super(listener, Utilities.activeReferenceQueue());
}
 
Example 10
Source File: InstanceWatcher.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public CleanableWeakReference(Object i) {
    super(i, Utilities.activeReferenceQueue());
}
 
Example 11
Source File: ProjectProblemsProviders.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public OpenManagersWeakListener(final PropertyChangeListener listener) {
    super(listener, Utilities.activeReferenceQueue());
}
 
Example 12
Source File: ContextManager.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public GMReference(ContextManager m, LookupRef context, boolean survive) {
    super(m, Utilities.activeReferenceQueue());
    this.context = context;
    this.survive = survive;
}
 
Example 13
Source File: GlobalManager.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public GMReference(GlobalManager m, LookupRef context, boolean survive) {
    super(m, Utilities.activeReferenceQueue());
    this.context = context;
    this.survive = survive;
}
 
Example 14
Source File: PropertyMonitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public ProxyListener(Object theData, String methodName, Method removeMethod, ChangeListener referent) {
    super(referent, Utilities.activeReferenceQueue());
    this.theData = new WeakReference<>(theData);
    this.methodName = methodName;
    this.removeMethod = removeMethod;
}
 
Example 15
Source File: EntrySupportDefault.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public ChArrRef(ChildrenArray referent, boolean weak) {
    super(referent, Utilities.activeReferenceQueue());
    this.chArr = weak ? null : referent;
}
 
Example 16
Source File: EntrySupportLazyState.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public NodeRef(Node node, EntryInfo info) {
    super(node, Utilities.activeReferenceQueue());
    info.lazy().registerNode(1, info);
    this.info = info;
}
 
Example 17
Source File: PersistenceManager.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public TopComponentReference (TopComponent ref, String tcID) {
   super(ref, Utilities.activeReferenceQueue());
   this.tcID = tcID;
}
 
Example 18
Source File: FreeformSources.java    From netbeans with Apache License 2.0 4 votes vote down vote up
private WeakFileListener (
        final FreeformSources source,
        final File file) {
    super (source, Utilities.activeReferenceQueue());
    this.file = file;
}
 
Example 19
Source File: ComputeOverriding.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public CleaningWR(Elements el) {
    super(el, Utilities.activeReferenceQueue());
}
 
Example 20
Source File: SnippetNodes.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public NR(SnippetNodes referent, JShell shell) {
    super(referent, Utilities.activeReferenceQueue());
    this.sub = sub;
    this.shellRef = new WeakReference<>(shell);
}