当前位置: 首页>>代码示例>>Java>>正文


Java UndoRedo.NONE属性代码示例

本文整理汇总了Java中org.openide.awt.UndoRedo.NONE属性的典型用法代码示例。如果您正苦于以下问题:Java UndoRedo.NONE属性的具体用法?Java UndoRedo.NONE怎么用?Java UndoRedo.NONE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.openide.awt.UndoRedo的用法示例。


在下文中一共展示了UndoRedo.NONE属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getUndoRedo

@Override
public UndoRedo getUndoRedo() {
    if (formDesigner != null) {
        FormModel formModel = formDesigner.getFormModel();
        if (formModel != null) {
            UndoRedo ur = formModel.getUndoRedoManager();
            if (ur != null) {
                return ur;
            }
        }
    }
    return UndoRedo.NONE;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:ComponentInspector.java

示例2: setDiffView

public void setDiffView(JComponent componentDelegate) {
    if (componentDelegate == null) {
        setDelegate(UndoRedo.NONE);
    } else {
        if (comp != null) {
            comp.removePropertyChangeListener(this);
        }
        comp = componentDelegate;
        comp.addPropertyChangeListener(this);
        UndoRedo delegate = (UndoRedo) componentDelegate.getClientProperty(UndoRedo.class);
        if (delegate == null) delegate = UndoRedo.NONE; 
        setDelegate(delegate);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:14,代码来源:DelegatingUndoRedo.java

示例3: getUndoRedo

@Override
public UndoRedo getUndoRedo() {
    if (selectedPanel == null || !(selectedPanel instanceof NavigatorPanelWithUndo)) {
        return UndoRedo.NONE;
    }
    return ((NavigatorPanelWithUndo)selectedPanel).getUndoRedo();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:7,代码来源:NavigatorTC.java

示例4: ProductSceneViewTopComponent

public ProductSceneViewTopComponent(ProductSceneView view, UndoRedo undoRedo) {
        super(view.getRaster());
        this.view = view;
        this.undoRedo = undoRedo != null ? undoRedo : UndoRedo.NONE;
        this.nodeRenameHandler = new NodeRenameHandler();
        this.selection = Selection.EMPTY;
        setToolTipText(view.getRaster().getDescription());
        setIcon(ImageUtilities.loadImage("org/esa/snap/rcp/icons/RsBandAsSwath.gif"));
        updateDisplayName();
        setName(getDisplayName());
/*
        // checkme - this is ugly and not wanted (nf), the node will either passed in or we'll have
        // a central node factory, e.g. via an ExtensionObject
        Node node = null;
        try {
            if (raster instanceof Mask) {
                node = new MNode((Mask) raster, undoRedo);
            } else if (raster instanceof Band) {
                node = new BNode((Band) raster, undoRedo);
            } else if (raster instanceof TiePointGrid) {
                node = new TPGNode((TiePointGrid) raster, undoRedo);
            }
        } catch (IntrospectionException e) {
            Exceptions.printStackTrace(e);
        }
        if (node != null) {
            setActivatedNodes(new Node[]{node});
        }
*/
        setLayout(new BorderLayout());
        add(new JLayer<>(this.view, new ProductSceneViewLayerUI()), BorderLayout.CENTER);
    }
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:32,代码来源:ProductSceneViewTopComponent.java

示例5: getUndoRedo

@Override
public UndoRedo getUndoRedo() {
    if (product != null) {
        return snapApp.getUndoManager(getProduct());
    }
    return UndoRedo.NONE;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:7,代码来源:PlacemarkManagerTopComponent.java

示例6: privateGetUndoRedo

private UndoRedo privateGetUndoRedo() {
    return model.getActiveElement().getUndoRedo() != null ? model.getActiveElement().getUndoRedo() : UndoRedo.NONE;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:MultiViewPeer.java

示例7: getUndoRedo

@Override
public UndoRedo getUndoRedo() {
    return UndoRedo.NONE;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:MultiViewProcessorTest.java

示例8: getUndoRedo

@Override
public UndoRedo getUndoRedo() {
    final UndoRedo undoRedo = Lookups.forPath("org/netbeans/modules/refactoring").lookup(UndoRedo.class);
    return undoRedo==null?UndoRedo.NONE:undoRedo;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:ProjectTab.java

示例9: getUndoRedo

@Override public UndoRedo getUndoRedo() {
    return UndoRedo.NONE;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:BasicPomMD.java

示例10: getUndoRedo

@Override
public UndoRedo getUndoRedo() {
    UndoRedo undoredo = (UndoRedo) diffView.getClientProperty(UndoRedo.class);
    return undoredo == null ? UndoRedo.NONE : undoredo;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:DiffSidebar.java

示例11: getUndoRedo

@Override public UndoRedo getUndoRedo() {
    NavigatorPanel p = initialize();
    return p instanceof NavigatorPanelWithUndo ? ((NavigatorPanelWithUndo) p).getUndoRedo() : UndoRedo.NONE;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:LazyPanel.java

示例12: getUndoRedo

/** Finds current undo/redo.
*/
static UndoRedo getUndoRedo() {
    TopComponent el = WindowManager.getDefault().getRegistry().getActivated();

    return (el == null) ? UndoRedo.NONE : el.getUndoRedo();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:7,代码来源:UndoAction.java

示例13: getUndoRedo

@Override
public UndoRedo getUndoRedo() {
    UndoRedo.Provider provider = getLookup().lookup(UndoRedo.Provider.class);
    return (provider == null) ? UndoRedo.NONE : provider.getUndoRedo();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:FormDesignerTC.java

示例14: getUndoRedo

/**
 *
 * @return
 */
@Override
public UndoRedo getUndoRedo() {
    return UndoRedo.NONE;
}
 
开发者ID:vlarin,项目名称:visualakka,代码行数:8,代码来源:VisualAkkaUnitSourceEditor.java

示例15: getUndoRedo

@Override
public UndoRedo getUndoRedo() {
  return UndoRedo.NONE;
}
 
开发者ID:billooms,项目名称:COrnLathe,代码行数:4,代码来源:GCodeVisualElement.java


注:本文中的org.openide.awt.UndoRedo.NONE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。