Examples of makeEmpty()


Examples of org.brixcms.web.reference.Reference.makeEmpty()

        add(new AjaxLink<Void>("clear") {
            @Override
            public void onClick(AjaxRequestTarget target) {
                Reference ref = ReferenceEditorPanel.this.getModelObject();
                ref.makeEmpty();
                // indicate that reference was changed (might be needed if the
                // model is buffered)
                ReferenceEditorPanel.this.setModelObject(ref);
                target.addComponent(ReferenceEditorPanel.this);
                ReferenceEditorPanel.this.onUpdate(target);
View Full Code Here

Examples of org.eclipse.jface.internal.text.SelectionProcessor.makeEmpty()

            int length= e.text.length();
            if (length == 0 && e.character == '\0') {
              // backspace in StyledText block selection mode...
              TextEdit edit= processor.backspace(selection);
              edit.apply(fDocument, TextEdit.UPDATE_REGIONS);
              ISelection empty= processor.makeEmpty(selection, true);
              setSelection(empty);
            } else {
              int lines= processor.getCoveredLines(selection);
              String delim= fDocument.getLegalLineDelimiters()[0];
              StringBuffer text= new StringBuffer(lines * length + (lines - 1) * delim.length());
 
View Full Code Here

Examples of org.eclipse.jface.internal.text.SelectionProcessor.makeEmpty()

            int length= e.text.length();
            if (length == 0 && e.character == '\0') {
              // backspace in StyledText block selection mode...
              TextEdit edit= processor.backspace(selection);
              edit.apply(fDocument, TextEdit.UPDATE_REGIONS);
              ISelection empty= processor.makeEmpty(selection, true);
              setSelection(empty);
            } else {
              int lines= processor.getCoveredLines(selection);
              String delim= fDocument.getLegalLineDelimiters()[0];
              StringBuffer text= new StringBuffer(lines * length + (lines - 1) * delim.length());
 
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.