Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prune projects which fail to open from the mru
- Loading branch information
Showing
13 changed files
with
157 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/gwt/src/org/rstudio/studio/client/projects/events/OpenProjectErrorEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* OpenProjectFileEvent.java | ||
* | ||
* Copyright (C) 2009-11 by RStudio, Inc. | ||
* | ||
* This program is licensed to you under the terms of version 3 of the | ||
* GNU Affero General Public License. This program is distributed WITHOUT | ||
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, | ||
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the | ||
* AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. | ||
* | ||
*/ | ||
package org.rstudio.studio.client.projects.events; | ||
|
||
import org.rstudio.studio.client.projects.model.OpenProjectError; | ||
|
||
import com.google.gwt.event.shared.GwtEvent; | ||
|
||
public class OpenProjectErrorEvent extends GwtEvent<OpenProjectErrorHandler> | ||
{ | ||
public static final GwtEvent.Type<OpenProjectErrorHandler> TYPE = | ||
new GwtEvent.Type<OpenProjectErrorHandler>(); | ||
|
||
public OpenProjectErrorEvent(OpenProjectError error) | ||
{ | ||
error_ = error; | ||
} | ||
|
||
public String getProject() | ||
{ | ||
return error_.getProject(); | ||
} | ||
|
||
public String getMessage() | ||
{ | ||
return error_.getMessage(); | ||
} | ||
|
||
@Override | ||
protected void dispatch(OpenProjectErrorHandler handler) | ||
{ | ||
handler.onOpenProjectError(this); | ||
} | ||
|
||
@Override | ||
public GwtEvent.Type<OpenProjectErrorHandler> getAssociatedType() | ||
{ | ||
return TYPE; | ||
} | ||
|
||
private final OpenProjectError error_; | ||
} |
20 changes: 20 additions & 0 deletions
20
src/gwt/src/org/rstudio/studio/client/projects/events/OpenProjectErrorHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* OpenProjectFileHandler.java | ||
* | ||
* Copyright (C) 2009-11 by RStudio, Inc. | ||
* | ||
* This program is licensed to you under the terms of version 3 of the | ||
* GNU Affero General Public License. This program is distributed WITHOUT | ||
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, | ||
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the | ||
* AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. | ||
* | ||
*/ | ||
package org.rstudio.studio.client.projects.events; | ||
|
||
import com.google.gwt.event.shared.EventHandler; | ||
|
||
public interface OpenProjectErrorHandler extends EventHandler | ||
{ | ||
void onOpenProjectError(OpenProjectErrorEvent event); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/gwt/src/org/rstudio/studio/client/projects/model/OpenProjectError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* OpenProjectError.java | ||
* | ||
* Copyright (C) 2009-11 by RStudio, Inc. | ||
* | ||
* This program is licensed to you under the terms of version 3 of the | ||
* GNU Affero General Public License. This program is distributed WITHOUT | ||
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, | ||
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the | ||
* AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. | ||
* | ||
*/ | ||
package org.rstudio.studio.client.projects.model; | ||
|
||
import com.google.gwt.core.client.JavaScriptObject; | ||
|
||
public class OpenProjectError extends JavaScriptObject | ||
{ | ||
|
||
protected OpenProjectError() | ||
{ | ||
|
||
} | ||
|
||
public native final String getProject() /*-{ | ||
return this.project; | ||
}-*/; | ||
|
||
|
||
public native final String getMessage() /*-{ | ||
return this.message; | ||
}-*/; | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters