Package org.eclipse.wst.sse.core.internal.undo

Examples of org.eclipse.wst.sse.core.internal.undo.IStructuredTextUndoManager.undoable()


        IStructuredTextUndoManager undoManager = fStructuredModel.getUndoManager();
        // get undo command
        Command undoCommand = undoManager.getUndoCommand();
        // set undo label and description
        if (undoAction != null) {
          undoAction.setEnabled(undoManager.undoable());
          if (undoCommand != null) {
            String label = undoCommand.getLabel();
            if (label != null) {
              String customText = MessageFormat.format(UNDO_ACTION_TEXT, new String[]{label});
              updateActions = updateActions || customText == null || previousUndoText == null || !customText.equals(previousUndoText);
View Full Code Here


        IStructuredTextUndoManager undoManager = fStructuredModel.getUndoManager();
        // get undo command
        Command undoCommand = undoManager.getUndoCommand();
        // set undo label and description
        if (undoAction != null) {
          undoAction.setEnabled(undoManager.undoable());
          if (undoCommand != null) {
            String label = undoCommand.getLabel();
            if (label != null) {
              String customText = MessageFormat.format(UNDO_ACTION_TEXT, new String[]{label});
              updateActions = updateActions || customText == null || previousUndoText == null || !customText.equals(previousUndoText);
View Full Code Here

  public void update() {
    IStructuredTextUndoManager undoManager = _designer.getHTMLEditor()
        .getModel().getUndoManager();
    if (_undo) {
      Command c = undoManager.getUndoCommand();
      this.setEnabled(undoManager.undoable());
      if (c != null) {
        String label = c.getLabel();
        this
            .setText(MessageFormat
                .format(
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.