Package org.apache.ace.client.repository

Examples of org.apache.ace.client.repository.RepositoryAdmin


        /**
         * {@inheritDoc}
         */
        public void buttonClick(ClickEvent event) {
            final RepositoryAdmin repoAdmin = getRepositoryAdmin();
            try {
                if (repoAdmin.isModified() && repoAdmin.isCurrent()) {
                    getWindow().addWindow(
                        new ConfirmationDialog("Revert changes?",
                            "The repository is changed. Are you sure you want to loose all local changes?", this));
                }
                else {
View Full Code Here


        /**
         * {@inheritDoc}
         */
        public void buttonClick(ClickEvent event) {
            final RepositoryAdmin repoAdmin = getRepositoryAdmin();
            try {
                if (repoAdmin.isModified()) {
                    // Warn the user about the possible loss of changes...
                    getWindow().addWindow(
                        new ConfirmationDialog("Retrieve latest changes?",
                            "The repository is changed. Are you sure you want to loose all local changes?", this));
                }
View Full Code Here

        /**
         * {@inheritDoc}
         */
        public void buttonClick(ClickEvent event) {
            final RepositoryAdmin repoAdmin = getRepositoryAdmin();
            try {
                if (repoAdmin.isModified()) {
                    if (repoAdmin.isCurrent()) {
                        commitChanges();
                    }
                    else {
                        getWindow().showNotification("Changes not stored",
                            "Unable to store your changes; repository changed!", Notification.TYPE_WARNING_MESSAGE);
View Full Code Here

        public void buttonClick(ClickEvent event) {
            // Avoid double-clicks...
            event.getButton().setEnabled(false);

            final RepositoryAdmin repoAdmin = getRepositoryAdmin();
            try {
                if (repoAdmin.isModified() && repoAdmin.isCurrent()) {
                    getWindow().addWindow(
                        new ConfirmationDialog("Revert changes?",
                            "The repository is changed. Are you sure you want to loose all local changes?", this));
                }
                else {
View Full Code Here

        public void buttonClick(ClickEvent event) {
            // Avoid double-clicks...
            event.getButton().setEnabled(false);

            final RepositoryAdmin repoAdmin = getRepositoryAdmin();
            try {
                if (repoAdmin.isModified()) {
                    // Warn the user about the possible loss of changes...
                    getWindow().addWindow(
                        new ConfirmationDialog("Retrieve latest changes?",
                            "The repository is changed. Are you sure you want to loose all local changes?", this));
                }
View Full Code Here

        public void buttonClick(ClickEvent event) {
            // Avoid double-clicks...
            event.getButton().setEnabled(false);

            final RepositoryAdmin repoAdmin = getRepositoryAdmin();
            try {
                if (repoAdmin.isModified()) {
                    if (repoAdmin.isCurrent()) {
                        commitChanges();
                    }
                    else {
                        getWindow().showNotification("Changes not stored",
                            "Unable to store your changes; repository changed!", Notification.TYPE_WARNING_MESSAGE);
View Full Code Here

TOP

Related Classes of org.apache.ace.client.repository.RepositoryAdmin

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.