-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
why won't mavensmate allow editing files when src is one folder remov…
…ed? ANNOYING
- Loading branch information
Showing
92 changed files
with
12,467 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
rolluptool/src/applications/DeclarativeLookupRollupSummaries.app
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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<defaultLandingTab>LookupRollupSummary__c</defaultLandingTab> | ||
<label>Declarative Lookup Rollup Summaries</label> | ||
<tab>LookupRollupSummary__c</tab> | ||
<tab>LookupRollupSummaryLog__c</tab> | ||
</CustomApplication> |
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,73 @@ | ||
/** | ||
* Copyright (c) 2013, Andrew Fawcett | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without modification, | ||
* are permitted provided that the following conditions are met: | ||
* | ||
* - Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* - Redistributions in binary form must reproduce the above copyright notice, | ||
* this list of conditions and the following disclaimer in the documentation | ||
* and/or other materials provided with the distribution. | ||
* - Neither the name of the Andrew Fawcett, nor the names of its contributors | ||
* may be used to endorse or promote products derived from this software without | ||
* specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | ||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | ||
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
**/ | ||
|
||
/** | ||
* Performs various queries on the ApexClass object | ||
**/ | ||
public with sharing class ApexClassesSelector extends SObjectSelector | ||
{ | ||
public List<Schema.SObjectField> getSObjectFieldList() | ||
{ | ||
return new List<Schema.SObjectField> { | ||
ApexClass.SystemModstamp, | ||
ApexClass.Status, | ||
ApexClass.NamespacePrefix, | ||
ApexClass.Name, | ||
ApexClass.LengthWithoutComments, | ||
ApexClass.LastModifiedDate, | ||
ApexClass.LastModifiedById, | ||
ApexClass.IsValid, | ||
ApexClass.Id, | ||
ApexClass.CreatedDate, | ||
ApexClass.CreatedById, | ||
ApexClass.BodyCrc, | ||
ApexClass.Body, | ||
ApexClass.ApiVersion | ||
}; | ||
} | ||
|
||
public Schema.SObjectType getSObjectType() | ||
{ | ||
return ApexClass.sObjectType; | ||
} | ||
|
||
/** | ||
* Returns ApexClass that match the given name | ||
**/ | ||
public Map<String, ApexClass> selectByName(Set<String> names) | ||
{ | ||
assertIsAccessible(); | ||
List<ApexClass> apexClasses = Database.query(String.format( | ||
'select {0} from {1} where Name in :names order by {2}', | ||
new List<String>{getFieldListString(), | ||
getSObjectName(), | ||
getOrderBy()})); | ||
Map<String, ApexClass> mapByName = new Map<String, ApexClass>(); | ||
for(ApexClass apexClass : apexClasses) | ||
mapByName.put(apexClass.Name, apexClass); | ||
return mapByName; | ||
} | ||
} |
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>28.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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,82 @@ | ||
/** | ||
* Copyright (c) 2013, Andrew Fawcett | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without modification, | ||
* are permitted provided that the following conditions are met: | ||
* | ||
* - Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* - Redistributions in binary form must reproduce the above copyright notice, | ||
* this list of conditions and the following disclaimer in the documentation | ||
* and/or other materials provided with the distribution. | ||
* - Neither the name of the Andrew Fawcett, nor the names of its contributors | ||
* may be used to endorse or promote products derived from this software without | ||
* specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | ||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | ||
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
**/ | ||
|
||
/** | ||
* Performs various queries on the ApexTrigger object | ||
**/ | ||
public with sharing class ApexTriggersSelector extends SObjectSelector | ||
{ | ||
public List<Schema.SObjectField> getSObjectFieldList() | ||
{ | ||
return new List<Schema.SObjectField> { | ||
ApexTrigger.Name, | ||
ApexTrigger.UsageIsBulk, | ||
ApexTrigger.UsageBeforeUpdate, | ||
ApexTrigger.UsageBeforeInsert, | ||
ApexTrigger.UsageBeforeDelete, | ||
ApexTrigger.UsageAfterUpdate, | ||
ApexTrigger.UsageAfterUndelete, | ||
ApexTrigger.UsageAfterInsert, | ||
ApexTrigger.UsageAfterDelete, | ||
ApexTrigger.TableEnumOrId, | ||
ApexTrigger.SystemModstamp, | ||
ApexTrigger.Status, | ||
ApexTrigger.NamespacePrefix, | ||
ApexTrigger.LengthWithoutComments, | ||
ApexTrigger.LastModifiedDate, | ||
ApexTrigger.LastModifiedById, | ||
ApexTrigger.IsValid, | ||
ApexTrigger.Id, | ||
ApexTrigger.CreatedDate, | ||
ApexTrigger.CreatedById, | ||
ApexTrigger.BodyCrc, | ||
ApexTrigger.Body, | ||
ApexTrigger.ApiVersion | ||
}; | ||
} | ||
|
||
public Schema.SObjectType getSObjectType() | ||
{ | ||
return ApexTrigger.sObjectType; | ||
} | ||
|
||
/** | ||
* Returns ApexTriggers that match the given name | ||
**/ | ||
public Map<String, ApexTrigger> selectByName(Set<String> names) | ||
{ | ||
assertIsAccessible(); | ||
List<ApexTrigger> apexTriggers = Database.query(String.format( | ||
'select {0} from {1} where Name in :names order by {2}', | ||
new List<String>{getFieldListString(), | ||
getSObjectName(), | ||
getOrderBy()})); | ||
Map<String, ApexTrigger> mapByName = new Map<String, ApexTrigger>(); | ||
for(ApexTrigger apexTrigger : apexTriggers) | ||
mapByName.put(apexTrigger.Name, apexTrigger); | ||
return mapByName; | ||
} | ||
} |
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>28.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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,76 @@ | ||
/** | ||
* Copyright (c), Andrew Fawcett | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without modification, | ||
* are permitted provided that the following conditions are met: | ||
* | ||
* - Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* - Redistributions in binary form must reproduce the above copyright notice, | ||
* this list of conditions and the following disclaimer in the documentation | ||
* and/or other materials provided with the distribution. | ||
* - Neither the name of the Andrew Fawcett, nor the names of its contributors | ||
* may be used to endorse or promote products derived from this software without | ||
* specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | ||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | ||
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
**/ | ||
|
||
public with sharing class AsyncApexJobsSelector extends SObjectSelector | ||
{ | ||
public override String getOrderBy() | ||
{ | ||
return 'CreatedDate'; | ||
} | ||
|
||
List<Schema.SObjectField> getSObjectFieldList() | ||
{ | ||
return new List<Schema.SObjectField> { | ||
AsyncApexJob.Id, | ||
AsyncApexJob.Status, | ||
AsyncApexJob.ExtendedStatus, | ||
AsyncApexJob.CreatedDate, | ||
AsyncApexJob.CompletedDate, | ||
AsyncApexJob.JobItemsProcessed, | ||
AsyncApexJob.TotalJobItems, | ||
AsyncApexJob.NumberOfErrors | ||
}; | ||
} | ||
|
||
Schema.SObjectType getSObjectType() | ||
{ | ||
return AsyncApexJob.sObjectType; | ||
} | ||
|
||
public List<AsyncApexJob> selectById(Set<ID> idSet) | ||
{ | ||
return (List<AsyncApexJob>) selectSObjectsById(idSet); | ||
} | ||
|
||
/** | ||
* True if any of the given jobs (expressed by their class names) are queued, processing or preparing | ||
**/ | ||
public Boolean jobsExecuting(Set<String> classNames) | ||
{ | ||
Set<String> statuses = new Set<String> { 'Queued', 'Processing', 'Preparing' }; | ||
String jobType = 'BatchApex'; | ||
String query = | ||
String.format( | ||
'select {0} from {1} ' + | ||
'where JobType = :jobType And ' + | ||
'ApexClass.Name in :classNames And ' + | ||
'Status in :statuses', | ||
new List<String>{getFieldListString(),getSObjectName()}); | ||
List<AsyncApexJob> jobs = (List<AsyncApexJob>) | ||
Database.query(query); | ||
return jobs.size()>0; | ||
} | ||
} |
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>24.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
Oops, something went wrong.