Package org.eclipse.gef

Examples of org.eclipse.gef.DefaultEditDomain


     *
     * @param documentProvider documentProvider must contain Document with rules.
     */
    public ReteViewer(DRLRuleEditor drlEditor) {
        this.drlEditor = drlEditor;
        setEditDomain( new DefaultEditDomain( this ) );
    }
View Full Code Here


    private KeyHandler sharedKeyHandler;
    private PaletteRoot root;
    private OverviewOutlinePage overviewOutlinePage;

    public GenericModelEditor() {
        setEditDomain(new DefaultEditDomain(this));
    }
View Full Code Here

  private final static Logger logger = Logger.getLogger(Editor.class.getName());

  private RulerComposite rulerComposite;

  public Editor() {
    setEditDomain(new DefaultEditDomain(this));
    if (logger.isLoggable(Level.FINE)) {
      //$ANALYSIS-IGNORE
      logger.fine("Created");
    }
  }
View Full Code Here

    private PaletteRoot paletteRoot;
    private PageEditorOutlinePage outlinePage;
    private ZoomManager zoomManager;

    public PageEditor() {
        setEditDomain(new DefaultEditDomain(this));
    }
View Full Code Here

    private DesignerPaletteRoot paletteRoot;

    public DesignerGraphicalEditorPart(DesignerEditor editor) {
        this.editor = editor;
        DefaultEditDomain defaultEditDomain = new DefaultEditDomain(this);
        setEditDomain(defaultEditDomain);
    }
View Full Code Here

   * Creates the editor with a custom command stack
   *
   * @see SXECommandStack
   */
  public WhiteboardEditor() {
    DefaultEditDomain editDomain = new DefaultEditDomain(this);
    editDomain.setCommandStack(new SXECommandStack());
    setEditDomain(editDomain);
    // initColors();
  }
View Full Code Here

  /**
   * @return the edit domain
   */
  public DefaultEditDomain getEditDomain() {
    if (_editDomain == null) {
      _editDomain = new DefaultEditDomain(this);

      // XXX: if i don't do the following line, system will default use
      // SelectionTool. Don't know where else to set this. Since it is
      // kind of duplicate
      // to the DesignerPaletteRoot.
View Full Code Here

    protected PaletteViewerPage createPaletteViewerPage() {
        if (_paletteViewerPageFactory != null) {
          _paletteViewerPage = _paletteViewerPageFactory.createPaletteViewerPage(createPaletteViewerProvider());
        }
        if (_paletteViewerPage == null) {
            DefaultEditDomain editDomain = getEditDomain();
//            PaletteItemManager manager = PaletteItemManager
//                    .getInstance(getCurrentFile(getEditorInput()));
//            manager.reset();
            PaletteRoot paletteRoot = getPaletteRoot();
            editDomain.setPaletteRoot(paletteRoot);
           
//            _paletteViewerPage = (PaletteViewerPage) super.getAdapter(PalettePage.class);
            // if possible, try to use the
            if (_paletteViewerPage == null)
            {
View Full Code Here

  /**
   * @return the edit domain
   */
  public DefaultEditDomain getEditDomain() {
    if (_editDomain == null) {
      _editDomain = new DefaultEditDomain(this);

      // XXX: if i don't do the following line, system will default use
      // SelectionTool. Don't know where else to set this. Since it is
      // kind of duplicate
      // to the DesignerPaletteRoot.
View Full Code Here

    return commandStackListener;
  }

  public EditDomain getEditDomain() {
    if (_editDomain == null)
      _editDomain = new DefaultEditDomain(this);
    return _editDomain;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.gef.DefaultEditDomain

Copyright © 2018 www.massapicom. 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.